@appthen/cli 1.1.30 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("chalk"),Z=require("path"),ie=require("os"),ae=require("child_process"),de=require("@mengti/code-generator"),ve=require("fs"),be=require("@babel/types"),Ce=require("@babel/traverse"),ke=require("crypto"),Ie=require("http"),_e=require("https"),Fe=require("url"),Oe=require("stream"),Be=require("assert"),Me=require("tty"),qe=require("util"),Ve=require("zlib"),Ze=require("glob"),et=require("@alilc/lowcode-types"),tt=require("lodash"),ct=require("net"),ut=require("prettier"),lt=require("fs-extra"),pt=require("socket.io-client"),ft=require("whatwg-url");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var Z=Object.create(null);return e&&Object.keys(e).forEach(function(ie){if("default"!==ie){var ae=Object.getOwnPropertyDescriptor(e,ie);Object.defineProperty(Z,ie,ae.get?ae:{enumerable:!0,get:function(){return e[ie]}})}}),Z.default=e,Object.freeze(Z)}var mt=_interopDefaultLegacy(e),yt=_interopDefaultLegacy(Z),gt=_interopNamespace(Z),vt=_interopDefaultLegacy(ie),bt=_interopDefaultLegacy(de),Et=_interopNamespace(ve),St=_interopDefaultLegacy(ve),Dt=_interopDefaultLegacy(be),kt=_interopNamespace(be),It=_interopDefaultLegacy(Ce),_t=_interopDefaultLegacy(ke),Ft=_interopDefaultLegacy(Ie),Ut=_interopDefaultLegacy(_e),qt=_interopDefaultLegacy(Fe),Ht=_interopDefaultLegacy(Oe),Vt=_interopDefaultLegacy(Be),Gt=_interopDefaultLegacy(Me),Wt=_interopDefaultLegacy(qe),Jt=_interopDefaultLegacy(Ve),Xt=_interopDefaultLegacy(Ze),Yt=_interopDefaultLegacy(tt),Zt=_interopDefaultLegacy(ct),tr=_interopDefaultLegacy(ut),nr=_interopDefaultLegacy(lt),sr=_interopNamespace(lt),ir=_interopDefaultLegacy(pt),ar=_interopDefaultLegacy(ft),extendStatics=function(e,Z){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,Z){e.__proto__=Z}||function(e,Z){for(var ie in Z)Object.prototype.hasOwnProperty.call(Z,ie)&&(e[ie]=Z[ie])},extendStatics(e,Z)};function __extends(e,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,Z),e.prototype=null===Z?Object.create(Z):(__.prototype=Z.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(e){for(var Z,ie=1,ae=arguments.length;ie<ae;ie++)for(var de in Z=arguments[ie])Object.prototype.hasOwnProperty.call(Z,de)&&(e[de]=Z[de]);return e},__assign.apply(this,arguments)};function __awaiter(e,Z,ie,ae){return new(ie||(ie=Promise))(function(de,ve){function fulfilled(e){try{step(ae.next(e))}catch(e){ve(e)}}function rejected(e){try{step(ae.throw(e))}catch(e){ve(e)}}function step(e){e.done?de(e.value):function adopt(e){return e instanceof ie?e:new ie(function(Z){Z(e)})}(e.value).then(fulfilled,rejected)}step((ae=ae.apply(e,Z||[])).next())})}function __generator(e,Z){var ie,ae,de,ve={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]},be=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return be.next=verb(0),be.throw=verb(1),be.return=verb(2),"function"==typeof Symbol&&(be[Symbol.iterator]=function(){return this}),be;function verb(Ce){return function(ke){return function step(Ce){if(ie)throw new TypeError("Generator is already executing.");for(;be&&(be=0,Ce[0]&&(ve=0)),ve;)try{if(ie=1,ae&&(de=2&Ce[0]?ae.return:Ce[0]?ae.throw||((de=ae.return)&&de.call(ae),0):ae.next)&&!(de=de.call(ae,Ce[1])).done)return de;switch(ae=0,de&&(Ce=[2&Ce[0],de.value]),Ce[0]){case 0:case 1:de=Ce;break;case 4:return ve.label++,{value:Ce[1],done:!1};case 5:ve.label++,ae=Ce[1],Ce=[0];continue;case 7:Ce=ve.ops.pop(),ve.trys.pop();continue;default:if(!(de=ve.trys,(de=de.length>0&&de[de.length-1])||6!==Ce[0]&&2!==Ce[0])){ve=0;continue}if(3===Ce[0]&&(!de||Ce[1]>de[0]&&Ce[1]<de[3])){ve.label=Ce[1];break}if(6===Ce[0]&&ve.label<de[1]){ve.label=de[1],de=Ce;break}if(de&&ve.label<de[2]){ve.label=de[2],ve.ops.push(Ce);break}de[2]&&ve.ops.pop(),ve.trys.pop();continue}Ce=Z.call(e,ve)}catch(e){Ce=[6,e],ae=0}finally{ie=de=0}if(5&Ce[0])throw Ce[1];return{value:Ce[0]?Ce[1]:void 0,done:!0}}([Ce,ke])}}}function __values(e){var Z="function"==typeof Symbol&&Symbol.iterator,ie=Z&&e[Z],ae=0;if(ie)return ie.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&ae>=e.length&&(e=void 0),{value:e&&e[ae++],done:!e}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,Z){var ie="function"==typeof Symbol&&e[Symbol.iterator];if(!ie)return e;var ae,de,ve=ie.call(e),be=[];try{for(;(void 0===Z||Z-- >0)&&!(ae=ve.next()).done;)be.push(ae.value)}catch(e){de={error:e}}finally{try{ae&&!ae.done&&(ie=ve.return)&&ie.call(ve)}finally{if(de)throw de.error}}return be}function __spreadArray(e,Z,ie){if(ie||2===arguments.length)for(var ae,de=0,ve=Z.length;de<ve;de++)!ae&&de in Z||(ae||(ae=Array.prototype.slice.call(Z,0,de)),ae[de]=Z[de]);return e.concat(ae||Array.prototype.slice.call(Z))}function getErrorMessage(e){return e?e instanceof Error?e.message:"string"==typeof e?e:"object"==typeof e&&null!==e?getErrorMessage(e.message)||getErrorMessage(e.errorMessage)||getErrorMessage(e.detail):null:null}function readFileList(e,Z){Et.readdirSync(e).forEach(function(ie,ae){if(Et.statSync(e+ie).isDirectory())readFileList(e+ie+"/",Z);else{var de=ie.split("."),ve=e.split("/")[e.split("/").length-2],be=de[de.length-1],Ce={path:e.lastIndexOf("/")===e.length-1?e.slice(0,-1):e,fileName:ie,name:ve,ext:be};Z.push(Ce)}})}"function"==typeof SuppressedError&&SuppressedError;var getAllFile=function(e){var Z=[];return readFileList(e,Z),Z};function removeDir(e){Et.existsSync(e)&&(Et.readdirSync(e).forEach(function(Z,ie){var ae=e+"/"+Z;Et.statSync(ae).isDirectory()?removeDir(ae):Et.unlinkSync(ae)}),Et.rmdirSync(e))}var or="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,Z){return e(Z={exports:{}},Z.exports),Z.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var ur=createCommonjsModule(function(e,Z){function _objectWithoutPropertiesLoose(e,Z){if(null==e)return{};var ie={};for(var ae in e)if({}.hasOwnProperty.call(e,ae)){if(-1!==Z.indexOf(ae))continue;ie[ae]=e[ae]}return ie}Object.defineProperty(Z,"__esModule",{value:!0});class Position{constructor(e,Z,ie){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=Z,this.index=ie}}class SourceLocation{constructor(e,Z){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=Z}}function createPositionWithColumnOffset(e,Z){const{line:ie,column:ae,index:de}=e;return new Position(ie,ae+Z,de+Z)}const ie="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var ae={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:ie},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:ie}};const de={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"},toNodeDescription=e=>"UpdateExpression"===e.type?de.UpdateExpression[`${e.prefix}`]:de[e.type];var ve={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:Z})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${Z}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:Z})=>`Unexpected token${Z?` '${Z}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:Z})=>`The only valid meta property for ${e} is ${e}.${Z}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},be={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const Ce=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var ke=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const Ie=["message"];function defineHidden(e,Z,ie){Object.defineProperty(e,Z,{enumerable:!1,configurable:!0,value:ie})}function toParseErrorConstructor({toMessage:e,code:Z,reasonCode:ie,syntaxPlugin:ae}){const de="MissingPlugin"===ie||"MissingOneOfPlugins"===ie;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[ie]&&(ie=e[ie])}return function constructor(ve,be){const Ce=new SyntaxError;return Ce.code=Z,Ce.reasonCode=ie,Ce.loc=ve,Ce.pos=ve.index,Ce.syntaxPlugin=ae,de&&(Ce.missingPlugin=be.missingPlugin),defineHidden(Ce,"clone",function clone(e={}){var Z;const{line:ie,column:ae,index:de}=null!=(Z=e.loc)?Z:ve;return constructor(new Position(ie,ae,de),Object.assign({},be,e.details))}),defineHidden(Ce,"details",be),Object.defineProperty(Ce,"message",{configurable:!0,get(){const Z=`${e(be)} (${ve.line}:${ve.column})`;return this.message=Z,Z},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),Ce}}function ParseErrorEnum(e,Z){if(Array.isArray(e))return Z=>ParseErrorEnum(Z,e[0]);const ie={};for(const ae of Object.keys(e)){const de=e[ae],ve="string"==typeof de?{message:()=>de}:"function"==typeof de?{message:de}:de,{message:be}=ve,Ce=_objectWithoutPropertiesLoose(ve,Ie),ke="string"==typeof be?()=>be:be;ie[ae]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:ae,toMessage:ke},Z?{syntaxPlugin:Z}:{},Ce))}return ie}const _e=Object.assign({},ParseErrorEnum(ae),ParseErrorEnum(ve),ParseErrorEnum({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),ParseErrorEnum(be),ParseErrorEnum`pipelineOperator`(ke));const{defineProperty:Fe}=Object,toUnenumerable=(e,Z)=>{e&&Fe(e,Z,{enumerable:!1,value:e[Z]})};function toESTreeLocation(e){return toUnenumerable(e.loc.start,"index"),toUnenumerable(e.loc.end,"index"),e}class TokContext{constructor(e,Z){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!Z}}const Oe={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",!0)};Oe.template=new TokContext("`",!0);const Be=!0,Me=!0,qe=!0,Ve=!0,Ze=!0;class ExportedTokenType{constructor(e,Z={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=Z.keyword,this.beforeExpr=!!Z.beforeExpr,this.startsExpr=!!Z.startsExpr,this.rightAssociative=!!Z.rightAssociative,this.isLoop=!!Z.isLoop,this.isAssign=!!Z.isAssign,this.prefix=!!Z.prefix,this.postfix=!!Z.postfix,this.binop=null!=Z.binop?Z.binop:null,this.updateContext=null}}const et=new Map;function createKeyword(e,Z={}){Z.keyword=e;const ie=createToken(e,Z);return et.set(e,ie),ie}function createBinop(e,Z){return createToken(e,{beforeExpr:Be,binop:Z})}let tt=-1;const ct=[],ut=[],lt=[],pt=[],ft=[],mt=[];function createToken(e,Z={}){var ie,ae,de,ve;return++tt,ut.push(e),lt.push(null!=(ie=Z.binop)?ie:-1),pt.push(null!=(ae=Z.beforeExpr)&&ae),ft.push(null!=(de=Z.startsExpr)&&de),mt.push(null!=(ve=Z.prefix)&&ve),ct.push(new ExportedTokenType(e,Z)),tt}function createKeywordLike(e,Z={}){var ie,ae,de,ve;return++tt,et.set(e,tt),ut.push(e),lt.push(null!=(ie=Z.binop)?ie:-1),pt.push(null!=(ae=Z.beforeExpr)&&ae),ft.push(null!=(de=Z.startsExpr)&&de),mt.push(null!=(ve=Z.prefix)&&ve),ct.push(new ExportedTokenType("name",Z)),tt}const yt={bracketL:createToken("[",{beforeExpr:Be,startsExpr:Me}),bracketHashL:createToken("#[",{beforeExpr:Be,startsExpr:Me}),bracketBarL:createToken("[|",{beforeExpr:Be,startsExpr:Me}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:Be,startsExpr:Me}),braceBarL:createToken("{|",{beforeExpr:Be,startsExpr:Me}),braceHashL:createToken("#{",{beforeExpr:Be,startsExpr:Me}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:Be,startsExpr:Me}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:Be}),semi:createToken(";",{beforeExpr:Be}),colon:createToken(":",{beforeExpr:Be}),doubleColon:createToken("::",{beforeExpr:Be}),dot:createToken("."),question:createToken("?",{beforeExpr:Be}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:Be}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:Be}),backQuote:createToken("`",{startsExpr:Me}),dollarBraceL:createToken("${",{beforeExpr:Be,startsExpr:Me}),templateTail:createToken("...`",{startsExpr:Me}),templateNonTail:createToken("...${",{beforeExpr:Be,startsExpr:Me}),at:createToken("@"),hash:createToken("#",{startsExpr:Me}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:Be,isAssign:Ve}),assign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),slashAssign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),xorAssign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),moduloAssign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),incDec:createToken("++/--",{prefix:Ze,postfix:!0,startsExpr:Me}),bang:createToken("!",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),tilde:createToken("~",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),doubleCaret:createToken("^^",{startsExpr:Me}),doubleAt:createToken("@@",{startsExpr:Me}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:Be,binop:9,prefix:Ze,startsExpr:Me}),modulo:createToken("%",{binop:10,startsExpr:Me}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:Be,binop:11,rightAssociative:!0}),_in:createKeyword("in",{beforeExpr:Be,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:Be,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:Be}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:Be}),_else:createKeyword("else",{beforeExpr:Be}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:Me}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:Be}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:Be,startsExpr:Me}),_this:createKeyword("this",{startsExpr:Me}),_super:createKeyword("super",{startsExpr:Me}),_class:createKeyword("class",{startsExpr:Me}),_extends:createKeyword("extends",{beforeExpr:Be}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:Me}),_null:createKeyword("null",{startsExpr:Me}),_true:createKeyword("true",{startsExpr:Me}),_false:createKeyword("false",{startsExpr:Me}),_typeof:createKeyword("typeof",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_void:createKeyword("void",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_delete:createKeyword("delete",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_do:createKeyword("do",{isLoop:qe,beforeExpr:Be}),_for:createKeyword("for",{isLoop:qe}),_while:createKeyword("while",{isLoop:qe}),_as:createKeywordLike("as",{startsExpr:Me}),_assert:createKeywordLike("assert",{startsExpr:Me}),_async:createKeywordLike("async",{startsExpr:Me}),_await:createKeywordLike("await",{startsExpr:Me}),_defer:createKeywordLike("defer",{startsExpr:Me}),_from:createKeywordLike("from",{startsExpr:Me}),_get:createKeywordLike("get",{startsExpr:Me}),_let:createKeywordLike("let",{startsExpr:Me}),_meta:createKeywordLike("meta",{startsExpr:Me}),_of:createKeywordLike("of",{startsExpr:Me}),_sent:createKeywordLike("sent",{startsExpr:Me}),_set:createKeywordLike("set",{startsExpr:Me}),_source:createKeywordLike("source",{startsExpr:Me}),_static:createKeywordLike("static",{startsExpr:Me}),_using:createKeywordLike("using",{startsExpr:Me}),_yield:createKeywordLike("yield",{startsExpr:Me}),_asserts:createKeywordLike("asserts",{startsExpr:Me}),_checks:createKeywordLike("checks",{startsExpr:Me}),_exports:createKeywordLike("exports",{startsExpr:Me}),_global:createKeywordLike("global",{startsExpr:Me}),_implements:createKeywordLike("implements",{startsExpr:Me}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:Me}),_infer:createKeywordLike("infer",{startsExpr:Me}),_is:createKeywordLike("is",{startsExpr:Me}),_mixins:createKeywordLike("mixins",{startsExpr:Me}),_proto:createKeywordLike("proto",{startsExpr:Me}),_require:createKeywordLike("require",{startsExpr:Me}),_satisfies:createKeywordLike("satisfies",{startsExpr:Me}),_keyof:createKeywordLike("keyof",{startsExpr:Me}),_readonly:createKeywordLike("readonly",{startsExpr:Me}),_unique:createKeywordLike("unique",{startsExpr:Me}),_abstract:createKeywordLike("abstract",{startsExpr:Me}),_declare:createKeywordLike("declare",{startsExpr:Me}),_enum:createKeywordLike("enum",{startsExpr:Me}),_module:createKeywordLike("module",{startsExpr:Me}),_namespace:createKeywordLike("namespace",{startsExpr:Me}),_interface:createKeywordLike("interface",{startsExpr:Me}),_type:createKeywordLike("type",{startsExpr:Me}),_opaque:createKeywordLike("opaque",{startsExpr:Me}),name:createToken("name",{startsExpr:Me}),placeholder:createToken("%%",{startsExpr:Me}),string:createToken("string",{startsExpr:Me}),num:createToken("num",{startsExpr:Me}),bigint:createToken("bigint",{startsExpr:Me}),decimal:createToken("decimal",{startsExpr:Me}),regexp:createToken("regexp",{startsExpr:Me}),privateName:createToken("#name",{startsExpr:Me}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:Be}),jsxTagStart:createToken("jsxTagStart",{startsExpr:Me}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenCanStartExpression(e){return ft[e]}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsPostfix(e){return 34===e}function tokenLabelName(e){return ut[e]}function tokenOperatorPrecedence(e){return lt[e]}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return ct[e]}ct[8].updateContext=e=>{e.pop()},ct[5].updateContext=ct[7].updateContext=ct[23].updateContext=e=>{e.push(Oe.brace)},ct[22].updateContext=e=>{e[e.length-1]===Oe.template?e.pop():e.push(Oe.template)},ct[143].updateContext=e=>{e.push(Oe.j_expr,Oe.j_oTag)};let gt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",vt="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const bt=new RegExp("["+gt+"]"),Et=new RegExp("["+gt+vt+"]");gt=vt=null;const St=[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],Dt=[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 isInAstralSet(e,Z){let ie=65536;for(let ae=0,de=Z.length;ae<de;ae+=2){if(ie+=Z[ae],ie>e)return!1;if(ie+=Z[ae+1],ie>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&bt.test(String.fromCharCode(e)):isInAstralSet(e,St)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Et.test(String.fromCharCode(e)):isInAstralSet(e,St)||isInAstralSet(e,Dt))))}const kt=["implements","interface","let","package","private","protected","public","static","yield"],It=["eval","arguments"],_t=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"]),Ft=new Set(kt),Ut=new Set(It);function isReservedWord(e,Z){return Z&&"await"===e||"enum"===e}function isStrictReservedWord(e,Z){return isReservedWord(e,Z)||Ft.has(e)}function isStrictBindOnlyReservedWord(e){return Ut.has(e)}function isStrictBindReservedWord(e,Z){return isStrictReservedWord(e,Z)||isStrictBindOnlyReservedWord(e)}const qt=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"]);class Scope{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ScopeHandler{constructor(e,Z){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=Z}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:Z}=this.scopeStack[e];if(128&Z)return!0;if(1731&Z)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,Z,ie){let ae=this.currentScope();if(8&Z||16&Z){this.checkRedeclarationInScope(ae,e,Z,ie);let de=ae.names.get(e)||0;16&Z?de|=4:(ae.firstLexicalName||(ae.firstLexicalName=e),de|=2),ae.names.set(e,de),8&Z&&this.maybeExportDefined(ae,e)}else if(4&Z)for(let de=this.scopeStack.length-1;de>=0&&(ae=this.scopeStack[de],this.checkRedeclarationInScope(ae,e,Z,ie),ae.names.set(e,1|(ae.names.get(e)||0)),this.maybeExportDefined(ae,e),!(1667&ae.flags));--de);this.parser.inModule&&1&ae.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,Z){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(Z)}checkRedeclarationInScope(e,Z,ie,ae){this.isRedeclaredInScope(e,Z,ie)&&this.parser.raise(_e.VarRedeclaration,ae,{identifierName:Z})}isRedeclaredInScope(e,Z,ie){if(!(1&ie))return!1;if(8&ie)return e.names.has(Z);const ae=e.names.get(Z);return 16&ie?(2&ae)>0||!this.treatFunctionsAsVarInScope(e)&&(1&ae)>0:(2&ae)>0&&!(8&e.flags&&e.firstLexicalName===Z)||!this.treatFunctionsAsVarInScope(e)&&(4&ae)>0}checkLocalExport(e){const{name:Z}=e;this.scopeStack[0].names.has(Z)||this.undefinedExports.set(Z,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:Z}=this.scopeStack[e];if(1667&Z)return Z}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:Z}=this.scopeStack[e];if(1731&Z&&!(4&Z))return Z}}}class FlowScope extends Scope{constructor(...e){super(...e),this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,Z,ie){const ae=this.currentScope();if(2048&Z)return this.checkRedeclarationInScope(ae,e,Z,ie),this.maybeExportDefined(ae,e),void ae.declareFunctions.add(e);super.declareName(e,Z,ie)}isRedeclaredInScope(e,Z,ie){if(super.isRedeclaredInScope(e,Z,ie))return!0;if(2048&ie&&!e.declareFunctions.has(Z)){const ie=e.names.get(Z);return(4&ie)>0||(2&ie)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const Ht=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Vt=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:Z})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${Z}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:Z})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${Z}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:Z})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${Z}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:Z,explicitType:ie})=>`Enum \`${e}\` has type \`${ie}\`, so the initializer of \`${Z}\` needs to be a ${ie} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:Z})=>`Symbol enum members cannot be initialized. Use \`${Z},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:Z})=>`The enum member initializer for \`${Z}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:Z,suggestion:ie})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${Z}\`, consider using \`${ie}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:Z})=>`Number enum members need to be initialized, e.g. \`${Z} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:Z})=>`\`declare export ${e}\` is not supported. Use \`${Z}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}const Gt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const Wt=/\*?\s*@((?:no)?flow)\b/;const Jt={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Xt=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function hasNewLine(e,Z,ie){for(let ae=Z;ae<ie;ae++)if(isNewLine(e.charCodeAt(ae)))return!0;return!1}const Yt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Zt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const tr=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:Z})=>`Unexpected token \`${e}\`. Did you mean \`${Z}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}class TypeScriptScope extends Scope{constructor(...e){super(...e),this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new TypeScriptScope(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,Z){const ie=this.importsStack.length;if(this.importsStack[ie-1].has(e))return!0;if(!Z&&ie>1)for(let Z=0;Z<ie-1;Z++)if(this.importsStack[Z].has(e))return!0;return!1}declareName(e,Z,ie){if(4096&Z)return this.hasImport(e,!0)&&this.parser.raise(_e.VarRedeclaration,ie,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const ae=this.currentScope();let de=ae.tsNames.get(e)||0;if(1024&Z)return this.maybeExportDefined(ae,e),void ae.tsNames.set(e,16|de);super.declareName(e,Z,ie),2&Z&&(1&Z||(this.checkRedeclarationInScope(ae,e,Z,ie),this.maybeExportDefined(ae,e)),de|=1),256&Z&&(de|=2),512&Z&&(de|=4),128&Z&&(de|=8),de&&ae.tsNames.set(e,de)}isRedeclaredInScope(e,Z,ie){const ae=e.tsNames.get(Z);if((2&ae)>0){if(256&ie){return!!(512&ie)!==(4&ae)>0}return!0}return 128&ie&&(8&ae)>0?!!(2&e.names.get(Z))&&!!(1&ie):!!(2&ie&&(1&ae)>0)||super.isRedeclaredInScope(e,Z,ie)}checkLocalExport(e){const{name:Z}=e;if(this.hasImport(Z))return;for(let e=this.scopeStack.length-1;e>=0;e--){const ie=this.scopeStack[e].tsNames.get(Z);if((1&ie)>0||(16&ie)>0)return}super.checkLocalExport(e)}}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function functionFlags(e,Z){return(e?2:0)|(Z?1:0)}class BaseParser{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[Z,ie]=e;if(!this.hasPlugin(Z))return!1;const ae=this.plugins.get(Z);for(const e of Object.keys(ie))if((null==ae?void 0:ae[e])!==ie[e])return!1;return!0}}getPluginOption(e,Z){var ie;return null==(ie=this.plugins.get(e))?void 0:ie[Z]}}function setTrailingComments(e,Z){void 0===e.trailingComments?e.trailingComments=Z:e.trailingComments.unshift(...Z)}function setInnerComments(e,Z){void 0===e.innerComments?e.innerComments=Z:e.innerComments.unshift(...Z)}function adjustInnerComments(e,Z,ie){let ae=null,de=Z.length;for(;null===ae&&de>0;)ae=Z[--de];null===ae||ae.start>ie.start?setInnerComments(e,ie.comments):setTrailingComments(ae,ie.comments)}class CommentsParser extends BaseParser{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:Z}=this.state;this.comments.length!==Z&&(this.comments.length=Z),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:Z}=this.state,ie=Z.length;if(0===ie)return;let ae=ie-1;const de=Z[ae];de.start===e.end&&(de.leadingNode=e,ae--);const{start:ve}=e;for(;ae>=0;ae--){const ie=Z[ae],de=ie.end;if(!(de>ve)){de===ve&&(ie.trailingNode=e);break}ie.containingNode=e,this.finalizeComment(ie),Z.splice(ae,1)}}finalizeComment(e){var Z;const{comments:ie}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&setTrailingComments(e.leadingNode,ie),null!==e.trailingNode&&function setLeadingComments(e,Z){void 0===e.leadingComments?e.leadingComments=Z:e.leadingComments.unshift(...Z)}(e.trailingNode,ie);else{const{containingNode:ae,start:de}=e;if(44===this.input.charCodeAt(this.offsetToSourcePos(de)-1))switch(ae.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(ae,ae.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(ae,ae.arguments,e);break;case"ImportExpression":adjustInnerComments(ae,[ae.source,null!=(Z=ae.options)?Z:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(ae,ae.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(ae,ae.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(ae,ae.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":adjustInnerComments(ae,ae.members,e);break;default:setInnerComments(ae,ie)}else setInnerComments(ae,ie)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let Z=e.length-1;Z>=0;Z--)this.finalizeComment(e[Z]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:Z}=this.state,{length:ie}=Z;if(0===ie)return;const ae=Z[ie-1];ae.leadingNode===e&&(ae.leadingNode=null)}takeSurroundingComments(e,Z,ie){const{commentStack:ae}=this.state,de=ae.length;if(0===de)return;let ve=de-1;for(;ve>=0;ve--){const de=ae[ve],be=de.end;if(de.start===ie)de.leadingNode=e;else if(be===Z)de.trailingNode=e;else if(be<Z)break}}}class State{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=[Oe.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:Z,startIndex:ie,startLine:ae,startColumn:de}){this.strict=!1!==e&&(!0===e||"module"===Z),this.startIndex=ie,this.curLine=ae,this.lineStart=-de,this.startLoc=this.endLoc=new Position(ae,de,ie)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var nr=function isDigit(e){return e>=48&&e<=57};const sr={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ir={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,Z,ie,ae,de,ve){const be=ie,Ce=ae,ke=de;let Ie="",_e=null,Fe=ie;const{length:Oe}=Z;for(;;){if(ie>=Oe){ve.unterminated(be,Ce,ke),Ie+=Z.slice(Fe,ie);break}const Be=Z.charCodeAt(ie);if(isStringEnd(e,Be,Z,ie)){Ie+=Z.slice(Fe,ie);break}if(92===Be){Ie+=Z.slice(Fe,ie);const be=readEscapedChar(Z,ie,ae,de,"template"===e,ve);null!==be.ch||_e?Ie+=be.ch:_e={pos:ie,lineStart:ae,curLine:de},({pos:ie,lineStart:ae,curLine:de}=be),Fe=ie}else 8232===Be||8233===Be?(++de,ae=++ie):10===Be||13===Be?"template"===e?(Ie+=Z.slice(Fe,ie)+"\n",++ie,13===Be&&10===Z.charCodeAt(ie)&&++ie,++de,Fe=ae=ie):ve.unterminated(be,Ce,ke):++ie}return{pos:ie,str:Ie,firstInvalidLoc:_e,lineStart:ae,curLine:de,containsInvalid:!!_e}}function isStringEnd(e,Z,ie,ae){return"template"===e?96===Z||36===Z&&123===ie.charCodeAt(ae+1):Z===("double"===e?34:39)}function readEscapedChar(e,Z,ie,ae,de,ve){const be=!de;Z++;const res=e=>({pos:Z,ch:e,lineStart:ie,curLine:ae}),Ce=e.charCodeAt(Z++);switch(Ce){case 110:return res("\n");case 114:return res("\r");case 120:{let de;return({code:de,pos:Z}=readHexChar(e,Z,ie,ae,2,!1,be,ve)),res(null===de?null:String.fromCharCode(de))}case 117:{let de;return({code:de,pos:Z}=readCodePoint(e,Z,ie,ae,be,ve)),res(null===de?null:String.fromCodePoint(de))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===e.charCodeAt(Z)&&++Z;case 10:ie=Z,++ae;case 8232:case 8233:return res("");case 56:case 57:if(de)return res(null);ve.strictNumericEscape(Z-1,ie,ae);default:if(Ce>=48&&Ce<=55){const be=Z-1;let Ce=/^[0-7]+/.exec(e.slice(be,Z+2))[0],ke=parseInt(Ce,8);ke>255&&(Ce=Ce.slice(0,-1),ke=parseInt(Ce,8)),Z+=Ce.length-1;const Ie=e.charCodeAt(Z);if("0"!==Ce||56===Ie||57===Ie){if(de)return res(null);ve.strictNumericEscape(be,ie,ae)}return res(String.fromCharCode(ke))}return res(String.fromCharCode(Ce))}}function readHexChar(e,Z,ie,ae,de,ve,be,Ce){const ke=Z;let Ie;return({n:Ie,pos:Z}=readInt(e,Z,ie,ae,16,de,ve,!1,Ce,!be)),null===Ie&&(be?Ce.invalidEscapeSequence(ke,ie,ae):Z=ke-1),{code:Ie,pos:Z}}function readInt(e,Z,ie,ae,de,ve,be,Ce,ke,Ie){const _e=Z,Fe=16===de?sr.hex:sr.decBinOct,Oe=16===de?ir.hex:10===de?ir.dec:8===de?ir.oct:ir.bin;let Be=!1,Me=0;for(let _e=0,qe=null==ve?1/0:ve;_e<qe;++_e){const ve=e.charCodeAt(Z);let _e;if(95===ve&&"bail"!==Ce){const de=e.charCodeAt(Z-1),ve=e.charCodeAt(Z+1);if(Ce){if(Number.isNaN(ve)||!Oe(ve)||Fe.has(de)||Fe.has(ve)){if(Ie)return{n:null,pos:Z};ke.unexpectedNumericSeparator(Z,ie,ae)}}else{if(Ie)return{n:null,pos:Z};ke.numericSeparatorInEscapeSequence(Z,ie,ae)}++Z;continue}if(_e=ve>=97?ve-97+10:ve>=65?ve-65+10:nr(ve)?ve-48:1/0,_e>=de){if(_e<=9&&Ie)return{n:null,pos:Z};if(_e<=9&&ke.invalidDigit(Z,ie,ae,de))_e=0;else{if(!be)break;_e=0,Be=!0}}++Z,Me=Me*de+_e}return Z===_e||null!=ve&&Z-_e!==ve||Be?{n:null,pos:Z}:{n:Me,pos:Z}}function readCodePoint(e,Z,ie,ae,de,ve){let be;if(123===e.charCodeAt(Z)){if(++Z,({code:be,pos:Z}=readHexChar(e,Z,ie,ae,e.indexOf("}",Z)-Z,!0,de,ve)),++Z,null!==be&&be>1114111){if(!de)return{code:null,pos:Z};ve.invalidCodePoint(Z,ie,ae)}}else({code:be,pos:Z}=readHexChar(e,Z,ie,ae,4,!1,de,ve));return{code:be,pos:Z}}function buildPosition(e,Z,ie){return new Position(ie,e-Z,e)}const ar=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const Z=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=Z+e.start,this.end=Z+e.end,this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,Z){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,Z,ie,ae)=>!!(2048&this.optionFlags)&&(this.raise(_e.InvalidDigit,buildPosition(e,Z,ie),{radix:ae}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(_e.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_e.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_e.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_e.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,Z,ie)=>{this.recordStrictModeErrors(_e.StrictNumericEscape,buildPosition(e,Z,ie))},unterminated:(e,Z,ie)=>{throw this.raise(_e.UnterminatedString,buildPosition(e-1,Z,ie))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_e.StrictNumericEscape),unterminated:(e,Z,ie)=>{throw this.raise(_e.UnterminatedTemplate,buildPosition(e,Z,ie))}}),this.state=new State,this.state.init(e),this.input=Z,this.length=Z.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new Token(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const Z=this.state;return this.state=e,Z}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Yt.lastIndex=e,Yt.test(this.input)?Yt.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Zt.lastIndex=e,Zt.test(this.input)?Zt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let Z=this.input.charCodeAt(e);if(55296==(64512&Z)&&++e<this.input.length){const ie=this.input.charCodeAt(e);56320==(64512&ie)&&(Z=65536+((1023&Z)<<10)+(1023&ie))}return Z}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,Z])=>this.raise(e,Z)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let Z;this.isLookahead||(Z=this.state.curPosition());const ie=this.state.pos,ae=this.input.indexOf(e,ie+2);if(-1===ae)throw this.raise(_e.UnterminatedComment,this.state.curPosition());for(this.state.pos=ae+e.length,Xt.lastIndex=ie+2;Xt.test(this.input)&&Xt.lastIndex<=ae;)++this.state.curLine,this.state.lineStart=Xt.lastIndex;if(this.isLookahead)return;const de={type:"CommentBlock",value:this.input.slice(ie+2,ae),start:this.sourceToOffsetPos(ie),end:this.sourceToOffsetPos(ae+e.length),loc:new SourceLocation(Z,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(de),de}skipLineComment(e){const Z=this.state.pos;let ie;this.isLookahead||(ie=this.state.curPosition());let ae=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(ae)&&++this.state.pos<this.length;)ae=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const de=this.state.pos,ve={type:"CommentLine",value:this.input.slice(Z+e,de),start:this.sourceToOffsetPos(Z),end:this.sourceToOffsetPos(de),loc:new SourceLocation(ie,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(ve),ve}skipSpace(){const e=this.state.pos,Z=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const ie=this.input.charCodeAt(this.state.pos);switch(ie){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==Z||Z.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==Z||Z.push(e));break}default:break e}break;default:if(isWhitespace(ie))++this.state.pos;else if(45===ie&&!this.inModule&&8192&this.optionFlags){const ie=this.state.pos;if(45!==this.input.charCodeAt(ie+1)||62!==this.input.charCodeAt(ie+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==Z||Z.push(e))}}else{if(60!==ie||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==Z||Z.push(e))}}}}}if((null==Z?void 0:Z.length)>0){const ie=this.state.pos,ae={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(ie),comments:Z,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(ae)}}finishToken(e,Z){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const ie=this.state.type;this.state.type=e,this.state.value=Z,this.isLookahead||this.updateContext(ie)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,Z=this.codePointAtPos(e);if(Z>=48&&Z<=57)throw this.raise(_e.UnexpectedDigitAfterHash,this.state.curPosition());if(123===Z||91===Z&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===Z?_e.RecordExpressionHashIncorrectStartSyntaxType:_e.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===Z?this.finishToken(7):this.finishToken(1)}else isIdentifierStart(Z)?(++this.state.pos,this.finishToken(139,this.readWord1(Z))):92===Z?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const Z=this.state.pos;for(this.state.pos+=1;!isNewLine(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const ie=this.input.slice(Z+2,this.state.pos);return this.finishToken(28,ie),!0}readToken_mult_modulo(e){let Z=42===e?55:54,ie=1,ae=this.input.charCodeAt(this.state.pos+1);42===e&&42===ae&&(ie++,ae=this.input.charCodeAt(this.state.pos+2),Z=57),61!==ae||this.state.inType||(ie++,Z=37===e?33:30),this.finishOp(Z,ie)}readToken_pipe_amp(e){const Z=this.input.charCodeAt(this.state.pos+1);if(Z!==e){if(124===e){if(62===Z)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===Z){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===Z){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==Z?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const Z=this.input.charCodeAt(this.state.pos+1);Z!==e?61===Z?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,Z=this.input.charCodeAt(e+1);if(60===Z)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==Z?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,Z=this.input.charCodeAt(e+1);if(62===Z){const Z=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+Z)?void this.finishOp(30,Z+1):void this.finishOp(52,Z)}61!==Z?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const Z=this.input.charCodeAt(this.state.pos+1);if(61!==Z)return 61===e&&62===Z?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),Z=this.input.charCodeAt(this.state.pos+2);63===e?61===Z?this.finishOp(30,3):this.finishOp(40,2):46!==e||Z>=48&&Z<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord(e)}throw this.raise(_e.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,Z){const ie=this.input.slice(this.state.pos,this.state.pos+Z);this.state.pos+=Z,this.finishToken(e,ie)}readRegexp(){const e=this.state.startLoc,Z=this.state.start+1;let ie,ae,{pos:de}=this.state;for(;;++de){if(de>=this.length)throw this.raise(_e.UnterminatedRegExp,createPositionWithColumnOffset(e,1));const Z=this.input.charCodeAt(de);if(isNewLine(Z))throw this.raise(_e.UnterminatedRegExp,createPositionWithColumnOffset(e,1));if(ie)ie=!1;else{if(91===Z)ae=!0;else if(93===Z&&ae)ae=!1;else if(47===Z&&!ae)break;ie=92===Z}}const ve=this.input.slice(Z,de);++de;let be="";const nextPos=()=>createPositionWithColumnOffset(e,de+2-Z);for(;de<this.length;){const e=this.codePointAtPos(de),Z=String.fromCharCode(e);if(ar.has(e))118===e?be.includes("u")&&this.raise(_e.IncompatibleRegExpUVFlags,nextPos()):117===e&&be.includes("v")&&this.raise(_e.IncompatibleRegExpUVFlags,nextPos()),be.includes(Z)&&this.raise(_e.DuplicateRegExpFlags,nextPos());else{if(!isIdentifierChar(e)&&92!==e)break;this.raise(_e.MalformedRegExpFlags,nextPos())}++de,be+=Z}this.state.pos=de,this.finishToken(138,{pattern:ve,flags:be})}readInt(e,Z,ie=!1,ae=!0){const{n:de,pos:ve}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,Z,ie,ae,this.errorHandlers_readInt,!1);return this.state.pos=ve,de}readRadixNumber(e){const Z=this.state.pos,ie=this.state.curPosition();let ae=!1;this.state.pos+=2;const de=this.readInt(e);null==de&&this.raise(_e.InvalidDigit,createPositionWithColumnOffset(ie,2),{radix:e});const ve=this.input.charCodeAt(this.state.pos);if(110===ve)++this.state.pos,ae=!0;else if(109===ve)throw this.raise(_e.InvalidDecimal,ie);if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(_e.NumberIdentifier,this.state.curPosition());if(ae){const e=this.input.slice(Z,this.state.pos).replace(/[_n]/g,"");return void this.finishToken(136,e)}this.finishToken(135,de)}readNumber(e){const Z=this.state.pos,ie=this.state.curPosition();let ae=!1,de=!1,ve=!1,be=!1;e||null!==this.readInt(10)||this.raise(_e.InvalidNumber,this.state.curPosition());const Ce=this.state.pos-Z>=2&&48===this.input.charCodeAt(Z);if(Ce){const e=this.input.slice(Z,this.state.pos);if(this.recordStrictModeErrors(_e.StrictOctalLiteral,ie),!this.state.strict){const Z=e.indexOf("_");Z>0&&this.raise(_e.ZeroDigitNumericSeparator,createPositionWithColumnOffset(ie,Z))}be=Ce&&!/[89]/.test(e)}let ke=this.input.charCodeAt(this.state.pos);if(46!==ke||be||(++this.state.pos,this.readInt(10),ae=!0,ke=this.input.charCodeAt(this.state.pos)),69!==ke&&101!==ke||be||(ke=this.input.charCodeAt(++this.state.pos),43!==ke&&45!==ke||++this.state.pos,null===this.readInt(10)&&this.raise(_e.InvalidOrMissingExponent,ie),ae=!0,ve=!0,ke=this.input.charCodeAt(this.state.pos)),110===ke&&((ae||Ce)&&this.raise(_e.InvalidBigIntLiteral,ie),++this.state.pos,de=!0),109===ke){this.expectPlugin("decimal",this.state.curPosition()),(ve||Ce)&&this.raise(_e.InvalidDecimal,ie),++this.state.pos;var Ie=!0}if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(_e.NumberIdentifier,this.state.curPosition());const Fe=this.input.slice(Z,this.state.pos).replace(/[_mn]/g,"");if(de)return void this.finishToken(136,Fe);if(Ie)return void this.finishToken(137,Fe);const Oe=be?parseInt(Fe,8):parseFloat(Fe);this.finishToken(135,Oe)}readCodePoint(e){const{code:Z,pos:ie}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=ie,Z}readString(e){const{str:Z,pos:ie,curLine:ae,lineStart:de}=readStringContents(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=ie+1,this.state.lineStart=de,this.state.curLine=ae,this.finishToken(134,Z)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:Z,firstInvalidLoc:ie,pos:ae,curLine:de,lineStart:ve}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=ae+1,this.state.lineStart=ve,this.state.curLine=de,ie&&(this.state.firstInvalidTemplateEscapePos=new Position(ie.curLine,ie.pos-ie.lineStart,this.sourceToOffsetPos(ie.pos))),96===this.input.codePointAt(ae)?this.finishToken(24,ie?null:e+Z+"`"):(this.state.pos++,this.finishToken(25,ie?null:e+Z+"${"))}recordStrictModeErrors(e,Z){const ie=Z.index;this.state.strict&&!this.state.strictErrors.has(ie)?this.raise(e,Z):this.state.strictErrors.set(ie,[e,Z])}readWord1(e){this.state.containsEsc=!1;let Z="";const ie=this.state.pos;let ae=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,Z+=this.input.slice(ae,this.state.pos);const e=this.state.curPosition(),de=this.state.pos===ie?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(_e.MissingUnicodeEscape,this.state.curPosition()),ae=this.state.pos-1;continue}++this.state.pos;const ve=this.readCodePoint(!0);null!==ve&&(de(ve)||this.raise(_e.EscapedCharNotAnIdentifier,e),Z+=String.fromCodePoint(ve)),ae=this.state.pos}}}return Z+this.input.slice(ae,this.state.pos)}readWord(e){const Z=this.readWord1(e),ie=et.get(Z);void 0!==ie?this.finishToken(ie,tokenLabelName(ie)):this.finishToken(132,Z)}checkKeywordEscapes(){const{type:e}=this.state;tokenIsKeyword(e)&&this.state.containsEsc&&this.raise(_e.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}raise(e,Z,ie={}){const ae=e(Z instanceof Position?Z:Z.loc.start,ie);if(!(2048&this.optionFlags))throw ae;return this.isLookahead||this.state.errors.push(ae),ae}raiseOverwrite(e,Z,ie={}){const ae=Z instanceof Position?Z:Z.loc.start,de=ae.index,ve=this.state.errors;for(let Z=ve.length-1;Z>=0;Z--){const be=ve[Z];if(be.loc.index===de)return ve[Z]=e(ae,ie);if(be.loc.index<de)break}return this.raise(e,Z,ie)}updateContext(e){}unexpected(e,Z){throw this.raise(_e.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:Z?tokenLabelName(Z):null})}expectPlugin(e,Z){if(this.hasPlugin(e))return!0;throw this.raise(_e.MissingPlugin,null!=Z?Z:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(_e.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(Z,ie,ae)=>{this.raise(e,buildPosition(Z,ie,ae))}}}class ClassScope{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const e=this.stack.pop(),Z=this.current();for(const[ie,ae]of Array.from(e.undefinedPrivateNames))Z?Z.undefinedPrivateNames.has(ie)||Z.undefinedPrivateNames.set(ie,ae):this.parser.raise(_e.InvalidPrivateFieldResolution,ae,{identifierName:ie})}declarePrivateName(e,Z,ie){const{privateNames:ae,loneAccessors:de,undefinedPrivateNames:ve}=this.current();let be=ae.has(e);if(3&Z){const ie=be&&de.get(e);if(ie){be=(3&ie)===(3&Z)||(4&ie)!==(4&Z),be||de.delete(e)}else be||de.set(e,Z)}be&&this.parser.raise(_e.PrivateNameRedeclaration,ie,{identifierName:e}),ae.add(e),ve.delete(e)}usePrivateName(e,Z){let ie;for(ie of this.stack)if(ie.privateNames.has(e))return;ie?ie.undefinedPrivateNames.set(e,Z):this.parser.raise(_e.InvalidPrivateFieldResolution,Z,{identifierName:e})}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,Z){const ie=Z.index;this.declarationErrors.set(ie,[e,Z])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0,this.stack=[new ExpressionScope],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,Z){const ie=Z.loc.start,{stack:ae}=this;let de=ae.length-1,ve=ae[de];for(;!ve.isCertainlyParameterDeclaration();){if(!ve.canBeArrowParameterDeclaration())return;ve.recordDeclarationError(e,ie),ve=ae[--de]}this.parser.raise(e,ie)}recordArrowParameterBindingError(e,Z){const{stack:ie}=this,ae=ie[ie.length-1],de=Z.loc.start;if(ae.isCertainlyParameterDeclaration())this.parser.raise(e,de);else{if(!ae.canBeArrowParameterDeclaration())return;ae.recordDeclarationError(e,de)}}recordAsyncArrowParametersError(e){const{stack:Z}=this;let ie=Z.length-1,ae=Z[ie];for(;ae.canBeArrowParameterDeclaration();)2===ae.type&&ae.recordDeclarationError(_e.AwaitBindingIdentifier,e),ae=Z[--ie]}validateAsPattern(){const{stack:e}=this,Z=e[e.length-1];Z.canBeArrowParameterDeclaration()&&Z.iterateErrors(([Z,ie])=>{this.parser.raise(Z,ie);let ae=e.length-2,de=e[ae];for(;de.canBeArrowParameterDeclaration();)de.clearDeclarationError(ie.index),de=e[--ae]})}}function newExpressionScope(){return new ExpressionScope}class UtilParser extends Tokenizer{addExtra(e,Z,ie,ae=!0){if(!e)return;let{extra:de}=e;null==de&&(de={},e.extra=de),ae?de[Z]=ie:Object.defineProperty(de,Z,{enumerable:ae,value:ie})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,Z){if(this.input.startsWith(Z,e)){const ie=this.input.charCodeAt(e+Z.length);return!(isIdentifierChar(ie)||55296==(64512&ie))}return!1}isLookaheadContextual(e){const Z=this.nextTokenStart();return this.isUnparsedContextual(Z,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,Z){if(!this.eatContextual(e)){if(null!=Z)throw this.raise(Z,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_e.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,Z){this.eat(e)||this.unexpected(Z,e)}tryParse(e,Z=this.state.clone()){const ie={node:null};try{const ae=e((e=null)=>{throw ie.node=e,ie});if(this.state.errors.length>Z.errors.length){const e=this.state;return this.state=Z,this.state.tokensLength=e.tokensLength,{node:ae,error:e.errors[Z.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:ae,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const ae=this.state;if(this.state=Z,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:ae};if(e===ie)return{node:ie.node,error:null,thrown:!1,aborted:!0,failState:ae};throw e}}checkExpressionErrors(e,Z){if(!e)return!1;const{shorthandAssignLoc:ie,doubleProtoLoc:ae,privateKeyLoc:de,optionalParametersLoc:ve,voidPatternLoc:be}=e;if(!Z)return!!(ie||ae||ve||de||be);null!=ie&&this.raise(_e.InvalidCoverInitializedName,ie),null!=ae&&this.raise(_e.DuplicateProto,ae),null!=de&&this.raise(_e.UnexpectedPrivateField,de),null!=ve&&this.unexpected(ve),null!=be&&this.raise(_e.InvalidCoverDiscardElement,be)}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const Z=this.state.labels;this.state.labels=[];const ie=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const ae=this.inModule;this.inModule=e;const de=this.scope,ve=this.getScopeHandler();this.scope=new ve(this,e);const be=this.prodParam;this.prodParam=new ProductionParameterHandler;const Ce=this.classScope;this.classScope=new ClassScopeHandler(this);const ke=this.expressionScope;return this.expressionScope=new ExpressionScopeHandler(this),()=>{this.state.labels=Z,this.exportedIdentifiers=ie,this.inModule=ae,this.scope=de,this.prodParam=be,this.classScope=Ce,this.expressionScope=ke}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const Z=!this.inModule&&"commonjs"===this.options.sourceType;(Z||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let ie=Z?514:1;4&this.optionFlags&&(ie|=512),this.scope.enter(ie)}checkDestructuringPrivate(e){const{privateKeyLoc:Z}=e;null!==Z&&this.expectPlugin("destructuringPrivate",Z)}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Node{constructor(e,Z,ie){this.type="",this.start=Z,this.end=0,this.loc=new SourceLocation(ie),128&(null==e?void 0:e.optionFlags)&&(this.range=[Z,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const or=Node.prototype;or.__clone=function(){const e=new Node(void 0,this.start,this.loc.start),Z=Object.keys(this);for(let ie=0,ae=Z.length;ie<ae;ie++){const ae=Z[ie];"leadingComments"!==ae&&"trailingComments"!==ae&&"innerComments"!==ae&&(e[ae]=this[ae])}return e};class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,Z){return this.finishNodeAt(e,Z,this.state.lastTokEndLoc)}finishNodeAt(e,Z,ie){return e.type=Z,e.end=ie.index,e.loc.end=ie,128&this.optionFlags&&(e.range[1]=ie.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,Z){e.start=Z.index,e.loc.start=Z,128&this.optionFlags&&(e.range[0]=Z.index)}resetEndLocation(e,Z=this.state.lastTokEndLoc){e.end=Z.index,e.loc.end=Z,128&this.optionFlags&&(e.range[1]=Z.index)}resetStartLocationFromNode(e,Z){this.resetStartLocation(e,Z.loc.start)}castNodeTo(e,Z){return e.type=Z,e}cloneIdentifier(e){const{type:Z,start:ie,end:ae,loc:de,range:ve,name:be}=e,Ce=Object.create(or);return Ce.type=Z,Ce.start=ie,Ce.end=ae,Ce.loc=de,Ce.range=ve,Ce.name=be,e.extra&&(Ce.extra=e.extra),Ce}cloneStringLiteral(e){const{type:Z,start:ie,end:ae,loc:de,range:ve,extra:be}=e,Ce=Object.create(or);return Ce.type=Z,Ce.start=ie,Ce.end=ae,Ce.loc=de,Ce.range=ve,Ce.extra=be,Ce.value=e.value,Ce}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,Z=!1){var ie,ae;let de;switch(("ParenthesizedExpression"===e.type||null!=(ie=e.extra)&&ie.parenthesized)&&(de=unwrapParenthesizedExpression(e),Z?"Identifier"===de.type?this.expressionScope.recordArrowParameterBindingError(_e.InvalidParenthesizedAssignment,e):"MemberExpression"===de.type||this.isOptionalMemberExpression(de)||this.raise(_e.InvalidParenthesizedAssignment,e):this.raise(_e.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let ie=0,ae=e.properties.length,de=ae-1;ie<ae;ie++){var ve;const ae=e.properties[ie],be=ie===de;this.toAssignableObjectExpressionProp(ae,be,Z),be&&"RestElement"===ae.type&&null!=(ve=e.extra)&&ve.trailingCommaLoc&&this.raise(_e.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:ie,value:ae}=e;this.isPrivateName(ie)&&this.classScope.usePrivateName(this.getPrivateNameSV(ie),ie.loc.start),this.toAssignable(ae,Z);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(ae=e.extra)?void 0:ae.trailingCommaLoc,Z);break;case"AssignmentExpression":"="!==e.operator&&this.raise(_e.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(_e.VoidPatternInitializer,e.left),this.toAssignable(e.left,Z);break;case"ParenthesizedExpression":this.toAssignable(de,Z)}}toAssignableObjectExpressionProp(e,Z,ie){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?_e.PatternHasAccessor:_e.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const ae=e.argument;this.checkToRestConversion(ae,!1),this.toAssignable(ae,ie),Z||this.raise(_e.RestTrailingComma,e)}else this.toAssignable(e,ie)}toAssignableList(e,Z,ie){const ae=e.length-1;for(let de=0;de<=ae;de++){const ve=e[de];ve&&(this.toAssignableListItem(e,de,ie),"RestElement"===ve.type&&(de<ae?this.raise(_e.RestTrailingComma,ve):Z&&this.raise(_e.RestTrailingComma,Z)))}}toAssignableListItem(e,Z,ie){const ae=e[Z];if("SpreadElement"===ae.type){this.castNodeTo(ae,"RestElement");const e=ae.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,ie)}else this.toAssignable(ae,ie)}isAssignable(e,Z){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const Z=e.properties.length-1;return e.properties.every((e,ie)=>"ObjectMethod"!==e.type&&(ie===Z||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!Z;default:return!1}}toReferencedList(e,Z){return e}toReferencedListDeep(e,Z){this.toReferencedList(e,Z);for(const Z of e)"ArrayExpression"===(null==Z?void 0:Z.type)&&this.toReferencedListDeep(Z.elements)}parseSpread(e){const Z=this.startNode();return this.next(),Z.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(Z,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const Z=this.parseBindingAtom();return"VoidPattern"===Z.type&&this.raise(_e.UnexpectedVoidPattern,Z),e.argument=Z,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,Z,ie){const ae=1&ie,de=[];let ve=!0;for(;!this.eat(e);)if(ve?ve=!1:this.expect(12),ae&&this.match(12))de.push(null);else{if(this.eat(e))break;if(this.match(21)){let ae=this.parseRestBinding();if((this.hasPlugin("flow")||2&ie)&&(ae=this.parseFunctionParamType(ae)),de.push(ae),!this.checkCommaAfterRest(Z)){this.expect(e);break}}else{const e=[];if(2&ie)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(_e.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());de.push(this.parseBindingElement(ie,e))}}return de}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(_e.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:Z}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const ie=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",Z),this.classScope.usePrivateName(this.state.value,Z),ie.key=this.parsePrivateName()):this.parsePropertyName(ie),ie.method=!1,this.parseObjPropValue(ie,Z,!1,!1,!0,!1)}parseBindingElement(e,Z){const ie=this.parseMaybeDefault();(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(ie),Z.length&&(ie.decorators=Z,this.resetStartLocationFromNode(ie,Z[0]));return this.parseMaybeDefault(ie.loc.start,ie)}parseFunctionParamType(e){return e}parseMaybeDefault(e,Z){if(null!=e||(e=this.state.startLoc),Z=null!=Z?Z:this.parseBindingAtom(),!this.eat(29))return Z;const ie=this.startNodeAt(e);return"VoidPattern"===Z.type&&this.raise(_e.VoidPatternInitializer,Z),ie.left=Z,ie.right=this.parseMaybeAssignAllowIn(),this.finishNode(ie,"AssignmentPattern")}isValidLVal(e,Z,ie){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,Z,ie=64,ae=!1,de=!1,ve=!1){var be;const Ce=e.type;if(this.isObjectMethod(e))return;const ke=this.isOptionalMemberExpression(e);if(ke||"MemberExpression"===Ce)return ke&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==Z.type&&this.raise(_e.InvalidLhsOptionalChaining,e,{ancestor:Z})),void(64!==ie&&this.raise(_e.InvalidPropertyBindingPattern,e));if("Identifier"===Ce){this.checkIdentifier(e,ie,de);const{name:Z}=e;return void(ae&&(ae.has(Z)?this.raise(_e.ParamDupe,e):ae.add(Z)))}"VoidPattern"===Ce&&"CatchClause"===Z.type&&this.raise(_e.VoidPatternCatchClauseParam,e);const Ie=this.isValidLVal(Ce,!(ve||null!=(be=e.extra)&&be.parenthesized)&&"AssignmentExpression"===Z.type,ie);if(!0===Ie)return;if(!1===Ie){const ae=64===ie?_e.InvalidLhs:_e.InvalidLhsBinding;return void this.raise(ae,e,{ancestor:Z})}let Fe,Oe;"string"==typeof Ie?(Fe=Ie,Oe="ParenthesizedExpression"===Ce):[Fe,Oe]=Ie;const Be="ArrayPattern"===Ce||"ObjectPattern"===Ce?{type:Ce}:Z,Me=e[Fe];if(Array.isArray(Me))for(const e of Me)e&&this.checkLVal(e,Be,ie,ae,de,Oe);else Me&&this.checkLVal(Me,Be,ie,ae,de,Oe)}checkIdentifier(e,Z,ie=!1){this.state.strict&&(ie?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))&&(64===Z?this.raise(_e.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_e.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&Z&&"let"===e.name&&this.raise(_e.LetInLexicalBinding,e),64&Z||this.declareNameFromIdentifier(e,Z)}declareNameFromIdentifier(e,Z){this.scope.declareName(e.name,Z,e.loc.start)}checkToRestConversion(e,Z){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,Z);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(Z)break;default:this.raise(_e.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?_e.RestTrailingComma:_e.ElementAfterRest,this.state.startLoc),!0)}}function assert(e){if(!e)throw new Error("Assert fail")}const ur=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function tsIsAccessModifier(e){return"private"===e||"public"===e||"protected"===e}function tsIsVarianceAnnotations(e){return"in"===e||"out"===e}function isPossiblyLiteralEnum(e){if("MemberExpression"!==e.type)return!1;const{computed:Z,property:ie}=e;return(!Z||"StringLiteral"===ie.type||!("TemplateLiteral"!==ie.type||ie.expressions.length>0))&&isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,Z){var ie;const{type:ae}=e;if(null!=(ie=e.extra)&&ie.parenthesized)return!1;if(Z){if("Literal"===ae){const{value:Z}=e;if("string"==typeof Z||"boolean"==typeof Z)return!0}}else if("StringLiteral"===ae||"BooleanLiteral"===ae)return!0;return!(!isNumber(e,Z)&&!function isNegativeNumber(e,Z){if("UnaryExpression"===e.type){const{operator:ie,argument:ae}=e;if("-"===ie&&isNumber(ae,Z))return!0}return!1}(e,Z))||("TemplateLiteral"===ae&&0===e.expressions.length||!!isPossiblyLiteralEnum(e))}function isNumber(e,Z){return Z?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function isUncomputedMemberExpressionChain(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&isUncomputedMemberExpressionChain(e.object)}const lr=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});const pr=["minimal","fsharp","hack","smart"],fr=["^^","@@","^","%","#"];const br={estree:e=>class ESTreeParserMixin extends e{parse(){const e=toESTreeLocation(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(toESTreeLocation)),e}parseRegExpLiteral({pattern:e,flags:Z}){let ie=null;try{ie=new RegExp(e,Z)}catch(e){}const ae=this.estreeParseLiteral(ie);return ae.regex={pattern:e,flags:Z},ae}parseBigIntLiteral(e){let Z;try{Z=BigInt(e)}catch(e){Z=null}const ie=this.estreeParseLiteral(Z);return ie.bigint=String(ie.value||e),ie}parseDecimalLiteral(e){const Z=this.estreeParseLiteral(null);return Z.decimal=String(Z.value||e),Z}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,Z){const ie=this.startNodeAtNode(e);return ie.expression=e,this.finishNodeAt(ie,"ChainExpression",Z)}directiveToStmt(e){const Z=e.value;delete e.value,this.castNodeTo(Z,"Literal"),Z.raw=Z.extra.raw,Z.value=Z.extra.expressionValue;const ie=this.castNodeTo(e,"ExpressionStatement");return ie.expression=Z,ie.directive=Z.extra.rawValue,delete Z.extra,ie}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:Z,end:ie,loc:ae,range:de,raw:ve,value:be}=e,Ce=Object.create(e.constructor.prototype);return Ce.type="Literal",Ce.start=Z,Ce.end=ie,Ce.loc=ae,Ce.range=de,Ce.raw=ve,Ce.value=be,Ce}initFunction(e,Z){super.initFunction(e,Z),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var Z;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(Z=e.expression.extra)&&Z.parenthesized)}parseBlockBody(e,Z,ie,ae,de){super.parseBlockBody(e,Z,ie,ae,de);const ve=e.directives.map(e=>this.directiveToStmt(e));e.body=ve.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const Z=super.getPrivateNameSV(e);return delete e.id,e.name=Z,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,Z){const ie=super.parseLiteral(e,Z);return ie.raw=ie.extra.raw,delete ie.extra,ie}parseFunctionBody(e,Z,ie=!1){super.parseFunctionBody(e,Z,ie),e.expression="BlockStatement"!==e.body.type}parseMethod(e,Z,ie,ae,de,ve,be=!1){let Ce=this.startNode();Ce.kind=e.kind,Ce=super.parseMethod(Ce,Z,ie,ae,de,ve,be),delete Ce.kind;const{typeParameters:ke}=e;ke&&(delete e.typeParameters,Ce.typeParameters=ke,this.resetStartLocationFromNode(Ce,ke));const Ie=this.castNodeTo(Ce,"FunctionExpression");return e.value=Ie,"ClassPrivateMethod"===ve&&(e.computed=!1),"ObjectMethod"===ve?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const Z=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(Z,"PropertyDefinition"),Z):Z}parseClassPrivateProperty(...e){const Z=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(Z,"PropertyDefinition"),Z.computed=!1,Z):Z}parseClassAccessorProperty(e){const Z=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(Z.abstract&&this.hasPlugin("typescript")?(delete Z.abstract,this.castNodeTo(Z,"TSAbstractAccessorProperty")):this.castNodeTo(Z,"AccessorProperty"),Z):Z}parseObjectProperty(e,Z,ie,ae){const de=super.parseObjectProperty(e,Z,ie,ae);return de&&(de.kind="init",this.castNodeTo(de,"Property")),de}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,Z,ie){return"Property"===e?"value":super.isValidLVal(e,Z,ie)}isAssignable(e,Z){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,Z):super.isAssignable(e,Z)}toAssignable(e,Z=!1){if(null!=e&&this.isObjectProperty(e)){const{key:ie,value:ae}=e;this.isPrivateName(ie)&&this.classScope.usePrivateName(this.getPrivateNameSV(ie),ie.loc.start),this.toAssignable(ae,Z)}else super.toAssignable(e,Z)}toAssignableObjectExpressionProp(e,Z,ie){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(_e.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,Z,ie):this.raise(_e.PatternHasAccessor,e.key)}finishCallExpression(e,Z){const ie=super.finishCallExpression(e,Z);var ae,de;"Import"===ie.callee.type?(this.castNodeTo(ie,"ImportExpression"),ie.source=ie.arguments[0],ie.options=null!=(ae=ie.arguments[1])?ae:null,ie.attributes=null!=(de=ie.arguments[1])?de:null,delete ie.arguments,delete ie.callee):"OptionalCallExpression"===ie.type?this.castNodeTo(ie,"CallExpression"):ie.optional=!1;return ie}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,Z){const ie=this.state.lastTokStartLoc,ae=super.parseExport(e,Z);switch(ae.type){case"ExportAllDeclaration":ae.exported=null;break;case"ExportNamedDeclaration":1===ae.specifiers.length&&"ExportNamespaceSpecifier"===ae.specifiers[0].type&&(this.castNodeTo(ae,"ExportAllDeclaration"),ae.exported=ae.specifiers[0].exported,delete ae.specifiers);case"ExportDefaultDeclaration":{var de;const{declaration:e}=ae;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(de=e.decorators)?void 0:de.length)>0&&e.start===ae.start&&this.resetStartLocation(ae,ie)}}return ae}stopParseSubscript(e,Z){const ie=super.stopParseSubscript(e,Z);return Z.optionalChainMember?this.estreeParseChainExpression(ie,e.loc.end):ie}parseMember(e,Z,ie,ae,de){const ve=super.parseMember(e,Z,ie,ae,de);return"OptionalMemberExpression"===ve.type?this.castNodeTo(ve,"MemberExpression"):ve.optional=!1,ve}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,Z){const ie=super.castNodeTo(e,Z);return this.fillOptionalPropertiesForTSESLint(ie),ie}cloneIdentifier(e){const Z=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(Z),Z}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,Z,ie){return toESTreeLocation(super.finishNodeAt(e,Z,ie))}finishNode(e,Z){const ie=super.finishNode(e,Z);return this.fillOptionalPropertiesForTSESLint(ie),ie}resetStartLocation(e,Z){super.resetStartLocation(e,Z),toESTreeLocation(e)}resetEndLocation(e,Z=this.state.lastTokEndLoc){super.resetEndLocation(e,Z),toESTreeLocation(e)}},jsx:e=>class JSXParserMixin extends e{jsxReadToken(){let e="",Z=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(tr.UnterminatedJsxContent,this.state.startLoc);const ie=this.input.charCodeAt(this.state.pos);switch(ie){case 60:case 123:return this.state.pos===this.state.start?void(60===ie&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(ie)):(e+=this.input.slice(Z,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(Z,this.state.pos),e+=this.jsxReadEntity(),Z=this.state.pos;break;default:isNewLine(ie)?(e+=this.input.slice(Z,this.state.pos),e+=this.jsxReadNewLine(!0),Z=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const Z=this.input.charCodeAt(this.state.pos);let ie;return++this.state.pos,13===Z&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,ie=e?"\n":"\r\n"):ie=String.fromCharCode(Z),++this.state.curLine,this.state.lineStart=this.state.pos,ie}jsxReadString(e){let Z="",ie=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_e.UnterminatedString,this.state.startLoc);const ae=this.input.charCodeAt(this.state.pos);if(ae===e)break;38===ae?(Z+=this.input.slice(ie,this.state.pos),Z+=this.jsxReadEntity(),ie=this.state.pos):isNewLine(ae)?(Z+=this.input.slice(ie,this.state.pos),Z+=this.jsxReadNewLine(!1),ie=this.state.pos):++this.state.pos}Z+=this.input.slice(ie,this.state.pos++),this.finishToken(134,Z)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const Z=this.readInt(e,void 0,!1,"bail");if(null!==Z&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(Z)}else{let Z=0,ie=!1;for(;Z++<10&&this.state.pos<this.length&&!(ie=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(ie){const Z=this.input.slice(e,this.state.pos),ie=Jt[Z];if(++this.state.pos,ie)return ie}}return this.state.pos=e,"&"}jsxReadWord(){let e;const Z=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);this.finishToken(141,this.input.slice(Z,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:tokenIsKeyword(this.state.type)?e.name=tokenLabelName(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,Z=this.jsxParseIdentifier();if(!this.eat(14))return Z;const ie=this.startNodeAt(e);return ie.namespace=Z,ie.name=this.jsxParseIdentifier(),this.finishNode(ie,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let Z=this.jsxParseNamespacedName();if("JSXNamespacedName"===Z.type)return Z;for(;this.eat(16);){const ie=this.startNodeAt(e);ie.object=Z,ie.property=this.jsxParseIdentifier(),Z=this.finishNode(ie,"JSXMemberExpression")}return Z}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(Oe.brace),this.next(),e=this.jsxParseExpressionContainer(e,Oe.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(tr.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(tr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(Oe.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,Z){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const Z=this.parseExpression();e.expression=Z}return this.setContext(Z),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(Oe.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(Oe.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const Z=this.startNodeAt(e);return this.eat(144)?this.finishNode(Z,"JSXOpeningFragment"):(Z.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Z))}jsxParseOpeningElementAfterName(e){const Z=[];for(;!this.match(56)&&!this.match(144);)Z.push(this.jsxParseAttribute());return e.attributes=Z,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const Z=this.startNodeAt(e);return this.eat(144)?this.finishNode(Z,"JSXClosingFragment"):(Z.name=this.jsxParseElementName(),this.expect(144),this.finishNode(Z,"JSXClosingElement"))}jsxParseElementAt(e){const Z=this.startNodeAt(e),ie=[],ae=this.jsxParseOpeningElementAt(e);let de=null;if(!ae.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){de=this.jsxParseClosingElementAt(e);break e}ie.push(this.jsxParseElementAt(e));break;case 142:ie.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(Oe.brace),this.next(),this.match(21)?ie.push(this.jsxParseSpreadChild(e)):ie.push(this.jsxParseExpressionContainer(e,Oe.j_expr));break}default:this.unexpected()}isFragment(ae)&&!isFragment(de)&&null!==de?this.raise(tr.MissingClosingTagFragment,de):!isFragment(ae)&&isFragment(de)?this.raise(tr.MissingClosingTagElement,de,{openingTagName:getQualifiedJSXName(ae.name)}):isFragment(ae)||isFragment(de)||getQualifiedJSXName(de.name)!==getQualifiedJSXName(ae.name)&&this.raise(tr.MissingClosingTagElement,de,{openingTagName:getQualifiedJSXName(ae.name)})}if(isFragment(ae)?(Z.openingFragment=ae,Z.closingFragment=de):(Z.openingElement=ae,Z.closingElement=de),Z.children=ie,this.match(47))throw this.raise(tr.UnwrappedAdjacentJSXElements,this.state.startLoc);return isFragment(ae)?this.finishNode(Z,"JSXFragment"):this.finishNode(Z,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:Z}=this.state;Z[Z.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const Z=this.curContext();if(Z!==Oe.j_expr){if(Z===Oe.j_oTag||Z===Oe.j_cTag){if(isIdentifierStart(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&Z===Oe.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:Z,type:ie}=this.state;if(56===ie&&143===e)Z.splice(-2,2,Oe.j_cTag),this.state.canStartJSXElement=!1;else if(143===ie)Z.push(Oe.j_oTag);else if(144===ie){const ie=Z[Z.length-1];ie===Oe.j_oTag&&56===e||ie===Oe.j_cTag?(Z.pop(),this.state.canStartJSXElement=Z[Z.length-1]===Oe.j_expr):(this.setContext(Oe.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=function tokenComesBeforeExpression(e){return pt[e]}(ie)}},flow:e=>class FlowParserMixin extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,Z){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,Z)}addComment(e){if(void 0===this.flowPragma){const Z=Wt.exec(e.value);if(Z)if("flow"===Z[1])this.flowPragma="flow";else{if("noflow"!==Z[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){const Z=this.state.inType;this.state.inType=!0,this.expect(e||14);const ie=this.flowParseType();return this.state.inType=Z,ie}flowParsePredicate(){const e=this.startNode(),Z=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>Z.index+1&&this.raise(Vt.UnexpectedSpaceBetweenModuloChecks,Z),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let Z=null,ie=null;return this.match(54)?(this.state.inType=e,ie=this.flowParsePredicate()):(Z=this.flowParseType(),this.state.inType=e,this.match(54)&&(ie=this.flowParsePredicate())),[Z,ie]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const Z=e.id=this.parseIdentifier(),ie=this.startNode(),ae=this.startNode();this.match(47)?ie.typeParameters=this.flowParseTypeParameterDeclaration():ie.typeParameters=null,this.expect(10);const de=this.flowParseFunctionTypeParams();return ie.params=de.params,ie.rest=de.rest,ie.this=de._this,this.expect(11),[ie.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),ae.typeAnnotation=this.finishNode(ie,"FunctionTypeAnnotation"),Z.typeAnnotation=this.finishNode(ae,"TypeAnnotation"),this.resetEndLocation(Z),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,Z){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(Z&&this.raise(Vt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,Z):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const Z=e.body=this.startNode(),ie=Z.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(Vt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,Vt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),ie.push(e)}this.scope.exit(),this.expect(8),this.finishNode(Z,"BlockStatement");let ae=null,de=!1;return ie.forEach(e=>{!function isEsModuleType(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(de&&this.raise(Vt.DuplicateDeclareModuleExports,e),"ES"===ae&&this.raise(Vt.AmbiguousDeclareModuleKind,e),ae="CommonJS",de=!0):("CommonJS"===ae&&this.raise(Vt.AmbiguousDeclareModuleKind,e),ae="ES")}),e.kind=ae||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,Z){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!Z){const e=this.state.value;throw this.raise(Vt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Gt[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration"):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const Z=this.flowParseTypeAlias(e);return this.castNodeTo(Z,"DeclareTypeAlias"),Z}flowParseDeclareOpaqueType(e){this.next();const Z=this.flowParseOpaqueType(e,!0);return this.castNodeTo(Z,"DeclareOpaqueType"),Z}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,Z){if(e.id=this.flowParseRestrictedIdentifier(!Z,!0),this.scope.declareName(e.id.name,Z?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!Z&&this.eat(12));if(Z){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:Z,allowExact:!1,allowSpread:!1,allowProto:Z,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Vt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,Z,ie){Ht.has(e)&&this.raise(ie?Vt.AssignReservedType:Vt.UnexpectedReservedType,Z,{reservedType:e})}flowParseRestrictedIdentifier(e,Z){return this.checkReservedType(this.state.value,this.state.startLoc,Z),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,Z){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,Z||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const Z=this.state.startLoc,ie=this.startNode(),ae=this.flowParseVariance(),de=this.flowParseTypeAnnotatableIdentifier();return ie.name=de.name,ie.variance=ae,ie.bound=de.typeAnnotation,this.match(29)?(this.eat(29),ie.default=this.flowParseType()):e&&this.raise(Vt.MissingTypeParamDefault,Z),this.finishNode(ie,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,Z=this.startNode();Z.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let ie=!1;do{const e=this.flowParseTypeParameter(ie);Z.params.push(e),e.default&&(ie=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(Z,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===Oe.brace)return e();{const Z=this.state.context;this.state.context=[Z[0]];try{return e()}finally{this.state.context=Z}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),Z=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const Z=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=Z}),this.state.inType=Z,this.state.inType||this.curContext()!==Oe.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return;const e=this.startNode(),Z=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=Z,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,Z,ie){return e.static=Z,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=ie,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,Z){return e.static=Z,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,Z){const ie=this.startNode();return e.static=Z,e.value=this.flowParseObjectTypeMethodish(ie),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:Z,allowSpread:ie,allowProto:ae,allowInexact:de}){const ve=this.state.inType;this.state.inType=!0;const be=this.startNode();let Ce,ke;be.callProperties=[],be.properties=[],be.indexers=[],be.internalSlots=[];let Ie=!1;for(Z&&this.match(6)?(this.expect(6),Ce=9,ke=!0):(this.expect(5),Ce=8,ke=!1),be.exact=ke;!this.match(Ce);){let Z=!1,ve=null,Ce=null;const _e=this.startNode();if(ae&&this.isContextual(118)){const Z=this.lookahead();14!==Z.type&&17!==Z.type&&(this.next(),ve=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),Z=!0)}const Fe=this.flowParseVariance();if(this.eat(0))null!=ve&&this.unexpected(ve),this.eat(0)?(Fe&&this.unexpected(Fe.loc.start),be.internalSlots.push(this.flowParseObjectTypeInternalSlot(_e,Z))):be.indexers.push(this.flowParseObjectTypeIndexer(_e,Z,Fe));else if(this.match(10)||this.match(47))null!=ve&&this.unexpected(ve),Fe&&this.unexpected(Fe.loc.start),be.callProperties.push(this.flowParseObjectTypeCallProperty(_e,Z));else{let e="init";if(this.isContextual(99)||this.isContextual(104)){tokenIsLiteralPropertyName(this.lookahead().type)&&(e=this.state.value,this.next())}const ae=this.flowParseObjectTypeProperty(_e,Z,ve,Fe,e,ie,null!=de?de:!ke);null===ae?(Ie=!0,Ce=this.state.lastTokStartLoc):be.properties.push(ae)}this.flowObjectTypeSemicolon(),!Ce||this.match(8)||this.match(9)||this.raise(Vt.UnexpectedExplicitInexactInObject,Ce)}this.expect(Ce),ie&&(be.inexact=Ie);const _e=this.finishNode(be,"ObjectTypeAnnotation");return this.state.inType=ve,_e}flowParseObjectTypeProperty(e,Z,ie,ae,de,ve,be){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(ve?be||this.raise(Vt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Vt.InexactInsideNonObject,this.state.lastTokStartLoc),ae&&this.raise(Vt.InexactVariance,ae),null):(ve||this.raise(Vt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=ie&&this.unexpected(ie),ae&&this.raise(Vt.SpreadVariance,ae),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=Z,e.proto=null!=ie,e.kind=de;let be=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=ie&&this.unexpected(ie),ae&&this.unexpected(ae.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==de&&"set"!==de||this.flowCheckGetterSetterParams(e),!ve&&"constructor"===e.key.name&&e.value.this&&this.raise(Vt.ThisParamBannedInConstructor,e.value.this)):("init"!==de&&this.unexpected(),e.method=!1,this.eat(17)&&(be=!0),e.value=this.flowParseTypeInitialiser(),e.variance=ae),e.optional=be,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const Z="get"===e.kind?0:1,ie=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Vt.GetterMayNotHaveThisParam:Vt.SetterMayNotHaveThisParam,e.value.this),ie!==Z&&this.raise("get"===e.kind?_e.BadGetterArity:_e.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(_e.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,Z){null!=e||(e=this.state.startLoc);let ie=Z||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const Z=this.startNodeAt(e);Z.qualification=ie,Z.id=this.flowParseRestrictedIdentifier(!0),ie=this.finishNode(Z,"QualifiedTypeIdentifier")}return ie}flowParseGenericType(e,Z){const ie=this.startNodeAt(e);return ie.typeParameters=null,ie.id=this.flowParseQualifiedTypeIdentifier(e,Z),this.match(47)&&(ie.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(ie,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let Z=null,ie=!1,ae=null;const de=this.startNode(),ve=this.lookahead(),be=78===this.state.type;return 14===ve.type||17===ve.type?(be&&!e&&this.raise(Vt.ThisParamMustBeFirst,de),Z=this.parseIdentifier(be),this.eat(17)&&(ie=!0,be&&this.raise(Vt.ThisParamMayNotBeOptional,de)),ae=this.flowParseTypeInitialiser()):ae=this.flowParseType(),de.name=Z,de.optional=ie,de.typeAnnotation=ae,this.finishNode(de,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const Z=this.startNodeAt(e.loc.start);return Z.name=null,Z.optional=!1,Z.typeAnnotation=e,this.finishNode(Z,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let Z=null,ie=null;for(this.match(78)&&(ie=this.flowParseFunctionTypeParam(!0),ie.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(Z=this.flowParseFunctionTypeParam(!1)),{params:e,rest:Z,_this:ie}}flowIdentToTypeAnnotation(e,Z,ie){switch(ie.name){case"any":return this.finishNode(Z,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(Z,"BooleanTypeAnnotation");case"mixed":return this.finishNode(Z,"MixedTypeAnnotation");case"empty":return this.finishNode(Z,"EmptyTypeAnnotation");case"number":return this.finishNode(Z,"NumberTypeAnnotation");case"string":return this.finishNode(Z,"StringTypeAnnotation");case"symbol":return this.finishNode(Z,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(ie.name),this.flowParseGenericType(e,ie)}}flowParsePrimaryType(){const e=this.state.startLoc,Z=this.startNode();let ie,ae,de=!1;const ve=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,ae=this.flowParseTupleType(),this.state.noAnonFunctionType=ve,ae;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),ie=this.flowParseFunctionTypeParams(),e.params=ie.params,e.rest=ie.rest,e.this=ie._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;de=17!==e&&14!==e}else de=!0;if(de){if(this.state.noAnonFunctionType=!1,ae=this.flowParseType(),this.state.noAnonFunctionType=ve,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),ae;this.eat(12)}return ie=ae?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(ae)]):this.flowParseFunctionTypeParams(),e.params=ie.params,e.rest=ie.rest,e.this=ie._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return Z.value=this.match(85),this.next(),this.finishNode(Z,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",Z);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",Z);throw this.raise(Vt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(Z,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(Z,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(Z,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(Z,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);return this.next(),super.createIdentifier(Z,e)}if(tokenIsIdentifier(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,Z,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let Z=this.flowParsePrimaryType(),ie=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const ae=this.startNodeAt(e),de=this.eat(18);ie=ie||de,this.expect(0),!de&&this.match(3)?(ae.elementType=Z,this.next(),Z=this.finishNode(ae,"ArrayTypeAnnotation")):(ae.objectType=Z,ae.indexType=this.flowParseType(),this.expect(3),ie?(ae.optional=de,Z=this.finishNode(ae,"OptionalIndexedAccessType")):Z=this.finishNode(ae,"IndexedAccessType"))}return Z}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const Z=this.startNodeAt(e.loc.start);return Z.params=[this.reinterpretTypeAsFunctionTypeParam(e)],Z.rest=null,Z.this=null,Z.returnType=this.flowParseType(),Z.typeParameters=null,this.finishNode(Z,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const Z=this.flowParseAnonFunctionWithoutParens();for(e.types=[Z];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?Z:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const Z=this.flowParseIntersectionType();for(e.types=[Z];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?Z:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const Z=this.flowParseUnionType();return this.state.inType=e,Z}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,Z=this.parseIdentifier();return this.flowParseGenericType(e,Z)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const Z=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(Z.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(Z)),Z}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,Z,ie=!1){Z?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,ie)):super.parseFunctionBody(e,!1,ie)}parseFunctionBodyAndFinish(e,Z,ie=!1){if(this.match(14)){const Z=this.startNode();[Z.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=Z.typeAnnotation?this.finishNode(Z,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,Z,ie)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(tokenIsKeywordOrIdentifier(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const Z=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(Z)||(this.flowPragma=null),Z}parseExpressionStatement(e,Z,ie){if("Identifier"===Z.type)if("declare"===Z.name){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(tokenIsIdentifier(this.state.type)){if("interface"===Z.name)return this.flowParseInterface(e);if("type"===Z.name)return this.flowParseTypeAlias(e);if("opaque"===Z.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,Z,ie)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||tokenIsFlowInterfaceOrTypeOrOpaque(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||tokenIsFlowInterfaceOrTypeOrOpaque(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,Z,ie){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const Z=this.lookaheadCharCode();if(44===Z||61===Z||58===Z||41===Z)return this.setOptionalParametersError(ie),e}this.expect(17);const ae=this.state.clone(),de=this.state.noArrowAt,ve=this.startNodeAt(Z);let{consequent:be,failed:Ce}=this.tryParseConditionalConsequent(),[ke,Ie]=this.getArrowLikeExpressions(be);if(Ce||Ie.length>0){const e=[...de];if(Ie.length>0){this.state=ae,this.state.noArrowAt=e;for(let Z=0;Z<Ie.length;Z++)e.push(Ie[Z].start);({consequent:be,failed:Ce}=this.tryParseConditionalConsequent()),[ke,Ie]=this.getArrowLikeExpressions(be)}Ce&&ke.length>1&&this.raise(Vt.AmbiguousConditionalArrow,ae.startLoc),Ce&&1===ke.length&&(this.state=ae,e.push(ke[0].start),this.state.noArrowAt=e,({consequent:be,failed:Ce}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(be,!0),this.state.noArrowAt=de,this.expect(14),ve.test=e,ve.consequent=be,ve.alternate=this.forwardNoArrowParamsConversionAt(ve,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(ve,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),Z=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:Z}}getArrowLikeExpressions(e,Z){const ie=[e],ae=[];for(;0!==ie.length;){const e=ie.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):ae.push(e),ie.push(e.body)):"ConditionalExpression"===e.type&&(ie.push(e.consequent),ie.push(e.alternate))}return Z?(ae.forEach(e=>this.finishArrowValidation(e)),[ae,[]]):function partition(e,Z){const ie=[],ae=[];for(let de=0;de<e.length;de++)(Z(e[de],de,e)?ie:ae).push(e[de]);return[ie,ae]}(ae,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var Z;this.toAssignableList(e.params,null==(Z=e.extra)?void 0:Z.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,Z){let ie;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),ie=Z(),this.state.noArrowParamsConversionAt.pop()):ie=Z(),ie}parseParenItem(e,Z){const ie=super.parseParenItem(e,Z);if(this.eat(17)&&(ie.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(Z);return e.expression=ie,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return ie}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const Z=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(Z)}if(this.isContextual(131)){e.exportKind="type";const Z=this.startNode();return this.next(),this.flowParseOpaqueType(Z,!1)}if(this.isContextual(129)){e.exportKind="type";const Z=this.startNode();return this.next(),this.flowParseInterface(Z)}if(this.isContextual(126)){e.exportKind="value";const Z=this.startNode();return this.next(),this.flowParseEnumDeclaration(Z)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:Z}=this.state,ie=super.maybeParseExportNamespaceSpecifier(e);return ie&&"type"===e.exportKind&&this.unexpected(Z),ie}parseClassId(e,Z,ie){super.parseClassId(e,Z,ie),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,Z,ie){const{startLoc:ae}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,Z))return;Z.declare=!0}super.parseClassMember(e,Z,ie),Z.declare&&("ClassProperty"!==Z.type&&"ClassPrivateProperty"!==Z.type&&"PropertyDefinition"!==Z.type?this.raise(Vt.DeclareClassElement,ae):Z.value&&this.raise(Vt.DeclareClassFieldInitializer,Z.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),Z="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(_e.InvalidIdentifier,this.state.curPosition(),{identifierName:Z}),this.finishToken(132,Z)}getTokenFromCode(e){const Z=this.input.charCodeAt(this.state.pos+1);123===e&&124===Z?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===Z?this.finishOp(18,2):this.finishOp(17,1):!function isIteratorStart(e,Z,ie){return 64===e&&64===Z&&isIdentifierStart(ie)}(e,Z,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,Z){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,Z):super.isAssignable(e,Z)}toAssignable(e,Z=!1){Z||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,Z)}toAssignableList(e,Z,ie){for(let Z=0;Z<e.length;Z++){const ie=e[Z];"TypeCastExpression"===(null==ie?void 0:ie.type)&&(e[Z]=this.typeCastToParameter(ie))}super.toAssignableList(e,Z,ie)}toReferencedList(e,Z){for(let ae=0;ae<e.length;ae++){var ie;const de=e[ae];!de||"TypeCastExpression"!==de.type||null!=(ie=de.extra)&&ie.parenthesized||!(e.length>1)&&Z||this.raise(Vt.TypeCastInPattern,de.typeAnnotation)}return e}parseArrayLike(e,Z,ie,ae){const de=super.parseArrayLike(e,Z,ie,ae);return Z&&!this.state.maybeInArrowParameters&&this.toReferencedList(de.elements),de}isValidLVal(e,Z,ie){return"TypeCastExpression"===e||super.isValidLVal(e,Z,ie)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,Z,ie,ae,de,ve){if(Z.variance&&this.unexpected(Z.variance.loc.start),delete Z.variance,this.match(47)&&(Z.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,Z,ie,ae,de,ve),Z.params&&de){const e=Z.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Vt.ThisParamBannedInConstructor,Z)}else if("MethodDefinition"===Z.type&&de&&Z.value.params){const e=Z.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Vt.ThisParamBannedInConstructor,Z)}}pushClassPrivateMethod(e,Z,ie,ae){Z.variance&&this.unexpected(Z.variance.loc.start),delete Z.variance,this.match(47)&&(Z.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,Z,ie,ae)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const Z=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,Z.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const Z=this.getObjectOrClassMethodParams(e);if(Z.length>0){const ie=Z[0];this.isThisParam(ie)&&"get"===e.kind?this.raise(Vt.GetterMayNotHaveThisParam,ie):this.isThisParam(ie)&&this.raise(Vt.SetterMayNotHaveThisParam,ie)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,Z,ie,ae,de,ve,be){let Ce;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!ve&&(Ce=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const ke=super.parseObjPropValue(e,Z,ie,ae,de,ve,be);return Ce&&((ke.value||ke).typeParameters=Ce),ke}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Vt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Vt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Vt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Vt.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,Z){const ie=super.parseMaybeDefault(e,Z);return"AssignmentPattern"===ie.type&&ie.typeAnnotation&&ie.right.start<ie.typeAnnotation.start&&this.raise(Vt.TypeBeforeInitializer,ie.typeAnnotation),ie}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Vt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,Z,ie){Z.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(Z,ie))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const Z=this.lookaheadCharCode();return 123===Z||42===Z}return!e&&this.isContextual(87)}applyImportPhase(e,Z,ie,ae){if(super.applyImportPhase(e,Z,ie,ae),Z){if(!ie&&this.match(65))return;e.exportKind="type"===ie?ie:"value"}else"type"===ie&&this.match(55)&&this.unexpected(),e.importKind="type"===ie||"typeof"===ie?ie:"value"}parseImportSpecifier(e,Z,ie,ae,de){const ve=e.imported;let be=null;"Identifier"===ve.type&&("type"===ve.name?be="type":"typeof"===ve.name&&(be="typeof"));let Ce=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const Z=this.parseIdentifier(!0);null===be||tokenIsKeywordOrIdentifier(this.state.type)?(e.imported=ve,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=Z,e.importKind=be,e.local=this.cloneIdentifier(Z))}else{if(null!==be&&tokenIsKeywordOrIdentifier(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=be;else{if(Z)throw this.raise(_e.ImportBindingIsString,e,{importName:ve.value});e.imported=ve,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(Ce=!0,e.local=this.cloneIdentifier(e.imported))}const ke=hasTypeImportKind(e);return ie&&ke&&this.raise(Vt.ImportTypeShorthandOnlyInPureImport,e),(ie||ke)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!Ce||ie||ke||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,Z){const ie=e.kind;"get"!==ie&&"set"!==ie&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,Z)}parseVarId(e,Z){super.parseVarId(e,Z),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,Z){if(this.match(14)){const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Z}return super.parseAsyncArrowFromCallExpression(e,Z)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,Z){var ie;let ae,de=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(de=this.state.clone(),ae=this.tryParse(()=>super.parseMaybeAssign(e,Z),de),!ae.error)return ae.node;const{context:ie}=this.state,ve=ie[ie.length-1];ve!==Oe.j_oTag&&ve!==Oe.j_expr||ie.pop()}if(null!=(ie=ae)&&ie.error||this.match(47)){var ve,be;let ie;de=de||this.state.clone();const Ce=this.tryParse(ae=>{var de;ie=this.flowParseTypeParameterDeclaration();const ve=this.forwardNoArrowParamsConversionAt(ie,()=>{const ae=super.parseMaybeAssign(e,Z);return this.resetStartLocationFromNode(ae,ie),ae});null!=(de=ve.extra)&&de.parenthesized&&ae();const be=this.maybeUnwrapTypeCastExpression(ve);return"ArrowFunctionExpression"!==be.type&&ae(),be.typeParameters=ie,this.resetStartLocationFromNode(be,ie),ve},de);let ke=null;if(Ce.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(Ce.node).type){if(!Ce.error&&!Ce.aborted)return Ce.node.async&&this.raise(Vt.UnexpectedTypeParameterBeforeAsyncArrowFunction,ie),Ce.node;ke=Ce.node}if(null!=(ve=ae)&&ve.node)return this.state=ae.failState,ae.node;if(ke)return this.state=Ce.failState,ke;if(null!=(be=ae)&&be.thrown)throw ae.error;if(Ce.thrown)throw Ce.error;throw this.raise(Vt.UnexpectedTokenAfterTypeParameter,ie)}return super.parseMaybeAssign(e,Z)}parseArrow(e){if(this.match(14)){const Z=this.tryParse(()=>{const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const ie=this.startNode();return[ie.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Z,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),ie});if(Z.thrown)return null;Z.error&&(this.state=Z.failState),e.returnType=Z.node.typeAnnotation?this.finishNode(Z.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,Z){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=Z:super.setArrowFunctionParameters(e,Z)}checkParams(e,Z,ie,ae=!0){if(!ie||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let Z=0;Z<e.params.length;Z++)this.isThisParam(e.params[Z])&&Z>0&&this.raise(Vt.ThisParamMustBeFirst,e.params[Z]);super.checkParams(e,Z,ie,ae)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,Z,ie){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(Z.index)){this.next();const ie=this.startNodeAt(Z);ie.callee=e,ie.arguments=super.parseCallExpressionArguments(),e=this.finishNode(ie,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const ae=this.state.clone(),de=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(Z)||e(),ae);if(!de.error&&!de.aborted)return de.node;const ve=this.tryParse(()=>super.parseSubscripts(e,Z,ie),ae);if(ve.node&&!ve.error)return ve.node;if(de.node)return this.state=de.failState,de.node;if(ve.node)return this.state=ve.failState,ve.node;throw de.error||ve.error}return super.parseSubscripts(e,Z,ie)}parseSubscript(e,Z,ie,ae){if(this.match(18)&&this.isLookaheadToken_lt()){if(ae.optionalChainMember=!0,ie)return ae.stop=!0,e;this.next();const de=this.startNodeAt(Z);return de.callee=e,de.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),de.arguments=this.parseCallExpressionArguments(),de.optional=!0,this.finishCallExpression(de,!0)}if(!ie&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const ie=this.startNodeAt(Z);ie.callee=e;const de=this.tryParse(()=>(ie.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),ie.arguments=super.parseCallExpressionArguments(),ae.optionalChainMember&&(ie.optional=!1),this.finishCallExpression(ie,ae.optionalChainMember)));if(de.node)return de.error&&(this.state=de.failState),de.node}return super.parseSubscript(e,Z,ie,ae)}parseNewCallee(e){super.parseNewCallee(e);let Z=null;this.shouldParseTypes()&&this.match(47)&&(Z=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=Z}parseAsyncArrowWithTypeParameters(e){const Z=this.startNodeAt(e);if(this.parseFunctionParams(Z,!1),this.parseArrow(Z))return super.parseArrowExpression(Z,void 0,!0)}readToken_mult_modulo(e){const Z=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===Z&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const Z=this.input.charCodeAt(this.state.pos+1);124!==e||125!==Z?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,Z){const ie=super.parseTopLevel(e,Z);return this.state.hasFlowComment&&this.raise(Vt.UnterminatedFlowComment,this.state.curPosition()),ie}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Vt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let Z=2;for(;[32,9].includes(this.input.charCodeAt(e+Z));)Z++;const ie=this.input.charCodeAt(Z+e),ae=this.input.charCodeAt(Z+e+1);return 58===ie&&58===ae?Z+2:"flow-include"===this.input.slice(Z+e,Z+e+12)?Z+12:58===ie&&58!==ae&&Z}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(_e.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:Z,memberName:ie}){this.raise(Vt.EnumBooleanMemberNotInitialized,e,{memberName:ie,enumName:Z})}flowEnumErrorInvalidMemberInitializer(e,Z){return this.raise(Z.explicitType?"symbol"===Z.explicitType?Vt.EnumInvalidMemberInitializerSymbolType:Vt.EnumInvalidMemberInitializerPrimaryType:Vt.EnumInvalidMemberInitializerUnknownType,e,Z)}flowEnumErrorNumberMemberNotInitialized(e,Z){this.raise(Vt.EnumNumberMemberNotInitialized,e,Z)}flowEnumErrorStringMemberInconsistentlyInitialized(e,Z){this.raise(Vt.EnumStringMemberInconsistentlyInitialized,e,Z)}flowEnumMemberInit(){const e=this.state.startLoc,endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const Z=this.parseNumericLiteral(this.state.value);return endOfInit()?{type:"number",loc:Z.loc.start,value:Z}:{type:"invalid",loc:e}}case 134:{const Z=this.parseStringLiteral(this.state.value);return endOfInit()?{type:"string",loc:Z.loc.start,value:Z}:{type:"invalid",loc:e}}case 85:case 86:{const Z=this.parseBooleanLiteral(this.match(85));return endOfInit()?{type:"boolean",loc:Z.loc.start,value:Z}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,Z,ie){const{explicitType:ae}=Z;null!==ae&&ae!==ie&&this.flowEnumErrorInvalidMemberInitializer(e,Z)}flowEnumMembers({enumName:e,explicitType:Z}){const ie=new Set,ae={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let de=!1;for(;!this.match(8);){if(this.eat(21)){de=!0;break}const ve=this.startNode(),{id:be,init:Ce}=this.flowEnumMemberRaw(),ke=be.name;if(""===ke)continue;/^[a-z]/.test(ke)&&this.raise(Vt.EnumInvalidMemberName,be,{memberName:ke,suggestion:ke[0].toUpperCase()+ke.slice(1),enumName:e}),ie.has(ke)&&this.raise(Vt.EnumDuplicateMemberName,be,{memberName:ke,enumName:e}),ie.add(ke);const Ie={enumName:e,explicitType:Z,memberName:ke};switch(ve.id=be,Ce.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(Ce.loc,Ie,"boolean"),ve.init=Ce.value,ae.booleanMembers.push(this.finishNode(ve,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(Ce.loc,Ie,"number"),ve.init=Ce.value,ae.numberMembers.push(this.finishNode(ve,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(Ce.loc,Ie,"string"),ve.init=Ce.value,ae.stringMembers.push(this.finishNode(ve,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Ce.loc,Ie);case"none":switch(Z){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Ce.loc,Ie);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Ce.loc,Ie);break;default:ae.defaultedMembers.push(this.finishNode(ve,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:ae,hasUnknownMembers:de}}flowEnumStringMembers(e,Z,{enumName:ie}){if(0===e.length)return Z;if(0===Z.length)return e;if(Z.length>e.length){for(const Z of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(Z,{enumName:ie});return Z}for(const e of Z)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:ie});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type))throw this.raise(Vt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:Z}=this.state;return this.next(),"boolean"!==Z&&"number"!==Z&&"string"!==Z&&"symbol"!==Z&&this.raise(Vt.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:Z}),Z}flowEnumBody(e,Z){const ie=Z.name,ae=Z.loc.start,de=this.flowEnumParseExplicitType({enumName:ie});this.expect(5);const{members:ve,hasUnknownMembers:be}=this.flowEnumMembers({enumName:ie,explicitType:de});switch(e.hasUnknownMembers=be,de){case"boolean":return e.explicitType=!0,e.members=ve.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=ve.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(ve.stringMembers,ve.defaultedMembers,{enumName:ie}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=ve.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const Z=ve.booleanMembers.length,de=ve.numberMembers.length,be=ve.stringMembers.length,Ce=ve.defaultedMembers.length;if(Z||de||be||Ce){if(Z||de){if(!de&&!be&&Z>=Ce){for(const e of ve.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:ie,memberName:e.id.name});return e.members=ve.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!Z&&!be&&de>=Ce){for(const e of ve.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:ie,memberName:e.id.name});return e.members=ve.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Vt.EnumInconsistentMemberValues,ae,{enumName:ie}),empty()}return e.members=this.flowEnumStringMembers(ve.stringMembers,ve.defaultedMembers,{enumName:ie}),this.expect(8),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const Z=this.parseIdentifier();return e.id=Z,e.body=this.flowEnumBody(this.startNode(),Z),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const Z=this.input.charCodeAt(e+1);return 60!==Z&&61!==Z}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class TypeScriptParserMixin extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ur.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ur.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ur.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,Z,ie){if(!tokenIsIdentifier(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const ae=this.state.value;if(e.includes(ae)){if(ie&&this.match(106))return;if(Z&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return ae}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:Z,stopOnStartOfClassStaticBlock:ie,errorTemplate:ae=ur.InvalidModifierOnTypeMember},de){const enforceOrder=(e,Z,ie,ae)=>{Z===ie&&de[ae]&&this.raise(ur.InvalidModifiersOrder,e,{orderedModifiers:[ie,ae]})},incompatible=(e,Z,ie,ae)=>{(de[ie]&&Z===ae||de[ae]&&Z===ie)&&this.raise(ur.IncompatibleModifiers,e,{modifiers:[ie,ae]})};for(;;){const{startLoc:ve}=this.state,be=this.tsParseModifier(e.concat(null!=Z?Z:[]),ie,de.static);if(!be)break;tsIsAccessModifier(be)?de.accessibility?this.raise(ur.DuplicateAccessibilityModifier,ve,{modifier:be}):(enforceOrder(ve,be,be,"override"),enforceOrder(ve,be,be,"static"),enforceOrder(ve,be,be,"readonly"),de.accessibility=be):tsIsVarianceAnnotations(be)?(de[be]&&this.raise(ur.DuplicateModifier,ve,{modifier:be}),de[be]=!0,enforceOrder(ve,be,"in","out")):(hasOwnProperty.call(de,be)?this.raise(ur.DuplicateModifier,ve,{modifier:be}):(enforceOrder(ve,be,"static","readonly"),enforceOrder(ve,be,"static","override"),enforceOrder(ve,be,"override","readonly"),enforceOrder(ve,be,"abstract","override"),incompatible(ve,be,"declare","override"),incompatible(ve,be,"static","abstract")),de[be]=!0),null!=Z&&Z.includes(be)&&this.raise(ae,ve,{modifier:be})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,Z){const ie=[];for(;!this.tsIsListTerminator(e);)ie.push(Z());return ie}tsParseDelimitedList(e,Z,ie){return function nonNull(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,Z,!0,ie))}tsParseDelimitedListWorker(e,Z,ie,ae){const de=[];let ve=-1;for(;!this.tsIsListTerminator(e);){ve=-1;const ae=Z();if(null==ae)return;if(de.push(ae),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(ie&&this.expect(12))}ve=this.state.lastTokStartLoc.index}return ae&&(ae.value=ve),de}tsParseBracketedList(e,Z,ie,ae,de){ae||(ie?this.expect(0):this.expect(47));const ve=this.tsParseDelimitedList(e,Z,de);return ie?this.expect(3):this.expect(48),ve}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(ur.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const Z=this.startNode();return this.isContextual(76)?(Z.method=!1,Z.key=this.parseIdentifier(!0),Z.computed=!1,Z.shorthand=!1):this.unexpected(null,76),this.expect(14),Z.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(Z)],this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),Z=[];for(this.expect(5);!this.match(8);){const e=this.state.type;tokenIsIdentifier(e)||134===e?Z.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=Z,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let Z;if(1&e&&this.match(78))if(2&e)Z=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),Z=this.finishNode(e,"ThisExpression")}else Z=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const ie=this.startNodeAtNode(Z);ie.left=Z,ie.right=this.parseIdentifier(!!(1&e)),Z=this.finishNode(ie,"TSQualifiedName")}return Z}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const Z=this.startNodeAtNode(e);return Z.parameterName=e,Z.typeAnnotation=this.tsParseTypeAnnotation(!1),Z.asserts=!1,this.finishNode(Z,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const Z=this.startNode();return e(Z),Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsEatThenParseType(81),Z.default=this.tsEatThenParseType(29),this.finishNode(Z,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const Z=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const ie={value:-1};return Z.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,ie),0===Z.params.length&&this.raise(ur.EmptyTypeParameters,Z),-1!==ie.value&&this.addExtra(Z,"trailingComma",ie.value),this.finishNode(Z,"TSTypeParameterDeclaration")}tsFillSignature(e,Z){const ie=19===e,ae="typeAnnotation";Z.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),Z.parameters=this.tsParseBindingListForSignature(),(ie||this.match(e))&&(Z[ae]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const Z of e){const{type:e}=Z;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(ur.UnsupportedSignatureParameterKind,Z,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,Z){return this.tsFillSignature(14,Z),this.tsParseTypeMemberSemicolon(),this.finishNode(Z,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!tokenIsIdentifier(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const Z=this.parseIdentifier();Z.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(Z),this.expect(3),e.parameters=[Z];const ie=this.tsTryParseTypeAnnotation();return ie&&(e.typeAnnotation=ie),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,Z){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){Z&&this.raise(ur.ReadonlyForMethodSignature,e);const ie=e;ie.kind&&this.match(47)&&this.raise(ur.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,ie),this.tsParseTypeMemberSemicolon();const ae="parameters",de="typeAnnotation";if("get"===ie.kind)ie[ae].length>0&&(this.raise(_e.BadGetterArity,this.state.curPosition()),this.isThisParam(ie[ae][0])&&this.raise(ur.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===ie.kind){if(1!==ie[ae].length)this.raise(_e.BadSetterArity,this.state.curPosition());else{const e=ie[ae][0];this.isThisParam(e)&&this.raise(ur.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(ur.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(ur.SetAccessorCannotHaveRestParameter,this.state.curPosition())}ie[de]&&this.raise(ur.SetAccessorCannotHaveReturnType,ie[de])}else ie.kind="method";return this.finishNode(ie,"TSMethodSignature")}{const ie=e;Z&&(ie.readonly=!0);const ae=this.tsTryParseTypeAnnotation();return ae&&(ie.typeAnnotation=ae),this.tsParseTypeMemberSemicolon(),this.finishNode(ie,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const Z=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(Z,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const Z=this.tsTryParseIndexSignature(e);return Z||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{const Z=this.startNode();Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(Z,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let Z=!1;return e.elementTypes.forEach(e=>{const{type:ie}=e;!Z||"TSRestType"===ie||"TSOptionalType"===ie||"TSNamedTupleMember"===ie&&e.optional||this.raise(ur.OptionalTypeBeforeRequired,e),Z||(Z="TSNamedTupleMember"===ie&&e.optional||"TSOptionalType"===ie)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,Z=this.eat(21),{startLoc:ie}=this.state;let ae,de,ve,be;const Ce=tokenIsKeywordOrIdentifier(this.state.type)?this.lookaheadCharCode():null;if(58===Ce)ae=!0,ve=!1,de=this.parseIdentifier(!0),this.expect(14),be=this.tsParseType();else if(63===Ce){ve=!0;const e=this.state.value,Z=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(ae=!0,de=this.createIdentifier(this.startNodeAt(ie),e),this.expect(17),this.expect(14),be=this.tsParseType()):(ae=!1,be=Z,this.expect(17))}else be=this.tsParseType(),ve=this.eat(17),ae=this.eat(14);if(ae){let e;de?(e=this.startNodeAt(ie),e.optional=ve,e.label=de,e.elementType=be,this.eat(17)&&(e.optional=!0,this.raise(ur.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(ie),e.optional=ve,this.raise(ur.InvalidTupleMemberLabel,be),e.label=be,e.elementType=this.tsParseType()),be=this.finishNode(e,"TSNamedTupleMember")}else if(ve){const e=this.startNodeAt(ie);e.typeAnnotation=be,be=this.finishNode(e,"TSOptionalType")}if(Z){const Z=this.startNodeAt(e);Z.typeAnnotation=be,be=this.finishNode(Z,"TSRestType")}return be}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,Z){const ie=this.startNode();return"TSConstructorType"===e&&(ie.abstract=!!Z,Z&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,ie)),this.finishNode(ie,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),Z=this.lookahead();return 135!==Z.type&&136!==Z.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(tokenIsIdentifier(e)||88===e||84===e){const Z=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function keywordTypeFromName(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==Z&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,Z)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let Z=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const ie=this.startNodeAt(e);ie.elementType=Z,this.expect(3),Z=this.finishNode(ie,"TSArrayType")}else{const ie=this.startNodeAt(e);ie.objectType=Z,ie.indexType=this.tsParseType(),this.expect(3),Z=this.finishNode(ie,"TSIndexedAccessType")}return Z}tsParseTypeOperator(){const e=this.startNode(),Z=this.state.value;return this.next(),e.operator=Z,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===Z&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ur.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const Z=this.startNode();return Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(Z,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){const e=function tokenIsTSTypeOperator(e){return e>=121&&e<=123}(this.state.type)&&!this.state.containsEsc;return e?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,Z,ie){const ae=this.startNode(),de=this.eat(ie),ve=[];do{ve.push(Z())}while(this.eat(ie));return 1!==ve.length||de?(ae.types=ve,this.finishNode(ae,e)):ve[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,Z=e.length;try{return this.parseObjectLike(8,!0),e.length===Z}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,Z=e.length;try{return super.parseBindingList(3,93,1),e.length===Z}catch(e){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)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const Z=this.startNode();this.expect(e);const ie=this.startNode(),ae=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(ae&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(ie.parameterName=e,ie.asserts=!0,ie.typeAnnotation=null,e=this.finishNode(ie,"TSTypePredicate")):(this.resetStartLocationFromNode(e,ie),e.asserts=!0),Z.typeAnnotation=e,this.finishNode(Z,"TSTypeAnnotation")}const de=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!de)return ae?(ie.parameterName=this.parseIdentifier(),ie.asserts=ae,ie.typeAnnotation=null,Z.typeAnnotation=this.finishNode(ie,"TSTypePredicate"),this.finishNode(Z,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,Z);const ve=this.tsParseTypeAnnotation(!1);return ie.parameterName=de,ie.typeAnnotation=ve,ie.asserts=ae,Z.typeAnnotation=this.finishNode(ie,"TSTypePredicate"),this.finishNode(Z,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!tokenIsIdentifier(this.state.type)&&!this.match(78))&&(e&&this.raise(_e.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,Z=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),Z.typeAnnotation=this.tsParseType()}),this.finishNode(Z,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const Z=this.startNodeAtNode(e);return Z.checkType=e,Z.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),Z.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),Z.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(Z,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ur.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const Z=this.state.startLoc,ie=this.tsParseDelimitedList("HeritageClauseElement",()=>{{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}});return ie.length||this.raise(ur.EmptyHeritageClauseType,Z,{token:e}),ie}tsParseInterfaceDeclaration(e,Z={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),Z.declare&&(e.declare=!0),tokenIsIdentifier(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(ur.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const ie=this.startNode();return ie.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(ie,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===Oe.brace)return e();{const Z=this.state.context;this.state.context=[Z[0]];try{return e()}finally{this.state.context=Z}}}tsInType(e){const Z=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=Z}}tsInDisallowConditionalTypesContext(e){const Z=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=Z}}tsInAllowConditionalTypesContext(e){const Z=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=Z}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,Z={}){return Z.const&&(e.const=!0),Z.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,Z=!1){if(e.id=this.parseIdentifier(),Z||this.checkIdentifier(e.id,1024),this.eat(16)){const Z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Z,!0),e.body=Z}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,Z,ie){e.isExport=ie||!1,e.id=Z||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const ae=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==ae.type&&this.raise(ur.ImportAliasHasImportType,ae),e.moduleReference=ae,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const Z=this.state.clone(),ie=e();return this.state=Z,ie}tsTryParseAndCatch(e){const Z=this.tryParse(Z=>e()||Z());if(!Z.aborted&&Z.node)return Z.error&&(this.state=Z.failState),Z.node}tsTryParse(e){const Z=this.state.clone(),ie=e();if(void 0!==ie&&!1!==ie)return ie;this.state=Z}tsTryParseDeclare(e){if(this.isLineTerminator())return;const Z=this.state.type;return this.tsInAmbientContext(()=>{switch(Z){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(ur.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(ur.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const Z=this.tsParseInterfaceDeclaration(e,{declare:!0});if(Z)return Z}default:if(tokenIsIdentifier(Z))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,Z,ie){switch(Z.name){case"declare":{const Z=this.tsTryParseDeclare(e);return Z&&(Z.declare=!0),Z}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);const ie=e;return ie.kind="global",e.global=!0,ie.id=Z,ie.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(ie,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,Z.name,!1,ie)}}tsParseDeclaration(e,Z,ie,ae){switch(Z){case"abstract":if(this.tsCheckLineTerminator(ie)&&(this.match(80)||tokenIsIdentifier(this.state.type)))return this.tsParseAbstractDeclaration(e,ae);break;case"module":if(this.tsCheckLineTerminator(ie)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(tokenIsIdentifier(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(ie)&&tokenIsIdentifier(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(ie)&&tokenIsIdentifier(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const Z=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const ie=this.tsTryParseAndCatch(()=>{const Z=this.startNodeAt(e);return Z.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(Z),Z.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),Z});return this.state.maybeInArrowParameters=Z,ie?super.parseArrowExpression(ie,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(ur.EmptyTypeArguments,e):this.state.inType||this.curContext()!==Oe.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return function tokenIsTSDeclarationStart(e){return e>=124&&e<=130}(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,Z){const ie=Z.length?Z[0].loc.start:this.state.startLoc,ae={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},ae);const de=ae.accessibility,ve=ae.override,be=ae.readonly;4&e||!(de||be||ve)||this.raise(ur.UnexpectedParameterModifier,ie);const Ce=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(Ce);const ke=this.parseMaybeDefault(Ce.loc.start,Ce);if(de||be||ve){const e=this.startNodeAt(ie);return Z.length&&(e.decorators=Z),de&&(e.accessibility=de),be&&(e.readonly=be),ve&&(e.override=ve),"Identifier"!==ke.type&&"AssignmentPattern"!==ke.type&&this.raise(ur.UnsupportedParameterPropertyKind,e),e.parameter=ke,this.finishNode(e,"TSParameterProperty")}return Z.length&&(Ce.decorators=Z),ke}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const Z of e.params)"Identifier"!==Z.type&&Z.optional&&!this.state.isAmbientContext&&this.raise(ur.PatternIsOptional,Z)}setArrowFunctionParameters(e,Z,ie){super.setArrowFunctionParameters(e,Z,ie),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,Z,ie=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const ae="FunctionDeclaration"===Z?"TSDeclareFunction":"ClassMethod"===Z||"ClassPrivateMethod"===Z?"TSDeclareMethod":void 0;return ae&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,ae):"TSDeclareFunction"===ae&&this.state.isAmbientContext&&(this.raise(ur.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,ae,ie):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,Z,ie))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(ur.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,Z){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,Z,ie,ae){const de=super.parseArrayLike(e,Z,ie,ae);return"ArrayExpression"===de.type&&this.tsCheckForInvalidTypeCasts(de.elements),de}parseSubscript(e,Z,ie,ae){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const ie=this.startNodeAt(Z);return ie.expression=e,this.finishNode(ie,"TSNonNullExpression")}let de=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(ie)return ae.stop=!0,e;ae.optionalChainMember=de=!0,this.next()}if(this.match(47)||this.match(51)){let ve;const be=this.tsTryParseAndCatch(()=>{if(!ie&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(Z);if(e)return e}const be=this.tsParseTypeArgumentsInExpression();if(!be)return;if(de&&!this.match(10))return void(ve=this.state.curPosition());if(tokenIsTemplate(this.state.type)){const ie=super.parseTaggedTemplateExpression(e,Z,ae);return ie.typeParameters=be,ie}if(!ie&&this.eat(10)){const ie=this.startNodeAt(Z);return ie.callee=e,ie.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(ie.arguments),ie.typeParameters=be,ae.optionalChainMember&&(ie.optional=de),this.finishCallExpression(ie,ae.optionalChainMember)}const Ce=this.state.type;if(48===Ce||52===Ce||10!==Ce&&tokenCanStartExpression(Ce)&&!this.hasPrecedingLineBreak())return;const ke=this.startNodeAt(Z);return ke.expression=e,ke.typeParameters=be,this.finishNode(ke,"TSInstantiationExpression")});if(ve&&this.unexpected(ve,10),be)return"TSInstantiationExpression"===be.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(ur.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(be.expression=super.stopParseSubscript(e,ae))),be}return super.parseSubscript(e,Z,ie,ae)}parseNewCallee(e){var Z;super.parseNewCallee(e);const{callee:ie}=e;"TSInstantiationExpression"!==ie.type||null!=(Z=ie.extra)&&Z.parenthesized||(e.typeParameters=ie.typeParameters,e.callee=ie.expression)}parseExprOp(e,Z,ie){let ae;if(tokenOperatorPrecedence(58)>ie&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(ae=this.isContextual(120)))){const de=this.startNodeAt(Z);return de.expression=e,de.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(ae&&this.raise(_e.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(de,ae?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(de,Z,ie)}return super.parseExprOp(e,Z,ie)}checkReservedWord(e,Z,ie,ae){this.state.isAmbientContext||super.checkReservedWord(e,Z,ie,ae)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ur.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const Z=this.lookaheadCharCode();return e?123===Z||42===Z:61!==Z}return!e&&this.isContextual(87)}applyImportPhase(e,Z,ie,ae){super.applyImportPhase(e,Z,ie,ae),Z?e.exportKind="type"===ie?"type":"value":e.importKind="type"===ie||"typeof"===ie?ie:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let Z;if(tokenIsIdentifier(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const ie=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,ie);Z=super.parseImportSpecifiersAndAfter(e,ie)}else Z=super.parseImport(e);return"type"===Z.importKind&&Z.specifiers.length>1&&"ImportDefaultSpecifier"===Z.specifiers[0].type&&this.raise(ur.TypeImportCannotSpecifyDefaultAndNamed,Z),Z}parseExport(e,Z){if(this.match(83)){const Z=e;this.next();let ie=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?ie=this.parseMaybeImportPhase(Z,!1):Z.importKind="value";return this.tsParseImportEqualsDeclaration(Z,ie,!0)}if(this.eat(29)){const Z=e;return Z.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Z,"TSExportAssignment")}if(this.eatContextual(93)){const Z=e;return this.expectContextual(128),Z.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Z,"TSNamespaceExportDeclaration")}return super.parseExport(e,Z)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,Z,ie=!1){const{isAmbientContext:ae}=this.state,de=super.parseVarStatement(e,Z,ie||ae);if(!ae)return de;if(!e.declare&&("using"===Z||"await using"===Z))return this.raiseOverwrite(ur.UsingDeclarationInAmbientContext,e,Z),de;for(const{id:e,init:ie}of de.declarations)ie&&("var"===Z||"let"===Z||e.typeAnnotation?this.raise(ur.InitializerNotAllowedInAmbientContext,ie):isValidAmbientConstInitializer(ie,this.hasPlugin("estree"))||this.raise(ur.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,ie));return de}parseStatementContent(e,Z){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,Z)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,Z){return Z.some(Z=>tsIsAccessModifier(Z)?e.accessibility===Z:!!e[Z])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,Z,ie){const ae=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:ae,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ur.InvalidModifierOnTypeParameterPositions},Z);const callParseClassMemberWithIsStatic=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(Z,ae)&&this.raise(ur.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,Z)):this.parseClassMemberWithIsStatic(e,Z,ie,!!Z.static)};Z.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic()}parseClassMemberWithIsStatic(e,Z,ie,ae){const de=this.tsTryParseIndexSignature(Z);if(de)return e.body.push(de),Z.abstract&&this.raise(ur.IndexSignatureHasAbstract,Z),Z.accessibility&&this.raise(ur.IndexSignatureHasAccessibility,Z,{modifier:Z.accessibility}),Z.declare&&this.raise(ur.IndexSignatureHasDeclare,Z),void(Z.override&&this.raise(ur.IndexSignatureHasOverride,Z));!this.state.inAbstractClass&&Z.abstract&&this.raise(ur.NonAbstractClassHasAbstractMethod,Z),Z.override&&(ie.hadSuperClass||this.raise(ur.OverrideNotInSubClass,Z)),super.parseClassMemberWithIsStatic(e,Z,ie,ae)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(ur.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(ur.ClassMethodHasDeclare,e)}parseExpressionStatement(e,Z,ie){return("Identifier"===Z.type?this.tsParseExpressionStatement(e,Z,ie):void 0)||super.parseExpressionStatement(e,Z,ie)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,Z,ie){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const Z=this.lookaheadCharCode();if(44===Z||61===Z||58===Z||41===Z)return this.setOptionalParametersError(ie),e}return super.parseConditional(e,Z,ie)}parseParenItem(e,Z){const ie=super.parseParenItem(e,Z);if(this.eat(17)&&(ie.optional=!0,this.resetEndLocation(e)),this.match(14)){const ie=this.startNodeAt(Z);return ie.expression=e,ie.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(ie,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const Z=this.state.startLoc,ie=this.eatContextual(125);if(ie&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ur.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const ae=tokenIsIdentifier(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return ae?(("TSInterfaceDeclaration"===ae.type||"TSTypeAliasDeclaration"===ae.type||ie)&&(e.exportKind="type"),ie&&"TSImportEqualsDeclaration"!==ae.type&&(this.resetStartLocation(ae,Z),ae.declare=!0),ae):null}parseClassId(e,Z,ie,ae){if((!Z||ie)&&this.isContextual(113))return;super.parseClassId(e,Z,ie,e.declare?1024:8331);const de=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);de&&(e.typeParameters=de)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const Z=this.tsTryParseTypeAnnotation();Z&&(e.typeAnnotation=Z)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(ur.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:Z}=e;this.raise(ur.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==Z.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(Z.start),this.offsetToSourcePos(Z.end))}]`:Z.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(ur.PrivateElementHasAbstract,e),e.accessibility&&this.raise(ur.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(ur.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,Z,ie,ae,de,ve){const be=this.tsTryParseTypeParameters(this.tsParseConstModifier);be&&de&&this.raise(ur.ConstructorHasTypeParameters,be);const{declare:Ce=!1,kind:ke}=Z;!Ce||"get"!==ke&&"set"!==ke||this.raise(ur.DeclareAccessor,Z,{kind:ke}),be&&(Z.typeParameters=be),super.pushClassMethod(e,Z,ie,ae,de,ve)}pushClassPrivateMethod(e,Z,ie,ae){const de=this.tsTryParseTypeParameters(this.tsParseConstModifier);de&&(Z.typeParameters=de),super.pushClassPrivateMethod(e,Z,ie,ae)}declareClassPrivateMethodInScope(e,Z){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,Z))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,Z,ie,ae,de,ve,be){const Ce=this.tsTryParseTypeParameters(this.tsParseConstModifier);return Ce&&(e.typeParameters=Ce),super.parseObjPropValue(e,Z,ie,ae,de,ve,be)}parseFunctionParams(e,Z){const ie=this.tsTryParseTypeParameters(this.tsParseConstModifier);ie&&(e.typeParameters=ie),super.parseFunctionParams(e,Z)}parseVarId(e,Z){super.parseVarId(e,Z),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const ie=this.tsTryParseTypeAnnotation();ie&&(e.id.typeAnnotation=ie,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,Z){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,Z)}parseMaybeAssign(e,Z){var ie,ae,de,ve,be;let Ce,ke,Ie,_e;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(Ce=this.state.clone(),ke=this.tryParse(()=>super.parseMaybeAssign(e,Z),Ce),!ke.error)return ke.node;const{context:ie}=this.state,ae=ie[ie.length-1];ae!==Oe.j_oTag&&ae!==Oe.j_expr||ie.pop()}if(!(null!=(ie=ke)&&ie.error||this.match(47)))return super.parseMaybeAssign(e,Z);Ce&&Ce!==this.state||(Ce=this.state.clone());const Fe=this.tryParse(ie=>{var ae,de;_e=this.tsParseTypeParameters(this.tsParseConstModifier);const ve=super.parseMaybeAssign(e,Z);return("ArrowFunctionExpression"!==ve.type||null!=(ae=ve.extra)&&ae.parenthesized)&&ie(),0!==(null==(de=_e)?void 0:de.params.length)&&this.resetStartLocationFromNode(ve,_e),ve.typeParameters=_e,ve},Ce);if(!Fe.error&&!Fe.aborted)return _e&&this.reportReservedArrowTypeParam(_e),Fe.node;if(!ke&&(assert(!this.hasPlugin("jsx")),Ie=this.tryParse(()=>super.parseMaybeAssign(e,Z),Ce),!Ie.error))return Ie.node;if(null!=(ae=ke)&&ae.node)return this.state=ke.failState,ke.node;if(Fe.node)return this.state=Fe.failState,_e&&this.reportReservedArrowTypeParam(_e),Fe.node;if(null!=(de=Ie)&&de.node)return this.state=Ie.failState,Ie.node;throw(null==(ve=ke)?void 0:ve.error)||Fe.error||(null==(be=Ie)?void 0:be.error)}reportReservedArrowTypeParam(e){var Z;1!==e.params.length||e.params[0].constraint||null!=(Z=e.extra)&&Z.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(ur.ReservedArrowTypeParam,e)}parseMaybeUnary(e,Z){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,Z)}parseArrow(e){if(this.match(14)){const Z=this.tryParse(e=>{const Z=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),Z});if(Z.aborted)return;Z.thrown||(Z.error&&(this.state=Z.failState),e.returnType=Z.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const Z=this.tsTryParseTypeAnnotation();return Z&&(e.typeAnnotation=Z),this.resetEndLocation(e),e}isAssignable(e,Z){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,Z);case"TSParameterProperty":return!0;default:return super.isAssignable(e,Z)}}toAssignable(e,Z=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,Z);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":Z?this.expressionScope.recordArrowParameterBindingError(ur.UnexpectedTypeCastInParameter,e):this.raise(ur.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,Z);break;case"AssignmentExpression":Z||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,Z)}}toAssignableParenthesizedExpression(e,Z){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,Z);break;default:super.toAssignable(e,Z)}}checkToRestConversion(e,Z){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,Z)}}isValidLVal(e,Z,ie){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==ie||!Z)&&["expression",!0];default:return super.isValidLVal(e,Z,ie)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,Z){if(this.match(47)||this.match(51)){const ie=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const ae=super.parseMaybeDecoratorArguments(e,Z);return ae.typeParameters=ie,ae}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,Z)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,Z){const ie=super.parseMaybeDefault(e,Z);return"AssignmentPattern"===ie.type&&ie.typeAnnotation&&ie.right.start<ie.typeAnnotation.start&&this.raise(ur.TypeAnnotationAfterAssign,ie.typeAnnotation),ie}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,Z,ie){const ae=e[Z];"TSTypeCastExpression"===ae.type&&(e[Z]=this.typeCastToParameter(ae)),super.toAssignableListItem(e,Z,ie)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const Z=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());Z&&(e.typeParameters=Z)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const Z=super.getGetterSetterExpectedParamCount(e),ie=this.getObjectOrClassMethodParams(e)[0];return ie&&this.isThisParam(ie)?Z+1:Z}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),Z=this.tsTryParseTypeAnnotation();return Z&&(e.typeAnnotation=Z,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:Z,strict:ie}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=Z,this.state.strict=ie}}parseClass(e,Z,ie){const ae=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,Z,ie)}finally{this.state.inAbstractClass=ae}}tsParseAbstractDeclaration(e,Z){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(Z,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(ur.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,Z,ie,ae,de,ve,be){const Ce=super.parseMethod(e,Z,ie,ae,de,ve,be);if(Ce.abstract||"TSAbstractMethodDefinition"===Ce.type){if((this.hasPlugin("estree")?Ce.value:Ce).body){const{key:e}=Ce;this.raise(ur.AbstractMethodHasImplementation,Ce,{methodName:"Identifier"!==e.type||Ce.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}}return Ce}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,Z,ie,ae){return!Z&&ae?(this.parseTypeOnlyImportExportSpecifier(e,!1,ie),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,Z,ie,ae))}parseImportSpecifier(e,Z,ie,ae,de){return!Z&&ae?(this.parseTypeOnlyImportExportSpecifier(e,!0,ie),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,Z,ie,ae,ie?4098:4096))}parseTypeOnlyImportExportSpecifier(e,Z,ie){const ae=Z?"imported":"local",de=Z?"local":"exported";let ve,be=e[ae],Ce=!1,ke=!0;const Ie=be.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const ie=this.parseIdentifier();tokenIsKeywordOrIdentifier(this.state.type)?(Ce=!0,be=e,ve=Z?this.parseIdentifier():this.parseModuleExportName(),ke=!1):(ve=ie,ke=!1)}else tokenIsKeywordOrIdentifier(this.state.type)?(ke=!1,ve=Z?this.parseIdentifier():this.parseModuleExportName()):(Ce=!0,be=e)}else tokenIsKeywordOrIdentifier(this.state.type)&&(Ce=!0,Z?(be=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(be.name,be.loc.start,!0,!0)):be=this.parseModuleExportName());Ce&&ie&&this.raise(Z?ur.TypeModifierIsUsedInTypeImports:ur.TypeModifierIsUsedInTypeExports,Ie),e[ae]=be,e[de]=ve;e[Z?"importKind":"exportKind"]=Ce?"type":"value",ke&&this.eatContextual(93)&&(e[de]=Z?this.parseIdentifier():this.parseModuleExportName()),e[de]||(e[de]=this.cloneIdentifier(e[ae])),Z&&this.checkIdentifier(e[de],Ce?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}},v8intrinsic:e=>class V8IntrinsicMixin extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,Z=this.startNode();if(this.next(),tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName(),ie=this.createIdentifier(Z,e);if(this.castNodeTo(ie,"V8IntrinsicIdentifier"),this.match(10))return ie}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class PlaceholdersParserMixin extends e{parsePlaceholder(e){if(this.match(133)){const Z=this.startNode();return this.next(),this.assertNoSpace(),Z.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(Z,e)}}finishPlaceholder(e,Z){let ie=e;return ie.expectedNode&&ie.type||(ie=this.finishNode(ie,"Placeholder")),ie.expectedNode=Z,ie}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,Z,ie,ae){void 0!==e&&super.checkReservedWord(e,Z,ie,ae)}cloneIdentifier(e){const Z=super.cloneIdentifier(e);return"Placeholder"===Z.type&&(Z.expectedNode=e.expectedNode),Z}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,Z,ie){return"Placeholder"===e||super.isValidLVal(e,Z,ie)}toAssignable(e,Z){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,Z)}chStartsBindingIdentifier(e,Z){if(super.chStartsBindingIdentifier(e,Z))return!0;const ie=this.nextTokenStart();return 37===this.input.charCodeAt(ie)&&37===this.input.charCodeAt(ie+1)}verifyBreakContinue(e,Z){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,Z)}parseExpressionStatement(e,Z){var ie;if("Placeholder"!==Z.type||null!=(ie=Z.extra)&&ie.parenthesized)return super.parseExpressionStatement(e,Z);if(this.match(14)){const ie=e;return ie.label=this.finishPlaceholder(Z,"Identifier"),this.next(),ie.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(ie,"LabeledStatement")}this.semicolon();const ae=e;return ae.name=Z.name,this.finishPlaceholder(ae,"Statement")}parseBlock(e,Z,ie){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,Z,ie)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,Z,ie){const ae=Z?"ClassDeclaration":"ClassExpression";this.next();const de=this.state.strict,ve=this.parsePlaceholder("Identifier");if(ve){if(!(this.match(81)||this.match(133)||this.match(5))){if(ie||!Z)return e.id=null,e.body=this.finishPlaceholder(ve,"ClassBody"),this.finishNode(e,ae);throw this.raise(lr.ClassNameIsRequired,this.state.startLoc)}e.id=ve}else this.parseClassId(e,Z,ie);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,de),this.finishNode(e,ae)}parseExport(e,Z){const ie=this.parsePlaceholder("Identifier");if(!ie)return super.parseExport(e,Z);const ae=e;if(!this.isContextual(98)&&!this.match(12))return ae.specifiers=[],ae.source=null,ae.declaration=this.finishPlaceholder(ie,"Declaration"),this.finishNode(ae,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const de=this.startNode();return de.exported=ie,ae.specifiers=[this.finishNode(de,"ExportDefaultSpecifier")],super.parseExport(ae,Z)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,Z){var ie;return!(null==(ie=e.specifiers)||!ie.length)||super.maybeParseExportDefaultSpecifier(e,Z)}checkExport(e){const{specifiers:Z}=e;null!=Z&&Z.length&&(e.specifiers=Z.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=Z}parseImport(e){const Z=this.parsePlaceholder("Identifier");if(!Z)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(Z,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const ie=this.startNodeAtNode(Z);if(ie.local=Z,e.specifiers.push(this.finishNode(ie,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(lr.UnexpectedSpace,this.state.lastTokEndLoc)}}},Er=Object.keys(br);class ExpressionParser extends LValParser{checkProto(e,Z,ie,ae){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return ie;const de=e.key;return"__proto__"===("Identifier"===de.type?de.name:de.value)?Z?(this.raise(_e.RecordNoProto,de),!0):(ie&&(ae?null===ae.doubleProtoLoc&&(ae.doubleProtoLoc=de.loc.start):this.raise(_e.DuplicateProto,de)),!0):ie}shouldExitDescending(e,Z){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===Z}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(_e.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(_e.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,Z){return e?this.disallowInAnd(()=>this.parseExpressionBase(Z)):this.allowInAnd(()=>this.parseExpressionBase(Z))}parseExpressionBase(e){const Z=this.state.startLoc,ie=this.parseMaybeAssign(e);if(this.match(12)){const ae=this.startNodeAt(Z);for(ae.expressions=[ie];this.eat(12);)ae.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(ae.expressions),this.finishNode(ae,"SequenceExpression")}return ie}parseMaybeAssignDisallowIn(e,Z){return this.disallowInAnd(()=>this.parseMaybeAssign(e,Z))}parseMaybeAssignAllowIn(e,Z){return this.allowInAnd(()=>this.parseMaybeAssign(e,Z))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,Z){const ie=this.state.startLoc,ae=this.isContextual(108);if(ae&&this.prodParam.hasYield){this.next();let e=this.parseYield(ie);return Z&&(e=Z.call(this,e,ie)),e}let de;e?de=!1:(e=new ExpressionErrors,de=!0);const{type:ve}=this.state;(10===ve||tokenIsIdentifier(ve))&&(this.state.potentialArrowAt=this.state.start);let be=this.parseMaybeConditional(e);if(Z&&(be=Z.call(this,be,ie)),function tokenIsAssignment(e){return e>=29&&e<=33}(this.state.type)){const Z=this.startNodeAt(ie),ae=this.state.value;if(Z.operator=ae,this.match(29)){this.toAssignable(be,!0),Z.left=be;const ae=ie.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=ae&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=ae&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=ae&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=ae&&(e.voidPatternLoc=null)}else Z.left=be;return this.next(),Z.right=this.parseMaybeAssign(),this.checkLVal(be,this.finishNode(Z,"AssignmentExpression")),Z}if(de&&this.checkExpressionErrors(e,!0),ae){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_e.YieldNotInGeneratorFunction,ie),this.parseYield(ie)}return be}parseMaybeConditional(e){const Z=this.state.startLoc,ie=this.state.potentialArrowAt,ae=this.parseExprOps(e);return this.shouldExitDescending(ae,ie)?ae:this.parseConditional(ae,Z,e)}parseConditional(e,Z,ie){if(this.eat(17)){const ie=this.startNodeAt(Z);return ie.test=e,ie.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),ie.alternate=this.parseMaybeAssign(),this.finishNode(ie,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const Z=this.state.startLoc,ie=this.state.potentialArrowAt,ae=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(ae,ie)?ae:this.parseExprOp(ae,Z,-1)}parseExprOp(e,Z,ie){if(this.isPrivateName(e)){const Z=this.getPrivateNameSV(e);(ie>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_e.PrivateInExpectedIn,e,{identifierName:Z}),this.classScope.usePrivateName(Z,e.loc.start)}const ae=this.state.type;if(function tokenIsOperator(e){return e>=39&&e<=59}(ae)&&(this.prodParam.hasIn||!this.match(58))){let de=tokenOperatorPrecedence(ae);if(de>ie){if(39===ae){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,Z)}const ve=this.startNodeAt(Z);ve.left=e,ve.operator=this.state.value;const be=41===ae||42===ae,Ce=40===ae;if(Ce&&(de=tokenOperatorPrecedence(42)),this.next(),39===ae&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(_e.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);ve.right=this.parseExprOpRightExpr(ae,de);const ke=this.finishNode(ve,be||Ce?"LogicalExpression":"BinaryExpression"),Ie=this.state.type;if(Ce&&(41===Ie||42===Ie)||be&&40===Ie)throw this.raise(_e.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(ke,Z,ie)}}return e}parseExprOpRightExpr(e,Z){const ie=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(Z))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_e.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,Z),ie)})}return this.parseExprOpBaseRightExpr(e,Z)}parseExprOpBaseRightExpr(e,Z){const ie=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),ie,function tokenIsRightAssociative(e){return 57===e}(e)?Z-1:Z)}parseHackPipeBody(){var e;const{startLoc:Z}=this.state,ie=this.parseMaybeAssign();return!Ce.has(ie.type)||null!=(e=ie.extra)&&e.parenthesized||this.raise(_e.PipeUnparenthesizedBody,Z,{type:ie.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_e.PipeTopicUnused,Z),ie}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_e.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,Z){const ie=this.state.startLoc,ae=this.isContextual(96);if(ae&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(ie);return Z||this.checkExponentialAfterUnary(e),e}const de=this.match(34),ve=this.startNode();if(function tokenIsPrefix(e){return mt[e]}(this.state.type)){ve.operator=this.state.value,ve.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const ie=this.match(89);if(this.next(),ve.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&ie){const e=ve.argument;"Identifier"===e.type?this.raise(_e.StrictDelete,ve):this.hasPropertyAsPrivateName(e)&&this.raise(_e.DeletePrivateField,ve)}if(!de)return Z||this.checkExponentialAfterUnary(ve),this.finishNode(ve,"UnaryExpression")}const be=this.parseUpdate(ve,de,e);if(ae){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_e.AwaitNotInAsyncContext,ie),this.parseAwait(ie)}return be}parseUpdate(e,Z,ie){if(Z){const Z=e;return this.checkLVal(Z.argument,this.finishNode(Z,"UpdateExpression")),e}const ae=this.state.startLoc;let de=this.parseExprSubscripts(ie);if(this.checkExpressionErrors(ie,!1))return de;for(;tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(ae);e.operator=this.state.value,e.prefix=!1,e.argument=de,this.next(),this.checkLVal(de,de=this.finishNode(e,"UpdateExpression"))}return de}parseExprSubscripts(e){const Z=this.state.startLoc,ie=this.state.potentialArrowAt,ae=this.parseExprAtom(e);return this.shouldExitDescending(ae,ie)?ae:this.parseSubscripts(ae,Z)}parseSubscripts(e,Z,ie){const ae={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,Z,ie,ae),ae.maybeAsyncArrow=!1}while(!ae.stop);return e}parseSubscript(e,Z,ie,ae){const{type:de}=this.state;if(!ie&&15===de)return this.parseBind(e,Z,ie,ae);if(tokenIsTemplate(de))return this.parseTaggedTemplateExpression(e,Z,ae);let ve=!1;if(18===de){if(ie&&(this.raise(_e.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,ae);ae.optionalChainMember=ve=!0,this.next()}if(!ie&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,Z,ae,ve);{const ie=this.eat(0);return ie||ve||this.eat(16)?this.parseMember(e,Z,ae,ie,ve):this.stopParseSubscript(e,ae)}}stopParseSubscript(e,Z){return Z.stop=!0,e}parseMember(e,Z,ie,ae,de){const ve=this.startNodeAt(Z);return ve.object=e,ve.computed=ae,ae?(ve.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(_e.SuperPrivateField,Z),this.classScope.usePrivateName(this.state.value,this.state.startLoc),ve.property=this.parsePrivateName()):ve.property=this.parseIdentifier(!0),ie.optionalChainMember?(ve.optional=de,this.finishNode(ve,"OptionalMemberExpression")):this.finishNode(ve,"MemberExpression")}parseBind(e,Z,ie,ae){const de=this.startNodeAt(Z);return de.object=e,this.next(),de.callee=this.parseNoCallExpr(),ae.stop=!0,this.parseSubscripts(this.finishNode(de,"BindExpression"),Z,ie)}parseCoverCallAndAsyncArrowHead(e,Z,ie,ae){const de=this.state.maybeInArrowParameters;let ve=null;this.state.maybeInArrowParameters=!0,this.next();const be=this.startNodeAt(Z);be.callee=e;const{maybeAsyncArrow:Ce,optionalChainMember:ke}=ie;Ce&&(this.expressionScope.enter(function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}()),ve=new ExpressionErrors),ke&&(be.optional=ae),be.arguments=ae?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,be,ve);let Ie=this.finishCallExpression(be,ke);return Ce&&this.shouldParseAsyncArrow()&&!ae?(ie.stop=!0,this.checkDestructuringPrivate(ve),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),Ie=this.parseAsyncArrowFromCallExpression(this.startNodeAt(Z),Ie)):(Ce&&(this.checkExpressionErrors(ve,!0),this.expressionScope.exit()),this.toReferencedArguments(Ie)),this.state.maybeInArrowParameters=de,Ie}toReferencedArguments(e,Z){this.toReferencedListDeep(e.arguments,Z)}parseTaggedTemplateExpression(e,Z,ie){const ae=this.startNodeAt(Z);return ae.tag=e,ae.quasi=this.parseTemplate(!0),ie.optionalChainMember&&this.raise(_e.OptionalChainingNoTemplate,Z),this.finishNode(ae,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,Z){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(_e.ImportCallArity,e);else for(const Z of e.arguments)"SpreadElement"===Z.type&&this.raise(_e.ImportCallSpreadArgument,Z);return this.finishNode(e,Z?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,Z,ie){const ae=[];let de=!0;const ve=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(de)de=!1;else if(this.expect(12),this.match(11)){Z&&this.addTrailingCommaExtraToNode(Z),this.next();break}ae.push(this.parseExprListItem(11,!1,ie,e))}return this.state.inFSharpPipelineDirectBody=ve,ae}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,Z){var ie;return this.resetPreviousNodeTrailingComments(Z),this.expect(19),this.parseArrowExpression(e,Z.arguments,!0,null==(ie=Z.extra)?void 0:ie.trailingCommaLoc),Z.innerComments&&setInnerComments(e,Z.innerComments),Z.callee.trailingComments&&setInnerComments(e,Z.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let Z,ie=null;const{type:ae}=this.state;switch(ae){case 79:return this.parseSuper();case 83:return Z=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(Z):this.match(10)?512&this.optionFlags?this.parseImportCall(Z):this.finishNode(Z,"Import"):(this.raise(_e.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(Z,"Import"));case 78:return Z=this.startNode(),this.next(),this.finishNode(Z,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:ie=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(ie,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{Z=this.startNode(),this.next(),Z.object=null;const e=Z.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(Z,"BindExpression");throw this.raise(_e.UnsupportedBind,e)}case 139:return this.raise(_e.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());isIdentifierStart(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(137===ae)return this.parseDecimalLiteral(this.state.value);if(2===ae||1===ae)return this.parseArrayLike(2===this.state.type?4:3,!1,!0);if(6===ae||7===ae)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(tokenIsIdentifier(ae)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,Z=this.state.containsEsc,ie=this.parseIdentifier();if(!Z&&"async"===ie.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(ie),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(ie));if(tokenIsIdentifier(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(ie)):ie;if(90===e)return this.resetPreviousNodeTrailingComments(ie),this.parseDo(this.startNodeAtNode(ie),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(ie),[ie],!1)):ie}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,Z){const ie=this.getPluginOption("pipelineOperator","proposal");if(ie)return this.state.type=e,this.state.value=Z,this.state.pos--,this.state.end--,this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1),this.parseTopicReference(ie);this.unexpected()}parseTopicReference(e){const Z=this.startNode(),ie=this.state.startLoc,ae=this.state.type;return this.next(),this.finishTopicReference(Z,ie,e,ae)}finishTopicReference(e,Z,ie,ae){if(this.testTopicReferenceConfiguration(ie,Z,ae))return"hack"===ie?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_e.PipeTopicUnbound,Z),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_e.PrimaryTopicNotAllowed,Z),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(_e.PipeTopicUnconfiguredToken,Z,{token:tokenLabelName(ae)})}testTopicReferenceConfiguration(e,Z,ie){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(ie)}]);case"smart":return 27===ie;default:throw this.raise(_e.PipeTopicRequiresHackPipes,Z)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const Z=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_e.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,Z,!0)}parseDo(e,Z){this.expectPlugin("doExpressions"),Z&&this.expectPlugin("asyncDoExpressions"),e.async=Z,this.next();const ie=this.state.labels;return this.state.labels=[],Z?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=ie,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||16&this.optionFlags?this.scope.allowSuper||16&this.optionFlags||this.raise(_e.UnexpectedSuper,e):this.raise(_e.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(_e.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),Z=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1)),ie=this.state.value;return this.next(),e.id=this.createIdentifier(Z,ie),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const Z=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,Z,"sent")}return this.parseFunction(e)}parseMetaProperty(e,Z,ie){e.meta=Z;const ae=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==ie||ae)&&this.raise(_e.UnsupportedMetaProperty,e.property,{target:Z.name,onlyValidPropertyName:ie}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const Z=this.isContextual(105);return this.expectPlugin(Z?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=Z?"source":"defer",this.parseImportCall(e)}{const Z=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(_e.ImportMetaOutsideModule,Z),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,Z,"meta")}}parseLiteralAtNode(e,Z,ie){return this.addExtra(ie,"rawValue",e),this.addExtra(ie,"raw",this.input.slice(this.offsetToSourcePos(ie.start),this.state.end)),ie.value=e,this.next(),this.finishNode(ie,Z)}parseLiteral(e,Z){const ie=this.startNode();return this.parseLiteralAtNode(e,Z,ie)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const Z=this.startNode();return this.addExtra(Z,"raw",this.input.slice(this.offsetToSourcePos(Z.start),this.state.end)),Z.pattern=e.pattern,Z.flags=e.flags,this.next(),this.finishNode(Z,"RegExpLiteral")}parseBooleanLiteral(e){const Z=this.startNode();return Z.value=e,this.next(),this.finishNode(Z,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const Z=this.state.startLoc;let ie;this.next(),this.expressionScope.enter(function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}());const ae=this.state.maybeInArrowParameters,de=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const ve=this.state.startLoc,be=[],Ce=new ExpressionErrors;let ke,Ie,_e=!0;for(;!this.match(11);){if(_e)_e=!1;else if(this.expect(12,null===Ce.optionalParametersLoc?null:Ce.optionalParametersLoc),this.match(11)){Ie=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(ke=this.state.startLoc,be.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else be.push(this.parseMaybeAssignAllowInOrVoidPattern(11,Ce,this.parseParenItem))}const Fe=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=ae,this.state.inFSharpPipelineDirectBody=de;let Oe=this.startNodeAt(Z);return e&&this.shouldParseArrow(be)&&(Oe=this.parseArrow(Oe))?(this.checkDestructuringPrivate(Ce),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(Oe,be,!1),Oe):(this.expressionScope.exit(),be.length||this.unexpected(this.state.lastTokStartLoc),Ie&&this.unexpected(Ie),ke&&this.unexpected(ke),this.checkExpressionErrors(Ce,!0),this.toReferencedListDeep(be,!0),be.length>1?(ie=this.startNodeAt(ve),ie.expressions=be,this.finishNode(ie,"SequenceExpression"),this.resetEndLocation(ie,Fe)):ie=be[0],this.wrapParenthesis(Z,ie))}wrapParenthesis(e,Z){if(!(1024&this.optionFlags))return this.addExtra(Z,"parenthesized",!0),this.addExtra(Z,"parenStart",e.index),this.takeSurroundingComments(Z,e.index,this.state.lastTokEndLoc.index),Z;const ie=this.startNodeAt(e);return ie.expression=Z,this.finishNode(ie,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,Z){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const Z=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const ie=this.parseMetaProperty(e,Z,"target");return this.scope.allowNewTarget||this.raise(_e.UnexpectedNewTarget,ie),ie}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const Z=this.parseExprList(11);this.toReferencedList(Z),e.arguments=Z}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const Z=this.match(83),ie=this.parseNoCallExpr();e.callee=ie,!Z||"Import"!==ie.type&&"ImportExpression"!==ie.type||this.raise(_e.ImportCallNotNewExpression,ie)}parseTemplateElement(e){const{start:Z,startLoc:ie,end:ae,value:de}=this.state,ve=Z+1,be=this.startNodeAt(createPositionWithColumnOffset(ie,1));null===de&&(e||this.raise(_e.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1)));const Ce=this.match(24),ke=Ce?-1:-2,Ie=ae+ke;be.value={raw:this.input.slice(ve,Ie).replace(/\r\n?/g,"\n"),cooked:null===de?null:de.slice(1,ke)},be.tail=Ce,this.next();const Fe=this.finishNode(be,"TemplateElement");return this.resetEndLocation(Fe,createPositionWithColumnOffset(this.state.lastTokEndLoc,ke)),Fe}parseTemplate(e){const Z=this.startNode();let ie=this.parseTemplateElement(e);const ae=[ie],de=[];for(;!ie.tail;)de.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),ae.push(ie=this.parseTemplateElement(e));return Z.expressions=de,Z.quasis=ae,this.finishNode(Z,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,Z,ie,ae){ie&&this.expectPlugin("recordAndTuple");const de=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let ve=!1,be=!0;const Ce=this.startNode();for(Ce.properties=[],this.next();!this.match(e);){if(be)be=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(Ce);break}let de;Z?de=this.parseBindingProperty():(de=this.parsePropertyDefinition(ae),ve=this.checkProto(de,ie,ve,ae)),ie&&!this.isObjectProperty(de)&&"SpreadElement"!==de.type&&this.raise(_e.InvalidRecordProperty,de),de.shorthand&&this.addExtra(de,"shorthand",!0),Ce.properties.push(de)}this.next(),this.state.inFSharpPipelineDirectBody=de;let ke="ObjectExpression";return Z?ke="ObjectPattern":ie&&(ke="RecordExpression"),this.finishNode(Ce,ke)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let Z=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(_e.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Z.push(this.parseDecorator());const ie=this.startNode();let ae,de=!1,ve=!1;if(this.match(21))return Z.length&&this.unexpected(),this.parseSpread();Z.length&&(ie.decorators=Z,Z=[]),ie.method=!1,e&&(ae=this.state.startLoc);let be=this.eat(55);this.parsePropertyNamePrefixOperator(ie);const Ce=this.state.containsEsc;if(this.parsePropertyName(ie,e),!be&&!Ce&&this.maybeAsyncOrAccessorProp(ie)){const{key:e}=ie,Z=e.name;"async"!==Z||this.hasPrecedingLineBreak()||(de=!0,this.resetPreviousNodeTrailingComments(e),be=this.eat(55),this.parsePropertyName(ie)),"get"!==Z&&"set"!==Z||(ve=!0,this.resetPreviousNodeTrailingComments(e),ie.kind=Z,this.match(55)&&(be=!0,this.raise(_e.AccessorIsGenerator,this.state.curPosition(),{kind:Z}),this.next()),this.parsePropertyName(ie))}return this.parseObjPropValue(ie,ae,be,de,!1,ve,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var Z;const ie=this.getGetterSetterExpectedParamCount(e),ae=this.getObjectOrClassMethodParams(e);ae.length!==ie&&this.raise("get"===e.kind?_e.BadGetterArity:_e.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(Z=ae[ae.length-1])?void 0:Z.type)&&this.raise(_e.BadSetterRestParameter,e)}parseObjectMethod(e,Z,ie,ae,de){if(de){const ie=this.parseMethod(e,Z,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(ie),ie}if(ie||Z||this.match(10))return ae&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,Z,ie,!1,!1,"ObjectMethod")}parseObjectProperty(e,Z,ie,ae){if(e.shorthand=!1,this.eat(14))return e.value=ie?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,ae),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),ie)e.value=this.parseMaybeDefault(Z,this.cloneIdentifier(e.key));else if(this.match(29)){const ie=this.state.startLoc;null!=ae?null===ae.shorthandAssignLoc&&(ae.shorthandAssignLoc=ie):this.raise(_e.InvalidCoverInitializedName,ie),e.value=this.parseMaybeDefault(Z,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,Z,ie,ae,de,ve,be){const Ce=this.parseObjectMethod(e,ie,ae,de,ve)||this.parseObjectProperty(e,Z,de,be);return Ce||this.unexpected(),Ce}parsePropertyName(e,Z){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:ie,value:ae}=this.state;let de;if(tokenIsKeywordOrIdentifier(ie))de=this.parseIdentifier(!0);else switch(ie){case 135:de=this.parseNumericLiteral(ae);break;case 134:de=this.parseStringLiteral(ae);break;case 136:de=this.parseBigIntLiteral(ae);break;case 139:{const e=this.state.startLoc;null!=Z?null===Z.privateKeyLoc&&(Z.privateKeyLoc=e):this.raise(_e.UnexpectedPrivateField,e),de=this.parsePrivateName();break}default:if(137===ie){de=this.parseDecimalLiteral(ae);break}this.unexpected()}e.key=de,139!==ie&&(e.computed=!1)}}initFunction(e,Z){e.id=null,e.generator=!1,e.async=Z}parseMethod(e,Z,ie,ae,de,ve,be=!1){this.initFunction(e,ie),e.generator=Z,this.scope.enter(530|(be?576:0)|(de?32:0)),this.prodParam.enter(functionFlags(ie,e.generator)),this.parseFunctionParams(e,ae);const Ce=this.parseFunctionBodyAndFinish(e,ve,!0);return this.prodParam.exit(),this.scope.exit(),Ce}parseArrayLike(e,Z,ie,ae){ie&&this.expectPlugin("recordAndTuple");const de=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const ve=this.startNode();return this.next(),ve.elements=this.parseExprList(e,!ie,ae,ve),this.state.inFSharpPipelineDirectBody=de,this.finishNode(ve,ie?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,Z,ie,ae){this.scope.enter(518);let de=functionFlags(ie,!1);!this.match(5)&&this.prodParam.hasIn&&(de|=8),this.prodParam.enter(de),this.initFunction(e,ie);const ve=this.state.maybeInArrowParameters;return Z&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,Z,ae)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=ve,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,Z,ie){this.toAssignableList(Z,ie,!1),e.params=Z}parseFunctionBodyAndFinish(e,Z,ie=!1){return this.parseFunctionBody(e,!1,ie),this.finishNode(e,Z)}parseFunctionBody(e,Z,ie=!1){const ae=Z&&!this.match(5);if(this.expressionScope.enter(newExpressionScope()),ae)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,Z,!1);else{const ae=this.state.strict,de=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,de=>{const ve=!this.isSimpleParamList(e.params);de&&ve&&this.raise(_e.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const be=!ae&&this.state.strict;this.checkParams(e,!(this.state.strict||Z||ie||ve),Z,be),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,be)}),this.prodParam.exit(),this.state.labels=de}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let Z=0,ie=e.length;Z<ie;Z++)if(!this.isSimpleParameter(e[Z]))return!1;return!0}checkParams(e,Z,ie,ae=!0){const de=!Z&&new Set,ve={type:"FormalParameters"};for(const Z of e.params)this.checkLVal(Z,ve,5,de,ae)}parseExprList(e,Z,ie,ae){const de=[];let ve=!0;for(;!this.eat(e);){if(ve)ve=!1;else if(this.expect(12),this.match(e)){ae&&this.addTrailingCommaExtraToNode(ae),this.next();break}de.push(this.parseExprListItem(e,Z,ie))}return de}parseExprListItem(e,Z,ie,ae){let de;if(this.match(12))Z||this.raise(_e.UnexpectedToken,this.state.curPosition(),{unexpected:","}),de=null;else if(this.match(21)){const e=this.state.startLoc;de=this.parseParenItem(this.parseSpread(ie),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),ae||this.raise(_e.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),de=this.finishNode(e,"ArgumentPlaceholder")}else de=this.parseMaybeAssignAllowInOrVoidPattern(e,ie,this.parseParenItem);return de}parseIdentifier(e){const Z=this.startNode(),ie=this.parseIdentifierName(e);return this.createIdentifier(Z,ie)}createIdentifier(e,Z){return e.name=Z,e.loc.identifierName=Z,this.finishNode(e,"Identifier")}createIdentifierAt(e,Z,ie){return e.name=Z,e.loc.identifierName=Z,this.finishNodeAt(e,"Identifier",ie)}parseIdentifierName(e){let Z;const{startLoc:ie,type:ae}=this.state;tokenIsKeywordOrIdentifier(ae)?Z=this.state.value:this.unexpected();const de=function tokenKeywordOrIdentifierIsKeyword(e){return e<=92}(ae);return e?de&&this.replaceToken(132):this.checkReservedWord(Z,ie,de,!1),this.next(),Z}checkReservedWord(e,Z,ie,ae){if(e.length>10)return;if(!function canBeReservedWord(e){return qt.has(e)}(e))return;if(ie&&function isKeyword(e){return _t.has(e)}(e))return void this.raise(_e.UnexpectedKeyword,Z,{keyword:e});if((this.state.strict?ae?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule))this.raise(_e.UnexpectedReservedWord,Z,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(_e.YieldBindingIdentifier,Z)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(_e.AwaitBindingIdentifier,Z);if(this.scope.inStaticBlock)return void this.raise(_e.AwaitBindingIdentifierInStaticBlock,Z);this.expressionScope.recordAsyncArrowParametersError(Z)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(_e.ArgumentsInClass,Z)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const Z=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_e.AwaitExpressionFormalParameter,Z),this.eat(55)&&this.raise(_e.ObsoleteAwaitStar,Z),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(Z.argument=this.parseMaybeUnary(null,!0)),this.finishNode(Z,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||tokenIsTemplate(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const Z=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(_e.YieldInParameter,Z);let ie=!1,ae=null;if(!this.hasPrecedingLineBreak())switch(ie=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!ie)break;default:ae=this.parseMaybeAssign()}return Z.delegate=ie,Z.argument=ae,this.finishNode(Z,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(_e.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,Z){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(_e.PipelineHeadSequenceExpression,Z)}parseSmartPipelineBodyInStyle(e,Z){if(this.isSimpleReference(e)){const ie=this.startNodeAt(Z);return ie.callee=e,this.finishNode(ie,"PipelineBareFunction")}{const ie=this.startNodeAt(Z);return this.checkSmartPipeTopicBodyEarlyErrors(Z),ie.expression=e,this.finishNode(ie,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_e.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_e.PipelineTopicUnused,e)}withTopicBindingContext(e){const Z=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=Z}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const Z=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=Z}}}withSoloAwaitPermittingContext(e){const Z=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=Z}}allowInAnd(e){const Z=this.prodParam.currentFlags();if(8&~Z){this.prodParam.enter(8|Z);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const Z=this.prodParam.currentFlags();if(8&Z){this.prodParam.enter(-9&Z);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const Z=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const ie=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const ae=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),Z,e);return this.state.inFSharpPipelineDirectBody=ie,ae}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const Z=this.startNodeAt(this.state.endLoc);this.next();const ie=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(Z,8,"module")}finally{ie()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const Z=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(Z,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,Z,ie){if(null!=Z&&this.match(88)){const ie=this.lookaheadCharCode();if(44===ie||ie===(3===e?93:8===e?125:41)||61===ie)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(Z))}return this.parseMaybeAssignAllowIn(Z,ie)}parsePropertyNamePrefixOperator(e){}}const Cr={kind:1},Ar={kind:2},Tr=/[\uD800-\uDFFF]/u,Sr=/in(?:stanceof)?/y;class StatementParser extends ExpressionParser{parseTopLevel(e,Z){return e.program=this.parseProgram(Z,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function babel7CompatTokens(e,Z,ie){for(let ae=0;ae<e.length;ae++){const de=e[ae],{type:ve}=de;if("number"==typeof ve){if(139===ve){const{loc:Z,start:ie,value:ve,end:be}=de,Ce=ie+1,ke=createPositionWithColumnOffset(Z.start,1);e.splice(ae,1,new Token({type:getExportedToken(27),value:"#",start:ie,end:Ce,startLoc:Z.start,endLoc:ke}),new Token({type:getExportedToken(132),value:ve,start:Ce,end:be,startLoc:ke,endLoc:Z.end})),ae++;continue}if(tokenIsTemplate(ve)){const{loc:be,start:Ce,value:ke,end:Ie}=de,_e=Ce+1,Fe=createPositionWithColumnOffset(be.start,1);let Oe,Be,Me,qe,Ve;Oe=96===Z.charCodeAt(Ce-ie)?new Token({type:getExportedToken(22),value:"`",start:Ce,end:_e,startLoc:be.start,endLoc:Fe}):new Token({type:getExportedToken(8),value:"}",start:Ce,end:_e,startLoc:be.start,endLoc:Fe}),24===ve?(Me=Ie-1,qe=createPositionWithColumnOffset(be.end,-1),Be=null===ke?null:ke.slice(1,-1),Ve=new Token({type:getExportedToken(22),value:"`",start:Me,end:Ie,startLoc:qe,endLoc:be.end})):(Me=Ie-2,qe=createPositionWithColumnOffset(be.end,-2),Be=null===ke?null:ke.slice(1,-2),Ve=new Token({type:getExportedToken(23),value:"${",start:Me,end:Ie,startLoc:qe,endLoc:be.end})),e.splice(ae,1,Oe,new Token({type:getExportedToken(20),value:Be,start:_e,end:Me,startLoc:Fe,endLoc:qe}),Ve),ae+=2;continue}de.type=getExportedToken(ve)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,Z,ie){if(e.sourceType=ie,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,Z),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[e,Z]of Array.from(this.scope.undefinedExports))this.raise(_e.ModuleExportUndefined,Z,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let ae;return ae=140===Z?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1)),ae}stmtToDirective(e){const Z=this.castNodeTo(e,"Directive"),ie=this.castNodeTo(e.expression,"DirectiveLiteral"),ae=ie.value,de=this.input.slice(this.offsetToSourcePos(ie.start),this.offsetToSourcePos(ie.end)),ve=ie.value=de.slice(1,-1);return this.addExtra(ie,"raw",de),this.addExtra(ie,"rawValue",ve),this.addExtra(ie,"expressionValue",ae),Z.value=ie,delete e.expression,Z}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),Z=this.codePointAtPos(e);return this.chStartsBindingIdentifier(Z,e)}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),Z=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const Z=this.lookaheadCharCodeSince(e+2);if(61!==Z&&58!==Z&&59!==Z)return!1}return!(!this.chStartsBindingIdentifier(Z,e)&&!this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const Z=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(Z,e))return!0}return!1}chStartsBindingIdentifier(e,Z){if(isIdentifierStart(e)){if(Sr.lastIndex=Z,Sr.test(this.input)){const e=this.codePointAtPos(Sr.lastIndex);if(!isIdentifierChar(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),Z=this.codePointAtPos(e);return this.chStartsBindingPattern(Z)||this.chStartsBindingIdentifier(Z,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),Z=this.codePointAtPos(e);return 123===Z||this.chStartsBindingIdentifier(Z,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let Z=0;return this.options.annexB&&!this.state.strict&&(Z|=4,e&&(Z|=8)),this.parseStatementLike(Z)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let Z=null;return this.match(26)&&(Z=this.parseDecorators(!0)),this.parseStatementContent(e,Z)}parseStatementContent(e,Z){const ie=this.state.type,ae=this.startNode(),de=!!(2&e),ve=!!(4&e),be=1&e;switch(ie){case 60:return this.parseBreakContinueStatement(ae,!0);case 63:return this.parseBreakContinueStatement(ae,!1);case 64:return this.parseDebuggerStatement(ae);case 90:return this.parseDoWhileStatement(ae);case 91:return this.parseForStatement(ae);case 68:if(46===this.lookaheadCharCode())break;return ve||this.raise(this.state.strict?_e.StrictFunction:this.options.annexB?_e.SloppyFunctionAnnexB:_e.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(ae,!1,!de&&ve);case 80:return de||this.unexpected(),this.parseClass(this.maybeTakeDecorators(Z,ae),!0);case 69:return this.parseIfStatement(ae);case 70:return this.parseReturnStatement(ae);case 71:return this.parseSwitchStatement(ae);case 72:return this.parseThrowStatement(ae);case 73:return this.parseTryStatement(ae);case 96:if(this.isAwaitUsing())return this.allowsUsing()?de?this.recordAwaitIfAllowed()||this.raise(_e.AwaitUsingNotInAsyncContext,ae):this.raise(_e.UnexpectedLexicalDeclaration,ae):this.raise(_e.UnexpectedUsingDeclaration,ae),this.next(),this.parseVarStatement(ae,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?de||this.raise(_e.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(_e.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(ae,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),Z=this.codePointAtPos(e);if(91!==Z){if(!de&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(Z,e)&&123!==Z)break}}case 75:de||this.raise(_e.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(ae,e)}case 92:return this.parseWhileStatement(ae);case 76:return this.parseWithStatement(ae);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(ae);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||be||this.raise(_e.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===ie?this.parseImport(ae):this.parseExport(ae,Z),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return de||this.raise(_e.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(ae,!0,!de&&ve)}const Ce=this.state.value,ke=this.parseExpression();return tokenIsIdentifier(ie)&&"Identifier"===ke.type&&this.eat(14)?this.parseLabeledStatement(ae,Ce,ke,e):this.parseExpressionStatement(ae,ke,Z)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(_e.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,Z,ie){var ae;e&&(null!=(ae=Z.decorators)&&ae.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(_e.DecoratorsBeforeAfterExport,Z.decorators[0]),Z.decorators.unshift(...e)):Z.decorators=e,this.resetStartLocationFromNode(Z,e[0]),ie&&this.resetStartLocationFromNode(ie,Z));return Z}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const Z=[];do{Z.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_e.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_e.UnexpectedLeadingDecorator,this.state.startLoc);return Z}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const Z=this.state.startLoc;let ie;if(this.match(10)){const Z=this.state.startLoc;this.next(),ie=this.parseExpression(),this.expect(11),ie=this.wrapParenthesis(Z,ie);const ae=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(ie,Z),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==ie&&this.raise(_e.DecoratorArgumentsOutsideParentheses,ae)}else{for(ie=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(Z);e.object=ie,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,ie=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(ie,Z)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,Z){if(this.eat(10)){const ie=this.startNodeAt(Z);return ie.callee=e,ie.arguments=this.parseCallExpressionArguments(),this.toReferencedList(ie.arguments),this.finishNode(ie,"CallExpression")}return e}parseBreakContinueStatement(e,Z){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,Z),this.finishNode(e,Z?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,Z){let ie;for(ie=0;ie<this.state.labels.length;++ie){const ae=this.state.labels[ie];if(null==e.label||ae.name===e.label.name){if(null!=ae.kind&&(Z||1===ae.kind))break;if(e.label&&Z)break}}if(ie===this.state.labels.length){const ie=Z?"BreakStatement":"ContinueStatement";this.raise(_e.IllegalBreakContinue,e,{type:ie})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Cr),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Cr);let Z=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(Z=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==Z&&this.unexpected(Z),this.parseFor(e,null);const ie=this.isContextual(100);{const ae=this.isAwaitUsing(),de=ae||this.isForUsing(),ve=ie&&this.hasFollowingBindingAtom()||de;if(this.match(74)||this.match(75)||ve){const ie=this.startNode();let ve;ae?(ve="await using",this.recordAwaitIfAllowed()||this.raise(_e.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):ve=this.state.value,this.next(),this.parseVar(ie,!0,ve);const be=this.finishNode(ie,"VariableDeclaration"),Ce=this.match(58);return Ce&&de&&this.raise(_e.ForInUsing,be),(Ce||this.isContextual(102))&&1===be.declarations.length?this.parseForIn(e,be,Z):(null!==Z&&this.unexpected(Z),this.parseFor(e,be))}}const ae=this.isContextual(95),de=new ExpressionErrors,ve=this.parseExpression(!0,de),be=this.isContextual(102);if(be&&(ie&&this.raise(_e.ForOfLet,ve),null===Z&&ae&&"Identifier"===ve.type&&this.raise(_e.ForOfAsync,ve)),be||this.match(58)){this.checkDestructuringPrivate(de),this.toAssignable(ve,!0);const ie=be?"ForOfStatement":"ForInStatement";return this.checkLVal(ve,{type:ie}),this.parseForIn(e,ve,Z)}return this.checkExpressionErrors(de,!0),null!==Z&&this.unexpected(Z),this.parseFor(e,ve)}parseFunctionStatement(e,Z,ie){return this.next(),this.parseFunction(e,1|(ie?2:0)|(Z?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(_e.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const Z=e.cases=[];let ie;this.expect(5),this.state.labels.push(Ar),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const ae=this.match(61);ie&&this.finishNode(ie,"SwitchCase"),Z.push(ie=this.startNode()),ie.consequent=[],this.next(),ae?ie.test=this.parseExpression():(e&&this.raise(_e.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,ie.test=null),this.expect(14)}else ie?ie.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),ie&&this.finishNode(ie,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_e.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const Z=this.startNode();this.next(),this.match(10)?(this.expect(10),Z.param=this.parseCatchClauseParam(),this.expect(11)):(Z.param=null,this.scope.enter(0)),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(Z,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(_e.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,Z,ie=!1){return this.next(),this.parseVar(e,!1,Z,ie),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Cr),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(_e.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,Z,ie,ae){for(const e of this.state.labels)e.name===Z&&this.raise(_e.LabelRedeclaration,ie,{labelName:Z});const de=function tokenIsLoop(e){return e>=90&&e<=92}(this.state.type)?1:this.match(71)?2:null;for(let Z=this.state.labels.length-1;Z>=0;Z--){const ie=this.state.labels[Z];if(ie.statementStart!==e.start)break;ie.statementStart=this.sourceToOffsetPos(this.state.start),ie.kind=de}return this.state.labels.push({name:Z,kind:de,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&ae?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=ie,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,Z,ie){return e.expression=Z,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,Z=!0,ie){const ae=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),Z&&this.scope.enter(0),this.parseBlockBody(ae,e,!1,8,ie),Z&&this.scope.exit(),this.finishNode(ae,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,Z,ie,ae,de){const ve=e.body=[],be=e.directives=[];this.parseBlockOrModuleBlockBody(ve,Z?be:void 0,ie,ae,de)}parseBlockOrModuleBlockBody(e,Z,ie,ae,de){const ve=this.state.strict;let be=!1,Ce=!1;for(;!this.match(ae);){const ae=ie?this.parseModuleItem():this.parseStatementListItem();if(Z&&!Ce){if(this.isValidDirective(ae)){const e=this.stmtToDirective(ae);Z.push(e),be||"use strict"!==e.value.value||(be=!0,this.setStrict(!0));continue}Ce=!0,this.state.strictErrors.clear()}e.push(ae)}null==de||de.call(this,be),ve||this.setStrict(!1),this.next()}parseFor(e,Z){return e.init=Z,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,Z,ie){const ae=this.match(58);return this.next(),ae?null!==ie&&this.unexpected(ie):e.await=null!==ie,"VariableDeclaration"!==Z.type||null==Z.declarations[0].init||ae&&this.options.annexB&&!this.state.strict&&"var"===Z.kind&&"Identifier"===Z.declarations[0].id.type||this.raise(_e.ForInOfLoopInitializer,Z,{type:ae?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===Z.type&&this.raise(_e.InvalidLhs,Z,{ancestor:{type:"ForStatement"}}),e.left=Z,e.right=ae?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,ae?"ForInStatement":"ForOfStatement")}parseVar(e,Z,ie,ae=!1){const de=e.declarations=[];for(e.kind=ie;;){const e=this.startNode();if(this.parseVarId(e,ie),e.init=this.eat(29)?Z?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||ae||("Identifier"===e.id.type||Z&&(this.match(58)||this.isContextual(102))?"const"!==ie&&"using"!==ie&&"await using"!==ie||this.match(58)||this.isContextual(102)||this.raise(_e.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:ie}):this.raise(_e.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),de.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,Z){const ie=this.parseBindingAtom();"using"===Z||"await using"===Z?"ArrayPattern"!==ie.type&&"ObjectPattern"!==ie.type||this.raise(_e.UsingDeclarationHasBindingPattern,ie.loc.start):"VoidPattern"===ie.type&&this.raise(_e.UnexpectedVoidPattern,ie.loc.start),this.checkLVal(ie,{type:"VariableDeclarator"},"var"===Z?5:8201),e.id=ie}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,Z=0){const ie=2&Z,ae=!!(1&Z),de=ae&&!(4&Z),ve=!!(8&Z);this.initFunction(e,ve),this.match(55)&&(ie&&this.raise(_e.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),ae&&(e.id=this.parseFunctionId(de));const be=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(functionFlags(ve,e.generator)),ae||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,ae?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),ae&&!ie&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=be,e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,Z){this.expect(10),this.expressionScope.enter(function newParameterDeclarationScope(){return new ExpressionScope(3)}()),e.params=this.parseBindingList(11,41,2|(Z?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,Z,ie){this.next();const ae=this.state.strict;return this.state.strict=!0,this.parseClassId(e,Z,ie),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,ae),this.finishNode(e,Z?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,Z){this.classScope.enter();const ie={hadConstructor:!1,hadSuperClass:e};let ae=[];const de=this.startNode();if(de.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(ae.length>0)throw this.raise(_e.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){ae.push(this.parseDecorator());continue}const e=this.startNode();ae.length&&(e.decorators=ae,this.resetStartLocationFromNode(e,ae[0]),ae=[]),this.parseClassMember(de,e,ie),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(_e.DecoratorConstructor,e)}}),this.state.strict=Z,this.next(),ae.length)throw this.raise(_e.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(de,"ClassBody")}parseClassMemberFromModifier(e,Z){const ie=this.parseIdentifier(!0);if(this.isClassMethod()){const ae=Z;return ae.kind="method",ae.computed=!1,ae.key=ie,ae.static=!1,this.pushClassMethod(e,ae,!1,!1,!1,!1),!0}if(this.isClassProperty()){const ae=Z;return ae.computed=!1,ae.key=ie,ae.static=!1,e.body.push(this.parseClassProperty(ae)),!0}return this.resetPreviousNodeTrailingComments(ie),!1}parseClassMember(e,Z,ie){const ae=this.isContextual(106);if(ae){if(this.parseClassMemberFromModifier(e,Z))return;if(this.eat(5))return void this.parseClassStaticBlock(e,Z)}this.parseClassMemberWithIsStatic(e,Z,ie,ae)}parseClassMemberWithIsStatic(e,Z,ie,ae){const de=Z,ve=Z,be=Z,Ce=Z,ke=Z,Ie=de,Fe=de;if(Z.static=ae,this.parsePropertyNamePrefixOperator(Z),this.eat(55)){Ie.kind="method";const Z=this.match(139);return this.parseClassElementName(Ie),this.parsePostMemberNameModifiers(Ie),Z?void this.pushClassPrivateMethod(e,ve,!0,!1):(this.isNonstaticConstructor(de)&&this.raise(_e.ConstructorIsGenerator,de.key),void this.pushClassMethod(e,de,!0,!1,!1,!1))}const Oe=!this.state.containsEsc&&tokenIsIdentifier(this.state.type),Be=this.parseClassElementName(Z),Me=Oe?Be.name:null,qe=this.isPrivateName(Be),Ve=this.state.startLoc;if(this.parsePostMemberNameModifiers(Fe),this.isClassMethod()){if(Ie.kind="method",qe)return void this.pushClassPrivateMethod(e,ve,!1,!1);const ae=this.isNonstaticConstructor(de);let be=!1;ae&&(de.kind="constructor",ie.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(_e.DuplicateConstructor,Be),ae&&this.hasPlugin("typescript")&&Z.override&&this.raise(_e.OverrideOnConstructor,Be),ie.hadConstructor=!0,be=ie.hadSuperClass),this.pushClassMethod(e,de,!1,!1,ae,be)}else if(this.isClassProperty())qe?this.pushClassPrivateProperty(e,Ce):this.pushClassProperty(e,be);else if("async"!==Me||this.isLineTerminator())if("get"!==Me&&"set"!==Me||this.match(55)&&this.isLineTerminator())if("accessor"!==Me||this.isLineTerminator())this.isLineTerminator()?qe?this.pushClassPrivateProperty(e,Ce):this.pushClassProperty(e,be):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Be);const Z=this.match(139);this.parseClassElementName(be),this.pushClassAccessorProperty(e,ke,Z)}else{this.resetPreviousNodeTrailingComments(Be),Ie.kind=Me;const Z=this.match(139);this.parseClassElementName(de),Z?this.pushClassPrivateMethod(e,ve,!1,!1):(this.isNonstaticConstructor(de)&&this.raise(_e.ConstructorIsAccessor,de.key),this.pushClassMethod(e,de,!1,!1,!1,!1)),this.checkGetterSetterParams(de)}else{this.resetPreviousNodeTrailingComments(Be);const Z=this.eat(55);Fe.optional&&this.unexpected(Ve),Ie.kind="method";const ie=this.match(139);this.parseClassElementName(Ie),this.parsePostMemberNameModifiers(Fe),ie?this.pushClassPrivateMethod(e,ve,Z,!0):(this.isNonstaticConstructor(de)&&this.raise(_e.ConstructorIsAsync,de.key),this.pushClassMethod(e,de,Z,!0,!1,!1))}}parseClassElementName(e){const{type:Z,value:ie}=this.state;if(132!==Z&&134!==Z||!e.static||"prototype"!==ie||this.raise(_e.StaticPrototype,this.state.startLoc),139===Z){"constructor"===ie&&this.raise(_e.ConstructorClassPrivateField,this.state.startLoc);const Z=this.parsePrivateName();return e.key=Z,Z}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,Z){var ie;this.scope.enter(720);const ae=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const de=Z.body=[];this.parseBlockOrModuleBlockBody(de,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=ae,e.body.push(this.finishNode(Z,"StaticBlock")),null!=(ie=Z.decorators)&&ie.length&&this.raise(_e.DecoratorStaticBlock,Z)}pushClassProperty(e,Z){!Z.computed&&this.nameIsConstructor(Z.key)&&this.raise(_e.ConstructorClassField,Z.key),e.body.push(this.parseClassProperty(Z))}pushClassPrivateProperty(e,Z){const ie=this.parseClassPrivateProperty(Z);e.body.push(ie),this.classScope.declarePrivateName(this.getPrivateNameSV(ie.key),0,ie.key.loc.start)}pushClassAccessorProperty(e,Z,ie){ie||Z.computed||!this.nameIsConstructor(Z.key)||this.raise(_e.ConstructorClassField,Z.key);const ae=this.parseClassAccessorProperty(Z);e.body.push(ae),ie&&this.classScope.declarePrivateName(this.getPrivateNameSV(ae.key),0,ae.key.loc.start)}pushClassMethod(e,Z,ie,ae,de,ve){e.body.push(this.parseMethod(Z,ie,ae,de,ve,"ClassMethod",!0))}pushClassPrivateMethod(e,Z,ie,ae){const de=this.parseMethod(Z,ie,ae,!1,!1,"ClassPrivateMethod",!0);e.body.push(de);const ve="get"===de.kind?de.static?6:2:"set"===de.kind?de.static?5:1:0;this.declareClassPrivateMethodInScope(de,ve)}declareClassPrivateMethodInScope(e,Z){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),Z,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,Z,ie,ae=8331){if(tokenIsIdentifier(this.state.type))e.id=this.parseIdentifier(),Z&&this.declareNameFromIdentifier(e.id,ae);else{if(!ie&&Z)throw this.raise(_e.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,Z){const ie=this.parseMaybeImportPhase(e,!0),ae=this.maybeParseExportDefaultSpecifier(e,ie),de=!ae||this.eat(12),ve=de&&this.eatExportStar(e),be=ve&&this.maybeParseExportNamespaceSpecifier(e),Ce=de&&(!be||this.eat(12)),ke=ae||ve;if(ve&&!be){if(ae&&this.unexpected(),Z)throw this.raise(_e.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const Ie=this.maybeParseExportNamedSpecifiers(e);let Fe;if(ae&&de&&!ve&&!Ie&&this.unexpected(null,5),be&&Ce&&this.unexpected(null,98),ke||Ie){if(Fe=!1,Z)throw this.raise(_e.UnsupportedDecoratorExport,e);this.parseExportFrom(e,ke)}else Fe=this.maybeParseExportDeclaration(e);if(ke||Ie||Fe){var Oe;const ie=e;if(this.checkExport(ie,!0,!1,!!ie.source),"ClassDeclaration"===(null==(Oe=ie.declaration)?void 0:Oe.type))this.maybeTakeDecorators(Z,ie.declaration,ie);else if(Z)throw this.raise(_e.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(ie,"ExportNamedDeclaration")}if(this.eat(65)){const ie=e,ae=this.parseExportDefaultExpression();if(ie.declaration=ae,"ClassDeclaration"===ae.type)this.maybeTakeDecorators(Z,ae,ie);else if(Z)throw this.raise(_e.UnsupportedDecoratorExport,e);return this.checkExport(ie,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(ie,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,Z){if(Z||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==Z?void 0:Z.loc.start);const ie=Z||this.parseIdentifier(!0),ae=this.startNodeAtNode(ie);return ae.exported=ie,e.specifiers=[this.finishNode(ae,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var Z;null!=(Z=e).specifiers||(Z.specifiers=[]);const ie=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),ie.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(ie,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const Z=e;Z.specifiers||(Z.specifiers=[]);const ie="type"===Z.exportKind;return Z.specifiers.push(...this.parseExportSpecifiers(ie)),Z.source=null,this.hasPlugin("importAssertions")?Z.assertions=[]:Z.attributes=[],Z.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(_e.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(_e.UnsupportedDefaultExport,this.state.startLoc);const Z=this.parseMaybeAssignAllowIn();return this.semicolon(),Z}parseExportDeclaration(e){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),Z=this.input.charCodeAt(e);if(123===Z||this.chStartsBindingIdentifier(Z,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const Z=this.nextTokenStart(),ie=this.isUnparsedContextual(Z,"from");if(44===this.input.charCodeAt(Z)||tokenIsIdentifier(this.state.type)&&ie)return!0;if(this.match(65)&&ie){const e=this.input.charCodeAt(this.nextTokenStartSince(Z+4));return 34===e||39===e}return!1}parseExportFrom(e,Z){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):Z&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(_e.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(_e.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,Z,ie,ae){var de;if(Z)if(ie){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var ve;const Z=e.declaration;"Identifier"!==Z.type||"from"!==Z.name||Z.end-Z.start!==4||null!=(ve=Z.extra)&&ve.parenthesized||this.raise(_e.ExportDefaultFromAsIdentifier,Z)}}else if(null!=(de=e.specifiers)&&de.length)for(const Z of e.specifiers){const{exported:e}=Z,ie="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(Z,ie),!ae&&Z.local){const{local:e}=Z;"Identifier"!==e.type?this.raise(_e.ExportBindingIsString,Z,{localName:e.value,exportName:ie}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const Z=e.declaration;if("FunctionDeclaration"===Z.type||"ClassDeclaration"===Z.type){const{id:ie}=Z;if(!ie)throw new Error("Assertion failure");this.checkDuplicateExports(e,ie.name)}else if("VariableDeclaration"===Z.type)for(const e of Z.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const Z of e.properties)this.checkDeclaration(Z);else if("ArrayPattern"===e.type)for(const Z of e.elements)Z&&this.checkDeclaration(Z);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,Z){this.exportedIdentifiers.has(Z)&&("default"===Z?this.raise(_e.DuplicateDefaultExport,e):this.raise(_e.DuplicateExport,e,{exportName:Z})),this.exportedIdentifiers.add(Z)}parseExportSpecifiers(e){const Z=[];let ie=!0;for(this.expect(5);!this.eat(8);){if(ie)ie=!1;else if(this.expect(12),this.eat(8))break;const ae=this.isContextual(130),de=this.match(134),ve=this.startNode();ve.local=this.parseModuleExportName(),Z.push(this.parseExportSpecifier(ve,de,e,ae))}return Z}parseExportSpecifier(e,Z,ie,ae){return this.eatContextual(93)?e.exported=this.parseModuleExportName():Z?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),Z=Tr.exec(e.value);return Z&&this.raise(_e.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:Z[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:Z})=>"json"===Z.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:Z}=e,ie=1===Z.length?Z[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==ie&&this.raise(_e.SourcePhaseImportRequiresDefault,Z[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==ie&&this.raise(_e.DeferImportRequiresNamespace,Z[0].loc.start);else if(e.module){var ae;"ImportDefaultSpecifier"!==ie&&this.raise(_e.ImportReflectionNotBinding,Z[0].loc.start),(null==(ae=e.assertions)?void 0:ae.length)>0&&this.raise(_e.ImportReflectionHasAssertion,Z[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:Z}=e;if(null!=Z){const e=Z.find(e=>{let Z;if("ExportSpecifier"===e.type?Z=e.local:"ImportSpecifier"===e.type&&(Z=e.imported),void 0!==Z)return"Identifier"===Z.type?"default"!==Z.name:"default"!==Z.value});void 0!==e&&this.raise(_e.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,Z,ie,ae){Z||("module"===ie?(this.expectPlugin("importReflection",ae),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===ie?(this.expectPlugin("sourcePhaseImports",ae),e.phase="source"):"defer"===ie?(this.expectPlugin("deferredImportEvaluation",ae),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,Z){if(!this.isPotentialImportPhase(Z))return this.applyImportPhase(e,Z,null),null;const ie=this.startNode(),ae=this.parseIdentifierName(!0),{type:de}=this.state;return(tokenIsKeywordOrIdentifier(de)?98!==de||102===this.lookaheadCharCode():12!==de)?(this.applyImportPhase(e,Z,ae,ie.loc.start),null):(this.applyImportPhase(e,Z,null),this.createIdentifier(ie,ae))}isPrecedingIdImportPhase(e){const{type:Z}=this.state;return tokenIsIdentifier(Z)?98!==Z||102===this.lookaheadCharCode():12!==Z}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,Z){e.specifiers=[];const ie=!this.maybeParseDefaultImportSpecifier(e,Z)||this.eat(12),ae=ie&&this.maybeParseStarImportSpecifier(e);return ie&&!ae&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,Z,ie){Z.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(Z,ie))}finishImportSpecifier(e,Z,ie=8201){return this.checkLVal(e.local,{type:Z},ie),this.finishNode(e,Z)}parseImportAttributes(){this.expect(5);const e=[],Z=new Set;do{if(this.match(8))break;const ie=this.startNode(),ae=this.state.value;if(Z.has(ae)&&this.raise(_e.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:ae}),Z.add(ae),this.match(134)?ie.key=this.parseStringLiteral(ae):ie.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_e.ModuleAttributeInvalidValue,this.state.startLoc);ie.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(ie,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],Z=new Set;do{const ie=this.startNode();if(ie.key=this.parseIdentifier(!0),"type"!==ie.key.name&&this.raise(_e.ModuleAttributeDifferentFromType,ie.key),Z.has(ie.key.name)&&this.raise(_e.ModuleAttributesWithDuplicateKeys,ie.key,{key:ie.key.name}),Z.add(ie.key.name),this.expect(14),!this.match(134))throw this.raise(_e.ModuleAttributeInvalidValue,this.state.startLoc);ie.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(ie,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let Z;var ie=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(Z=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):Z=this.parseImportAttributes(),ie=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(_e.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),Z=this.parseImportAttributes()):Z=[];!ie&&this.hasPlugin("importAssertions")?e.assertions=Z:e.attributes=Z}maybeParseDefaultImportSpecifier(e,Z){if(Z){const ie=this.startNodeAtNode(Z);return ie.local=Z,e.specifiers.push(this.finishImportSpecifier(ie,"ImportDefaultSpecifier")),!0}return!!tokenIsKeywordOrIdentifier(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const Z=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,Z,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let Z=!0;for(this.expect(5);!this.eat(8);){if(Z)Z=!1;else{if(this.eat(14))throw this.raise(_e.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const ie=this.startNode(),ae=this.match(134),de=this.isContextual(130);ie.imported=this.parseModuleExportName();const ve=this.parseImportSpecifier(ie,ae,"type"===e.importKind||"typeof"===e.importKind,de,void 0);e.specifiers.push(ve)}}parseImportSpecifier(e,Z,ie,ae,de){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:ie}=e;if(Z)throw this.raise(_e.ImportBindingIsString,e,{importName:ie.value});this.checkReservedWord(ie.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(ie))}return this.finishImportSpecifier(e,"ImportSpecifier",de)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Parser extends StatementParser{constructor(e,Z,ie){super(e=function getOptions(e){const Z={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};if(null==e)return Z;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const ie of Object.keys(Z))null!=e[ie]&&(Z[ie]=e[ie]);if(1===Z.startLine)null==e.startIndex&&Z.startColumn>0?Z.startIndex=Z.startColumn:null==e.startColumn&&Z.startIndex>0&&(Z.startColumn=Z.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===Z.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return Z}(e),Z),this.options=e,this.initializeScopes(),this.plugins=ie,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let ae=0;e.allowAwaitOutsideFunction&&(ae|=1),e.allowReturnOutsideFunction&&(ae|=2),e.allowImportExportEverywhere&&(ae|=8),e.allowSuperOutsideMethod&&(ae|=16),e.allowUndeclaredExports&&(ae|=64),e.allowNewTargetOutsideFunction&&(ae|=4),e.allowYieldOutsideFunction&&(ae|=32),e.ranges&&(ae|=128),e.tokens&&(ae|=256),e.createImportExpressions&&(ae|=512),e.createParenthesizedExpressions&&(ae|=1024),e.errorRecovery&&(ae|=2048),e.attachComment&&(ae|=4096),e.annexB&&(ae|=8192),this.optionFlags=ae}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode(),Z=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,Z),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const Pr=function generateExportedTokenTypes(e){const Z={};for(const ie of Object.keys(e))Z[ie]=getExportedToken(e[ie]);return Z}(yt);function getParser(e,Z){let ie=Parser;const ae=new Map;if(null!=e&&e.plugins){for(const Z of e.plugins){let e,ie;"string"==typeof Z?e=Z:[e,ie]=Z,ae.has(e)||ae.set(e,ie||{})}!function validatePlugins(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const Z=e.get("decorators").decoratorsBeforeExport;if(null!=Z&&"boolean"!=typeof Z)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const ie=e.get("decorators").allowCallParenthesized;if(null!=ie&&"boolean"!=typeof ie)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var Z;const ae=e.get("pipelineOperator").proposal;if(!pr.includes(ae)){const e=pr.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===ae){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const Z=e.get("pipelineOperator").topicToken;if(!fr.includes(Z)){const e=fr.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}var ie;if("#"===Z&&"hash"===(null==(ie=e.get("recordAndTuple"))?void 0:ie.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===ae&&"hash"===(null==(Z=e.get("recordAndTuple"))?void 0:Z.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){const Z=e.get("recordAndTuple").syntaxType;if(null!=Z){const e=["hash","bar"];if(!e.includes(Z))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(e=>`'${e}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(ae),ie=function getParserClass(e){const Z=[];for(const ie of Er)e.has(ie)&&Z.push(ie);const ie=Z.join("|");let ae=kr.get(ie);if(!ae){ae=Parser;for(const e of Z)ae=br[e](ae);kr.set(ie,ae)}return ae}(ae)}return new ie(e,Z,ae)}const kr=new Map;Z.parse=function parse(e,Z){var ie;if("unambiguous"!==(null==(ie=Z)?void 0:ie.sourceType))return getParser(Z,e).parse();Z=Object.assign({},Z);try{Z.sourceType="module";const ie=getParser(Z,e),ae=ie.parse();if(ie.sawUnambiguousESM)return ae;if(ie.ambiguousScriptDifferentAst)try{return Z.sourceType="script",getParser(Z,e).parse()}catch(e){}else ae.program.sourceType="script";return ae}catch(ie){try{return Z.sourceType="script",getParser(Z,e).parse()}catch(e){}throw ie}},Z.parseExpression=function parseExpression(e,Z){const ie=getParser(Z,e);return ie.options.strictMode&&(ie.state.strict=!0),ie.getExpression()},Z.tokTypes=Pr});unwrapExports(ur);var lr=ur.parse,pr=ur.parseExpression;ur.tokTypes;var fr=",".charCodeAt(0),br=";".charCodeAt(0),Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cr=new Uint8Array(64),Ar=new Uint8Array(128);for(let e=0;e<64;e++){const Z=Er.charCodeAt(e);Cr[e]=Z,Ar[Z]=e}function decodeInteger(e,Z){let ie=0,ae=0,de=0;do{const Z=e.next();de=Ar[Z],ie|=(31&de)<<ae,ae+=5}while(32&de);const ve=1&ie;return ie>>>=1,ve&&(ie=-2147483648|-ie),Z+ie}function encodeInteger(e,Z,ie){let ae=Z-ie;ae=ae<0?-ae<<1|1:ae<<1;do{let Z=31&ae;ae>>>=5,ae>0&&(Z|=32),e.write(Cr[Z])}while(ae>0);return Z}function hasMoreVlq(e,Z){return!(e.pos>=Z)&&e.peek()!==fr}var Tr="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let Z="";for(let ie=0;ie<e.length;ie++)Z+=String.fromCharCode(e[ie]);return Z}},Sr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:Z}=this;Z[this.pos++]=e,16384===this.pos&&(this.out+=Tr.decode(Z),this.pos=0)}flush(){const{buffer:e,out:Z,pos:ie}=this;return ie>0?Z+Tr.decode(e.subarray(0,ie)):Z}},Pr=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:Z,pos:ie}=this,ae=Z.indexOf(e,ie);return-1===ae?Z.length:ae}};function sort(e){e.sort(sortComparator$1)}function sortComparator$1(e,Z){return e[0]-Z[0]}function encode$3(e){const Z=new Sr;let ie=0,ae=0,de=0,ve=0;for(let be=0;be<e.length;be++){const Ce=e[be];if(be>0&&Z.write(br),0===Ce.length)continue;let ke=0;for(let e=0;e<Ce.length;e++){const be=Ce[e];e>0&&Z.write(fr),ke=encodeInteger(Z,be[0],ke),1!==be.length&&(ie=encodeInteger(Z,be[1],ie),ae=encodeInteger(Z,be[2],ae),de=encodeInteger(Z,be[3],de),4!==be.length&&(ve=encodeInteger(Z,be[4],ve)))}}return Z.flush()}const kr=/^[\w+.-]+:\/\//,Ir=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Nr=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsolutePath(e){return e.startsWith("/")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const Z=Ir.exec(e);return makeUrl(Z[1],Z[2]||"",Z[3],Z[4]||"",Z[5]||"/",Z[6]||"",Z[7]||"")}function makeUrl(e,Z,ie,ae,de,ve,be){return{scheme:e,user:Z,host:ie,port:ae,path:de,query:ve,hash:be,type:7}}function parseUrl$2(e){if(function isSchemeRelativeUrl(e){return e.startsWith("//")}(e)){const Z=parseAbsoluteUrl("http:"+e);return Z.scheme="",Z.type=6,Z}if(isAbsolutePath(e)){const Z=parseAbsoluteUrl("http://foo.com"+e);return Z.scheme="",Z.host="",Z.type=5,Z}if(function isFileUrl(e){return e.startsWith("file:")}(e))return function parseFileUrl(e){const Z=Nr.exec(e),ie=Z[2];return makeUrl("file:","",Z[1]||"","",isAbsolutePath(ie)?ie:"/"+ie,Z[3]||"",Z[4]||"")}(e);if(function isAbsoluteUrl(e){return kr.test(e)}(e))return parseAbsoluteUrl(e);const Z=parseAbsoluteUrl("http://foo.com/"+e);return Z.scheme="",Z.host="",Z.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,Z}function normalizePath(e,Z){const ie=Z<=4,ae=e.path.split("/");let de=1,ve=0,be=!1;for(let e=1;e<ae.length;e++){const Z=ae[e];Z?(be=!1,"."!==Z&&(".."!==Z?(ae[de++]=Z,ve++):ve?(be=!0,ve--,de--):ie&&(ae[de++]=Z))):be=!0}let Ce="";for(let e=1;e<de;e++)Ce+="/"+ae[e];(!Ce||be&&!Ce.endsWith("/.."))&&(Ce+="/"),e.path=Ce}function resolve$1(e,Z){if(!e&&!Z)return"";const ie=parseUrl$2(e);let ae=ie.type;if(Z&&7!==ae){const e=parseUrl$2(Z),de=e.type;switch(ae){case 1:ie.hash=e.hash;case 2:ie.query=e.query;case 3:case 4:!function mergePaths(e,Z){normalizePath(Z,Z.type),"/"===e.path?e.path=Z.path:e.path=function stripPathFilename(e){if(e.endsWith("/.."))return e;const Z=e.lastIndexOf("/");return e.slice(0,Z+1)}(Z.path)+e.path}(ie,e);case 5:ie.user=e.user,ie.host=e.host,ie.port=e.port;case 6:ie.scheme=e.scheme}de>ae&&(ae=de)}normalizePath(ie,ae);const de=ie.query+ie.hash;switch(ae){case 2:case 3:return de;case 4:{const ae=ie.path.slice(1);return ae?isRelative(Z||e)&&!isRelative(ae)?"./"+ae+de:ae+de:de||"."}case 5:return ie.path+de;default:return ie.scheme+"//"+ie.user+ie.host+ie.port+ie.path+de}}function nextUnsortedSegmentLine(e,Z){for(let ie=Z;ie<e.length;ie++)if(!isSorted(e[ie]))return ie;return e.length}function isSorted(e){for(let Z=1;Z<e.length;Z++)if(e[Z][0]<e[Z-1][0])return!1;return!0}function sortSegments(e,Z){return Z||(e=e.slice()),e.sort(sortComparator)}function sortComparator(e,Z){return e[0]-Z[0]}var Or=!1;function upperBound(e,Z,ie){for(let ae=ie+1;ae<e.length&&e[ae][0]===Z;ie=ae++);return ie}function lowerBound(e,Z,ie){for(let ae=ie-1;ae>=0&&e[ae][0]===Z;ie=ae--);return ie}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,Z,ie,ae){const{lastKey:de,lastNeedle:ve,lastIndex:be}=ie;let Ce=0,ke=e.length-1;if(ae===de){if(Z===ve)return Or=-1!==be&&e[be][0]===Z,be;Z>=ve?Ce=-1===be?0:be:ke=be}return ie.lastKey=ae,ie.lastNeedle=Z,ie.lastIndex=function binarySearch$1(e,Z,ie,ae){for(;ie<=ae;){const de=ie+(ae-ie>>1),ve=e[de][0]-Z;if(0===ve)return Or=!0,de;ve<0?ie=de+1:ae=de-1}return Or=!1,ie-1}(e,Z,Ce,ke)}function insert$1(e,Z,ie){for(let ie=e.length;ie>Z;ie--)e[ie]=e[ie-1];e[Z]=ie}function buildNullArray(){return{__proto__:null}}function parse$3(e){return"string"==typeof e?JSON.parse(e):e}var FlattenMap=function(e,Z){const ie=parse$3(e);if(!("sections"in ie))return new jr(ie,Z);const ae=[],de=[],ve=[],be=[],Ce=[];recurse(ie,Z,ae,de,ve,be,Ce,0,0,1/0,1/0);return presortedDecodedMap({version:3,file:ie.file,names:be,sources:de,sourcesContent:ve,mappings:ae,ignoreList:Ce})};function recurse(e,Z,ie,ae,de,ve,be,Ce,ke,Ie,_e){const{sections:Fe}=e;for(let e=0;e<Fe.length;e++){const{map:Oe,offset:Be}=Fe[e];let Me=Ie,qe=_e;if(e+1<Fe.length){const Z=Fe[e+1].offset;Me=Math.min(Ie,Ce+Z.line),Me===Ie?qe=Math.min(_e,ke+Z.column):Me<Ie&&(qe=ke+Z.column)}addSection(Oe,Z,ie,ae,de,ve,be,Ce+Be.line,ke+Be.column,Me,qe)}}function addSection(e,Z,ie,ae,de,ve,be,Ce,ke,Ie,_e){const Fe=parse$3(e);if("sections"in Fe)return recurse(...arguments);const Oe=new jr(Fe,Z),Be=ae.length,Me=ve.length,qe=decodedMappings(Oe),{resolvedSources:Ve,sourcesContent:Ze,ignoreList:et}=Oe;if(append(ae,Ve),append(ve,Oe.names),Ze)append(de,Ze);else for(let e=0;e<Ve.length;e++)de.push(null);if(et)for(let e=0;e<et.length;e++)be.push(et[e]+Be);for(let e=0;e<qe.length;e++){const Z=Ce+e;if(Z>Ie)return;const ae=getLine(ie,Z),de=0===e?ke:0,ve=qe[e];for(let e=0;e<ve.length;e++){const ie=ve[e],be=de+ie[0];if(Z===Ie&&be>=_e)return;if(1===ie.length){ae.push([be]);continue}const Ce=Be+ie[1],ke=ie[2],Fe=ie[3];ae.push(4===ie.length?[be,Ce,ke,Fe]:[be,Ce,ke,Fe,Me+ie[4]])}}}function append(e,Z){for(let ie=0;ie<Z.length;ie++)e.push(Z[ie])}function getLine(e,Z){for(let ie=e.length;ie<=Z;ie++)e[ie]=[];return e[Z]}var Br="`line` must be greater than 0 (lines start at line 1)",Mr="`column` must be greater than or equal to 0 (columns start at column 0)",jr=class{constructor(e,Z){const ie="string"==typeof e;if(!ie&&e._decodedMemo)return e;const ae=parse$3(e),{version:de,file:ve,names:be,sourceRoot:Ce,sources:ke,sourcesContent:Ie}=ae;this.version=de,this.file=ve,this.names=be||[],this.sourceRoot=Ce,this.sources=ke,this.sourcesContent=Ie,this.ignoreList=ae.ignoreList||ae.x_google_ignoreList||void 0;const _e=function resolver(e,Z){const ie=function stripFilename(e){if(!e)return"";const Z=e.lastIndexOf("/");return e.slice(0,Z+1)}(e),ae=Z?Z+"/":"";return e=>resolve$1(ae+(e||""),ie)}(Z,Ce);this.resolvedSources=ke.map(_e);const{mappings:Fe}=ae;if("string"==typeof Fe)this._encoded=Fe,this._decoded=void 0;else{if(!Array.isArray(Fe))throw ae.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(ae)}`);this._encoded=void 0,this._decoded=function maybeSort(e,Z){const ie=nextUnsortedSegmentLine(e,0);if(ie===e.length)return e;Z||(e=e.slice());for(let ae=ie;ae<e.length;ae=nextUnsortedSegmentLine(e,ae+1))e[ae]=sortSegments(e[ae],Z);return e}(Fe,ie)}this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function encodedMappings(e){var Z,ie;return null!=(ie=(Z=e)._encoded)?ie:Z._encoded=encode$3(e._decoded)}function decodedMappings(e){var Z;return(Z=e)._decoded||(Z._decoded=function decode$3(e){const{length:Z}=e,ie=new Pr(e),ae=[];let de=0,ve=0,be=0,Ce=0,ke=0;do{const e=ie.indexOf(";"),Z=[];let Ie=!0,_e=0;for(de=0;ie.pos<e;){let ae;de=decodeInteger(ie,de),de<_e&&(Ie=!1),_e=de,hasMoreVlq(ie,e)?(ve=decodeInteger(ie,ve),be=decodeInteger(ie,be),Ce=decodeInteger(ie,Ce),hasMoreVlq(ie,e)?(ke=decodeInteger(ie,ke),ae=[de,ve,be,Ce,ke]):ae=[de,ve,be,Ce]):ae=[de],Z.push(ae),ie.pos++}Ie||sort(Z),ae.push(Z),ie.pos=e+1}while(ie.pos<=Z);return ae}(e._encoded))}function sourceIndex(e,Z){const{sources:ie,resolvedSources:ae}=e;let de=ie.indexOf(Z);return-1===de&&(de=ae.indexOf(Z)),de}function presortedDecodedMap(e,Z){const ie=new jr(clone$1(e,[]),Z);return ie._decoded=e.mappings,ie}function clone$1(e,Z){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:Z,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,Z,ie,ae){return{source:e,line:Z,column:ie,name:ae}}function GMapping(e,Z){return{line:e,column:Z}}function traceSegmentInternal(e,Z,ie,ae,de){let ve=memoizedBinarySearch(e,ae,Z,ie);return Or?ve=(-1===de?upperBound:lowerBound)(e,ae,ve):-1===de&&ve++,-1===ve||ve===e.length?-1:ve}function generatedPosition(e,Z,ie,ae,de,ve){var be;if(--ie<0)throw new Error(Br);if(ae<0)throw new Error(Mr);const{sources:Ce,resolvedSources:ke}=e;let Ie=Ce.indexOf(Z);if(-1===Ie&&(Ie=ke.indexOf(Z)),-1===Ie)return ve?[]:GMapping(null,null);const _e=(be=e)._bySources||(be._bySources=function buildBySources(e,Z){const ie=Z.map(buildNullArray);for(let ae=0;ae<e.length;ae++){const de=e[ae];for(let e=0;e<de.length;e++){const ve=de[e];if(1===ve.length)continue;const be=ve[1],Ce=ve[2],ke=ve[3],Ie=ie[be],_e=Ie[Ce]||(Ie[Ce]=[]),Fe=Z[be];let Oe=upperBound(_e,ke,memoizedBinarySearch(_e,ke,Fe,Ce));Fe.lastIndex=++Oe,insert$1(_e,Oe,[ke,ae,ve[0]])}}return ie}(decodedMappings(e),e._bySourceMemos=Ce.map(memoizedState))),Fe=_e[Ie][ie];if(null==Fe)return ve?[]:GMapping(null,null);const Oe=e._bySourceMemos[Ie];if(ve)return function sliceGeneratedPositions(e,Z,ie,ae,de){let ve=traceSegmentInternal(e,Z,ie,ae,1);if(Or||-1!==de||ve++,-1===ve||ve===e.length)return[];const be=Or?ae:e[ve][0];Or||(ve=lowerBound(e,be,ve));const Ce=upperBound(e,be,ve),ke=[];for(;ve<=Ce;ve++){const Z=e[ve];ke.push(GMapping(Z[1]+1,Z[2]))}return ke}(Fe,Oe,ie,ae,de);const Be=traceSegmentInternal(Fe,Oe,ie,ae,de);if(-1===Be)return GMapping(null,null);const Me=Fe[Be];return GMapping(Me[1]+1,Me[2])}var Rr=Object.freeze({__proto__:null,AnyMap:FlattenMap,FlattenMap:FlattenMap,GREATEST_LOWER_BOUND:1,LEAST_UPPER_BOUND:-1,TraceMap:jr,allGeneratedPositionsFor:function allGeneratedPositionsFor(e,Z){const{source:ie,line:ae,column:de,bias:ve}=Z;return generatedPosition(e,ie,ae,de,ve||-1,!0)},decodedMap:function decodedMap(e){return clone$1(e,decodedMappings(e))},decodedMappings:decodedMappings,eachMapping:function eachMapping(e,Z){const ie=decodedMappings(e),{names:ae,resolvedSources:de}=e;for(let e=0;e<ie.length;e++){const ve=ie[e];for(let ie=0;ie<ve.length;ie++){const be=ve[ie],Ce=e+1,ke=be[0];let Ie=null,_e=null,Fe=null,Oe=null;1!==be.length&&(Ie=de[be[1]],_e=be[2]+1,Fe=be[3]),5===be.length&&(Oe=ae[be[4]]),Z({generatedLine:Ce,generatedColumn:ke,source:Ie,originalLine:_e,originalColumn:Fe,name:Oe})}}},encodedMap:function encodedMap(e){return clone$1(e,encodedMappings(e))},encodedMappings:encodedMappings,generatedPositionFor:function generatedPositionFor(e,Z){const{source:ie,line:ae,column:de,bias:ve}=Z;return generatedPosition(e,ie,ae,de,ve||1,!1)},isIgnored:function isIgnored(e,Z){const{ignoreList:ie}=e;if(null==ie)return!1;const ae=sourceIndex(e,Z);return-1!==ae&&ie.includes(ae)},originalPositionFor:function originalPositionFor(e,Z){let{line:ie,column:ae,bias:de}=Z;if(ie--,ie<0)throw new Error(Br);if(ae<0)throw new Error(Mr);const ve=decodedMappings(e);if(ie>=ve.length)return OMapping(null,null,null,null);const be=ve[ie],Ce=traceSegmentInternal(be,e._decodedMemo,ie,ae,de||1);if(-1===Ce)return OMapping(null,null,null,null);const ke=be[Ce];if(1===ke.length)return OMapping(null,null,null,null);const{names:Ie,resolvedSources:_e}=e;return OMapping(_e[ke[1]],ke[2]+1,ke[3],5===ke.length?Ie[ke[4]]:null)},presortedDecodedMap:presortedDecodedMap,sourceContentFor:function sourceContentFor(e,Z){const{sourcesContent:ie}=e;if(null==ie)return null;const ae=sourceIndex(e,Z);return-1===ae?null:ie[ae]},traceSegment:function traceSegment(e,Z,ie){const ae=decodedMappings(e);if(Z>=ae.length)return null;const de=ae[Z],ve=traceSegmentInternal(de,e._decodedMemo,Z,ie,1);return-1===ve?null:de[ve]}}),Gr=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function get$1(e,Z){return e._indexes[Z]}function put(e,Z){const ie=get$1(e,Z);if(void 0!==ie)return ie;const{array:ae,_indexes:de}=e,ve=ae.push(Z);return de[Z]=ve-1}var Wr=class{constructor({file:e,sourceRoot:Z}={}){this._names=new Gr,this._sources=new Gr,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=Z,this._ignoreList=new Gr}};function toDecodedMap(e){const{_mappings:Z,_sources:ie,_sourcesContent:ae,_names:de,_ignoreList:ve}=e;return function removeEmptyFinalLines(e){const{length:Z}=e;let ie=Z;for(let Z=ie-1;Z>=0&&!(e[Z].length>0);ie=Z,Z--);ie<Z&&(e.length=ie)}(Z),{version:3,file:e.file||void 0,names:de.array,sourceRoot:e.sourceRoot||void 0,sources:ie.array,sourcesContent:ae,mappings:Z,ignoreList:ve.array}}function addSegmentInternal(e,Z,ie,ae,de,ve,be,Ce,ke){const{_mappings:Ie,_sources:_e,_sourcesContent:Fe,_names:Oe}=Z,Be=function getIndex(e,Z){for(let ie=e.length;ie<=Z;ie++)e[ie]=[];return e[Z]}(Ie,ie),Me=function getColumnIndex(e,Z){let ie=e.length;for(let ae=ie-1;ae>=0;ie=ae--){if(Z>=e[ae][0])break}return ie}(Be,ae);if(!de){if(e&&function skipSourceless(e,Z){if(0===Z)return!0;const ie=e[Z-1];return 1===ie.length}(Be,Me))return;return insert(Be,Me,[ae])}const qe=put(_e,de),Ve=Ce?put(Oe,Ce):-1;if(qe===Fe.length&&(Fe[qe]=null!=ke?ke:null),!e||!function skipSource(e,Z,ie,ae,de,ve){if(0===Z)return!1;const be=e[Z-1];return 1!==be.length&&(ie===be[1]&&ae===be[2]&&de===be[3]&&ve===(5===be.length?be[4]:-1))}(Be,Me,qe,ve,be,Ve))return insert(Be,Me,Ce?[ae,qe,ve,be,Ve]:[ae,qe,ve,be])}function insert(e,Z,ie){for(let ie=e.length;ie>Z;ie--)e[ie]=e[ie-1];e[Z]=ie}function putAll(e,Z){for(let ie=0;ie<Z.length;ie++)put(e,Z[ie])}function addMappingInternal(e,Z,ie){const{generated:ae,source:de,original:ve,name:be,content:Ce}=ie;return de?addSegmentInternal(e,Z,ae.line-1,ae.column,de,ve.line-1,ve.column,be,Ce):addSegmentInternal(e,Z,ae.line-1,ae.column,null,null,null,null,null)}var Jr=Object.freeze({__proto__:null,GenMapping:Wr,addMapping:function addMapping(e,Z){return addMappingInternal(!1,e,Z)},addSegment:function addSegment(e,Z,ie,ae,de,ve,be,Ce){return addSegmentInternal(!1,e,Z,ie,ae,de,ve,be,Ce)},allMappings:function allMappings(e){const Z=[],{_mappings:ie,_sources:ae,_names:de}=e;for(let e=0;e<ie.length;e++){const ve=ie[e];for(let ie=0;ie<ve.length;ie++){const be=ve[ie],Ce={line:e+1,column:be[0]};let ke,Ie,_e;1!==be.length&&(ke=ae.array[be[1]],Ie={line:be[2]+1,column:be[3]},5===be.length&&(_e=de.array[be[4]])),Z.push({generated:Ce,source:ke,original:Ie,name:_e})}}return Z},fromMap:function fromMap(e){const Z=new jr(e),ie=new Wr({file:Z.file,sourceRoot:Z.sourceRoot});return putAll(ie._names,Z.names),putAll(ie._sources,Z.sources),ie._sourcesContent=Z.sourcesContent||Z.sources.map(()=>null),ie._mappings=decodedMappings(Z),Z.ignoreList&&putAll(ie._ignoreList,Z.ignoreList),ie},maybeAddMapping:(e,Z)=>addMappingInternal(!0,e,Z),maybeAddSegment:(e,Z,ie,ae,de,ve,be,Ce)=>addSegmentInternal(!0,e,Z,ie,ae,de,ve,be,Ce),setIgnore:function setIgnore(e,Z,ie=!0){const{_sources:ae,_sourcesContent:de,_ignoreList:ve}=e,be=put(ae,Z);be===de.length&&(de[be]=null),ie?put(ve,be):function remove(e,Z){const ie=get$1(e,Z);if(void 0===ie)return;const{array:ae,_indexes:de}=e;for(let e=ie+1;e<ae.length;e++){const Z=ae[e];ae[e-1]=Z,de[Z]--}de[Z]=void 0,ae.pop()}(ve,be)},setSourceContent:function setSourceContent(e,Z,ie){const{_sources:ae,_sourcesContent:de}=e;de[put(ae,Z)]=ie},toDecodedMap:toDecodedMap,toEncodedMap:function toEncodedMap(e){const Z=toDecodedMap(e);return Object.assign({},Z,{mappings:encode$3(Z.mappings)})}}),Kr=getCjsExportFromNamespace(Jr),Xr=getCjsExportFromNamespace(Rr),Yr=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;Z.default=class SourceMap{constructor(e,Z){var ie;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const ae=this._map=new Kr.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(ie=e.sourceFileName)?void 0:ie.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new Xr.TraceMap(e.inputSourceMap);const Z=this._inputMap.resolvedSources;if(Z.length)for(let e=0;e<Z.length;e++){var de;(0,Kr.setSourceContent)(ae,Z[e],null==(de=this._inputMap.sourcesContent)?void 0:de[e])}}if("string"!=typeof Z||e.inputSourceMap){if("object"==typeof Z)for(const e of Object.keys(Z))(0,Kr.setSourceContent)(ae,e.replace(/\\/g,"/"),Z[e])}else(0,Kr.setSourceContent)(ae,this._sourceFileName,Z)}get(){return(0,Kr.toEncodedMap)(this._map)}getDecoded(){return(0,Kr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Kr.allMappings)(this._map))}mark(e,Z,ie,ae,de,ve){var be;let Ce;if(this._rawMappings=void 0,null!=Z)if(this._inputMap){if(Ce=(0,Xr.originalPositionFor)(this._inputMap,{line:Z,column:ie}),!Ce.name&&de){const e=(0,Xr.originalPositionFor)(this._inputMap,de);e.name&&(ae=e.name)}}else Ce={source:(null==ve?void 0:ve.replace(/\\/g,"/"))||this._sourceFileName,line:Z,column:ie};(0,Kr.maybeAddMapping)(this._map,{name:ae,generated:e,source:null==(be=Ce)?void 0:be.source,original:Ce})}}});unwrapExports(Yr);var Zr=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;Z.default=class Buffer{constructor(e,Z){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=Z;for(let e=0;e<64;e++)this._fastIndentations.push(Z.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let Z=0;Z<16;Z++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,Z,ie,ae,de){const ve=this._queueCursor;ve===this._queue.length&&this._allocQueue();const be=this._queue[ve];be.char=e,be.repeat=Z,be.line=ie,be.column=ae,be.filename=de,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,Z={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const ie=e?e.get():null;return Z.map=ie,ie},set map(e){Object.defineProperty(Z,"map",{value:e,writable:!0})},get rawMappings(){const ie=null==e?void 0:e.getRawMappings();return Z.rawMappings=ie,ie},set rawMappings(e){Object.defineProperty(Z,"rawMappings",{value:e,writable:!0})}};return Z}append(e,Z){this._flush(),this._append(e,this._sourcePosition,Z)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const Z=this._sourcePosition;this._pushQueue(e,1,Z.line,Z.column,Z.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,Z=this._queue;for(let ie=0;ie<e;ie++){const e=Z[ie];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,Z,ie){if(this._last=e,-1===e){const e=this._fastIndentations[Z];this._str+=void 0!==e?e:Z>1?this._indentChar.repeat(Z):this._indentChar}else this._str+=Z>1?String.fromCharCode(e).repeat(Z):String.fromCharCode(e);10!==e?(this._mark(ie.line,ie.column,ie.identifierName,ie.identifierNamePos,ie.filename),this._position.column+=Z):(this._position.line++,this._position.column=0),this._canMarkIdName&&(ie.identifierName=void 0,ie.identifierNamePos=void 0)}_append(e,Z,ie){const ae=e.length,de=this._position;if(this._last=e.charCodeAt(ae-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!ie&&!this._map)return void(de.column+=ae);const{column:ve,identifierName:be,identifierNamePos:Ce,filename:ke}=Z;let Ie=Z.line;null==be&&null==Ce||!this._canMarkIdName||(Z.identifierName=void 0,Z.identifierNamePos=void 0);let _e=e.indexOf("\n"),Fe=0;for(0!==_e&&this._mark(Ie,ve,be,Ce,ke);-1!==_e;)de.line++,de.column=0,Fe=_e+1,Fe<ae&&void 0!==Ie&&this._mark(++Ie,0,null,null,ke),_e=e.indexOf("\n",Fe);de.column+=ae-Fe}_mark(e,Z,ie,ae,de){var ve;null==(ve=this._map)||ve.mark(this._position,e,Z,ie,ae,de)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let Z=0;if(0===e)return 10===this._last?1:0;for(let ie=e-1;ie>=0&&10===this._queue[ie].char;ie--)Z++;return Z===e&&10===this._last?Z+1:Z}endsWithCharAndNewline(){const e=this._queue,Z=this._queueCursor;if(0!==Z){if(10!==e[Z-1].char)return;return Z>1?e[Z-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,Z){if(!this._map)return void Z();this.source("start",e);const ie=e.identifierName,ae=this._sourcePosition;ie&&(this._canMarkIdName=!1,ae.identifierName=ie),Z(),ie&&(this._canMarkIdName=!0,ae.identifierName=void 0,ae.identifierNamePos=void 0),this.source("end",e)}source(e,Z){this._map&&this._normalizePosition(e,Z,0)}sourceWithOffset(e,Z,ie){this._map&&this._normalizePosition(e,Z,ie)}_normalizePosition(e,Z,ie){const ae=Z[e],de=this._sourcePosition;ae&&(de.line=ae.line,de.column=Math.max(ae.column+ie,0),de.filename=Z.filename)}getCurrentColumn(){const e=this._queue,Z=this._queueCursor;let ie=-1,ae=0;for(let de=0;de<Z;de++){const Z=e[de];10===Z.char&&(ie=ae),ae+=Z.repeat}return-1===ie?this._position.column+ae:ae-1-ie}getCurrentLine(){let e=0;const Z=this._queue;for(let ie=0;ie<this._queueCursor;ie++)10===Z[ie].char&&e++;return this._position.line+e}}});unwrapExports(Zr);var Qr=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.nodes=void 0;const{FLIPPED_ALIAS_KEYS:ie,isArrayExpression:ae,isAssignmentExpression:de,isBinary:ve,isBlockStatement:be,isCallExpression:Ce,isFunction:ke,isIdentifier:Ie,isLiteral:_e,isMemberExpression:Fe,isObjectExpression:Oe,isOptionalCallExpression:Be,isOptionalMemberExpression:Me,isStringLiteral:qe}=Dt.default;function crawlInternal(e,Z){return e?(Fe(e)||Me(e)?(crawlInternal(e.object,Z),e.computed&&crawlInternal(e.property,Z)):ve(e)||de(e)?(crawlInternal(e.left,Z),crawlInternal(e.right,Z)):Ce(e)||Be(e)?(Z.hasCall=!0,crawlInternal(e.callee,Z)):ke(e)?Z.hasFunction=!0:Ie(e)&&(Z.hasHelper=Z.hasHelper||e.callee&&isHelper(e.callee)),Z):Z}function crawl(e){return crawlInternal(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function isHelper(e){return!!e&&(Fe(e)?isHelper(e.object)||isHelper(e.property):Ie(e)?"require"===e.name||95===e.name.charCodeAt(0):Ce(e)?isHelper(e.callee):!(!ve(e)&&!de(e))&&(Ie(e.left)&&isHelper(e.left)||isHelper(e.right)))}function isType(e){return _e(e)||Oe(e)||ae(e)||Ie(e)||Fe(e)}const Ve=Z.nodes={AssignmentExpression(e){const Z=crawl(e.right);if(Z.hasCall&&Z.hasHelper||Z.hasFunction)return Z.hasFunction?3:2},SwitchCase:(e,Z)=>(e.consequent.length||Z.cases[0]===e?1:0)|(e.consequent.length||Z.cases[Z.cases.length-1]!==e?0:2),LogicalExpression(e){if(ke(e.left)||ke(e.right))return 2},Literal(e){if(qe(e)&&"use strict"===e.value)return 2},CallExpression(e){if(ke(e.callee)||isHelper(e))return 3},OptionalCallExpression(e){if(ke(e.callee))return 3},VariableDeclaration(e){for(let Z=0;Z<e.declarations.length;Z++){const ie=e.declarations[Z];let ae=isHelper(ie.id)&&!isType(ie.init);if(!ae&&ie.init){const e=crawl(ie.init);ae=isHelper(ie.init)&&e.hasCall||e.hasFunction}if(ae)return 3}},IfStatement(e){if(be(e.consequent))return 3}};Ve.ObjectProperty=Ve.ObjectTypeProperty=Ve.ObjectMethod=function(e,Z){if(Z.properties[0]===e)return 1},Ve.ObjectTypeCallProperty=function(e,Z){var ie;if(Z.callProperties[0]===e&&(null==(ie=Z.properties)||!ie.length))return 1},Ve.ObjectTypeIndexer=function(e,Z){var ie,ae;if(!(Z.indexers[0]!==e||null!=(ie=Z.properties)&&ie.length||null!=(ae=Z.callProperties)&&ae.length))return 1},Ve.ObjectTypeInternalSlot=function(e,Z){var ie,ae,de;if(!(Z.internalSlots[0]!==e||null!=(ie=Z.properties)&&ie.length||null!=(ae=Z.callProperties)&&ae.length||null!=(de=Z.indexers)&&de.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,Z]){[e].concat(ie[e]||[]).forEach(function(e){const ie=Z?3:0;Ve[e]=()=>ie})})});unwrapExports(Qr),Qr.nodes;var tn=nn,rn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.AssignmentExpression=function AssignmentExpression(e,Z,ie){return!(!needsParenBeforeExpressionBrace(ie)||!ke(e.left))||ConditionalExpression(e,Z)},Z.Binary=Binary,Z.BinaryExpression=function BinaryExpression(e,Z,ie){return"in"===e.operator&&Boolean(ie&tn.TokenContext.forInOrInitHeadAccumulate)},Z.ClassExpression=function ClassExpression(e,Z,ie){return Boolean(ie&(tn.TokenContext.expressionStatement|tn.TokenContext.exportDefault))},Z.ArrowFunctionExpression=Z.ConditionalExpression=ConditionalExpression,Z.DoExpression=function DoExpression(e,Z,ie){return!e.async&&Boolean(ie&tn.TokenContext.expressionStatement)},Z.FunctionExpression=function FunctionExpression(e,Z,ie){return Boolean(ie&(tn.TokenContext.expressionStatement|tn.TokenContext.exportDefault))},Z.FunctionTypeAnnotation=function FunctionTypeAnnotation(e,Z,ie){const ae=Z.type;return"UnionTypeAnnotation"===ae||"IntersectionTypeAnnotation"===ae||"ArrayTypeAnnotation"===ae||Boolean(ie&tn.TokenContext.arrowFlowReturnType)},Z.Identifier=function Identifier(e,Z,ie,ae){var de;const be=Z.type;if(null!=(de=e.extra)&&de.parenthesized&&"AssignmentExpression"===be&&Z.left===e){const e=Z.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==Z.right.id)return!0}if(ae&&ae(e)!==e.name)return!1;if("let"===e.name){return!!((Ce(Z,{object:e,computed:!0})||Ie(Z,{object:e,computed:!0,optional:!1}))&&ie&(tn.TokenContext.expressionStatement|tn.TokenContext.forInitHead|tn.TokenContext.forInHead))||Boolean(ie&tn.TokenContext.forOfHead)}return"async"===e.name&&ve(Z,{left:e,await:!1})},Z.LogicalExpression=function LogicalExpression(e,Z){const ie=Z.type;if(isTSTypeExpression(ie))return!0;if("LogicalExpression"!==ie)return!1;switch(e.operator){case"||":return"??"===Z.operator||"&&"===Z.operator;case"&&":return"??"===Z.operator;case"??":return"??"!==Z.operator}},Z.NullableTypeAnnotation=function NullableTypeAnnotation(e,Z){return ie(Z)},Z.ObjectExpression=function ObjectExpression(e,Z,ie){return needsParenBeforeExpressionBrace(ie)},Z.OptionalIndexedAccessType=function OptionalIndexedAccessType(e,Z){return be(Z)&&Z.objectType===e},Z.OptionalCallExpression=Z.OptionalMemberExpression=function OptionalMemberExpression(e,Z){return de(Z)&&Z.callee===e||Ce(Z)&&Z.object===e},Z.SequenceExpression=function SequenceExpression(e,Z){const ie=Z.type;if("SequenceExpression"===ie||"ParenthesizedExpression"===ie||"MemberExpression"===ie&&Z.property===e||"OptionalMemberExpression"===ie&&Z.property===e||"TemplateLiteral"===ie)return!1;if("ClassDeclaration"===ie)return!0;if("ForOfStatement"===ie)return Z.right===e;if("ExportDefaultDeclaration"===ie)return!0;return!Fe(Z)},Z.TSSatisfiesExpression=Z.TSAsExpression=function TSAsExpression(e,Z){if(("AssignmentExpression"===Z.type||"AssignmentPattern"===Z.type)&&Z.left===e)return!0;if("BinaryExpression"===Z.type&&("|"===Z.operator||"&"===Z.operator)&&e===Z.left)return!0;return Binary(e,Z)},Z.TSConditionalType=function TSConditionalType(e,Z){const ie=Z.type;if("TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie||"TSTypeOperator"===ie||"TSTypeParameter"===ie)return!0;if(("TSIntersectionType"===ie||"TSUnionType"===ie)&&Z.types[0]===e)return!0;if("TSConditionalType"===ie&&(Z.checkType===e||Z.extendsType===e))return!0;return!1},Z.TSConstructorType=Z.TSFunctionType=function TSFunctionType(e,Z){const ie=Z.type;return"TSIntersectionType"===ie||"TSUnionType"===ie||"TSTypeOperator"===ie||"TSOptionalType"===ie||"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSConditionalType"===ie&&(Z.checkType===e||Z.extendsType===e)},Z.TSInferType=function TSInferType(e,Z){const ie=Z.type;if("TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie)return!0;if(e.typeParameter.constraint&&("TSIntersectionType"===ie||"TSUnionType"===ie)&&Z.types[0]===e)return!0;return!1},Z.TSInstantiationExpression=function TSInstantiationExpression(e,Z){const ie=Z.type;return("CallExpression"===ie||"OptionalCallExpression"===ie||"NewExpression"===ie||"TSInstantiationExpression"===ie)&&!!Z.typeParameters},Z.TSIntersectionType=function TSIntersectionType(e,Z){const ie=Z.type;return"TSTypeOperator"===ie||"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie},Z.UnaryLike=Z.TSTypeAssertion=UnaryLike,Z.TSTypeOperator=function TSTypeOperator(e,Z){const ie=Z.type;return"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie},Z.TSUnionType=function TSUnionType(e,Z){const ie=Z.type;return"TSIntersectionType"===ie||"TSTypeOperator"===ie||"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie},Z.IntersectionTypeAnnotation=Z.UnionTypeAnnotation=function UnionTypeAnnotation(e,Z){const ie=Z.type;return"ArrayTypeAnnotation"===ie||"NullableTypeAnnotation"===ie||"IntersectionTypeAnnotation"===ie||"UnionTypeAnnotation"===ie},Z.UpdateExpression=function UpdateExpression(e,Z){return hasPostfixPart(e,Z)||isClassExtendsClause(e,Z)},Z.AwaitExpression=Z.YieldExpression=function YieldExpression(e,Z){const ie=Z.type;return"BinaryExpression"===ie||"LogicalExpression"===ie||"UnaryExpression"===ie||"SpreadElement"===ie||hasPostfixPart(e,Z)||"AwaitExpression"===ie&&_e(e)||"ConditionalExpression"===ie&&e===Z.test||isClassExtendsClause(e,Z)||isTSTypeExpression(ie)};const{isArrayTypeAnnotation:ie,isBinaryExpression:ae,isCallExpression:de,isForOfStatement:ve,isIndexedAccessType:be,isMemberExpression:Ce,isObjectPattern:ke,isOptionalMemberExpression:Ie,isYieldExpression:_e,isStatement:Fe}=Dt.default,Oe=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function getBinaryPrecedence(e,Z){return"BinaryExpression"===Z||"LogicalExpression"===Z?Oe.get(e.operator):"TSAsExpression"===Z||"TSSatisfiesExpression"===Z?Oe.get("in"):void 0}function isTSTypeExpression(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const isClassExtendsClause=(e,Z)=>{const ie=Z.type;return("ClassDeclaration"===ie||"ClassExpression"===ie)&&Z.superClass===e},hasPostfixPart=(e,Z)=>{const ie=Z.type;return("MemberExpression"===ie||"OptionalMemberExpression"===ie)&&Z.object===e||("CallExpression"===ie||"OptionalCallExpression"===ie||"NewExpression"===ie)&&Z.callee===e||"TaggedTemplateExpression"===ie&&Z.tag===e||"TSNonNullExpression"===ie};function needsParenBeforeExpressionBrace(e){return Boolean(e&(tn.TokenContext.expressionStatement|tn.TokenContext.arrowBody))}function Binary(e,Z){const ie=Z.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===ie&&"**"===Z.operator)return Z.left===e;if(isClassExtendsClause(e,Z))return!0;if(hasPostfixPart(e,Z)||"UnaryExpression"===ie||"SpreadElement"===ie||"AwaitExpression"===ie)return!0;const ae=getBinaryPrecedence(Z,ie);if(null!=ae){const de=getBinaryPrecedence(e,e.type);if(ae===de&&"BinaryExpression"===ie&&Z.right===e||ae>de)return!0}}function UnaryLike(e,Z){return hasPostfixPart(e,Z)||ae(Z)&&"**"===Z.operator&&Z.left===e||isClassExtendsClause(e,Z)}function ConditionalExpression(e,Z){const ie=Z.type;return!!("UnaryExpression"===ie||"SpreadElement"===ie||"BinaryExpression"===ie||"LogicalExpression"===ie||"ConditionalExpression"===ie&&Z.test===e||"AwaitExpression"===ie||isTSTypeExpression(ie))||UnaryLike(e,Z)}});unwrapExports(rn),rn.AssignmentExpression,rn.Binary,rn.BinaryExpression,rn.ClassExpression,rn.ArrowFunctionExpression,rn.ConditionalExpression,rn.DoExpression,rn.FunctionExpression,rn.FunctionTypeAnnotation,rn.Identifier,rn.LogicalExpression,rn.NullableTypeAnnotation,rn.ObjectExpression,rn.OptionalIndexedAccessType,rn.OptionalCallExpression,rn.OptionalMemberExpression,rn.SequenceExpression,rn.TSSatisfiesExpression,rn.TSAsExpression,rn.TSConditionalType,rn.TSConstructorType,rn.TSFunctionType,rn.TSInferType,rn.TSInstantiationExpression,rn.TSIntersectionType,rn.UnaryLike,rn.TSTypeAssertion,rn.TSTypeOperator,rn.TSUnionType,rn.IntersectionTypeAnnotation,rn.UnionTypeAnnotation,rn.UpdateExpression,rn.AwaitExpression,rn.YieldExpression;var nn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.TokenContext=void 0,Z.isLastChild=function isLastChild(e,Z){const ie=ae[e.type];for(let ae=ie.length-1;ae>=0;ae--){const de=e[ie[ae]];if(de===Z)return!0;if(Array.isArray(de)){let e=de.length-1;for(;e>=0&&null===de[e];)e--;return e>=0&&de[e]===Z}if(de)return!1}return!1},Z.needsParens=function needsParens(e,Z,ie,ae){var be;if(!Z)return!1;if(ke(Z)&&Z.callee===e&&isOrHasCallExpression(e))return!0;if(ve(Z))return!(isDecoratorMemberExpression(e)||de(e)&&isDecoratorMemberExpression(e.callee)||Ie(e));return null==(be=_e.get(e.type))?void 0:be(e,Z,ie,ae)},Z.needsWhitespace=needsWhitespace,Z.needsWhitespaceAfter=function needsWhitespaceAfter(e,Z){return needsWhitespace(e,Z,2)},Z.needsWhitespaceBefore=function needsWhitespaceBefore(e,Z){return needsWhitespace(e,Z,1)};const{FLIPPED_ALIAS_KEYS:ie,VISITOR_KEYS:ae,isCallExpression:de,isDecorator:ve,isExpressionStatement:be,isMemberExpression:Ce,isNewExpression:ke,isParenthesizedExpression:Ie}=Dt.default;function expandAliases(e){const Z=new Map;function add(e,ie){const ae=Z.get(e);Z.set(e,ae?function(e,Z,de,ve){var be;return null!=(be=ae(e,Z,de,ve))?be:ie(e,Z,de,ve)}:ie)}for(const Z of Object.keys(e)){const ae=ie[Z];if(ae)for(const ie of ae)add(ie,e[Z]);else add(Z,e[Z])}return Z}Z.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const _e=expandAliases(rn),Fe=expandAliases(Qr.nodes);function isOrHasCallExpression(e){return!!de(e)||Ce(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,Z,ie){var ae;if(!e)return!1;be(e)&&(e=e.expression);const de=null==(ae=Fe.get(e.type))?void 0:ae(e,Z);return"number"==typeof de&&0!==(de&ie)}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&isDecoratorMemberExpression(e.object);default:return!1}}});unwrapExports(nn),nn.TokenContext,nn.isLastChild,nn.needsParens,nn.needsWhitespace,nn.needsWhitespaceAfter,nn.needsWhitespaceBefore;var sn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.TokenMap=void 0;const{traverseFast:ie,VISITOR_KEYS:ae}=Dt.default;Z.TokenMap=class TokenMap{constructor(e,Z,ae){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=Z,this._source=ae,ie(e,e=>{const Z=this._getTokensIndexesOfNode(e);Z.length>0&&this._nodesToTokenIndexes.set(e,Z)}),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(ie)for(let e=0;e<ie.length;e++){const ae=ie[e],de=this._tokens[ae];if(Z(de,ae))return de}return null}findLastIndex(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(ie)for(let e=ie.length-1;e>=0;e--){const ae=ie[e];if(Z(this._tokens[ae],ae))return ae}return-1}findMatching(e,Z,ie=0){const ae=this._nodesToTokenIndexes.get(e);if(ae){let de=0;const ve=ie;if(ve>1){const ae=this._nodesOccurrencesCountCache.get(e);ae&&ae.test===Z&&ae.count<ve&&(de=ae.i+1,ie-=ae.count+1)}for(;de<ae.length;de++){const be=this._tokens[ae[de]];if(this.matchesOriginal(be,Z)){if(0===ie)return ve>0&&this._nodesOccurrencesCountCache.set(e,{test:Z,count:ve,i:de}),be;ie--}}}return null}matchesOriginal(e,Z){return e.end-e.start===Z.length&&(null!=e.value?e.value===Z:this._source.startsWith(Z,e.start))}startMatches(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(!ie)return!1;const ae=this._tokens[ie[0]];return ae.start===e.start&&this.matchesOriginal(ae,Z)}endMatches(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(!ie)return!1;const ae=this._tokens[ie[ie.length-1]];return ae.end===e.end&&this.matchesOriginal(ae,Z)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:Z,last:ie}=this._findTokensOfNode(e,0,this._tokens.length-1);let de=Z;const ve=function*childrenIterator(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let Z=1;Z<e.quasis.length;Z++)yield e.expressions[Z-1],yield e.quasis[Z];return}const Z=ae[e.type];for(const ie of Z){const Z=e[ie];Z&&(Array.isArray(Z)?yield*Z:yield Z)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||ve.next();const be=[];for(const e of ve){if(null==e)continue;if(null==e.start||null==e.end)continue;const Z=this._findTokensOfNode(e,de,ie),ae=Z.first;for(let e=de;e<ae;e++)be.push(e);de=Z.last+1}for(let e=de;e<=ie;e++)be.push(e);return be}_findTokensOfNode(e,Z,ie){const ae=this._tokensCache.get(e);if(ae)return ae;const de=this._findFirstTokenOfNode(e.start,Z,ie),ve=this._findLastTokenOfNode(e.end,de,ie);return this._tokensCache.set(e,{first:de,last:ve}),{first:de,last:ve}}_findFirstTokenOfNode(e,Z,ie){for(;Z<=ie;){const ae=ie+Z>>1;if(e<this._tokens[ae].start)ie=ae-1;else{if(!(e>this._tokens[ae].start))return ae;Z=ae+1}}return Z}_findLastTokenOfNode(e,Z,ie){for(;Z<=ie;){const ae=ie+Z>>1;if(e<this._tokens[ae].end)ie=ae-1;else{if(!(e>this._tokens[ae].end))return ae;Z=ae+1}}return ie}}});unwrapExports(sn),sn.TokenMap;var an=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.TaggedTemplateExpression=function TaggedTemplateExpression(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},Z.TemplateElement=function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},Z.TemplateLiteral=function TemplateLiteral(e){this._printTemplate(e,e.expressions)},Z._printTemplate=function _printTemplate(e,Z){const ie=e.quasis;let ae="`";for(let de=0;de<ie.length-1;de++)if(ae+=ie[de].value.raw,this.token(ae+"${",!0),this.print(Z[de]),ae="}",this.tokenMap){const Z=this.tokenMap.findMatching(e,"}",de);Z&&this._catchUpTo(Z.loc.start)}ae+=ie[ie.length-1].value.raw,this.token(ae+"`",!0)}});unwrapExports(an),an.TaggedTemplateExpression,an.TemplateElement,an.TemplateLiteral,an._printTemplate;var cn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.LogicalExpression=Z.BinaryExpression=Z.AssignmentExpression=function AssignmentExpression(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator);this.space(),this.print(e.right)},Z.AssignmentPattern=function AssignmentPattern(e){this.print(e.left),("Identifier"===e.left.type||be(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation));this.space(),this.tokenChar(61),this.space(),this.print(e.right)},Z.AwaitExpression=function AwaitExpression(e){this.word("await"),this.space(),this.print(e.argument)},Z.BindExpression=function BindExpression(e){this.print(e.object),this.token("::"),this.print(e.callee)},Z.CallExpression=function CallExpression(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const Z=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),Z(),this.rightParens(e)},Z.ConditionalExpression=function ConditionalExpression(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},Z.Decorator=function Decorator(e){this.tokenChar(64),this.print(e.expression),this.newline()},Z.DoExpression=function DoExpression(e){e.async&&(this.word("async",!0),this.space());this.word("do"),this.space(),this.print(e.body)},Z.EmptyStatement=function EmptyStatement(){this.semicolon(!0)},Z.ExpressionStatement=function ExpressionStatement(e){this.tokenContext|=tn.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},Z.Import=function Import(){this.word("import")},Z.MemberExpression=function MemberExpression(e){if(this.print(e.object),!e.computed&&de(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let Z=e.computed;ae(e.property)&&"number"==typeof e.property.value&&(Z=!0);if(Z){const Z=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),Z()}else this.tokenChar(46),this.print(e.property)},Z.MetaProperty=function MetaProperty(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},Z.ModuleExpression=function ModuleExpression(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:Z}=e;(Z.body.length||Z.directives.length)&&this.newline();this.print(Z),this.dedent(),this.rightBrace(e)},Z.NewExpression=function NewExpression(e,Z){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!ie(Z,{callee:e})&&!de(Z)&&!ve(Z))return;this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?.");if(0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const ae=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),ae(),this.rightParens(e)},Z.OptionalCallExpression=function OptionalCallExpression(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?.");this.print(e.typeArguments),this.tokenChar(40);const Z=this.enterDelimited();this.printList(e.arguments),Z(),this.rightParens(e)},Z.OptionalMemberExpression=function OptionalMemberExpression(e){let{computed:Z}=e;const{optional:ie,property:ve}=e;if(this.print(e.object),!Z&&de(ve))throw new TypeError("Got a MemberExpression for MemberExpression property");ae(ve)&&"number"==typeof ve.value&&(Z=!0);ie&&this.token("?.");Z?(this.tokenChar(91),this.print(ve),this.tokenChar(93)):(ie||this.tokenChar(46),this.print(ve))},Z.ParenthesizedExpression=function ParenthesizedExpression(e){this.tokenChar(40);const Z=this.enterDelimited();this.print(e.expression),Z(),this.rightParens(e)},Z.PrivateName=function PrivateName(e){this.tokenChar(35),this.print(e.id)},Z.SequenceExpression=function SequenceExpression(e){this.printList(e.expressions)},Z.Super=function Super(){this.word("super")},Z.ThisExpression=function ThisExpression(){this.word("this")},Z.UnaryExpression=function UnaryExpression(e){const{operator:Z}=e;"void"===Z||"delete"===Z||"typeof"===Z||"throw"===Z?(this.word(Z),this.space()):this.token(Z);this.print(e.argument)},Z.UpdateExpression=function UpdateExpression(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},Z.V8IntrinsicIdentifier=function V8IntrinsicIdentifier(e){this.tokenChar(37),this.word(e.name)},Z.YieldExpression=function YieldExpression(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},Z._shouldPrintDecoratorsBeforeExport=function _shouldPrintDecoratorsBeforeExport(e){if("boolean"==typeof this.format.decoratorsBeforeExport)return this.format.decoratorsBeforeExport;return"number"==typeof e.start&&e.start===e.declaration.start};const{isCallExpression:ie,isLiteral:ae,isMemberExpression:de,isNewExpression:ve,isPattern:be}=Dt.default});unwrapExports(cn),cn.LogicalExpression,cn.BinaryExpression,cn.AssignmentExpression,cn.AssignmentPattern,cn.AwaitExpression,cn.BindExpression,cn.CallExpression,cn.ConditionalExpression,cn.Decorator,cn.DoExpression,cn.EmptyStatement,cn.ExpressionStatement,cn.Import,cn.MemberExpression,cn.MetaProperty,cn.ModuleExpression,cn.NewExpression,cn.OptionalCallExpression,cn.OptionalMemberExpression,cn.ParenthesizedExpression,cn.PrivateName,cn.SequenceExpression,cn.Super,cn.ThisExpression,cn.UnaryExpression,cn.UpdateExpression,cn.V8IntrinsicIdentifier,cn.YieldExpression,cn._shouldPrintDecoratorsBeforeExport;var un=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.BreakStatement=function BreakStatement(e){this.word("break"),printStatementAfterKeyword(this,e.label)},Z.CatchClause=function CatchClause(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space());this.print(e.body)},Z.ContinueStatement=function ContinueStatement(e){this.word("continue"),printStatementAfterKeyword(this,e.label)},Z.DebuggerStatement=function DebuggerStatement(){this.word("debugger"),this.semicolon()},Z.DoWhileStatement=function DoWhileStatement(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},Z.ForOfStatement=Z.ForInStatement=void 0,Z.ForStatement=function ForStatement(e){this.word("for"),this.space(),this.tokenChar(40);{const Z=this.enterForStatementInit();this.print(e.init),Z()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test));this.token(";",!1,1),e.update&&(this.space(),this.print(e.update));this.tokenChar(41),this.printBlock(e)},Z.IfStatement=function IfStatement(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const Z=e.alternate&&de(getLastStatement(e.consequent));Z&&(this.tokenChar(123),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent),Z&&(this.dedent(),this.newline(),this.tokenChar(125));e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},Z.LabeledStatement=function LabeledStatement(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},Z.ReturnStatement=function ReturnStatement(e){this.word("return"),printStatementAfterKeyword(this,e.argument)},Z.SwitchCase=function SwitchCase(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},Z.SwitchStatement=function SwitchStatement(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,function addNewlines(Z,ie){if(!Z&&e.cases[e.cases.length-1]===ie)return-1}),this.rightBrace(e)},Z.ThrowStatement=function ThrowStatement(e){this.word("throw"),printStatementAfterKeyword(this,e.argument)},Z.TryStatement=function TryStatement(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},Z.VariableDeclaration=function VariableDeclaration(e,Z){e.declare&&(this.word("declare"),this.space());const{kind:de}=e;"await using"===de?(this.word("await"),this.space(),this.word("using",!0)):this.word(de,"using"===de);this.space();let ve=!1;if(!ie(Z))for(const Z of e.declarations)Z.init&&(ve=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,ve?function(e){this.token(",",!1,e),this.newline()}:void 0),ie(Z))if(ae(Z)){if(Z.init===e)return}else if(Z.left===e)return;this.semicolon()},Z.VariableDeclarator=function VariableDeclarator(e){this.print(e.id),e.definite&&this.tokenChar(33);this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},Z.WhileStatement=function WhileStatement(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},Z.WithStatement=function WithStatement(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};const{isFor:ie,isForStatement:ae,isIfStatement:de,isStatement:ve}=Dt.default;function getLastStatement(e){const{body:Z}=e;return!1===ve(Z)?e:getLastStatement(Z)}function ForXStatement(e){this.word("for"),this.space();const Z="ForOfStatement"===e.type;Z&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const ie=this.enterForXStatementInit(Z);this.print(e.left),null==ie||ie()}this.space(),this.word(Z?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function printStatementAfterKeyword(e,Z){Z&&(e.space(),e.printTerminatorless(Z)),e.semicolon()}Z.ForInStatement=ForXStatement,Z.ForOfStatement=ForXStatement});unwrapExports(un),un.BreakStatement,un.CatchClause,un.ContinueStatement,un.DebuggerStatement,un.DoWhileStatement,un.ForOfStatement,un.ForInStatement,un.ForStatement,un.IfStatement,un.LabeledStatement,un.ReturnStatement,un.SwitchCase,un.SwitchStatement,un.ThrowStatement,un.TryStatement,un.VariableDeclaration,un.VariableDeclarator,un.WhileStatement,un.WithStatement;var ln=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ClassAccessorProperty=function ClassAccessorProperty(e){var Z;this.printJoin(e.decorators);const ie=null==(Z=e.key.loc)||null==(Z=Z.end)?void 0:Z.line;ie&&this.catchUp(ie);this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},Z.ClassBody=function ClassBody(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const Z=function classBodyEmptySemicolonsPrinter(e,Z){if(!e.tokenMap||null==Z.start||null==Z.end)return null;const ie=e.tokenMap.getIndexes(Z);if(!ie)return null;let ae=1,de=0,ve=0;const advanceNextLocIndex=()=>{for(;ve<Z.body.length&&null==Z.body[ve].start;)ve++};return advanceNextLocIndex(),be=>{ve<=be&&(ve=be+1,advanceNextLocIndex());const Ce=ve===Z.body.length?Z.end:Z.body[ve].start;let ke;for(;ae<ie.length&&e.tokenMap.matchesOriginal(ke=e._tokens[ie[ae]],";")&&ke.start<Ce;)e.token(";",void 0,de++),ae++}}(this,e);null==Z||Z(-1);const ie=this.enterDelimited();this.printJoin(e.body,!0,!0,Z,!0),ie(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},Z.ClassExpression=Z.ClassDeclaration=function ClassDeclaration(e,Z){(ie(Z)||ae(Z))&&this._shouldPrintDecoratorsBeforeExport(Z)||this.printJoin(e.decorators);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),e.id&&(this.space(),this.print(e.id));this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements));this.space(),this.print(e.body)},Z.ClassMethod=function ClassMethod(e){this._classMethodHead(e),this.space(),this.print(e.body)},Z.ClassPrivateMethod=function ClassPrivateMethod(e){this._classMethodHead(e),this.space(),this.print(e.body)},Z.ClassPrivateProperty=function ClassPrivateProperty(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},Z.ClassProperty=function ClassProperty(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var Z;const ie=null==(Z=e.key.loc)||null==(Z=Z.end)?void 0:Z.line;ie&&this.catchUp(ie)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},Z.StaticBlock=function StaticBlock(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},Z._classMethodHead=function _classMethodHead(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var Z;const ie=null==(Z=e.key.loc)||null==(Z=Z.end)?void 0:Z.line;ie&&this.catchUp(ie)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};const{isExportDefaultDeclaration:ie,isExportNamedDeclaration:ae}=Dt.default});unwrapExports(ln),ln.ClassAccessorProperty,ln.ClassBody,ln.ClassExpression,ln.ClassDeclaration,ln.ClassMethod,ln.ClassPrivateMethod,ln.ClassPrivateProperty,ln.ClassProperty,ln.StaticBlock,ln._classMethodHead;var pn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ArrowFunctionExpression=function ArrowFunctionExpression(e,Z){e.async&&(this.word("async",!0),this.space());this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,Z):this.print(e.params[0],!0);this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=tn.TokenContext.arrowBody,this.print(e.body)},Z.FunctionDeclaration=Z.FunctionExpression=function FunctionExpression(e,Z){this._functionHead(e,Z),this.space(),this.print(e.body)},Z._functionHead=function _functionHead(e,Z){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space());this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42));this.space(),e.id&&this.print(e.id);this._params(e,e.id,Z),"TSDeclareFunction"!==e.type&&this._predicate(e)},Z._methodHead=function _methodHead(e){const Z=e.kind,ie=e.key;"get"!==Z&&"set"!==Z||(this.word(Z),this.space());e.async&&(this.word("async",!0),this.space());"method"!==Z&&"init"!==Z||e.generator&&this.tokenChar(42);e.computed?(this.tokenChar(91),this.print(ie),this.tokenChar(93)):this.print(ie);e.optional&&this.tokenChar(63);this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},Z._param=function _param(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},Z._parameters=function _parameters(e,Z){const ie=this.enterDelimited(),ae=this.shouldPrintTrailingComma(Z),de=e.length;for(let Z=0;Z<de;Z++)this._param(e[Z]),(ae||Z<de-1)&&(this.token(",",null,Z),this.space());this.token(Z),ie()},Z._params=function _params(e,Z,ie){this.print(e.typeParameters);const ae=_getFuncIdName.call(this,Z,ie);ae&&this.sourceIdentifierName(ae.name,ae.pos);this.tokenChar(40),this._parameters(e.params,")");const de="ArrowFunctionExpression"===e.type;this.print(e.returnType,de),this._noLineTerminator=de},Z._predicate=function _predicate(e,Z){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,Z))},Z._shouldPrintArrowParamsParens=function _shouldPrintArrowParamsParens(e){var Z,ae;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const de=e.params[0];if(!ie(de)||de.typeAnnotation||de.optional||null!=(Z=de.leadingComments)&&Z.length||null!=(ae=de.trailingComments)&&ae.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const Z=this.tokenMap.findMatching(e,"=>");return null==(null==Z?void 0:Z.loc)||Z.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};const{isIdentifier:ie}=Dt.default;function _getFuncIdName(e,Z){let ie,ae=e;if(!ae&&Z){const e=Z.type;"VariableDeclarator"===e?ae=Z.id:"AssignmentExpression"===e||"AssignmentPattern"===e?ae=Z.left:"ObjectProperty"===e||"ClassProperty"===e?Z.computed&&"StringLiteral"!==Z.key.type||(ae=Z.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(ae=Z.key)}if(ae){var de,ve;if("Identifier"===ae.type)ie={pos:null==(de=ae.loc)?void 0:de.start,name:(null==(ve=ae.loc)?void 0:ve.identifierName)||ae.name};else if("PrivateName"===ae.type){var be;ie={pos:null==(be=ae.loc)?void 0:be.start,name:"#"+ae.id.name}}else if("StringLiteral"===ae.type){var Ce;ie={pos:null==(Ce=ae.loc)?void 0:Ce.start,name:ae.value}}return ie}}});unwrapExports(pn),pn.ArrowFunctionExpression,pn.FunctionDeclaration,pn.FunctionExpression,pn._functionHead,pn._methodHead,pn._param,pn._parameters,pn._params,pn._predicate,pn._shouldPrintArrowParamsParens;var hn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ExportAllDeclaration=function ExportAllDeclaration(e){var Z,ie;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(Z=e.attributes)&&Z.length||null!=(ie=e.assertions)&&ie.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source);this.semicolon()},Z.ExportDefaultDeclaration=function ExportDefaultDeclaration(e){maybePrintDecoratorsBeforeExport(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=tn.TokenContext.exportDefault;const Z=e.declaration;this.print(Z),Ce(Z)||this.semicolon()},Z.ExportDefaultSpecifier=function ExportDefaultSpecifier(e){this.print(e.exported)},Z.ExportNamedDeclaration=function ExportNamedDeclaration(e){if(maybePrintDecoratorsBeforeExport(this,e),this.word("export"),this.space(),e.declaration){const Z=e.declaration;this.print(Z),Ce(Z)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const ve=e.specifiers.slice(0);let be=!1;for(;;){const e=ve[0];if(!ae(e)&&!de(e))break;be=!0,this.print(ve.shift()),ve.length&&(this.tokenChar(44),this.space())}let Ce=!1;var Z,ie;if((ve.length||!ve.length&&!be)&&(Ce=!0,this.tokenChar(123),ve.length&&(this.space(),this.printList(ve,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source)this.space(),this.word("from"),this.space(),null!=(Z=e.attributes)&&Z.length||null!=(ie=e.assertions)&&ie.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,Ce)):this.print(e.source);this.semicolon()}},Z.ExportNamespaceSpecifier=function ExportNamespaceSpecifier(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},Z.ExportSpecifier=function ExportSpecifier(e){"type"===e.exportKind&&(this.word("type"),this.space());this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},Z.ImportAttribute=function ImportAttribute(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},Z.ImportDeclaration=function ImportDeclaration(e){var Z,ie;this.word("import"),this.space();const ae="type"===e.importKind||"typeof"===e.importKind;ae?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const de=e.specifiers.slice(0),Ce=!!de.length;for(;Ce;){const e=de[0];if(!ve(e)&&!be(e))break;this.print(de.shift()),de.length&&(this.tokenChar(44),this.space())}let ke=!1;de.length?(ke=!0,this.tokenChar(123),this.space(),this.printList(de,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):ae&&!Ce&&(ke=!0,this.tokenChar(123),this.tokenChar(125));(Ce||ae)&&(this.space(),this.word("from"),this.space());null!=(Z=e.attributes)&&Z.length||null!=(ie=e.assertions)&&ie.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,ke)):this.print(e.source);this.semicolon()},Z.ImportDefaultSpecifier=function ImportDefaultSpecifier(e){this.print(e.local)},Z.ImportExpression=function ImportExpression(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase));this.tokenChar(40);const Z=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options));Z&&this.tokenChar(44);this.rightParens(e)},Z.ImportNamespaceSpecifier=function ImportNamespaceSpecifier(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},Z.ImportSpecifier=function ImportSpecifier(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},Z._printAttributes=function _printAttributes(e,Z){var ie;const{importAttributesKeyword:ae}=this.format,{attributes:de,assertions:ve}=e;de&&!ae&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!ke&&(ke=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const be="assert"===ae||!ae&&ve;if(this.word(be?"assert":"with"),this.space(),!be&&("with-legacy"===ae||!ae&&null!=(ie=e.extra)&&ie.deprecatedWithLegacySyntax))return void this.printList(de||ve);const Ce=Z?1:0;this.token("{",null,Ce),this.space(),this.printList(de||ve,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,Ce)};const{isClassDeclaration:ie,isExportDefaultSpecifier:ae,isExportNamespaceSpecifier:de,isImportDefaultSpecifier:ve,isImportNamespaceSpecifier:be,isStatement:Ce}=Dt.default;let ke=!1;function maybePrintDecoratorsBeforeExport(e,Z){ie(Z.declaration)&&e._shouldPrintDecoratorsBeforeExport(Z)&&e.printJoin(Z.declaration.decorators)}});unwrapExports(hn),hn.ExportAllDeclaration,hn.ExportDefaultDeclaration,hn.ExportDefaultSpecifier,hn.ExportNamedDeclaration,hn.ExportNamespaceSpecifier,hn.ExportSpecifier,hn.ImportAttribute,hn.ImportDeclaration,hn.ImportDefaultSpecifier,hn.ImportExpression,hn.ImportNamespaceSpecifier,hn.ImportSpecifier,hn._printAttributes;const dn={},mn=dn.hasOwnProperty,forOwn=(e,Z)=>{for(const ie in e)mn.call(e,ie)&&Z(ie,e[ie])},fourHexEscape=e=>"\\u"+("0000"+e).slice(-4),hexadecimal=(e,Z)=>{let ie=e.toString(16);return Z?ie:ie.toUpperCase()},yn=dn.toString,gn=Array.isArray,isBigInt=e=>"bigint"==typeof e,xn={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},vn=/[\\\b\f\n\r\t]/,bn=/[0-9]/,En=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Cn=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,An=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,jsesc=(e,Z)=>{const increaseIndentation=()=>{_e=Ie,++Z.indentLevel,Ie=Z.indent.repeat(Z.indentLevel)},ie={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},ae=Z&&Z.json;var de,ve;ae&&(ie.quotes="double",ie.wrap=!0),de=ie,Z=(ve=Z)?(forOwn(ve,(e,Z)=>{de[e]=Z}),de):de,"single"!=Z.quotes&&"double"!=Z.quotes&&"backtick"!=Z.quotes&&(Z.quotes="single");const be="double"==Z.quotes?'"':"backtick"==Z.quotes?"`":"'",Ce=Z.compact,ke=Z.lowercaseHex;let Ie=Z.indent.repeat(Z.indentLevel),_e="";const Fe=Z.__inline1__,Oe=Z.__inline2__,Be=Ce?"":"\n";let Me,qe=!0;const Ve="binary"==Z.numbers,Ze="octal"==Z.numbers,et="decimal"==Z.numbers,tt="hexadecimal"==Z.numbers;if(ae&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==yn.call(e))(e)){if((e=>"[object Map]"==yn.call(e))(e))return 0==e.size?"new Map()":(Ce||(Z.__inline1__=!0,Z.__inline2__=!1),"new Map("+jsesc(Array.from(e),Z)+")");if((e=>"[object Set]"==yn.call(e))(e))return 0==e.size?"new Set()":"new Set("+jsesc(Array.from(e),Z)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(e),Z)+")";if(gn(e))return Me=[],Z.wrap=!0,Fe&&(Z.__inline1__=!1,Z.__inline2__=!0),Oe||increaseIndentation(),((e,Z)=>{const ie=e.length;let ae=-1;for(;++ae<ie;)Z(e[ae])})(e,e=>{qe=!1,Oe&&(Z.__inline2__=!1),Me.push((Ce||Oe?"":Ie)+jsesc(e,Z))}),qe?"[]":Oe?"["+Me.join(", ")+"]":"["+Be+Me.join(","+Be)+Be+(Ce?"":_e)+"]";if((e=>"number"==typeof e||"[object Number]"==yn.call(e))(e)||isBigInt(e)){if(ae)return JSON.stringify(Number(e));let Z;if(et)Z=String(e);else if(tt){let ie=e.toString(16);ke||(ie=ie.toUpperCase()),Z="0x"+ie}else Ve?Z="0b"+e.toString(2):Ze&&(Z="0o"+e.toString(8));return isBigInt(e)?Z+"n":Z}return isBigInt(e)?ae?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==yn.call(e))(e)?(Me=[],Z.wrap=!0,increaseIndentation(),forOwn(e,(e,ie)=>{qe=!1,Me.push((Ce?"":Ie)+jsesc(e,Z)+":"+(Ce?"":" ")+jsesc(ie,Z))}),qe?"{}":"{"+Be+Me.join(","+Be)+Be+(Ce?"":_e)+"}"):ae?JSON.stringify(e)||"null":String(e)}const ct=Z.escapeEverything?Cn:An;return Me=e.replace(ct,(e,ie,de,ve,Ce,Ie)=>{if(ie){if(Z.minimal)return ie;const e=ie.charCodeAt(0),ae=ie.charCodeAt(1);if(Z.es6){return"\\u{"+hexadecimal(1024*(e-55296)+ae-56320+65536,ke)+"}"}return fourHexEscape(hexadecimal(e,ke))+fourHexEscape(hexadecimal(ae,ke))}if(de)return fourHexEscape(hexadecimal(de.charCodeAt(0),ke));if("\0"==e&&!ae&&!bn.test(Ie.charAt(Ce+1)))return"\\0";if(ve)return ve==be||Z.escapeEverything?"\\"+ve:ve;if(vn.test(e))return xn[e];if(Z.minimal&&!En.test(e))return e;const _e=hexadecimal(e.charCodeAt(0),ke);return ae||_e.length>2?fourHexEscape(_e):"\\x"+("00"+_e).slice(-2)}),"`"==be&&(Me=Me.replace(/\$\{/g,"\\${")),Z.isScriptContext&&(Me=Me.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,ae?"\\u003C!--":"\\x3C!--")),Z.wrap&&(Me=be+Me+be),Me};jsesc.version="3.0.2";var wn=jsesc,Sn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ArgumentPlaceholder=function ArgumentPlaceholder(){this.tokenChar(63)},Z.ArrayPattern=Z.ArrayExpression=function ArrayExpression(e){const Z=e.elements,ie=Z.length;this.tokenChar(91);const ae=this.enterDelimited();for(let e=0;e<Z.length;e++){const ae=Z[e];ae?(e>0&&this.space(),this.print(ae),(e<ie-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}ae(),this.tokenChar(93)},Z.BigIntLiteral=function BigIntLiteral(e){const Z=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==Z)return void this.word(Z);this.word(e.value+"n")},Z.BooleanLiteral=function BooleanLiteral(e){this.word(e.value?"true":"false")},Z.Identifier=function Identifier(e){var Z;this.sourceIdentifierName((null==(Z=e.loc)?void 0:Z.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},Z.NullLiteral=function NullLiteral(){this.word("null")},Z.NumericLiteral=function NumericLiteral(e){const Z=this.getPossibleRaw(e),ie=this.format.jsescOption,ae=e.value,de=ae+"";ie.numbers?this.number(wn(ae,ie),ae):null==Z?this.number(de,ae):this.format.minified?this.number(Z.length<de.length?Z:de,ae):this.number(Z,ae)},Z.ObjectPattern=Z.ObjectExpression=function ObjectExpression(e){const Z=e.properties;if(this.tokenChar(123),Z.length){const e=this.enterDelimited();this.space(),this.printList(Z,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},Z.ObjectMethod=function ObjectMethod(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},Z.ObjectProperty=function ObjectProperty(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(ie(e.value)&&ae(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&ae(e.key)&&ae(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},Z.PipelineBareFunction=function PipelineBareFunction(e){this.print(e.callee)},Z.PipelinePrimaryTopicReference=function PipelinePrimaryTopicReference(){this.tokenChar(35)},Z.PipelineTopicExpression=function PipelineTopicExpression(e){this.print(e.expression)},Z.RecordExpression=function RecordExpression(e){const Z=e.properties;let ie,ae;if("bar"===this.format.recordAndTupleSyntaxType)ie="{|",ae="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);ie="#{",ae="}"}this.token(ie),Z.length&&(this.space(),this.printList(Z,this.shouldPrintTrailingComma(ae),!0,!0),this.space());this.token(ae)},Z.RegExpLiteral=function RegExpLiteral(e){this.word(`/${e.pattern}/${e.flags}`)},Z.SpreadElement=Z.RestElement=function RestElement(e){this.token("..."),this.print(e.argument)},Z.StringLiteral=function StringLiteral(e){const Z=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==Z)return void this.token(Z);const ie=wn(e.value,this.format.jsescOption);this.token(ie)},Z.TopicReference=function TopicReference(){const{topicToken:e}=this.format;if(!be.has(e)){const Z=JSON.stringify(e),ie=Array.from(be,e=>JSON.stringify(e));throw new Error(`The "topicToken" generator option must be one of ${ie.join(", ")} (${Z} received instead).`)}this.token(e)},Z.TupleExpression=function TupleExpression(e){const Z=e.elements,ie=Z.length;let ae,de;if("bar"===this.format.recordAndTupleSyntaxType)ae="[|",de="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);ae="#[",de="]"}this.token(ae);for(let e=0;e<Z.length;e++){const ae=Z[e];ae&&(e>0&&this.space(),this.print(ae),(e<ie-1||this.shouldPrintTrailingComma(de))&&this.token(",",!1,e))}this.token(de)},Z.VoidPattern=function VoidPattern(){this.word("void")},Z._getRawIdentifier=function _getRawIdentifier(e){if(e===de)return ve;de=e;const{name:Z}=e,ie=this.tokenMap.find(e,e=>e.value===Z);if(ie)return ve=this._originalCode.slice(ie.start,ie.end),ve;return ve=e.name};const{isAssignmentPattern:ie,isIdentifier:ae}=Dt.default;let de=null,ve="";const be=new Set(["^^","@@","^","%","#"])});unwrapExports(Sn),Sn.ArgumentPlaceholder,Sn.ArrayPattern,Sn.ArrayExpression,Sn.BigIntLiteral,Sn.BooleanLiteral,Sn.Identifier,Sn.NullLiteral,Sn.NumericLiteral,Sn.ObjectPattern,Sn.ObjectExpression,Sn.ObjectMethod,Sn.ObjectProperty,Sn.PipelineBareFunction,Sn.PipelinePrimaryTopicReference,Sn.PipelineTopicExpression,Sn.RecordExpression,Sn.RegExpLiteral,Sn.SpreadElement,Sn.RestElement,Sn.StringLiteral,Sn.TopicReference,Sn.TupleExpression,Sn.VoidPattern,Sn._getRawIdentifier;var Dn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.AnyTypeAnnotation=function AnyTypeAnnotation(){this.word("any")},Z.ArrayTypeAnnotation=function ArrayTypeAnnotation(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},Z.BooleanLiteralTypeAnnotation=function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")},Z.BooleanTypeAnnotation=function BooleanTypeAnnotation(){this.word("boolean")},Z.DeclareClass=function DeclareClass(e,Z){ie(Z)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},Z.DeclareExportAllDeclaration=function DeclareExportAllDeclaration(e){this.word("declare"),this.space(),hn.ExportAllDeclaration.call(this,e)},Z.DeclareExportDeclaration=function DeclareExportDeclaration(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());FlowExportDeclaration.call(this,e)},Z.DeclareFunction=function DeclareFunction(e,Z){ie(Z)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate));this.semicolon()},Z.DeclareInterface=function DeclareInterface(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},Z.DeclareModule=function DeclareModule(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},Z.DeclareModuleExports=function DeclareModuleExports(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},Z.DeclareOpaqueType=function DeclareOpaqueType(e,Z){ie(Z)||(this.word("declare"),this.space());this.OpaqueType(e)},Z.DeclareTypeAlias=function DeclareTypeAlias(e){this.word("declare"),this.space(),this.TypeAlias(e)},Z.DeclareVariable=function DeclareVariable(e,Z){ie(Z)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},Z.DeclaredPredicate=function DeclaredPredicate(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},Z.EmptyTypeAnnotation=function EmptyTypeAnnotation(){this.word("empty")},Z.EnumBooleanBody=function EnumBooleanBody(e){const{explicitType:Z}=e;enumExplicitType(this,"boolean",Z),enumBody(this,e)},Z.EnumBooleanMember=function EnumBooleanMember(e){enumInitializedMember(this,e)},Z.EnumDeclaration=function EnumDeclaration(e){const{id:Z,body:ie}=e;this.word("enum"),this.space(),this.print(Z),this.print(ie)},Z.EnumDefaultedMember=function EnumDefaultedMember(e){const{id:Z}=e;this.print(Z),this.tokenChar(44)},Z.EnumNumberBody=function EnumNumberBody(e){const{explicitType:Z}=e;enumExplicitType(this,"number",Z),enumBody(this,e)},Z.EnumNumberMember=function EnumNumberMember(e){enumInitializedMember(this,e)},Z.EnumStringBody=function EnumStringBody(e){const{explicitType:Z}=e;enumExplicitType(this,"string",Z),enumBody(this,e)},Z.EnumStringMember=function EnumStringMember(e){enumInitializedMember(this,e)},Z.EnumSymbolBody=function EnumSymbolBody(e){enumExplicitType(this,"symbol",!0),enumBody(this,e)},Z.ExistsTypeAnnotation=function ExistsTypeAnnotation(){this.tokenChar(42)},Z.FunctionTypeAnnotation=function FunctionTypeAnnotation(e,Z){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space()));this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest));this.tokenChar(41);const ie=null==Z?void 0:Z.type;null!=ie&&("ObjectTypeCallProperty"===ie||"ObjectTypeInternalSlot"===ie||"DeclareFunction"===ie||"ObjectTypeProperty"===ie&&Z.method)?this.tokenChar(58):(this.space(),this.token("=>"));this.space(),this.print(e.returnType)},Z.FunctionTypeParam=function FunctionTypeParam(e){this.print(e.name),e.optional&&this.tokenChar(63);e.name&&(this.tokenChar(58),this.space());this.print(e.typeAnnotation)},Z.IndexedAccessType=function IndexedAccessType(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Z.InferredPredicate=function InferredPredicate(){this.tokenChar(37),this.word("checks")},Z.InterfaceDeclaration=function InterfaceDeclaration(e){this.word("interface"),this.space(),this._interfaceish(e)},Z.GenericTypeAnnotation=Z.ClassImplements=Z.InterfaceExtends=function InterfaceExtends(e){this.print(e.id),this.print(e.typeParameters,!0)},Z.InterfaceTypeAnnotation=function InterfaceTypeAnnotation(e){var Z;this.word("interface"),null!=(Z=e.extends)&&Z.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));this.space(),this.print(e.body)},Z.IntersectionTypeAnnotation=function IntersectionTypeAnnotation(e){this.printJoin(e.types,void 0,void 0,andSeparator)},Z.MixedTypeAnnotation=function MixedTypeAnnotation(){this.word("mixed")},Z.NullLiteralTypeAnnotation=function NullLiteralTypeAnnotation(){this.word("null")},Z.NullableTypeAnnotation=function NullableTypeAnnotation(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(Z,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return Sn.NumericLiteral}}),Z.NumberTypeAnnotation=function NumberTypeAnnotation(){this.word("number")},Z.ObjectTypeAnnotation=function ObjectTypeAnnotation(e){e.exact?this.token("{|"):this.tokenChar(123);const Z=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];Z.length&&(this.newline(),this.space(),this.printJoin(Z,!0,!0,void 0,void 0,function addNewlines(e){if(e&&!Z[0])return 1},()=>{(1!==Z.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space());e.inexact&&(this.indent(),this.token("..."),Z.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.tokenChar(125)},Z.ObjectTypeCallProperty=function ObjectTypeCallProperty(e){e.static&&(this.word("static"),this.space());this.print(e.value)},Z.ObjectTypeIndexer=function ObjectTypeIndexer(e){e.static&&(this.word("static"),this.space());this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space());this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},Z.ObjectTypeInternalSlot=function ObjectTypeInternalSlot(e){e.static&&(this.word("static"),this.space());this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},Z.ObjectTypeProperty=function ObjectTypeProperty(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},Z.ObjectTypeSpreadProperty=function ObjectTypeSpreadProperty(e){this.token("..."),this.print(e.argument)},Z.OpaqueType=function OpaqueType(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype));e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype));this.semicolon()},Z.OptionalIndexedAccessType=function OptionalIndexedAccessType(e){this.print(e.objectType),e.optional&&this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Z.QualifiedTypeIdentifier=function QualifiedTypeIdentifier(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(Z,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return Sn.StringLiteral}}),Z.StringTypeAnnotation=function StringTypeAnnotation(){this.word("string")},Z.SymbolTypeAnnotation=function SymbolTypeAnnotation(){this.word("symbol")},Z.ThisTypeAnnotation=function ThisTypeAnnotation(){this.word("this")},Z.TupleTypeAnnotation=function TupleTypeAnnotation(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},Z.TypeAlias=function TypeAlias(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},Z.TypeAnnotation=function TypeAnnotation(e,Z){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===Z.type?this.tokenContext|=tn.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},Z.TypeCastExpression=function TypeCastExpression(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},Z.TypeParameter=function TypeParameter(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound);e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},Z.TypeParameterDeclaration=Z.TypeParameterInstantiation=function TypeParameterInstantiation(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},Z.TypeofTypeAnnotation=function TypeofTypeAnnotation(e){this.word("typeof"),this.space(),this.print(e.argument)},Z.UnionTypeAnnotation=function UnionTypeAnnotation(e){this.printJoin(e.types,void 0,void 0,orSeparator)},Z.Variance=function Variance(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},Z.VoidTypeAnnotation=function VoidTypeAnnotation(){this.word("void")},Z._interfaceish=function _interfaceish(e){var Z;this.print(e.id),this.print(e.typeParameters),null!=(Z=e.extends)&&Z.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));if("DeclareClass"===e.type){var ie,ae;null!=(ie=e.mixins)&&ie.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(ae=e.implements)&&ae.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)},Z._variance=function _variance(e){var Z;const ie=null==(Z=e.variance)?void 0:Z.kind;null!=ie&&("plus"===ie?this.tokenChar(43):"minus"===ie&&this.tokenChar(45))};const{isDeclareExportDeclaration:ie,isStatement:ae}=Dt.default;function enumExplicitType(e,Z,ie){ie&&(e.space(),e.word("of"),e.space(),e.word(Z)),e.space()}function enumBody(e,Z){const{members:ie}=Z;e.token("{"),e.indent(),e.newline();for(const Z of ie)e.print(Z),e.newline();Z.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function enumInitializedMember(e,Z){e.print(Z.id),e.space(),e.token("="),e.space(),e.print(Z.init),e.token(",")}function FlowExportDeclaration(e){if(e.declaration){const Z=e.declaration;this.print(Z),ae(Z)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function andSeparator(e){this.space(),this.token("&",!1,e),this.space()}function orSeparator(e){this.space(),this.token("|",!1,e),this.space()}});unwrapExports(Dn),Dn.AnyTypeAnnotation,Dn.ArrayTypeAnnotation,Dn.BooleanLiteralTypeAnnotation,Dn.BooleanTypeAnnotation,Dn.DeclareClass,Dn.DeclareExportAllDeclaration,Dn.DeclareExportDeclaration,Dn.DeclareFunction,Dn.DeclareInterface,Dn.DeclareModule,Dn.DeclareModuleExports,Dn.DeclareOpaqueType,Dn.DeclareTypeAlias,Dn.DeclareVariable,Dn.DeclaredPredicate,Dn.EmptyTypeAnnotation,Dn.EnumBooleanBody,Dn.EnumBooleanMember,Dn.EnumDeclaration,Dn.EnumDefaultedMember,Dn.EnumNumberBody,Dn.EnumNumberMember,Dn.EnumStringBody,Dn.EnumStringMember,Dn.EnumSymbolBody,Dn.ExistsTypeAnnotation,Dn.FunctionTypeAnnotation,Dn.FunctionTypeParam,Dn.IndexedAccessType,Dn.InferredPredicate,Dn.InterfaceDeclaration,Dn.GenericTypeAnnotation,Dn.ClassImplements,Dn.InterfaceExtends,Dn.InterfaceTypeAnnotation,Dn.IntersectionTypeAnnotation,Dn.MixedTypeAnnotation,Dn.NullLiteralTypeAnnotation,Dn.NullableTypeAnnotation,Dn.NumberLiteralTypeAnnotation,Dn.NumberTypeAnnotation,Dn.ObjectTypeAnnotation,Dn.ObjectTypeCallProperty,Dn.ObjectTypeIndexer,Dn.ObjectTypeInternalSlot,Dn.ObjectTypeProperty,Dn.ObjectTypeSpreadProperty,Dn.OpaqueType,Dn.OptionalIndexedAccessType,Dn.QualifiedTypeIdentifier,Dn.StringLiteralTypeAnnotation,Dn.StringTypeAnnotation,Dn.SymbolTypeAnnotation,Dn.ThisTypeAnnotation,Dn.TupleTypeAnnotation,Dn.TypeAlias,Dn.TypeAnnotation,Dn.TypeCastExpression,Dn.TypeParameter,Dn.TypeParameterDeclaration,Dn.TypeParameterInstantiation,Dn.TypeofTypeAnnotation,Dn.UnionTypeAnnotation,Dn.Variance,Dn.VoidTypeAnnotation,Dn._interfaceish,Dn._variance;var kn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.BlockStatement=function BlockStatement(e){var Z;this.tokenChar(123);const ie=this.enterDelimited(),ae=null==(Z=e.directives)?void 0:Z.length;if(ae){var de;const Z=e.body.length?2:1;this.printSequence(e.directives,!0,Z),null!=(de=e.directives[ae-1].trailingComments)&&de.length||this.newline(Z)}this.printSequence(e.body,!0),ie(),this.rightBrace(e)},Z.Directive=function Directive(e){this.print(e.value),this.semicolon()},Z.DirectiveLiteral=function DirectiveLiteral(e){const Z=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==Z)return void this.token(Z);const{value:de}=e;if(ae.test(de)){if(ie.test(de))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${de}'`)}else this.token(`"${de}"`)},Z.File=function File(e){e.program&&this.print(e.program.interpreter);this.print(e.program)},Z.InterpreterDirective=function InterpreterDirective(e){this.token(`#!${e.value}`),this.newline(1,!0)},Z.Placeholder=function Placeholder(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},Z.Program=function Program(e){var Z;this.noIndentInnerCommentsHere(),this.printInnerComments();const ie=null==(Z=e.directives)?void 0:Z.length;if(ie){var ae;const Z=e.body.length?2:1;this.printSequence(e.directives,void 0,Z),null!=(ae=e.directives[ie-1].trailingComments)&&ae.length||this.newline(Z)}this.printSequence(e.body)};const ie=/(?:^|[^\\])(?:\\\\)*'/,ae=/(?:^|[^\\])(?:\\\\)*"/});unwrapExports(kn),kn.BlockStatement,kn.Directive,kn.DirectiveLiteral,kn.File,kn.InterpreterDirective,kn.Placeholder,kn.Program;var In=createCommonjsModule(function(e,Z){function spaceSeparator(){this.space()}Object.defineProperty(Z,"__esModule",{value:!0}),Z.JSXAttribute=function JSXAttribute(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},Z.JSXClosingElement=function JSXClosingElement(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},Z.JSXClosingFragment=function JSXClosingFragment(){this.token("</"),this.tokenChar(62)},Z.JSXElement=function JSXElement(e){const Z=e.openingElement;if(this.print(Z),Z.selfClosing)return;this.indent();for(const Z of e.children)this.print(Z);this.dedent(),this.print(e.closingElement)},Z.JSXEmptyExpression=function JSXEmptyExpression(){this.printInnerComments()},Z.JSXExpressionContainer=function JSXExpressionContainer(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},Z.JSXFragment=function JSXFragment(e){this.print(e.openingFragment),this.indent();for(const Z of e.children)this.print(Z);this.dedent(),this.print(e.closingFragment)},Z.JSXIdentifier=function JSXIdentifier(e){this.word(e.name)},Z.JSXMemberExpression=function JSXMemberExpression(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},Z.JSXNamespacedName=function JSXNamespacedName(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},Z.JSXOpeningElement=function JSXOpeningElement(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments);this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,spaceSeparator));e.selfClosing&&(this.space(),this.tokenChar(47));this.tokenChar(62)},Z.JSXOpeningFragment=function JSXOpeningFragment(){this.tokenChar(60),this.tokenChar(62)},Z.JSXSpreadAttribute=function JSXSpreadAttribute(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},Z.JSXSpreadChild=function JSXSpreadChild(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},Z.JSXText=function JSXText(e){const Z=this.getPossibleRaw(e);void 0!==Z?this.token(Z,!0):this.token(e.value,!0)}});unwrapExports(In),In.JSXAttribute,In.JSXClosingElement,In.JSXClosingFragment,In.JSXElement,In.JSXEmptyExpression,In.JSXExpressionContainer,In.JSXFragment,In.JSXIdentifier,In.JSXMemberExpression,In.JSXNamespacedName,In.JSXOpeningElement,In.JSXOpeningFragment,In.JSXSpreadAttribute,In.JSXSpreadChild,In.JSXText;var Nn=createCommonjsModule(function(e,Z){function maybePrintTrailingCommaOrSemicolon(e,Z){e.tokenMap&&Z.start&&Z.end?e.tokenMap.endMatches(Z,",")?e.token(","):e.tokenMap.endMatches(Z,";")&&e.semicolon():e.semicolon()}function tsPrintUnionOrIntersectionType(e,Z,ie){var ae;let de=0;null!=(ae=e.tokenMap)&&ae.startMatches(Z,ie)&&(de=1,e.token(ie)),e.printJoin(Z.types,void 0,void 0,function(e){this.space(),this.token(ie,null,e+de),this.space()})}function tokenIfPlusMinus(e,Z){!0!==Z&&e.token(Z)}function TSEnumBody(e){printBraced(this,e,()=>{var Z;return this.printList(e.members,null==(Z=this.shouldPrintTrailingComma("}"))||Z,!0,!0)})}function printBraced(e,Z,ie){e.token("{");const ae=e.enterDelimited();ie(),ae(),e.rightBrace(Z)}function printModifiersList(e,Z,ie){var ae;const de=new Set;for(const e of ie)e&&de.add(e);null==(ae=e.tokenMap)||ae.find(Z,Z=>{if(de.has(Z.value))return e.token(Z.value),e.space(),de.delete(Z.value),0===de.size});for(const Z of de)e.word(Z),e.space()}Object.defineProperty(Z,"__esModule",{value:!0}),Z.TSAnyKeyword=function TSAnyKeyword(){this.word("any")},Z.TSArrayType=function TSArrayType(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},Z.TSSatisfiesExpression=Z.TSAsExpression=function TSTypeExpression(e){const{type:Z,expression:ie,typeAnnotation:ae}=e;this.print(ie,!0),this.space(),this.word("TSAsExpression"===Z?"as":"satisfies"),this.space(),this.print(ae)},Z.TSBigIntKeyword=function TSBigIntKeyword(){this.word("bigint")},Z.TSBooleanKeyword=function TSBooleanKeyword(){this.word("boolean")},Z.TSCallSignatureDeclaration=function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSInterfaceHeritage=Z.TSClassImplements=function TSClassImplements(e){this.print(e.expression),this.print(e.typeArguments)},Z.TSConditionalType=function TSConditionalType(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},Z.TSConstructSignatureDeclaration=function TSConstructSignatureDeclaration(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSConstructorType=function TSConstructorType(e){e.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},Z.TSDeclareFunction=function TSDeclareFunction(e,Z){e.declare&&(this.word("declare"),this.space());this._functionHead(e,Z),this.semicolon()},Z.TSDeclareMethod=function TSDeclareMethod(e){this._classMethodHead(e),this.semicolon()},Z.TSEnumBody=TSEnumBody,Z.TSEnumDeclaration=function TSEnumDeclaration(e){const{declare:Z,const:ie,id:ae}=e;Z&&(this.word("declare"),this.space());ie&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(ae),this.space(),TSEnumBody.call(this,e)},Z.TSEnumMember=function TSEnumMember(e){const{id:Z,initializer:ie}=e;this.print(Z),ie&&(this.space(),this.tokenChar(61),this.space(),this.print(ie))},Z.TSExportAssignment=function TSExportAssignment(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},Z.TSExternalModuleReference=function TSExternalModuleReference(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},Z.TSFunctionType=function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)},Z.TSImportEqualsDeclaration=function TSImportEqualsDeclaration(e){const{id:Z,moduleReference:ie}=e;e.isExport&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(Z),this.space(),this.tokenChar(61),this.space(),this.print(ie),this.semicolon()},Z.TSImportType=function TSImportType(e){const{argument:Z,qualifier:ie,options:ae}=e;this.word("import"),this.tokenChar(40),this.print(Z),ae&&(this.tokenChar(44),this.print(ae));this.tokenChar(41),ie&&(this.tokenChar(46),this.print(ie));const de=e.typeParameters;de&&this.print(de)},Z.TSIndexSignature=function TSIndexSignature(e){const{readonly:Z,static:ie}=e;ie&&(this.word("static"),this.space());Z&&(this.word("readonly"),this.space());this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSIndexedAccessType=function TSIndexedAccessType(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Z.TSInferType=function TSInferType(e){this.word("infer"),this.print(e.typeParameter)},Z.TSInstantiationExpression=function TSInstantiationExpression(e){this.print(e.expression),this.print(e.typeParameters)},Z.TSInterfaceBody=function TSInterfaceBody(e){printBraced(this,e,()=>this.printJoin(e.body,!0,!0))},Z.TSInterfaceDeclaration=function TSInterfaceDeclaration(e){const{declare:Z,id:ie,typeParameters:ae,extends:de,body:ve}=e;Z&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(ie),this.print(ae),null!=de&&de.length&&(this.space(),this.word("extends"),this.space(),this.printList(de));this.space(),this.print(ve)},Z.TSIntersectionType=function TSIntersectionType(e){tsPrintUnionOrIntersectionType(this,e,"&")},Z.TSIntrinsicKeyword=function TSIntrinsicKeyword(){this.word("intrinsic")},Z.TSLiteralType=function TSLiteralType(e){this.print(e.literal)},Z.TSMappedType=function TSMappedType(e){const{nameType:Z,optional:ie,readonly:ae,typeAnnotation:de}=e;this.tokenChar(123);const ve=this.enterDelimited();this.space(),ae&&(tokenIfPlusMinus(this,ae),this.word("readonly"),this.space());this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),Z&&(this.space(),this.word("as"),this.space(),this.print(Z));this.tokenChar(93),ie&&(tokenIfPlusMinus(this,ie),this.tokenChar(63));de&&(this.tokenChar(58),this.space(),this.print(de));this.space(),ve(),this.tokenChar(125)},Z.TSMethodSignature=function TSMethodSignature(e){const{kind:Z}=e;"set"!==Z&&"get"!==Z||(this.word(Z),this.space());this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSModuleBlock=function TSModuleBlock(e){printBraced(this,e,()=>this.printSequence(e.body,!0))},Z.TSModuleDeclaration=function TSModuleDeclaration(e){const{declare:Z,id:ie,kind:ae}=e;Z&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=ae?ae:"Identifier"===ie.type?"namespace":"module"),this.space()),this.print(ie),!e.body)return void this.semicolon();let Z=e.body;for(;"TSModuleDeclaration"===Z.type;)this.tokenChar(46),this.print(Z.id),Z=Z.body;this.space(),this.print(Z)}},Z.TSNamedTupleMember=function TSNamedTupleMember(e){this.print(e.label),e.optional&&this.tokenChar(63);this.tokenChar(58),this.space(),this.print(e.elementType)},Z.TSNamespaceExportDeclaration=function TSNamespaceExportDeclaration(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},Z.TSNeverKeyword=function TSNeverKeyword(){this.word("never")},Z.TSNonNullExpression=function TSNonNullExpression(e){this.print(e.expression),this.tokenChar(33)},Z.TSNullKeyword=function TSNullKeyword(){this.word("null")},Z.TSNumberKeyword=function TSNumberKeyword(){this.word("number")},Z.TSObjectKeyword=function TSObjectKeyword(){this.word("object")},Z.TSOptionalType=function TSOptionalType(e){this.print(e.typeAnnotation),this.tokenChar(63)},Z.TSParameterProperty=function TSParameterProperty(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},Z.TSParenthesizedType=function TSParenthesizedType(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},Z.TSPropertySignature=function TSPropertySignature(e){const{readonly:Z}=e;Z&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSQualifiedName=function TSQualifiedName(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},Z.TSRestType=function TSRestType(e){this.token("..."),this.print(e.typeAnnotation)},Z.TSStringKeyword=function TSStringKeyword(){this.word("string")},Z.TSSymbolKeyword=function TSSymbolKeyword(){this.word("symbol")},Z.TSTemplateLiteralType=function TSTemplateLiteralType(e){this._printTemplate(e,e.types)},Z.TSThisType=function TSThisType(){this.word("this")},Z.TSTupleType=function TSTupleType(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},Z.TSTypeAliasDeclaration=function TSTypeAliasDeclaration(e){const{declare:Z,id:ie,typeParameters:ae,typeAnnotation:de}=e;Z&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(ie),this.print(ae),this.space(),this.tokenChar(61),this.space(),this.print(de),this.semicolon()},Z.TSTypeAnnotation=function TSTypeAnnotation(e,Z){this.token("TSFunctionType"!==Z.type&&"TSConstructorType"!==Z.type||Z.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},Z.TSTypeAssertion=function TSTypeAssertion(e){const{typeAnnotation:Z,expression:ie}=e;this.tokenChar(60),this.print(Z),this.tokenChar(62),this.space(),this.print(ie)},Z.TSTypeLiteral=function TSTypeLiteral(e){printBraced(this,e,()=>this.printJoin(e.members,!0,!0))},Z.TSTypeOperator=function TSTypeOperator(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},Z.TSTypeParameter=function TSTypeParameter(e){e.const&&(this.word("const"),this.space());e.in&&(this.word("in"),this.space());e.out&&(this.word("out"),this.space());this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint));e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},Z.TSTypeParameterDeclaration=Z.TSTypeParameterInstantiation=function TSTypeParameterInstantiation(e,Z){this.tokenChar(60);let ie="ArrowFunctionExpression"===Z.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(ie&&(ie=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),ie||(ie=this.shouldPrintTrailingComma(">")));this.printList(e.params,ie),this.tokenChar(62)},Z.TSTypePredicate=function TSTypePredicate(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},Z.TSTypeQuery=function TSTypeQuery(e){this.word("typeof"),this.space(),this.print(e.exprName);const Z=e.typeParameters;Z&&this.print(Z)},Z.TSTypeReference=function TSTypeReference(e){const Z=e.typeParameters;this.print(e.typeName,!!Z),this.print(Z)},Z.TSUndefinedKeyword=function TSUndefinedKeyword(){this.word("undefined")},Z.TSUnionType=function TSUnionType(e){tsPrintUnionOrIntersectionType(this,e,"|")},Z.TSUnknownKeyword=function TSUnknownKeyword(){this.word("unknown")},Z.TSVoidKeyword=function TSVoidKeyword(){this.word("void")},Z.tsPrintClassMemberModifiers=function tsPrintClassMemberModifiers(e){const Z="ClassPrivateProperty"===e.type,ie="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;printModifiersList(this,e,[ie&&e.declare&&"declare",!Z&&e.accessibility]),e.static&&(this.word("static"),this.space());printModifiersList(this,e,[!Z&&e.abstract&&"abstract",!Z&&e.override&&"override",(ie||Z)&&e.readonly&&"readonly"])},Z.tsPrintFunctionOrConstructorType=function tsPrintFunctionOrConstructorType(e){const{typeParameters:Z}=e,ie=e.parameters;this.print(Z),this.tokenChar(40),this._parameters(ie,")"),this.space();const ae=e.typeAnnotation;this.print(ae)},Z.tsPrintPropertyOrMethodName=function tsPrintPropertyOrMethodName(e){e.computed&&this.tokenChar(91);this.print(e.key),e.computed&&this.tokenChar(93);e.optional&&this.tokenChar(63)},Z.tsPrintSignatureDeclarationBase=function tsPrintSignatureDeclarationBase(e){const{typeParameters:Z}=e,ie=e.parameters;this.print(Z),this.tokenChar(40),this._parameters(ie,")");const ae=e.typeAnnotation;this.print(ae)}});unwrapExports(Nn),Nn.TSAnyKeyword,Nn.TSArrayType,Nn.TSSatisfiesExpression,Nn.TSAsExpression,Nn.TSBigIntKeyword,Nn.TSBooleanKeyword,Nn.TSCallSignatureDeclaration,Nn.TSInterfaceHeritage,Nn.TSClassImplements,Nn.TSConditionalType,Nn.TSConstructSignatureDeclaration,Nn.TSConstructorType,Nn.TSDeclareFunction,Nn.TSDeclareMethod,Nn.TSEnumBody,Nn.TSEnumDeclaration,Nn.TSEnumMember,Nn.TSExportAssignment,Nn.TSExternalModuleReference,Nn.TSFunctionType,Nn.TSImportEqualsDeclaration,Nn.TSImportType,Nn.TSIndexSignature,Nn.TSIndexedAccessType,Nn.TSInferType,Nn.TSInstantiationExpression,Nn.TSInterfaceBody,Nn.TSInterfaceDeclaration,Nn.TSIntersectionType,Nn.TSIntrinsicKeyword,Nn.TSLiteralType,Nn.TSMappedType,Nn.TSMethodSignature,Nn.TSModuleBlock,Nn.TSModuleDeclaration,Nn.TSNamedTupleMember,Nn.TSNamespaceExportDeclaration,Nn.TSNeverKeyword,Nn.TSNonNullExpression,Nn.TSNullKeyword,Nn.TSNumberKeyword,Nn.TSObjectKeyword,Nn.TSOptionalType,Nn.TSParameterProperty,Nn.TSParenthesizedType,Nn.TSPropertySignature,Nn.TSQualifiedName,Nn.TSRestType,Nn.TSStringKeyword,Nn.TSSymbolKeyword,Nn.TSTemplateLiteralType,Nn.TSThisType,Nn.TSTupleType,Nn.TSTypeAliasDeclaration,Nn.TSTypeAnnotation,Nn.TSTypeAssertion,Nn.TSTypeLiteral,Nn.TSTypeOperator,Nn.TSTypeParameter,Nn.TSTypeParameterDeclaration,Nn.TSTypeParameterInstantiation,Nn.TSTypePredicate,Nn.TSTypeQuery,Nn.TSTypeReference,Nn.TSUndefinedKeyword,Nn.TSUnionType,Nn.TSUnknownKeyword,Nn.TSVoidKeyword,Nn.tsPrintClassMemberModifiers,Nn.tsPrintFunctionOrConstructorType,Nn.tsPrintPropertyOrMethodName,Nn.tsPrintSignatureDeclarationBase;var _n=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Object.keys(an).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===an[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return an[e]}}))}),Object.keys(cn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===cn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return cn[e]}}))}),Object.keys(un).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===un[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return un[e]}}))}),Object.keys(ln).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===ln[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return ln[e]}}))}),Object.keys(pn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===pn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return pn[e]}}))}),Object.keys(hn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===hn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return hn[e]}}))}),Object.keys(Sn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===Sn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return Sn[e]}}))}),Object.keys(Dn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===Dn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return Dn[e]}}))}),Object.keys(kn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===kn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return kn[e]}}))}),Object.keys(In).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===In[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return In[e]}}))}),Object.keys(Nn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===Nn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return Nn[e]}}))})});unwrapExports(_n);var Fn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.addDeprecatedGenerators=function addDeprecatedGenerators(e){{const Z={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const Z=this.getPossibleRaw(e);this.format.minified||void 0===Z?this.word(e.value+"m"):this.word(Z)}};Object.assign(e.prototype,Z)}}});unwrapExports(Fn),Fn.addDeprecatedGenerators;var On=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=tn;const{isExpression:ae,isFunction:de,isStatement:ve,isClassBody:be,isTSInterfaceBody:Ce,isTSEnumMember:ke}=Dt.default,Ie=/e/i,_e=/\.0+$/,Fe=/[\n\r\u2028\u2029]/,Oe=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return"CommentLine"===e.type||Fe.test(e.value)}const{needsParens:Be}=ie;class Printer{constructor(e,Z,ie,ae){this.tokenContext=tn.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=ie,this._originalCode=ae,this._indentRepeat=e.indent.style.length,this._inputMap=null==Z?void 0:Z._inputMap,this._buf=new Zr.default(Z,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=tn.TokenContext.forInitHead|tn.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=tn.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=tn.TokenContext.forOfHead,null):(this.tokenContext|=tn.TokenContext.forInHead|tn.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=tn.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,Z=this._noLineTerminatorAfterNode;return e&tn.TokenContext.forInOrInitHeadAccumulate||null!==Z?(this._noLineTerminatorAfterNode=null,this.tokenContext=tn.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=Z,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new sn.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const Z=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[Z[Z.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:Z}=this;if(!Z.compact&&!Z.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,Z=!1){this.tokenContext&=tn.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=Z}number(e,Z){this.word(e),this._endsWithInteger=Number.isInteger(Z)&&!function isNonDecimalLiteral(e){if(e.length>2&&48===e.charCodeAt(0)){const Z=e.charCodeAt(1);return 98===Z||111===Z||120===Z}return!1}(e)&&!Ie.test(e)&&!_e.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,Z=!1,ie=0){this.tokenContext&=tn.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,ie),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,ie);const ae=this.getLastChar(),de=e.charCodeAt(0);(33===ae&&("--"===e||61===de)||43===de&&43===ae||45===de&&45===ae||46===de&&this._endsWithInteger)&&this._space(),this._append(e,Z),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=tn.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const Z=String.fromCharCode(e);this._maybePrintInnerComments(Z),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(Z);const ie=this.getLastChar();(43===e&&43===ie||45===e&&45===ie||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,Z){if(!(e<=0)){if(!Z){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let Z=0;Z<e;Z++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,Z){e?(this._catchUp("start",e),this._buf.exactSource(e,Z)):Z()}source(e,Z){Z&&(this._catchUp(e,Z),this._buf.source(e,Z))}sourceWithOffset(e,Z,ie){Z&&!this.format.preserveFormat&&(this._catchUp(e,Z),this._buf.sourceWithOffset(e,Z,ie))}sourceIdentifierName(e,Z){if(!this._buf._canMarkIdName)return;const ie=this._buf._sourcePosition;ie.identifierNamePos=Z,ie.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,Z=0){const ie=this.tokenMap.findMatching(this._currentNode,e,Z);ie&&this._catchUpTo(ie.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,Z){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,Z),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const Z=e-this._buf.getCurrentLine();for(let e=0;e<Z;e++)this._newline()}_catchUp(e,Z){const{format:ie}=this;if(!ie.preserveFormat)return void(ie.retainLines&&null!=Z&&Z[e]&&this.catchUp(Z[e].line));const ae=null==Z?void 0:Z[e];null!=ae&&this._catchUpTo(ae)}_catchUpTo({line:e,column:Z,index:ie}){const ae=e-this._buf.getCurrentLine();if(ae>0&&this._noLineTerminator)return;for(let e=0;e<ae;e++)this._newline();const de=ae>0?Z:Z-this._buf.getCurrentColumn();if(de>0){const e=this._originalCode?this._originalCode.slice(ie-de,ie).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(de);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,Z,de){var ve,be,Ce;if(!e)return;this._endsWithInnerRaw=!1;const ke=e.type,Ie=this.format,_e=Ie.concise;e._compact&&(Ie.concise=!0);const Fe=this[ke];if(void 0===Fe)throw new ReferenceError(`unknown node of type ${JSON.stringify(ke)} with constructor ${JSON.stringify(e.constructor.name)}`);const Oe=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const Me=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!Me);const qe=null==(ve=e.extra)?void 0:ve.parenthesized;let Ve=qe&&Ie.preserveFormat||qe&&Ie.retainFunctionParens&&"FunctionExpression"===ke||Be(e,Oe,this.tokenContext,Ie.preserveFormat?this._boundGetRawIdentifier:void 0);if(!Ve&&qe&&null!=(be=e.leadingComments)&&be.length&&"CommentBlock"===e.leadingComments[0].type){switch(null==Oe?void 0:Oe.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(Oe.callee!==e)break;default:Ve=!0}}let Ze,et,tt=!1;var ct;(!Ve&&this._noLineTerminator&&(null!=(Ce=e.leadingComments)&&Ce.some(commentIsNewline)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(Ve=!0,tt=!0),Ve)||(Z||(Z=Oe&&this._noLineTerminatorAfterNode===Oe&&ie.isLastChild(Oe,e)),Z&&(null!=(ct=e.trailingComments)&&ct.some(commentIsNewline)?ae(e)&&(Ve=!0):(Ze=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)));Ve&&(this.tokenChar(40),tt&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&tn.TokenContext.forInOrInitHeadAccumulate&&(et=this.tokenContext,this.tokenContext=tn.TokenContext.normal),Ze=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,Oe);const ut="Program"===ke||"File"===ke?null:e.loc;this.exactSource(ut,Fe.bind(this,e,Oe)),Ve?(this._printTrailingComments(e,Oe),tt&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=Z,et&&(this.tokenContext=et)):Z&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,Oe)):this._printTrailingComments(e,Oe,de),this._currentNode=Oe,Ie.concise=_e,this._insideAux=Me,void 0!==Ze&&(this._noLineTerminatorAfterNode=Ze),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const Z=e.extra;if(null!=(null==Z?void 0:Z.raw)&&null!=Z.rawValue&&e.value===Z.rawValue)return Z.raw}printJoin(e,Z,ie,ae,de,ve,be,Ce){if(null==e||!e.length)return;if(null==ie&&this.format.retainLines){var ke;const Z=null==(ke=e[0].loc)?void 0:ke.start.line;null!=Z&&Z!==this._buf.getCurrentLine()&&(ie=!0)}ie&&this.indent();const Ie={addNewlines:ve,nextNodeStartLine:0},_e=null==ae?void 0:ae.bind(this),Fe=e.length;for(let ie=0;ie<Fe;ie++){const ae=e[ie];var Oe;if(ae)if(Z&&this._printNewline(0===ie,Ie),this.print(ae,void 0,Ce||0),null==be||be(ae,ie),null!=_e&&(ie<Fe-1?_e(ie,!1):de&&_e(ie,!0)),Z)if(null!=(Oe=ae.trailingComments)&&Oe.length||(this._lastCommentLine=0),ie+1===Fe)this.newline(1);else{var Be;const Z=e[ie+1];Ie.nextNodeStartLine=(null==(Be=Z.loc)?void 0:Be.start.line)||0,this._printNewline(!0,Ie)}}ie&&this.dedent()}printAndIndentOnComments(e){const Z=e.leadingComments&&e.leadingComments.length>0;Z&&this.indent(),this.print(e),Z&&this.dedent()}printBlock(e){const Z=e.body;"EmptyStatement"!==Z.type&&this.space(),this.print(Z)}_printTrailingComments(e,Z,ie){const{innerComments:ae,trailingComments:de}=e;null!=ae&&ae.length&&this._printComments(2,ae,e,Z,ie),null!=de&&de.length&&this._printComments(2,de,e,Z,ie)}_printLeadingComments(e,Z){const ie=e.leadingComments;null!=ie&&ie.length&&this._printComments(0,ie,e,Z)}_maybePrintInnerComments(e,Z){var ie;this._endsWithInnerRaw&&this.printInnerComments(null==(ie=this.tokenMap)?void 0:ie.findMatching(this._currentNode,e,Z));this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const Z=this._currentNode,ie=Z.innerComments;if(null==ie||!ie.length)return;const ae=this.endsWith(32),de=this._indentInnerComments,ve=this._printedComments.size;de&&this.indent(),this._printComments(1,ie,Z,void 0,void 0,e),ae&&ve!==this._printedComments.size&&this.space(),de&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,Z,ie,ae){this.printJoin(e,!0,null!=Z&&Z,void 0,void 0,ae,void 0,ie)}printList(e,Z,ie,ae,de,ve){this.printJoin(e,ie,ae,null!=de?de:commaSeparator,Z,void 0,ve)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const Z=this.tokenMap.findLastIndex(this._currentNode,Z=>this.tokenMap.matchesOriginal(Z,e));return Z<=0?null:this.tokenMap.matchesOriginal(this._tokens[Z-1],",")}_printNewline(e,Z){const ie=this.format;if(ie.retainLines||ie.compact)return;if(ie.concise)return void this.space();if(!e)return;const ae=Z.nextNodeStartLine,de=this._lastCommentLine;if(ae>0&&de>0){const e=ae-de;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,Z){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&Oe.test(e.value))return 2;if(Z&&this.tokenMap){const ie=this.tokenMap.find(this._currentNode,Z=>Z.value===e.value);if(ie&&ie.start>Z.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,Z){const ie=this._noLineTerminator,ae="CommentBlock"===e.type,de=ae&&1!==Z&&!this._noLineTerminator;de&&this._buf.hasContent()&&2!==Z&&this.newline(1);const ve=this.getLastChar();let be;if(91!==ve&&123!==ve&&40!==ve&&this.space(),ae){if(be=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var Ce;const Z=null==(Ce=e.loc)?void 0:Ce.start.column;if(Z){const e=new RegExp("\\n\\s{1,"+Z+"}","g");be=be.replace(e,"\n")}if(this.format.concise)be=be.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),be=be.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else be=ie?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:Z,_printSemicolonBeforeNextNode:ie}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(be,ae),this._printSemicolonBeforeNextNode=ie,this._printSemicolonBeforeNextToken=Z}else this.source("start",e.loc),this._append(be,ae);ae||ie||this.newline(1,!0),de&&3!==Z&&this.newline(1)}_printComments(e,Z,ie,ae,Ie=0,_e){const Oe=ie.loc,Be=Z.length;let Me=!!Oe;const qe=Me?Oe.start.line:0,Ve=Me?Oe.end.line:0;let Ze=0,et=0;const tt=this._noLineTerminator?function(){}:this.newline.bind(this);for(let Oe=0;Oe<Be;Oe++){const ct=Z[Oe],ut=this._shouldPrintComment(ct,_e);if(2===ut){Me=!1;break}if(Me&&ct.loc&&1===ut){const Z=ct.loc.start.line,ie=ct.loc.end.line;if(0===e){let e=0;0===Oe?!this._buf.hasContent()||"CommentLine"!==ct.type&&Z===ie||(e=et=1):e=Z-Ze,Ze=ie,tt(e),this._printComment(ct,1),Oe+1===Be&&(tt(Math.max(qe-Ze,et)),Ze=qe)}else if(1===e){const e=Z-(0===Oe?qe:Ze);Ze=ie,tt(e),this._printComment(ct,1),Oe+1===Be&&(tt(Math.min(1,Ve-Ze)),Ze=Ve)}else{const e=Z-(0===Oe?Ve-Ie:Ze);Ze=ie,tt(e),this._printComment(ct,1)}}else{if(Me=!1,1!==ut)continue;if(1===Be){const Z=ct.loc?ct.loc.start.line===ct.loc.end.line:!Fe.test(ct.value),Ie=Z&&!ve(ie)&&!be(ae)&&!Ce(ae)&&!ke(ie);0===e?this._printComment(ct,Ie&&"ObjectExpression"!==ie.type||Z&&de(ae,{body:ie})?1:0):Ie&&2===e?this._printComment(ct,1):this._printComment(ct,0)}else 1!==e||"ObjectExpression"===ie.type&&ie.properties.length>1||"ClassBody"===ie.type||"TSInterfaceBody"===ie.type?this._printComment(ct,0):this._printComment(ct,0===Oe?2:Oe===Be-1?3:0)}}2===e&&Me&&Ze&&(this._lastCommentLine=Ze)}}function commaSeparator(e,Z){this.token(",",!1,e),Z||this.space()}Object.assign(Printer.prototype,_n),(0,Fn.addDeprecatedGenerators)(Printer),Z.default=Printer});unwrapExports(On);var Ln=createCommonjsModule(function(e,Z){function normalizeOptions(e,Z,ie){if(Z.experimental_preserveFormat){if("string"!=typeof e)throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!Z.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(Z.compact&&"auto"!==Z.compact)throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(Z.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(Z.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(ie.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}const ae={auxiliaryCommentBefore:Z.auxiliaryCommentBefore,auxiliaryCommentAfter:Z.auxiliaryCommentAfter,shouldPrintComment:Z.shouldPrintComment,preserveFormat:Z.experimental_preserveFormat,retainLines:Z.retainLines,retainFunctionParens:Z.retainFunctionParens,comments:null==Z.comments||Z.comments,compact:Z.compact,minified:Z.minified,concise:Z.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},Z.jsescOption),topicToken:Z.topicToken,importAttributesKeyword:Z.importAttributesKeyword};var de;ae.decoratorsBeforeExport=Z.decoratorsBeforeExport,ae.jsescOption.json=Z.jsonCompatibleStrings,ae.recordAndTupleSyntaxType=null!=(de=Z.recordAndTupleSyntaxType)?de:"hash",ae.minified?(ae.compact=!0,ae.shouldPrintComment=ae.shouldPrintComment||(()=>ae.comments)):ae.shouldPrintComment=ae.shouldPrintComment||(e=>ae.comments||e.includes("@license")||e.includes("@preserve")),"auto"===ae.compact&&(ae.compact="string"==typeof e&&e.length>5e5,ae.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${Z.filename} as it exceeds the max of 500KB.`)),(ae.compact||ae.preserveFormat)&&(ae.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:ve,auxiliaryCommentAfter:be,shouldPrintComment:Ce}=ae;return ve&&!Ce(ve)&&(ae.auxiliaryCommentBefore=void 0),be&&!Ce(be)&&(ae.auxiliaryCommentAfter=void 0),ae}function generate(e,Z={},ie){const ae=normalizeOptions(ie,Z,e),de=Z.sourceMaps?new Yr.default(Z,ie):null;return new On.default(ae,de,e.tokens,"string"==typeof ie?ie:null).generate(e)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0,Z.generate=generate,Z.CodeGenerator=class CodeGenerator{constructor(e,Z={},ie){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=normalizeOptions(ie,Z,e),this._map=Z.sourceMaps?new Yr.default(Z,ie):null}generate(){return new On.default(this._format,this._map).generate(this._ast)}},Z.default=generate}),Bn=unwrapExports(Ln);Ln.generate,Ln.CodeGenerator;let Mn,Un,random=e=>((e=>{!Mn||Mn.length<e?(Mn=Buffer.allocUnsafe(128*e),_t.default.randomFillSync(Mn),Un=0):Un+e>Mn.length&&(_t.default.randomFillSync(Mn),Un=0),Un+=e})(e-=0),Mn.subarray(Un-e,Un));require("base-64").encode;var $n=((e,Z=21)=>((e,Z,ie)=>{let ae=(2<<31-Math.clz32(e.length-1|1))-1,de=Math.ceil(1.6*ae*Z/e.length);return(ve=Z)=>{let be="";for(;;){let Z=ie(de),Ce=de;for(;Ce--;)if(be+=e[Z[Ce]&ae]||"",be.length===ve)return be}}})(e,Z,random))("0123456789abcdefghijklmnopqrstuvwxyz",6);var transformJsx=function(e,Z,ie){var ae=[],de=[],ve=!1,be=!1,Ce=null,ke=e.path.includes("/src/components/")?"Component":"Page",Ie=Et.readFileSync(e.path+"/"+e.fileName,"utf-8");Ie.includes("this.globalData")&&(be=!0),Ie.includes("GlobalDataDecorator")&&(ve=!0);var _e=Ie.includes("this.props?.children")||Ie.includes("this.props.children");Ie=(Ie=Ie.replace("{$eval(() => this.props?.children)}","<Outlet />")).replace("{$eval(() => this.props.children)}","<Outlet />"),"vite"===Z&&(Ie=Ie.replace("constants = constants;","constants = constants;\n history = utils.history;"));var Fe=lr("".concat(Ie),{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]});if(It.default(Fe,{ClassDeclaration:function(e){var Z=e.node.decorators;Z&&(Z.some(function(e){return!(!kt.isDecorator(e)||!kt.isIdentifier(e.expression))&&"GlobalDataDecorator"===e.expression.name})&&(ve=!0));Ce||(Ce=e)},MemberExpression:function(e){kt.isThisExpression(e.node.object)&&kt.isIdentifier(e.node.property,{name:"globalData"})&&(be=!0)},Program:function(e){var ae=e.node.body;ae.forEach(function(e){(null==e?void 0:e.source)&&e.source.value.includes("@/components")&&(e.source.value=e.source.value.replace("@/components",ie?"".concat(ie.replace("src","@"),"/components"):"../components"))});var de=ae.find(function(e){return e.source&&"ruoqing-components"===e.source.value});de&&["$eval","$createChildContext","$evalArray"].forEach(function(e){de.specifiers.push(kt.importSpecifier(kt.identifier(e),kt.identifier(e)))});var Ce=ae.findIndex(function(e){var Z;return"@alilc/lowcode-datasource-engine/runtime"===(null===(Z=null==e?void 0:e.source)||void 0===Z?void 0:Z.value)});de&&Ce>-1&&(ae.splice(Ce,1),de.specifiers.push(kt.importSpecifier(kt.identifier("dataSource"),kt.identifier("dataSource"))));var Ie=ae.findIndex(function(e){var Z;return"@alilc/lowcode-datasource-fetch-handler"===(null===(Z=null==e?void 0:e.source)||void 0===Z?void 0:Z.value)});de&&Ie>-1&&(ae.splice(Ie,1),de.specifiers.push(kt.importSpecifier(kt.identifier("requestHandle"),kt.identifier("requestHandle"))));var Fe=ae.findIndex(function(e){var Z;return"./index.css"===(null===(Z=null==e?void 0:e.source)||void 0===Z?void 0:Z.value)});ae.splice(Fe,1,kt.importDeclaration([],kt.stringLiteral("vite"===Z?"./index.css":"./index.scss")));var Oe=__read(lr("const { px, RefsManager, $eval, $evalArray, $createChildContext } = utils;",{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]}).program.body,1)[0];if(ae.splice(Fe+1,0,Oe),_e){var Be=kt.importDeclaration([kt.importSpecifier(kt.identifier("Outlet"),kt.identifier("Outlet"))],kt.stringLiteral("react-router-dom"));ae.splice(Fe+2,0,Be)}if("Page"===ke&&"vite"===Z){Be=kt.importDeclaration([kt.importSpecifier(kt.identifier("withRouter"),kt.identifier("withRouter"))],kt.stringLiteral("@/utils/router"));ae.splice(Fe+(_e?3:2),0,Be)}if(be&&!ve){var Me=kt.importDeclaration([kt.importSpecifier(kt.identifier("GlobalDataDecorator"),kt.identifier("GlobalDataDecorator"))],kt.stringLiteral("@/utils"));ae.splice(Fe+(_e?3:2)+("Page"===ke&&"vite"===Z?1:0),0,Me)}},ImportDeclaration:function(e){var Z,ie,ae;e.node.specifiers&&e.node.specifiers.length>0&&(e.node.specifiers=e.node.specifiers.filter(function(e){return!(e.imported&&"Component"===e.imported.name)})),"StringLiteral"===(null===(Z=e.node.source)||void 0===Z?void 0:Z.type)&&(null===(ae=null===(ie=e.node)||void 0===ie?void 0:ie.source)||void 0===ae?void 0:ae.value)&&(e.node.source.value=e.node.source.value.replace("/src/index.tsx",""))},Literal:function(e){var ie,ae,de;if("string"==typeof(null===(ie=e.node)||void 0===ie?void 0:ie.value)&&(null===(ae=e.node)||void 0===ae?void 0:ae.value.includes("px"))){var ve=null===(de=e.node)||void 0===de?void 0:de.value;ve=ve.replace(/(\d+)px/g,function(e,ie){return"".concat(ie*("vite"===Z?1:2))}),isNaN(Number(ve))||("JSXAttribute"===e.parent.type?e.replaceWith(kt.jsxExpressionContainer(kt.callExpression(kt.identifier("px"),[kt.numericLiteral(Number(ve))]))):e.replaceWith(kt.callExpression(kt.identifier("px"),[kt.numericLiteral(Number(ve))])))}},JSXIdentifier:function(e){("__events"===e.node.name||e.node.name.includes("_unsafe_"))&&e.parentPath.remove()},JSXOpeningElement:function(e){var Z,ie,ae;(null===(Z=e.node.attributes)||void 0===Z?void 0:Z.length)>0&&e.node.attributes.findIndex(function(e){return"className"===e.name.name})>-1&&"Fragment"===(null===(ae=null===(ie=e.node.name)||void 0===ie?void 0:ie.property)||void 0===ae?void 0:ae.name)&&(e.node.attributes=[])},JSXAttribute:function(e){var Z,ie,ve,be,Ce,ke;if("AtIcon"===e.parent.name.name&&"svg"===e.node.name.name&&"StringLiteral"===(null===(Z=e.node)||void 0===Z?void 0:Z.value.type)){var Ie="",_e="";if(Array.isArray(e.container)){var Fe=e.container.find(function(e){return"value"===e.name.name});_e=(null===(ve=null===(ie=e.container.find(function(e){return"color"===e.name.name}))||void 0===ie?void 0:ie.value)||void 0===ve?void 0:ve.value)||"",Fe&&(Ie="svg_".concat((null===(be=null==Fe?void 0:Fe.value)||void 0===be?void 0:be.value)||$n(6)))}Ie||(Ie="svg_".concat($n(6))),de.findIndex(function(e){return e.fileName===Ie})>-1&&(Ie="".concat(Ie,"_").concat($n(6)));var Oe=e.node.value.value;Ie&&Oe&&(Oe&&_e&&(Oe=Oe.replace(/currentColor/g,_e)),Oe&&_e&&(Oe=(Oe=Oe.replace(/width="100%"/g,"")).replace(/height="100%"/g,"")),e.replaceWith(kt.jsxAttribute(kt.jsxIdentifier("svg"),kt.jsxExpressionContainer(kt.memberExpression(kt.identifier("ICONS"),kt.stringLiteral(Ie),!0)))),de.push({svgStr:Oe,fileName:Ie}))}if("Image"===e.parent.name.name&&"src"===e.node.name.name&&"StringLiteral"===(null===(Ce=e.node)||void 0===Ce?void 0:Ce.value.type)){var Be="";if(Array.isArray(e.container)){var Me=e.container.find(function(e){return"className"===e.name.name});if(Me){var qe=null===(ke=null==Me?void 0:Me.value)||void 0===ke?void 0:ke.value;if(qe){var Ve=(Be=function sanitizeFileName(e){return e?e.replace(/[<>:"/\\|?*]/g,"").replace(/\s+/g,"_").replace(/[^\w\-_.]/g,"").replace(/_{2,}/g,"_").replace(/^[_-]+|[_-]+$/g,"").substring(0,50)||"fallback_".concat($n(6)):""}(qe)).split("__");Be=(Ve.length>0?Ve[Ve.length-1]:Be)+".png"}}}Be||(Be="image_".concat($n(6),".png")),ae.findIndex(function(e){return e.fileName===Be.toLowerCase()})>-1&&(Be="r".concat(ae.length,"_").concat(Be.toLowerCase()));var Ze=e.node.value.value,et=Be.toLowerCase(),tt="static_".concat(function sanitizeIdentifier(e){return e&&e.replace(/[^\w]/g,"_").replace(/_{2,}/g,"_").replace(/^[_\d]+|[_]+$/g,"").substring(0,30)||"id_".concat($n(6))}(et.split(".")[0]));if(Be&&Ze){var ct=kt.jSXExpressionContainer(kt.identifier(tt));e.node.value=Be?ct:null,ae.push({url:Ze,fileName:et,line:kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier(tt))],kt.stringLiteral("./images/".concat(et)))})}}},Identifier:function(e){"__$$context"===e.node.name&&"CallExpression"===e.parentPath.type&&(e.node.name="this")},FunctionExpression:function(e){if("JSXExpressionContainer"===e.parent.type){var Z=kt.arrowFunctionExpression(e.node.params,e.node.body,!1);e.replaceWith(Z)}},FunctionDeclaration:function(e){var Z,ie;["__$$eval","__$$createChildContext","__$$evalArray"].includes((null===(ie=null===(Z=null==e?void 0:e.node)||void 0===Z?void 0:Z.id)||void 0===ie?void 0:ie.name)||"")&&e.remove()},CallExpression:function(e){var Z=e.node;kt.isMemberExpression(Z.callee)&&kt.isIdentifier(Z.callee.property,{name:"stopPropagation"})&&e.replaceWith(kt.optionalCallExpression(kt.memberExpression(Z.callee.object,kt.identifier("stopPropagation")),[],!0))},ExportDefaultDeclaration:function(e){if("Page"===ke&&"vite"===Z){var ie=e.node.declaration,ae=kt.callExpression(kt.identifier("withRouter"),[ie]);e.node.declaration=ae}}}),be&&!ve&&Ce){var Oe=kt.decorator(kt.identifier("GlobalDataDecorator"));Ce.node.decorators?Ce.node.decorators.push(Oe):Ce.node.decorators=[Oe]}if(de.length>0){var Be=!1;It.default(Fe,{ImportDeclaration:function(e){if(!Be){var Z=kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier("ICONS"))],kt.stringLiteral("./icons"));e.insertBefore(Z),Be=!0}}})}if(ae.length>0){var Me=!1;It.default(Fe,{ImportDeclaration:function(e){Me||(ae.forEach(function(Z){e.insertBefore(Z.line)}),Me=!0)}})}var qe=Bn(Fe).code;if(qe.includes("<svg")){var Ve=!1;It.default(Fe,{StringLiteral:function(e){var Z=e.node;if(Z.value.startsWith("<svg")){Ve=!0;var ie=function(e){var Z=Buffer.from(e,"utf-8");return"data:image/svg+xml;base64,".concat(Z.toString("base64"))}(Z.value);e.replaceWith(kt.stringLiteral(ie))}}}),Ve&&(qe=Bn(Fe).code)}return{code:qe,images:ae,svgs:de}},qn=function bind(e,Z){return function wrap(){for(var ie=new Array(arguments.length),ae=0;ae<ie.length;ae++)ie[ae]=arguments[ae];return e.apply(Z,ie)}},zn=Object.prototype.toString,Hn=function(e){return function(Z){var ie=zn.call(Z);return e[ie]||(e[ie]=ie.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(e){return e=e.toLowerCase(),function isKindOf(Z){return Hn(Z)===e}}function isArray$1(e){return Array.isArray(e)}function isUndefined(e){return void 0===e}var Vn=kindOfTest("ArrayBuffer");function isObject$7(e){return null!==e&&"object"==typeof e}function isPlainObject$1(e){if("object"!==Hn(e))return!1;var Z=Object.getPrototypeOf(e);return null===Z||Z===Object.prototype}var Wn=kindOfTest("Date"),Jn=kindOfTest("File"),Kn=kindOfTest("Blob"),Yn=kindOfTest("FileList");function isFunction$1(e){return"[object Function]"===zn.call(e)}var Zn=kindOfTest("URLSearchParams");function forEach(e,Z){if(null!=e)if("object"!=typeof e&&(e=[e]),isArray$1(e))for(var ie=0,ae=e.length;ie<ae;ie++)Z.call(null,e[ie],ie,e);else for(var de in e)Object.prototype.hasOwnProperty.call(e,de)&&Z.call(null,e[de],de,e)}var Qn=function(e){return function(Z){return e&&Z instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),es={isArray:isArray$1,isArrayBuffer:Vn,isBuffer:function isBuffer$3(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function isFormData(e){var Z="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||zn.call(e)===Z||isFunction$1(e.toString)&&e.toString()===Z)},isArrayBufferView:function isArrayBufferView(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Vn(e.buffer)},isString:function isString$3(e){return"string"==typeof e},isNumber:function isNumber(e){return"number"==typeof e},isObject:isObject$7,isPlainObject:isPlainObject$1,isUndefined:isUndefined,isDate:Wn,isFile:Jn,isBlob:Kn,isFunction:isFunction$1,isStream:function isStream(e){return isObject$7(e)&&isFunction$1(e.pipe)},isURLSearchParams:Zn,isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:forEach,merge:function merge(){var e={};function assignValue(Z,ie){isPlainObject$1(e[ie])&&isPlainObject$1(Z)?e[ie]=merge(e[ie],Z):isPlainObject$1(Z)?e[ie]=merge({},Z):isArray$1(Z)?e[ie]=Z.slice():e[ie]=Z}for(var Z=0,ie=arguments.length;Z<ie;Z++)forEach(arguments[Z],assignValue);return e},extend:function extend$2(e,Z,ie){return forEach(Z,function assignValue(Z,ae){e[ae]=ie&&"function"==typeof Z?qn(Z,ie):Z}),e},trim:function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function inherits(e,Z,ie,ae){e.prototype=Object.create(Z.prototype,ae),e.prototype.constructor=e,ie&&Object.assign(e.prototype,ie)},toFlatObject:function toFlatObject(e,Z,ie){var ae,de,ve,be={};Z=Z||{};do{for(de=(ae=Object.getOwnPropertyNames(e)).length;de-- >0;)be[ve=ae[de]]||(Z[ve]=e[ve],be[ve]=!0);e=Object.getPrototypeOf(e)}while(e&&(!ie||ie(e,Z))&&e!==Object.prototype);return Z},kindOf:Hn,kindOfTest:kindOfTest,endsWith:function endsWith(e,Z,ie){e=String(e),(void 0===ie||ie>e.length)&&(ie=e.length),ie-=Z.length;var ae=e.indexOf(Z,ie);return-1!==ae&&ae===ie},toArray:function toArray(e){if(!e)return null;var Z=e.length;if(isUndefined(Z))return null;for(var ie=new Array(Z);Z-- >0;)ie[Z]=e[Z];return ie},isTypedArray:Qn,isFileList:Yn};function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ts=function buildURL(e,Z,ie){if(!Z)return e;var ae;if(ie)ae=ie(Z);else if(es.isURLSearchParams(Z))ae=Z.toString();else{var de=[];es.forEach(Z,function serialize(e,Z){null!=e&&(es.isArray(e)?Z+="[]":e=[e],es.forEach(e,function parseValue(e){es.isDate(e)?e=e.toISOString():es.isObject(e)&&(e=JSON.stringify(e)),de.push(encode$2(Z)+"="+encode$2(e))}))}),ae=de.join("&")}if(ae){var ve=e.indexOf("#");-1!==ve&&(e=e.slice(0,ve)),e+=(-1===e.indexOf("?")?"?":"&")+ae}return e};function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,Z,ie){return this.handlers.push({fulfilled:e,rejected:Z,synchronous:!!ie&&ie.synchronous,runWhen:ie?ie.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){es.forEach(this.handlers,function forEachHandler(Z){null!==Z&&e(Z)})};var ns=InterceptorManager,ss=function normalizeHeaderName(e,Z){es.forEach(e,function processHeader(ie,ae){ae!==Z&&ae.toUpperCase()===Z.toUpperCase()&&(e[Z]=ie,delete e[ae])})};function AxiosError(e,Z,ie,ae,de){Error.call(this),this.message=e,this.name="AxiosError",Z&&(this.code=Z),ie&&(this.config=ie),ae&&(this.request=ae),de&&(this.response=de)}es.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var is=AxiosError.prototype,as={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){as[e]={value:e}}),Object.defineProperties(AxiosError,as),Object.defineProperty(is,"isAxiosError",{value:!0}),AxiosError.from=function(e,Z,ie,ae,de,ve){var be=Object.create(is);return es.toFlatObject(e,be,function filter(e){return e!==Error.prototype}),AxiosError.call(be,e.message,Z,ie,ae,de),be.name=e.name,ve&&Object.assign(be,ve),be};var cs=AxiosError,ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var hs=function toFormData(e,Z){Z=Z||new FormData;var ie=[];function convertValue(e){return null===e?"":es.isDate(e)?e.toISOString():es.isArrayBuffer(e)||es.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function build(e,ae){if(es.isPlainObject(e)||es.isArray(e)){if(-1!==ie.indexOf(e))throw Error("Circular reference detected in "+ae);ie.push(e),es.forEach(e,function each(e,ie){if(!es.isUndefined(e)){var de,ve=ae?ae+"."+ie:ie;if(e&&!ae&&"object"==typeof e)if(es.endsWith(ie,"{}"))e=JSON.stringify(e);else if(es.endsWith(ie,"[]")&&(de=es.toArray(e)))return void de.forEach(function(e){!es.isUndefined(e)&&Z.append(ve,convertValue(e))});build(e,ve)}}),ie.pop()}else Z.append(ae,convertValue(e))}(e),Z},ys=function settle(e,Z,ie){var ae=ie.config.validateStatus;ie.status&&ae&&!ae(ie.status)?Z(new cs("Request failed with status code "+ie.status,[cs.ERR_BAD_REQUEST,cs.ERR_BAD_RESPONSE][Math.floor(ie.status/100)-4],ie.config,ie.request,ie)):e(ie)},gs=es.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,Z,ie,ae,de,ve){var be=[];be.push(e+"="+encodeURIComponent(Z)),es.isNumber(ie)&&be.push("expires="+new Date(ie).toGMTString()),es.isString(ae)&&be.push("path="+ae),es.isString(de)&&be.push("domain="+de),!0===ve&&be.push("secure"),document.cookie=be.join("; ")},read:function read(e){var Z=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return Z?decodeURIComponent(Z[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}},xs=function buildFullPath(e,Z){return e&&!function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(Z)?function combineURLs(e,Z){return Z?e.replace(/\/+$/,"")+"/"+Z.replace(/^\/+/,""):e}(e,Z):Z},vs=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],bs=es.isStandardBrowserEnv()?function standardBrowserEnv(){var e,Z=/(msie|trident)/i.test(navigator.userAgent),ie=document.createElement("a");function resolveURL(e){var ae=e;return Z&&(ie.setAttribute("href",ae),ae=ie.href),ie.setAttribute("href",ae),{href:ie.href,protocol:ie.protocol?ie.protocol.replace(/:$/,""):"",host:ie.host,search:ie.search?ie.search.replace(/^\?/,""):"",hash:ie.hash?ie.hash.replace(/^#/,""):"",hostname:ie.hostname,port:ie.port,pathname:"/"===ie.pathname.charAt(0)?ie.pathname:"/"+ie.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(Z){var ie=es.isString(Z)?resolveURL(Z):Z;return ie.protocol===e.protocol&&ie.host===e.host}}():function isURLSameOrigin(){return!0};function CanceledError(e){cs.call(this,null==e?"canceled":e,cs.ERR_CANCELED),this.name="CanceledError"}es.inherits(CanceledError,cs,{__CANCEL__:!0});var Es=CanceledError,Cs=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(Z,ie){var ae,de=e.data,ve=e.headers,be=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(ae),e.signal&&e.signal.removeEventListener("abort",ae)}es.isFormData(de)&&es.isStandardBrowserEnv()&&delete ve["Content-Type"];var Ce=new XMLHttpRequest;if(e.auth){var ke=e.auth.username||"",Ie=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";ve.Authorization="Basic "+btoa(ke+":"+Ie)}var _e=xs(e.baseURL,e.url);function onloadend(){if(Ce){var ae="getAllResponseHeaders"in Ce?function parseHeaders(e){var Z,ie,ae,de={};return e?(es.forEach(e.split("\n"),function parser(e){if(ae=e.indexOf(":"),Z=es.trim(e.substr(0,ae)).toLowerCase(),ie=es.trim(e.substr(ae+1)),Z){if(de[Z]&&vs.indexOf(Z)>=0)return;de[Z]="set-cookie"===Z?(de[Z]?de[Z]:[]).concat([ie]):de[Z]?de[Z]+", "+ie:ie}}),de):de}(Ce.getAllResponseHeaders()):null,de={data:be&&"text"!==be&&"json"!==be?Ce.response:Ce.responseText,status:Ce.status,statusText:Ce.statusText,headers:ae,config:e,request:Ce};ys(function _resolve(e){Z(e),done()},function _reject(e){ie(e),done()},de),Ce=null}}if(Ce.open(e.method.toUpperCase(),ts(_e,e.params,e.paramsSerializer),!0),Ce.timeout=e.timeout,"onloadend"in Ce?Ce.onloadend=onloadend:Ce.onreadystatechange=function handleLoad(){Ce&&4===Ce.readyState&&(0!==Ce.status||Ce.responseURL&&0===Ce.responseURL.indexOf("file:"))&&setTimeout(onloadend)},Ce.onabort=function handleAbort(){Ce&&(ie(new cs("Request aborted",cs.ECONNABORTED,e,Ce)),Ce=null)},Ce.onerror=function handleError(){ie(new cs("Network Error",cs.ERR_NETWORK,e,Ce,Ce)),Ce=null},Ce.ontimeout=function handleTimeout(){var Z=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",ae=e.transitional||ls;e.timeoutErrorMessage&&(Z=e.timeoutErrorMessage),ie(new cs(Z,ae.clarifyTimeoutError?cs.ETIMEDOUT:cs.ECONNABORTED,e,Ce)),Ce=null},es.isStandardBrowserEnv()){var Fe=(e.withCredentials||bs(_e))&&e.xsrfCookieName?gs.read(e.xsrfCookieName):void 0;Fe&&(ve[e.xsrfHeaderName]=Fe)}"setRequestHeader"in Ce&&es.forEach(ve,function setRequestHeader(e,Z){void 0===de&&"content-type"===Z.toLowerCase()?delete ve[Z]:Ce.setRequestHeader(Z,e)}),es.isUndefined(e.withCredentials)||(Ce.withCredentials=!!e.withCredentials),be&&"json"!==be&&(Ce.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&Ce.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&Ce.upload&&Ce.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(ae=function(e){Ce&&(ie(!e||e&&e.type?new Es:e),Ce.abort(),Ce=null)},e.cancelToken&&e.cancelToken.subscribe(ae),e.signal&&(e.signal.aborted?ae():e.signal.addEventListener("abort",ae))),de||(de=null);var Oe=function parseProtocol(e){var Z=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return Z&&Z[1]||""}(_e);Oe&&-1===["http","https","file"].indexOf(Oe)?ie(new cs("Unsupported protocol "+Oe+":",cs.ERR_BAD_REQUEST,e)):Ce.send(de)})},As=1e3,ws=6e4,Ts=60*ws,Ss=24*Ts,Ds=7*Ss,Ps=365.25*Ss,ms$1=function(e,Z){Z=Z||{};var ie=typeof e;if("string"===ie&&e.length>0)return function parse$2(e){if((e=String(e)).length>100)return;var Z=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!Z)return;var ie=parseFloat(Z[1]);switch((Z[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return ie*Ps;case"weeks":case"week":case"w":return ie*Ds;case"days":case"day":case"d":return ie*Ss;case"hours":case"hour":case"hrs":case"hr":case"h":return ie*Ts;case"minutes":case"minute":case"mins":case"min":case"m":return ie*ws;case"seconds":case"second":case"secs":case"sec":case"s":return ie*As;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return ie;default:return}}(e);if("number"===ie&&isFinite(e))return Z.long?function fmtLong$1(e){var Z=Math.abs(e);if(Z>=Ss)return plural$1(e,Z,Ss,"day");if(Z>=Ts)return plural$1(e,Z,Ts,"hour");if(Z>=ws)return plural$1(e,Z,ws,"minute");if(Z>=As)return plural$1(e,Z,As,"second");return e+" ms"}(e):function fmtShort$1(e){var Z=Math.abs(e);if(Z>=Ss)return Math.round(e/Ss)+"d";if(Z>=Ts)return Math.round(e/Ts)+"h";if(Z>=ws)return Math.round(e/ws)+"m";if(Z>=As)return Math.round(e/As)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function plural$1(e,Z,ie,ae){var de=Z>=1.5*ie;return Math.round(e/ie)+" "+ae+(de?"s":"")}var ks=function setup(e){function createDebug(e){let Z,ie,ae,de=null;function debug(...e){if(!debug.enabled)return;const ie=debug,ae=Number(new Date),de=ae-(Z||ae);ie.diff=de,ie.prev=Z,ie.curr=ae,Z=ae,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let ve=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(Z,ae)=>{if("%%"===Z)return"%";ve++;const de=createDebug.formatters[ae];if("function"==typeof de){const ae=e[ve];Z=de.call(ie,ae),e.splice(ve,1),ve--}return Z}),createDebug.formatArgs.call(ie,e);(ie.log||createDebug.log).apply(ie,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==de?de:(ie!==createDebug.namespaces&&(ie=createDebug.namespaces,ae=createDebug.enabled(e)),ae),set:e=>{de=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,Z){const ie=createDebug(this.namespace+(void 0===Z?":":Z)+e);return ie.log=this.log,ie}function matchesTemplate(e,Z){let ie=0,ae=0,de=-1,ve=0;for(;ie<e.length;)if(ae<Z.length&&(Z[ae]===e[ie]||"*"===Z[ae]))"*"===Z[ae]?(de=ae,ve=ie,ae++):(ie++,ae++);else{if(-1===de)return!1;ae=de+1,ve++,ie=ve}for(;ae<Z.length&&"*"===Z[ae];)ae++;return ae===Z.length}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function disable(){const e=[...createDebug.names,...createDebug.skips.map(e=>"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const Z=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of Z)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)},createDebug.enabled=function enabled(e){for(const Z of createDebug.skips)if(matchesTemplate(e,Z))return!1;for(const Z of createDebug.names)if(matchesTemplate(e,Z))return!0;return!1},createDebug.humanize=ms$1,createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(Z=>{createDebug[Z]=e[Z]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let Z=0;for(let ie=0;ie<e.length;ie++)Z=(Z<<5)-Z+e.charCodeAt(ie),Z|=0;return createDebug.colors[Math.abs(Z)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug},Is=createCommonjsModule(function(e,Z){Z.formatArgs=function formatArgs(Z){if(Z[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Z[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const ie="color: "+this.color;Z.splice(1,0,ie,"color: inherit");let ae=0,de=0;Z[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(ae++,"%c"===e&&(de=ae))}),Z.splice(de,0,ie)},Z.save=function save(e){try{e?Z.storage.setItem("debug",e):Z.storage.removeItem("debug")}catch(e){}},Z.load=function load(){let e;try{e=Z.storage.getItem("debug")||Z.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},Z.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},Z.storage=function localstorage(){try{return localStorage}catch(e){}}(),Z.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),Z.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],Z.log=console.debug||console.log||(()=>{}),e.exports=ks(Z);const{formatters:ie}=e.exports;ie.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});Is.formatArgs,Is.save,Is.load,Is.useColors,Is.storage,Is.destroy,Is.colors,Is.log;var hasFlag=(e,Z=process.argv)=>{const ie=e.startsWith("-")?"":1===e.length?"-":"--",ae=Z.indexOf(ie+e),de=Z.indexOf("--");return-1!==ae&&(-1===de||ae<de)};const{env:_s}=process;let Fs;function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function supportsColor(e,Z){if(0===Fs)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(e&&!Z&&void 0===Fs)return 0;const ie=Fs||0;if("dumb"===_s.TERM)return ie;if("win32"===process.platform){const e=vt.default.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in _s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in _s)||"codeship"===_s.CI_NAME?1:ie;if("TEAMCITY_VERSION"in _s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_s.TEAMCITY_VERSION)?1:0;if("truecolor"===_s.COLORTERM)return 3;if("TERM_PROGRAM"in _s){const e=parseInt((_s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_s.TERM)||"COLORTERM"in _s?1:ie}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?Fs=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(Fs=1),"FORCE_COLOR"in _s&&(Fs="true"===_s.FORCE_COLOR?1:"false"===_s.FORCE_COLOR?0:0===_s.FORCE_COLOR.length?1:Math.min(parseInt(_s.FORCE_COLOR,10),3));var Os={supportsColor:function getSupportLevel(e){return translateLevel(supportsColor(e,e&&e.isTTY))},stdout:translateLevel(supportsColor(!0,Gt.default.isatty(1))),stderr:translateLevel(supportsColor(!0,Gt.default.isatty(2)))},Ls=createCommonjsModule(function(e,Z){Z.init=function init(e){e.inspectOpts={};const ie=Object.keys(Z.inspectOpts);for(let ae=0;ae<ie.length;ae++)e.inspectOpts[ie[ae]]=Z.inspectOpts[ie[ae]]},Z.log=function log(...e){return process.stderr.write(Wt.default.formatWithOptions(Z.inspectOpts,...e)+"\n")},Z.formatArgs=function formatArgs(ie){const{namespace:ae,useColors:de}=this;if(de){const Z=this.color,de="[3"+(Z<8?Z:"8;5;"+Z),ve=` ${de};1m${ae} [0m`;ie[0]=ve+ie[0].split("\n").join("\n"+ve),ie.push(de+"m+"+e.exports.humanize(this.diff)+"[0m")}else ie[0]=function getDate(){if(Z.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+ae+" "+ie[0]},Z.save=function save(e){e?process.env.DEBUG=e:delete process.env.DEBUG},Z.load=function load(){return process.env.DEBUG},Z.useColors=function useColors(){return"colors"in Z.inspectOpts?Boolean(Z.inspectOpts.colors):Gt.default.isatty(process.stderr.fd)},Z.destroy=Wt.default.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),Z.colors=[6,2,3,4,5,1];try{const e=Os;e&&(e.stderr||e).level>=2&&(Z.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}Z.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,Z)=>{const ie=Z.substring(6).toLowerCase().replace(/_([a-z])/g,(e,Z)=>Z.toUpperCase());let ae=process.env[Z];return ae=!!/^(yes|on|true|enabled)$/i.test(ae)||!/^(no|off|false|disabled)$/i.test(ae)&&("null"===ae?null:Number(ae)),e[ie]=ae,e},{}),e.exports=ks(Z);const{formatters:ie}=e.exports;ie.o=function(e){return this.inspectOpts.colors=this.useColors,Wt.default.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},ie.O=function(e){return this.inspectOpts.colors=this.useColors,Wt.default.inspect(e,this.inspectOpts)}});Ls.init,Ls.log,Ls.formatArgs,Ls.save,Ls.load,Ls.useColors,Ls.destroy,Ls.colors,Ls.inspectOpts;var Bs,Ms=createCommonjsModule(function(e){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=Is:e.exports=Ls}),debug_1=function(){if(!Bs){try{Bs=Ms("follow-redirects")}catch(e){}"function"!=typeof Bs&&(Bs=function(){})}Bs.apply(null,arguments)},js=qt.default.URL,Rs=Ht.default.Writable;!function detectUnsupportedEnvironment(){var e="undefined"!=typeof process,Z="undefined"!=typeof window&&"undefined"!=typeof document,ie=isFunction(Error.captureStackTrace);e||!Z&&ie||console.warn("The follow-redirects package should be excluded from browser builds.")}();var Us=!1;try{Vt.default(new js(""))}catch(e){Us="ERR_INVALID_URL"===e.code}var $s=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],qs=["abort","aborted","connect","error","socket","timeout"],zs=Object.create(null);qs.forEach(function(e){zs[e]=function(Z,ie,ae){this._redirectable.emit(e,Z,ie,ae)}});var Ws=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError),ei=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ti=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ei),ri=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ni=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),si=Rs.prototype.destroy||noop$1;function RedirectableRequest(e,Z){Rs.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Z&&this.on("response",Z);var ie=this;this._onNativeResponse=function(e){try{ie._processResponse(e)}catch(e){ie.emit("error",e instanceof ei?e:new ei({cause:e}))}},this._performRequest()}function wrap(e){var Z={maxRedirects:21,maxBodyLength:10485760},ie={};return Object.keys(e).forEach(function(ae){var de=ae+":",ve=ie[de]=e[ae],be=Z[ae]=Object.create(ve);Object.defineProperties(be,{request:{value:function request(e,ae,ve){return!function isURL(e){return js&&e instanceof js}(e)?isString$2(e)?e=spreadUrlObject(parseUrl$1(e)):(ve=ae,ae=validateUrl(e),e={protocol:de}):e=spreadUrlObject(e),isFunction(ae)&&(ve=ae,ae=null),(ae=Object.assign({maxRedirects:Z.maxRedirects,maxBodyLength:Z.maxBodyLength},e,ae)).nativeProtocols=ie,isString$2(ae.host)||isString$2(ae.hostname)||(ae.hostname="::1"),Vt.default.equal(ae.protocol,de,"protocol mismatch"),debug_1("options",ae),new RedirectableRequest(ae,ve)},configurable:!0,enumerable:!0,writable:!0},get:{value:function get(e,Z,ie){var ae=be.request(e,Z,ie);return ae.end(),ae},configurable:!0,enumerable:!0,writable:!0}})}),Z}function noop$1(){}function parseUrl$1(e){var Z;if(Us)Z=new js(e);else if(!isString$2((Z=validateUrl(qt.default.parse(e))).protocol))throw new Ws({input:e});return Z}function validateUrl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Ws({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Ws({input:e.href||e});return e}function spreadUrlObject(e,Z){var ie=Z||{};for(var ae of $s)ie[ae]=e[ae];return ie.hostname.startsWith("[")&&(ie.hostname=ie.hostname.slice(1,-1)),""!==ie.port&&(ie.port=Number(ie.port)),ie.path=ie.search?ie.pathname+ie.search:ie.pathname,ie}function removeMatchingHeaders(e,Z){var ie;for(var ae in Z)e.test(ae)&&(ie=Z[ae],delete Z[ae]);return null==ie?void 0:String(ie).trim()}function createErrorType(e,Z,ie){function CustomError(ie){isFunction(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,ie||{}),this.code=e,this.message=this.cause?Z+": "+this.cause.message:Z}return CustomError.prototype=new(ie||Error),Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),CustomError}function destroyRequest(e,Z){for(var ie of qs)e.removeListener(ie,zs[ie]);e.on("error",noop$1),e.destroy(Z)}function isString$2(e){return"string"==typeof e||e instanceof String}function isFunction(e){return"function"==typeof e}RedirectableRequest.prototype=Object.create(Rs.prototype),RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},RedirectableRequest.prototype.destroy=function(e){return destroyRequest(this._currentRequest,e),si.call(this,e),this},RedirectableRequest.prototype.write=function(e,Z,ie){if(this._ending)throw new ni;if(!isString$2(e)&&!function isBuffer$2(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");isFunction(Z)&&(ie=Z,Z=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:Z}),this._currentRequest.write(e,Z,ie)):(this.emit("error",new ri),this.abort()):ie&&ie()},RedirectableRequest.prototype.end=function(e,Z,ie){if(isFunction(e)?(ie=e,e=Z=null):isFunction(Z)&&(ie=Z,Z=null),e){var ae=this,de=this._currentRequest;this.write(e,Z,function(){ae._ended=!0,de.end(null,null,ie)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,ie)},RedirectableRequest.prototype.setHeader=function(e,Z){this._options.headers[e]=Z,this._currentRequest.setHeader(e,Z)},RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},RedirectableRequest.prototype.setTimeout=function(e,Z){var ie=this;function destroyOnTimeout(Z){Z.setTimeout(e),Z.removeListener("timeout",Z.destroy),Z.addListener("timeout",Z.destroy)}function startTimer(Z){ie._timeout&&clearTimeout(ie._timeout),ie._timeout=setTimeout(function(){ie.emit("timeout"),clearTimer()},e),destroyOnTimeout(Z)}function clearTimer(){ie._timeout&&(clearTimeout(ie._timeout),ie._timeout=null),ie.removeListener("abort",clearTimer),ie.removeListener("error",clearTimer),ie.removeListener("response",clearTimer),ie.removeListener("close",clearTimer),Z&&ie.removeListener("timeout",Z),ie.socket||ie._currentRequest.removeListener("socket",startTimer)}return Z&&this.on("timeout",Z),this.socket?startTimer(this.socket):this._currentRequest.once("socket",startTimer),this.on("socket",destroyOnTimeout),this.on("abort",clearTimer),this.on("error",clearTimer),this.on("response",clearTimer),this.on("close",clearTimer),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(Z,ie){return this._currentRequest[e](Z,ie)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}),RedirectableRequest.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var Z=e.path.indexOf("?");Z<0?e.pathname=e.path:(e.pathname=e.path.substring(0,Z),e.search=e.path.substring(Z))}},RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol,Z=this._options.nativeProtocols[e];if(!Z)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var ie=e.slice(0,-1);this._options.agent=this._options.agents[ie]}var ae=this._currentRequest=Z.request(this._options,this._onNativeResponse);for(var de of(ae._redirectable=this,qs))ae.on(de,zs[de]);if(this._currentUrl=/^\//.test(this._options.path)?qt.default.format(this._options):this._options.path,this._isRedirect){var ve=0,be=this,Ce=this._requestBodyBuffers;!function writeNext(e){if(ae===be._currentRequest)if(e)be.emit("error",e);else if(ve<Ce.length){var Z=Ce[ve++];ae.finished||ae.write(Z.data,Z.encoding,writeNext)}else be._ended&&ae.end()}()}},RedirectableRequest.prototype._processResponse=function(e){var Z=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:Z});var ie,ae=e.headers.location;if(!ae||!1===this._options.followRedirects||Z<300||Z>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(destroyRequest(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ti;var de=this._options.beforeRedirect;de&&(ie=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var ve=this._options.method;((301===Z||302===Z)&&"POST"===this._options.method||303===Z&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],removeMatchingHeaders(/^content-/i,this._options.headers));var be=removeMatchingHeaders(/^host$/i,this._options.headers),Ce=parseUrl$1(this._currentUrl),ke=be||Ce.host,Ie=/^\w+:/.test(ae)?this._currentUrl:qt.default.format(Object.assign(Ce,{host:ke})),_e=function resolveUrl$1(e,Z){return Us?new js(e,Z):parseUrl$1(qt.default.resolve(Z,e))}(ae,Ie);if(debug_1("redirecting to",_e.href),this._isRedirect=!0,spreadUrlObject(_e,this._options),(_e.protocol!==Ce.protocol&&"https:"!==_e.protocol||_e.host!==ke&&!function isSubdomain(e,Z){Vt.default(isString$2(e)&&isString$2(Z));var ie=e.length-Z.length-1;return ie>0&&"."===e[ie]&&e.endsWith(Z)}(_e.host,ke))&&removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),isFunction(de)){var Fe={headers:e.headers,statusCode:Z},Oe={url:Ie,method:ve,headers:ie};de(this._options,Fe,Oe),this._sanitizeOptions(this._options)}this._performRequest()};var ii=wrap({http:Ft.default,https:Ut.default}),ai=wrap;ii.wrap=ai;var oi="0.27.2",ci=ii.http,ui=ii.https,li=oi,pi=/https:?/,hi=["http:","https:","file:"];function setProxy(e,Z,ie){if(e.hostname=Z.host,e.host=Z.host,e.port=Z.port,e.path=ie,Z.auth){var ae=Buffer.from(Z.auth.username+":"+Z.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+ae}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host,setProxy(e,Z,e.href)}}var di=function httpAdapter(e){return new Promise(function dispatchHttpRequest(Z,ie){var ae;function done(){e.cancelToken&&e.cancelToken.unsubscribe(ae),e.signal&&e.signal.removeEventListener("abort",ae)}var de=function resolve(e){done(),Z(e)},ve=!1,be=function reject(e){done(),ve=!0,ie(e)},Ce=e.data,ke=e.headers,Ie={};if(Object.keys(ke).forEach(function storeLowerName(e){Ie[e.toLowerCase()]=e}),"user-agent"in Ie?ke[Ie["user-agent"]]||delete ke[Ie["user-agent"]]:ke["User-Agent"]="axios/"+li,es.isFormData(Ce)&&es.isFunction(Ce.getHeaders))Object.assign(ke,Ce.getHeaders());else if(Ce&&!es.isStream(Ce)){if(Buffer.isBuffer(Ce));else if(es.isArrayBuffer(Ce))Ce=Buffer.from(new Uint8Array(Ce));else{if(!es.isString(Ce))return be(new cs("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",cs.ERR_BAD_REQUEST,e));Ce=Buffer.from(Ce,"utf-8")}if(e.maxBodyLength>-1&&Ce.length>e.maxBodyLength)return be(new cs("Request body larger than maxBodyLength limit",cs.ERR_BAD_REQUEST,e));Ie["content-length"]||(ke["Content-Length"]=Ce.length)}var _e=void 0;e.auth&&(_e=(e.auth.username||"")+":"+(e.auth.password||""));var Fe=xs(e.baseURL,e.url),Oe=qt.default.parse(Fe),Be=Oe.protocol||hi[0];if(-1===hi.indexOf(Be))return be(new cs("Unsupported protocol "+Be,cs.ERR_BAD_REQUEST,e));if(!_e&&Oe.auth){var Me=Oe.auth.split(":");_e=(Me[0]||"")+":"+(Me[1]||"")}_e&&Ie.authorization&&delete ke[Ie.authorization];var qe=pi.test(Be),Ve=qe?e.httpsAgent:e.httpAgent;try{ts(Oe.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(Z){var Ze=new Error(Z.message);Ze.config=e,Ze.url=e.url,Ze.exists=!0,be(Ze)}var et={path:ts(Oe.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:ke,agent:Ve,agents:{http:e.httpAgent,https:e.httpsAgent},auth:_e};e.socketPath?et.socketPath=e.socketPath:(et.hostname=Oe.hostname,et.port=Oe.port);var tt,ct=e.proxy;if(!ct&&!1!==ct){var ut=Be.slice(0,-1)+"_proxy",lt=process.env[ut]||process.env[ut.toUpperCase()];if(lt){var pt=qt.default.parse(lt),ft=process.env.no_proxy||process.env.NO_PROXY,mt=!0;if(ft){var yt=ft.split(",").map(function trim(e){return e.trim()});mt=!yt.some(function proxyMatch(e){return!!e&&("*"===e||("."===e[0]&&Oe.hostname.substr(Oe.hostname.length-e.length)===e||Oe.hostname===e))})}if(mt&&(ct={host:pt.hostname,port:pt.port,protocol:pt.protocol},pt.auth)){var gt=pt.auth.split(":");ct.auth={username:gt[0],password:gt[1]}}}}ct&&(et.headers.host=Oe.hostname+(Oe.port?":"+Oe.port:""),setProxy(et,ct,Be+"//"+Oe.hostname+(Oe.port?":"+Oe.port:"")+et.path));var vt=qe&&(!ct||pi.test(ct.protocol));e.transport?tt=e.transport:0===e.maxRedirects?tt=vt?Ut.default:Ft.default:(e.maxRedirects&&(et.maxRedirects=e.maxRedirects),e.beforeRedirect&&(et.beforeRedirect=e.beforeRedirect),tt=vt?ui:ci),e.maxBodyLength>-1&&(et.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(et.insecureHTTPParser=e.insecureHTTPParser);var bt=tt.request(et,function handleResponse(Z){if(!bt.aborted){var ie=Z,ae=Z.req||bt;if(204!==Z.statusCode&&"HEAD"!==ae.method&&!1!==e.decompress)switch(Z.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ie=ie.pipe(Jt.default.createUnzip()),delete Z.headers["content-encoding"]}var Ce={status:Z.statusCode,statusText:Z.statusMessage,headers:Z.headers,config:e,request:ae};if("stream"===e.responseType)Ce.data=ie,ys(de,be,Ce);else{var ke=[],Ie=0;ie.on("data",function handleStreamData(Z){ke.push(Z),Ie+=Z.length,e.maxContentLength>-1&&Ie>e.maxContentLength&&(ve=!0,ie.destroy(),be(new cs("maxContentLength size of "+e.maxContentLength+" exceeded",cs.ERR_BAD_RESPONSE,e,ae)))}),ie.on("aborted",function handlerStreamAborted(){ve||(ie.destroy(),be(new cs("maxContentLength size of "+e.maxContentLength+" exceeded",cs.ERR_BAD_RESPONSE,e,ae)))}),ie.on("error",function handleStreamError(Z){bt.aborted||be(cs.from(Z,null,e,ae))}),ie.on("end",function handleStreamEnd(){try{var Z=1===ke.length?ke[0]:Buffer.concat(ke);"arraybuffer"!==e.responseType&&(Z=Z.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(Z=es.stripBOM(Z))),Ce.data=Z}catch(Z){be(cs.from(Z,null,e,Ce.request,Ce))}ys(de,be,Ce)})}}});if(bt.on("error",function handleRequestError(Z){be(cs.from(Z,null,e,bt))}),bt.on("socket",function handleRequestSocket(e){e.setKeepAlive(!0,6e4)}),e.timeout){var Et=parseInt(e.timeout,10);if(isNaN(Et))return void be(new cs("error trying to parse `config.timeout` to int",cs.ERR_BAD_OPTION_VALUE,e,bt));bt.setTimeout(Et,function handleRequestTimeout(){bt.abort();var Z=e.transitional||ls;be(new cs("timeout of "+Et+"ms exceeded",Z.clarifyTimeoutError?cs.ETIMEDOUT:cs.ECONNABORTED,e,bt))})}(e.cancelToken||e.signal)&&(ae=function(e){bt.aborted||(bt.abort(),be(!e||e&&e.type?new Es:e))},e.cancelToken&&e.cancelToken.subscribe(ae),e.signal&&(e.signal.aborted?ae():e.signal.addEventListener("abort",ae))),es.isStream(Ce)?Ce.on("error",function handleStreamError(Z){be(cs.from(Z,e,null,bt))}).pipe(bt):bt.end(Ce)})},fi=Ht.default.Stream,mi=DelayedStream;function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Wt.default.inherits(DelayedStream,fi),DelayedStream.create=function(e,Z){var ie=new this;for(var ae in Z=Z||{})ie[ae]=Z[ae];ie.source=e;var de=e.emit;return e.emit=function(){return ie._handleEmit(arguments),de.apply(e,arguments)},e.on("error",function(){}),ie.pauseStream&&e.pause(),ie},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var e=fi.prototype.pipe.apply(this,arguments);return this.resume(),e},DelayedStream.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var yi=Ht.default.Stream,gi=CombinedStream;function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Wt.default.inherits(CombinedStream,yi),CombinedStream.create=function(e){var Z=new this;for(var ie in e=e||{})Z[ie]=e[ie];return Z},CombinedStream.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},CombinedStream.prototype.append=function(e){if(CombinedStream.isStreamLike(e)){if(!(e instanceof mi)){var Z=mi.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=Z}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},CombinedStream.prototype.pipe=function(e,Z){return yi.prototype.pipe.call(this,e,Z),this.resume(),e},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){CombinedStream.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},CombinedStream.prototype._pipeNext=function(e){if(this._currentStream=e,CombinedStream.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var Z=e;this.write(Z),this._getNext()},CombinedStream.prototype._handleErrors=function(e){var Z=this;e.on("error",function(e){Z._emitError(e)})},CombinedStream.prototype.write=function(e){this.emit("data",e)},CombinedStream.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(Z){Z.dataSize&&(e.dataSize+=Z.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var xi=getCjsExportFromNamespace(Object.freeze({__proto__:null,default:{"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),vi=createCommonjsModule(function(e,Z){var ie=yt.default.extname,ae=/^\s*([^;\s]*)(?:;|\s|$)/,de=/^text\//i;function charset(e){if(!e||"string"!=typeof e)return!1;var Z=ae.exec(e),ie=Z&&xi[Z[1].toLowerCase()];return ie&&ie.charset?ie.charset:!(!Z||!de.test(Z[1]))&&"UTF-8"}Z.charset=charset,Z.charsets={lookup:charset},Z.contentType=function contentType(e){if(!e||"string"!=typeof e)return!1;var ie=-1===e.indexOf("/")?Z.lookup(e):e;if(!ie)return!1;if(-1===ie.indexOf("charset")){var ae=Z.charset(ie);ae&&(ie+="; charset="+ae.toLowerCase())}return ie},Z.extension=function extension(e){if(!e||"string"!=typeof e)return!1;var ie=ae.exec(e),de=ie&&Z.extensions[ie[1].toLowerCase()];if(!de||!de.length)return!1;return de[0]},Z.extensions=Object.create(null),Z.lookup=function lookup(e){if(!e||"string"!=typeof e)return!1;var ae=ie("x."+e).toLowerCase().substr(1);if(!ae)return!1;return Z.types[ae]||!1},Z.types=Object.create(null),function populateMaps(e,Z){var ie=["nginx","apache",void 0,"iana"];Object.keys(xi).forEach(function forEachMimeType(ae){var de=xi[ae],ve=de.extensions;if(ve&&ve.length){e[ae]=ve;for(var be=0;be<ve.length;be++){var Ce=ve[be];if(Z[Ce]){var ke=ie.indexOf(xi[Z[Ce]].source),Ie=ie.indexOf(de.source);if("application/octet-stream"!==Z[Ce]&&(ke>Ie||ke===Ie&&"application/"===Z[Ce].substr(0,12)))continue}Z[Ce]=ae}}})}(Z.extensions,Z.types)});vi.charset,vi.charsets,vi.contentType,vi.extension,vi.extensions,vi.lookup,vi.types;var bi=function defer(e){var Z="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;Z?Z(e):setTimeout(e,0)};var Ei=function async(e){var Z=!1;return bi(function(){Z=!0}),function async_callback(ie,ae){Z?e(ie,ae):bi(function nextTick_callback(){e(ie,ae)})}};var Ci=function abort(e){Object.keys(e.jobs).forEach(clean.bind(e)),e.jobs={}};function clean(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Ai=function iterate(e,Z,ie,ae){var de=ie.keyedList?ie.keyedList[ie.index]:ie.index;ie.jobs[de]=function runJob(e,Z,ie,ae){var de;de=2==e.length?e(ie,Ei(ae)):e(ie,Z,Ei(ae));return de}(Z,de,e[de],function(e,Z){de in ie.jobs&&(delete ie.jobs[de],e?Ci(ie):ie.results[de]=Z,ae(e,ie.results))})};var wi=function state(e,Z){var ie=!Array.isArray(e),ae={index:0,keyedList:ie||Z?Object.keys(e):null,jobs:{},results:ie?{}:[],size:ie?Object.keys(e).length:e.length};Z&&ae.keyedList.sort(ie?Z:function(ie,ae){return Z(e[ie],e[ae])});return ae};var Ti=function terminator(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Ci(this),Ei(e)(null,this.results)};var Si=function parallel(e,Z,ie){var ae=wi(e);for(;ae.index<(ae.keyedList||e).length;)Ai(e,Z,ae,function(e,Z){e?ie(e,Z):0!==Object.keys(ae.jobs).length||ie(null,ae.results)}),ae.index++;return Ti.bind(ae,ie)};var Di=function serialOrdered(e,Z,ie,ae){var de=wi(e,ie);return Ai(e,Z,de,function iteratorHandler(ie,ve){ie?ae(ie,ve):(de.index++,de.index<(de.keyedList||e).length?Ai(e,Z,de,iteratorHandler):ae(null,de.results))}),Ti.bind(de,ae)},Pi=ascending,ki=function descending(e,Z){return-1*ascending(e,Z)};function ascending(e,Z){return e<Z?-1:e>Z?1:0}Di.ascending=Pi,Di.descending=ki;var Ii={parallel:Si,serial:function serial(e,Z,ie){return Di(e,Z,null,ie)},serialOrdered:Di},Ni=Object,_i=Error,Fi=EvalError,Oi=RangeError,Li=ReferenceError,Bi=SyntaxError,Mi=TypeError,ji=URIError,Ri=Math.abs,Ui=Math.floor,$i=Math.max,qi=Math.min,zi=Math.pow,Hi=Math.round,Vi=Number.isNaN||function isNaN(e){return e!=e},Gi=Object.getOwnPropertyDescriptor;if(Gi)try{Gi([],"length")}catch(e){Gi=null}var Wi=Gi,Ji=Object.defineProperty||!1;if(Ji)try{Ji({},"a",{value:1})}catch(e){Ji=!1}var Ki,Xi=Ji,Yi=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},Z=Symbol("test"),ie=Object(Z);if("string"==typeof Z)return!1;if("[object Symbol]"!==Object.prototype.toString.call(Z))return!1;if("[object Symbol]"!==Object.prototype.toString.call(ie))return!1;for(var ae in e[Z]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var de=Object.getOwnPropertySymbols(e);if(1!==de.length||de[0]!==Z)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,Z))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ve=Object.getOwnPropertyDescriptor(e,Z);if(42!==ve.value||!0!==ve.enumerable)return!1}return!0},Zi="undefined"!=typeof Symbol&&Symbol,Qi="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null,sa=Ni,aa=sa.getPrototypeOf||null,oa=Object.prototype.toString,ca=Math.max,ua=function concatty(e,Z){for(var ie=[],ae=0;ae<e.length;ae+=1)ie[ae]=e[ae];for(var de=0;de<Z.length;de+=1)ie[de+e.length]=Z[de];return ie},la=Function.prototype.bind||function bind(e){var Z=this;if("function"!=typeof Z||"[object Function]"!==oa.apply(Z))throw new TypeError("Function.prototype.bind called on incompatible "+Z);for(var ie,ae=function slicy(e,Z){for(var ie=[],ae=Z||0,de=0;ae<e.length;ae+=1,de+=1)ie[de]=e[ae];return ie}(arguments,1),de=ca(0,Z.length-ae.length),ve=[],be=0;be<de;be++)ve[be]="$"+be;if(ie=Function("binder","return function ("+function(e,Z){for(var ie="",ae=0;ae<e.length;ae+=1)ie+=e[ae],ae+1<e.length&&(ie+=Z);return ie}(ve,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof ie){var de=Z.apply(this,ua(ae,arguments));return Object(de)===de?de:this}return Z.apply(e,ua(ae,arguments))}),Z.prototype){var Ce=function Empty(){};Ce.prototype=Z.prototype,ie.prototype=new Ce,Ce.prototype=null}return ie},pa=Function.prototype.call,ha=Function.prototype.apply,da="undefined"!=typeof Reflect&&Reflect&&Reflect.apply||la.call(pa,ha),fa=Mi,xa=Wi;try{Ki=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var ba,Ea=!!Ki&&xa&&xa(Object.prototype,"__proto__"),Ca=Object,Aa=Ca.getPrototypeOf,Ta=Ea&&"function"==typeof Ea.get?function callBindBasic(e){if(e.length<1||"function"!=typeof e[0])throw new fa("a function is required");return da(la,pa,e)}([Ea.get]):"function"==typeof Aa&&function getDunder(e){return Aa(null==e?e:Ca(e))},Sa=Qi?function getProto(e){return Qi(e)}:aa?function getProto(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return aa(e)}:Ta?function getProto(e){return Ta(e)}:null,Da=Function.prototype.call,Pa=Object.prototype.hasOwnProperty,ka=la.call(Da,Pa),Ia=_i,_a=Fi,Fa=Oi,Oa=Li,La=Bi,Ba=ji,Ma=Ri,ja=Ui,Ra=$i,Ua=qi,$a=zi,qa=Hi,Ha=function sign(e){return Vi(e)||0===e?e:e<0?-1:1},Va=Xi,Ga=ka,Wa=Function,getEvalledConstructor=function(e){try{return Wa('"use strict"; return ('+e+").constructor;")()}catch(e){}},throwTypeError=function(){throw new fa},Ja=xa?function(){try{return throwTypeError}catch(e){try{return xa(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,Ka=function hasNativeSymbols(){return"function"==typeof Zi&&("function"==typeof Symbol&&("symbol"==typeof Zi("foo")&&("symbol"==typeof Symbol("bar")&&Yi())))}(),Xa={},Ya="undefined"!=typeof Uint8Array&&Sa?Sa(Uint8Array):ba,Za={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ba:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ba:ArrayBuffer,"%ArrayIteratorPrototype%":Ka&&Sa?Sa([][Symbol.iterator]()):ba,"%AsyncFromSyncIteratorPrototype%":ba,"%AsyncFunction%":Xa,"%AsyncGenerator%":Xa,"%AsyncGeneratorFunction%":Xa,"%AsyncIteratorPrototype%":Xa,"%Atomics%":"undefined"==typeof Atomics?ba:Atomics,"%BigInt%":"undefined"==typeof BigInt?ba:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ba:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ba:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ba:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ia,"%eval%":eval,"%EvalError%":_a,"%Float16Array%":"undefined"==typeof Float16Array?ba:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ba:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ba:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ba:FinalizationRegistry,"%Function%":Wa,"%GeneratorFunction%":Xa,"%Int8Array%":"undefined"==typeof Int8Array?ba:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ba:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ba:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ka&&Sa?Sa(Sa([][Symbol.iterator]())):ba,"%JSON%":"object"==typeof JSON?JSON:ba,"%Map%":"undefined"==typeof Map?ba:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ka&&Sa?Sa((new Map)[Symbol.iterator]()):ba,"%Math%":Math,"%Number%":Number,"%Object%":sa,"%Object.getOwnPropertyDescriptor%":xa,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ba:Promise,"%Proxy%":"undefined"==typeof Proxy?ba:Proxy,"%RangeError%":Fa,"%ReferenceError%":Oa,"%Reflect%":"undefined"==typeof Reflect?ba:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ba:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ka&&Sa?Sa((new Set)[Symbol.iterator]()):ba,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ba:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ka&&Sa?Sa(""[Symbol.iterator]()):ba,"%Symbol%":Ka?Symbol:ba,"%SyntaxError%":La,"%ThrowTypeError%":Ja,"%TypedArray%":Ya,"%TypeError%":fa,"%Uint8Array%":"undefined"==typeof Uint8Array?ba:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ba:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ba:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ba:Uint32Array,"%URIError%":Ba,"%WeakMap%":"undefined"==typeof WeakMap?ba:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ba:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ba:WeakSet,"%Function.prototype.call%":pa,"%Function.prototype.apply%":ha,"%Object.defineProperty%":Va,"%Object.getPrototypeOf%":aa,"%Math.abs%":Ma,"%Math.floor%":ja,"%Math.max%":Ra,"%Math.min%":Ua,"%Math.pow%":$a,"%Math.round%":qa,"%Math.sign%":Ha,"%Reflect.getPrototypeOf%":Qi};if(Sa)try{null.error}catch(e){var Qa=Sa(Sa(e));Za["%Error.prototype%"]=Qa}var to=function doEval(e){var Z;if("%AsyncFunction%"===e)Z=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)Z=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)Z=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var ie=doEval("%AsyncGeneratorFunction%");ie&&(Z=ie.prototype)}else if("%AsyncIteratorPrototype%"===e){var ae=doEval("%AsyncGenerator%");ae&&Sa&&(Z=Sa(ae.prototype))}return Za[e]=Z,Z},no={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},so=la.call(pa,Array.prototype.concat),io=la.call(ha,Array.prototype.splice),ao=la.call(pa,String.prototype.replace),oo=la.call(pa,String.prototype.slice),uo=la.call(pa,RegExp.prototype.exec),lo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,po=/\\(\\)?/g,ho=function getBaseIntrinsic(e,Z){var ie,ae=e;if(Ga(no,ae)&&(ae="%"+(ie=no[ae])[0]+"%"),Ga(Za,ae)){var de=Za[ae];if(de===Xa&&(de=to(ae)),void 0===de&&!Z)throw new fa("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:ie,name:ae,value:de}}throw new La("intrinsic "+e+" does not exist!")},fo=function GetIntrinsic(e,Z){if("string"!=typeof e||0===e.length)throw new fa("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Z)throw new fa('"allowMissing" argument must be a boolean');if(null===uo(/^%?[^%]*%?$/,e))throw new La("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ie=function stringToPath(e){var Z=oo(e,0,1),ie=oo(e,-1);if("%"===Z&&"%"!==ie)throw new La("invalid intrinsic syntax, expected closing `%`");if("%"===ie&&"%"!==Z)throw new La("invalid intrinsic syntax, expected opening `%`");var ae=[];return ao(e,lo,function(e,Z,ie,de){ae[ae.length]=ie?ao(de,po,"$1"):Z||e}),ae}(e),ae=ie.length>0?ie[0]:"",de=ho("%"+ae+"%",Z),ve=de.name,be=de.value,Ce=!1,ke=de.alias;ke&&(ae=ke[0],io(ie,so([0,1],ke)));for(var Ie=1,_e=!0;Ie<ie.length;Ie+=1){var Fe=ie[Ie],Oe=oo(Fe,0,1),Be=oo(Fe,-1);if(('"'===Oe||"'"===Oe||"`"===Oe||'"'===Be||"'"===Be||"`"===Be)&&Oe!==Be)throw new La("property names with quotes must have matching quotes");if("constructor"!==Fe&&_e||(Ce=!0),Ga(Za,ve="%"+(ae+="."+Fe)+"%"))be=Za[ve];else if(null!=be){if(!(Fe in be)){if(!Z)throw new fa("base intrinsic for "+e+" exists, but the property is not available.");return}if(xa&&Ie+1>=ie.length){var Me=xa(be,Fe);be=(_e=!!Me)&&"get"in Me&&!("originalValue"in Me.get)?Me.get:be[Fe]}else _e=Ga(be,Fe),be=be[Fe];_e&&!Ce&&(Za[ve]=be)}}return be},mo=fo("%Object.defineProperty%",!0),Do=function hasToStringTagShams(){return Yi()&&!!Symbol.toStringTag}()?Symbol.toStringTag:null,populate=function(e,Z){return Object.keys(Z).forEach(function(ie){e[ie]=e[ie]||Z[ie]}),e},ko=function setToStringTag(e,Z){var ie=arguments.length>2&&!!arguments[2]&&arguments[2].force,ae=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==ie&&"boolean"!=typeof ie||void 0!==ae&&"boolean"!=typeof ae)throw new fa("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!Do||!ie&&Ga(e,Do)||(mo?mo(e,Do,{configurable:!ae,enumerable:!1,value:Z,writable:!1}):e[Do]=Z)},No=qt.default.parse,Fo=Ht.default.Stream;function FormData$2(e){if(!(this instanceof FormData$2))return new FormData$2(e);for(var Z in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],gi.call(this),e=e||{})this[Z]=e[Z]}Wt.default.inherits(FormData$2,gi),FormData$2.LINE_BREAK="\r\n",FormData$2.DEFAULT_CONTENT_TYPE="application/octet-stream",FormData$2.prototype.append=function(e,Z,ie){"string"==typeof(ie=ie||{})&&(ie={filename:ie});var ae=gi.prototype.append.bind(this);if("number"!=typeof Z&&null!=Z||(Z=String(Z)),Array.isArray(Z))this._error(new Error("Arrays are not supported."));else{var de=this._multiPartHeader(e,Z,ie),ve=this._multiPartFooter();ae(de),ae(Z),ae(ve),this._trackLength(de,Z,ie)}},FormData$2.prototype._trackLength=function(e,Z,ie){var ae=0;null!=ie.knownLength?ae+=Number(ie.knownLength):Buffer.isBuffer(Z)?ae=Z.length:"string"==typeof Z&&(ae=Buffer.byteLength(Z)),this._valueLength+=ae,this._overheadLength+=Buffer.byteLength(e)+FormData$2.LINE_BREAK.length,Z&&(Z.path||Z.readable&&Ga(Z,"httpVersion")||Z instanceof Fo)&&(ie.knownLength||this._valuesToMeasure.push(Z))},FormData$2.prototype._lengthRetriever=function(e,Z){Ga(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?Z(null,e.end+1-(e.start?e.start:0)):St.default.stat(e.path,function(ie,ae){if(ie)Z(ie);else{var de=ae.size-(e.start?e.start:0);Z(null,de)}}):Ga(e,"httpVersion")?Z(null,Number(e.headers["content-length"])):Ga(e,"httpModule")?(e.on("response",function(ie){e.pause(),Z(null,Number(ie.headers["content-length"]))}),e.resume()):Z("Unknown stream")},FormData$2.prototype._multiPartHeader=function(e,Z,ie){if("string"==typeof ie.header)return ie.header;var ae,de=this._getContentDisposition(Z,ie),ve=this._getContentType(Z,ie),be="",Ce={"Content-Disposition":["form-data",'name="'+e+'"'].concat(de||[]),"Content-Type":[].concat(ve||[])};for(var ke in"object"==typeof ie.header&&populate(Ce,ie.header),Ce)if(Ga(Ce,ke)){if(null==(ae=Ce[ke]))continue;Array.isArray(ae)||(ae=[ae]),ae.length&&(be+=ke+": "+ae.join("; ")+FormData$2.LINE_BREAK)}return"--"+this.getBoundary()+FormData$2.LINE_BREAK+be+FormData$2.LINE_BREAK},FormData$2.prototype._getContentDisposition=function(e,Z){var ie;if("string"==typeof Z.filepath?ie=yt.default.normalize(Z.filepath).replace(/\\/g,"/"):Z.filename||e&&(e.name||e.path)?ie=yt.default.basename(Z.filename||e&&(e.name||e.path)):e&&e.readable&&Ga(e,"httpVersion")&&(ie=yt.default.basename(e.client._httpMessage.path||"")),ie)return'filename="'+ie+'"'},FormData$2.prototype._getContentType=function(e,Z){var ie=Z.contentType;return!ie&&e&&e.name&&(ie=vi.lookup(e.name)),!ie&&e&&e.path&&(ie=vi.lookup(e.path)),!ie&&e&&e.readable&&Ga(e,"httpVersion")&&(ie=e.headers["content-type"]),ie||!Z.filepath&&!Z.filename||(ie=vi.lookup(Z.filepath||Z.filename)),!ie&&e&&"object"==typeof e&&(ie=FormData$2.DEFAULT_CONTENT_TYPE),ie},FormData$2.prototype._multiPartFooter=function(){return function(e){var Z=FormData$2.LINE_BREAK;0===this._streams.length&&(Z+=this._lastBoundary()),e(Z)}.bind(this)},FormData$2.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData$2.LINE_BREAK},FormData$2.prototype.getHeaders=function(e){var Z,ie={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(Z in e)Ga(e,Z)&&(ie[Z.toLowerCase()]=e[Z]);return ie},FormData$2.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},FormData$2.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},FormData$2.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),Z=this.getBoundary(),ie=0,ae=this._streams.length;ie<ae;ie++)"function"!=typeof this._streams[ie]&&(e=Buffer.isBuffer(this._streams[ie])?Buffer.concat([e,this._streams[ie]]):Buffer.concat([e,Buffer.from(this._streams[ie])]),"string"==typeof this._streams[ie]&&this._streams[ie].substring(2,Z.length+2)===Z||(e=Buffer.concat([e,Buffer.from(FormData$2.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},FormData$2.prototype._generateBoundary=function(){this._boundary="--------------------------"+_t.default.randomBytes(12).toString("hex")},FormData$2.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},FormData$2.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},FormData$2.prototype.getLength=function(e){var Z=this._overheadLength+this._valueLength;this._streams.length&&(Z+=this._lastBoundary().length),this._valuesToMeasure.length?Ii.parallel(this._valuesToMeasure,this._lengthRetriever,function(ie,ae){ie?e(ie):(ae.forEach(function(e){Z+=e}),e(null,Z))}):process.nextTick(e.bind(this,null,Z))},FormData$2.prototype.submit=function(e,Z){var ie,ae,de={method:"post"};return"string"==typeof e?(e=No(e),ae=populate({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},de)):(ae=populate(e,de)).port||(ae.port="https:"===ae.protocol?443:80),ae.headers=this.getHeaders(e.headers),ie="https:"===ae.protocol?Ut.default.request(ae):Ft.default.request(ae),this.getLength(function(e,ae){if(e&&"Unknown stream"!==e)this._error(e);else if(ae&&ie.setHeader("Content-Length",ae),this.pipe(ie),Z){var de,callback=function(e,ae){return ie.removeListener("error",callback),ie.removeListener("response",de),Z.call(this,e,ae)};de=callback.bind(this,null),ie.on("error",callback),ie.on("response",de)}}.bind(this)),ie},FormData$2.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},FormData$2.prototype.toString=function(){return"[object FormData]"},ko(FormData$2,"FormData");var Lo=FormData$2,Vo=Lo,Go={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,Z){!es.isUndefined(e)&&es.isUndefined(e["Content-Type"])&&(e["Content-Type"]=Z)}var Wo={transitional:ls,adapter:function getDefaultAdapter(){var e;return"undefined"!=typeof XMLHttpRequest?e=Cs:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=di),e}(),transformRequest:[function transformRequest(e,Z){if(ss(Z,"Accept"),ss(Z,"Content-Type"),es.isFormData(e)||es.isArrayBuffer(e)||es.isBuffer(e)||es.isStream(e)||es.isFile(e)||es.isBlob(e))return e;if(es.isArrayBufferView(e))return e.buffer;if(es.isURLSearchParams(e))return setContentTypeIfUnset(Z,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var ie,ae=es.isObject(e),de=Z&&Z["Content-Type"];if((ie=es.isFileList(e))||ae&&"multipart/form-data"===de){var ve=this.env&&this.env.FormData;return hs(ie?{"files[]":e}:e,ve&&new ve)}return ae||"application/json"===de?(setContentTypeIfUnset(Z,"application/json"),function stringifySafely(e,Z,ie){if(es.isString(e))try{return(Z||JSON.parse)(e),es.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(ie||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){var Z=this.transitional||Wo.transitional,ie=Z&&Z.silentJSONParsing,ae=Z&&Z.forcedJSONParsing,de=!ie&&"json"===this.responseType;if(de||ae&&es.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(de){if("SyntaxError"===e.name)throw cs.from(e,cs.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vo},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};es.forEach(["delete","get","head"],function forEachMethodNoData(e){Wo.headers[e]={}}),es.forEach(["post","put","patch"],function forEachMethodWithData(e){Wo.headers[e]=es.merge(Go)});var Jo=Wo,Ko=function transformData(e,Z,ie){var ae=this||Jo;return es.forEach(ie,function transform(ie){e=ie.call(ae,e,Z)}),e},Xo=function isCancel(e){return!(!e||!e.__CANCEL__)};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Es}var Yo=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=Ko.call(e,e.data,e.headers,e.transformRequest),e.headers=es.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),es.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(Z){delete e.headers[Z]}),(e.adapter||Jo.adapter)(e).then(function onAdapterResolution(Z){return throwIfCancellationRequested(e),Z.data=Ko.call(e,Z.data,Z.headers,e.transformResponse),Z},function onAdapterRejection(Z){return Xo(Z)||(throwIfCancellationRequested(e),Z&&Z.response&&(Z.response.data=Ko.call(e,Z.response.data,Z.response.headers,e.transformResponse))),Promise.reject(Z)})},ec=function mergeConfig(e,Z){Z=Z||{};var ie={};function getMergedValue(e,Z){return es.isPlainObject(e)&&es.isPlainObject(Z)?es.merge(e,Z):es.isPlainObject(Z)?es.merge({},Z):es.isArray(Z)?Z.slice():Z}function mergeDeepProperties(ie){return es.isUndefined(Z[ie])?es.isUndefined(e[ie])?void 0:getMergedValue(void 0,e[ie]):getMergedValue(e[ie],Z[ie])}function valueFromConfig2(e){if(!es.isUndefined(Z[e]))return getMergedValue(void 0,Z[e])}function defaultToConfig2(ie){return es.isUndefined(Z[ie])?es.isUndefined(e[ie])?void 0:getMergedValue(void 0,e[ie]):getMergedValue(void 0,Z[ie])}function mergeDirectKeys(ie){return ie in Z?getMergedValue(e[ie],Z[ie]):ie in e?getMergedValue(void 0,e[ie]):void 0}var ae={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};return es.forEach(Object.keys(e).concat(Object.keys(Z)),function computeConfigValue(e){var Z=ae[e]||mergeDeepProperties,de=Z(e);es.isUndefined(de)&&Z!==mergeDirectKeys||(ie[e]=de)}),ie},tc=oi,rc={};["object","boolean","number","function","string","symbol"].forEach(function(e,Z){rc[e]=function validator(ie){return typeof ie===e||"a"+(Z<1?"n ":" ")+e}});var nc={};rc.transitional=function transitional(e,Z,ie){function formatMessage(e,Z){return"[Axios v"+tc+"] Transitional option '"+e+"'"+Z+(ie?". "+ie:"")}return function(ie,ae,de){if(!1===e)throw new cs(formatMessage(ae," has been removed"+(Z?" in "+Z:"")),cs.ERR_DEPRECATED);return Z&&!nc[ae]&&(nc[ae]=!0,console.warn(formatMessage(ae," has been deprecated since v"+Z+" and will be removed in the near future"))),!e||e(ie,ae,de)}};var sc={assertOptions:function assertOptions(e,Z,ie){if("object"!=typeof e)throw new cs("options must be an object",cs.ERR_BAD_OPTION_VALUE);for(var ae=Object.keys(e),de=ae.length;de-- >0;){var ve=ae[de],be=Z[ve];if(be){var Ce=e[ve],ke=void 0===Ce||be(Ce,ve,e);if(!0!==ke)throw new cs("option "+ve+" must be "+ke,cs.ERR_BAD_OPTION_VALUE)}else if(!0!==ie)throw new cs("Unknown option "+ve,cs.ERR_BAD_OPTION)}},validators:rc},ic=sc.validators;function Axios(e){this.defaults=e,this.interceptors={request:new ns,response:new ns}}Axios.prototype.request=function request(e,Z){"string"==typeof e?(Z=Z||{}).url=e:Z=e||{},(Z=ec(this.defaults,Z)).method?Z.method=Z.method.toLowerCase():this.defaults.method?Z.method=this.defaults.method.toLowerCase():Z.method="get";var ie=Z.transitional;void 0!==ie&&sc.assertOptions(ie,{silentJSONParsing:ic.transitional(ic.boolean),forcedJSONParsing:ic.transitional(ic.boolean),clarifyTimeoutError:ic.transitional(ic.boolean)},!1);var ae=[],de=!0;this.interceptors.request.forEach(function unshiftRequestInterceptors(e){"function"==typeof e.runWhen&&!1===e.runWhen(Z)||(de=de&&e.synchronous,ae.unshift(e.fulfilled,e.rejected))});var ve,be=[];if(this.interceptors.response.forEach(function pushResponseInterceptors(e){be.push(e.fulfilled,e.rejected)}),!de){var Ce=[Yo,void 0];for(Array.prototype.unshift.apply(Ce,ae),Ce=Ce.concat(be),ve=Promise.resolve(Z);Ce.length;)ve=ve.then(Ce.shift(),Ce.shift());return ve}for(var ke=Z;ae.length;){var Ie=ae.shift(),_e=ae.shift();try{ke=Ie(ke)}catch(e){_e(e);break}}try{ve=Yo(ke)}catch(e){return Promise.reject(e)}for(;be.length;)ve=ve.then(be.shift(),be.shift());return ve},Axios.prototype.getUri=function getUri(e){e=ec(this.defaults,e);var Z=xs(e.baseURL,e.url);return ts(Z,e.params,e.paramsSerializer)},es.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(Z,ie){return this.request(ec(ie||{},{method:e,url:Z,data:(ie||{}).data}))}}),es.forEach(["post","put","patch"],function forEachMethodWithData(e){function generateHTTPMethod(Z){return function httpMethod(ie,ae,de){return this.request(ec(de||{},{method:e,headers:Z?{"Content-Type":"multipart/form-data"}:{},url:ie,data:ae}))}}Axios.prototype[e]=generateHTTPMethod(),Axios.prototype[e+"Form"]=generateHTTPMethod(!0)});var ac=Axios;function CancelToken(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var Z;this.promise=new Promise(function promiseExecutor(e){Z=e});var ie=this;this.promise.then(function(e){if(ie._listeners){var Z,ae=ie._listeners.length;for(Z=0;Z<ae;Z++)ie._listeners[Z](e);ie._listeners=null}}),this.promise.then=function(e){var Z,ae=new Promise(function(e){ie.subscribe(e),Z=e}).then(e);return ae.cancel=function reject(){ie.unsubscribe(Z)},ae},e(function cancel(e){ie.reason||(ie.reason=new Es(e),Z(ie.reason))})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},CancelToken.prototype.unsubscribe=function unsubscribe(e){if(this._listeners){var Z=this._listeners.indexOf(e);-1!==Z&&this._listeners.splice(Z,1)}},CancelToken.source=function source(){var e;return{token:new CancelToken(function executor(Z){e=Z}),cancel:e}};var cc=CancelToken;var uc=function createInstance(e){var Z=new ac(e),ie=qn(ac.prototype.request,Z);return es.extend(ie,ac.prototype,Z),es.extend(ie,Z),ie.create=function create(Z){return createInstance(ec(e,Z))},ie}(Jo);uc.Axios=ac,uc.CanceledError=Es,uc.CancelToken=cc,uc.isCancel=Xo,uc.VERSION=oi,uc.toFormData=hs,uc.AxiosError=cs,uc.Cancel=uc.CanceledError,uc.all=function all(e){return Promise.all(e)},uc.spread=function spread(e){return function wrap(Z){return e.apply(null,Z)}},uc.isAxiosError=function isAxiosError(e){return es.isObject(e)&&!0===e.isAxiosError};var lc=uc,pc=uc;lc.default=pc;var hc=lc,getCachePath=function(e){var Z=yt.default.join(vt.default.homedir(),".cache",e);return St.default.existsSync(Z)||St.default.mkdirSync(Z,{recursive:!0}),Z},dc=getCachePath("mengti_file"),downloadFile=function(e,Z){return __awaiter(void 0,void 0,void 0,function(){var ie,ae,de,ve;return __generator(this,function(be){switch(be.label){case 0:if(ie=e.includes("?")?e.split("?")[0]:e,ae=ie.split("/")[ie.split("/").length-1],de=dc+"/"+ae,Et.existsSync(de)){if(0!==Et.statSync(de).size)return Et.copyFileSync(de,Z),[2,{filePath:Z}];Et.unlinkSync(de)}return ve=Et.createWriteStream(de),[4,hc({url:e,method:"GET",responseType:"stream",timeout:3e4})];case 1:return be.sent().data.pipe(ve),[2,new Promise(function(e,ie){ve.on("finish",function(){0!==Et.statSync(de).size?(Et.copyFileSync(de,Z),e({filePath:Z})):ie(new Error("Downloaded file is empty"))}),ve.on("error",function(e){ie(e)})})]}})})};const{parse:fc,stringify:mc}=JSON,{keys:xc}=Object,vc=String,bc="string",Ec={},Cc="object",noop=(e,Z)=>Z,primitives=e=>e instanceof vc?vc(e):e,Primitives=(e,Z)=>typeof Z===bc?new vc(Z):Z,revive=(e,Z,ie,ae)=>{const de=[];for(let ve=xc(ie),{length:be}=ve,Ce=0;Ce<be;Ce++){const be=ve[Ce],ke=ie[be];if(ke instanceof vc){const ve=e[ke];typeof ve!==Cc||Z.has(ve)?ie[be]=ae.call(ie,be,ve):(Z.add(ve),ie[be]=Ec,de.push({k:be,a:[e,Z,ve,ae]}))}else ie[be]!==Ec&&(ie[be]=ae.call(ie,be,ke))}for(let{length:e}=de,Z=0;Z<e;Z++){const{k:e,a:ve}=de[Z];ie[e]=ae.call(ie,e,revive.apply(null,ve))}return ie},set=(e,Z,ie)=>{const ae=vc(Z.push(ie)-1);return e.set(ie,ae),ae},parse$1=(e,Z)=>{const ie=fc(e,Primitives).map(primitives),ae=ie[0],de=Z||noop,ve=typeof ae===Cc&&ae?revive(ie,new Set,ae,de):ae;return de.call({"":ve},"",ve)},stringify=(e,Z,ie)=>{const ae=Z&&typeof Z===Cc?(e,ie)=>""===e||-1<Z.indexOf(e)?ie:void 0:Z||noop,de=new Map,ve=[],be=[];let Ce=+set(de,ve,ae.call({"":e},"",e)),ke=!Ce;for(;Ce<ve.length;)ke=!0,be[Ce]=mc(ve[Ce++],replace,ie);return"["+be.join(",")+"]";function replace(e,Z){if(ke)return ke=!ke,Z;const ie=ae.call(this,e,Z);switch(typeof ie){case Cc:if(null===ie)return ie;case bc:return de.get(ie)||set(de,ve,ie)}return ie}};var Ac=Object.freeze({__proto__:null,parse:parse$1,stringify:stringify,toJSON:e=>fc(stringify(e)),fromJSON:e=>parse$1(mc(e))}),Tc={tryParse:function(e,Z){var ie;try{ie=this.readJSON(e)}catch(e){ie=Z}return ie},readJSON:function(e){return Ac.parse(St.default.readFileSync(e,{encoding:"utf8"}))},writeJSON:function(e,Z){St.default.mkdirSync(yt.default.dirname(e),{recursive:!0}),St.default.writeFileSync(e,Ac.stringify(Z))}};let Sc;try{Sc=Xt.default}catch(e){}const Dc={nosort:!0,silent:!0};let Pc=0;const kc="win32"===process.platform,defaults=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(Z=>{e[Z]=e[Z]||St.default[Z],e[Z+="Sync"]=e[Z]||St.default[Z]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===Sc)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||Dc},rimraf$1=(e,Z,ie)=>{"function"==typeof Z&&(ie=Z,Z={}),Vt.default(e,"rimraf: missing path"),Vt.default.equal(typeof e,"string","rimraf: path should be a string"),Vt.default.equal(typeof ie,"function","rimraf: callback function required"),Vt.default(Z,"rimraf: invalid options argument provided"),Vt.default.equal(typeof Z,"object","rimraf: options should be object"),defaults(Z);let ae=0,de=null,ve=0;const afterGlob=(e,be)=>e?ie(e):(ve=be.length,0===ve?ie():void be.forEach(e=>{const CB=be=>{if(be){if(("EBUSY"===be.code||"ENOTEMPTY"===be.code||"EPERM"===be.code)&&ae<Z.maxBusyTries)return ae++,setTimeout(()=>rimraf_(e,Z,CB),100*ae);if("EMFILE"===be.code&&Pc<Z.emfileWait)return setTimeout(()=>rimraf_(e,Z,CB),Pc++);"ENOENT"===be.code&&(be=null)}Pc=0,(e=>{de=de||e,0===--ve&&ie(de)})(be)};rimraf_(e,Z,CB)}));if(Z.disableGlob||!Sc.hasMagic(e))return afterGlob(null,[e]);Z.lstat(e,(ie,ae)=>{if(!ie)return afterGlob(null,[e]);Sc(e,Z.glob,afterGlob)})},rimraf_=(e,Z,ie)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ie),Z.lstat(e,(ae,de)=>ae&&"ENOENT"===ae.code?ie(null):(ae&&"EPERM"===ae.code&&kc&&fixWinEPERM(e,Z,ae,ie),de&&de.isDirectory()?rmdir(e,Z,ae,ie):void Z.unlink(e,ae=>{if(ae){if("ENOENT"===ae.code)return ie(null);if("EPERM"===ae.code)return kc?fixWinEPERM(e,Z,ae,ie):rmdir(e,Z,ae,ie);if("EISDIR"===ae.code)return rmdir(e,Z,ae,ie)}return ie(ae)})))},fixWinEPERM=(e,Z,ie,ae)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ae),Z.chmod(e,438,de=>{de?ae("ENOENT"===de.code?null:ie):Z.stat(e,(de,ve)=>{de?ae("ENOENT"===de.code?null:ie):ve.isDirectory()?rmdir(e,Z,ie,ae):Z.unlink(e,ae)})})},fixWinEPERMSync=(e,Z,ie)=>{Vt.default(e),Vt.default(Z);try{Z.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw ie}let ae;try{ae=Z.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw ie}ae.isDirectory()?rmdirSync(e,Z,ie):Z.unlinkSync(e)},rmdir=(e,Z,ie,ae)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ae),Z.rmdir(e,de=>{!de||"ENOTEMPTY"!==de.code&&"EEXIST"!==de.code&&"EPERM"!==de.code?de&&"ENOTDIR"===de.code?ae(ie):ae(de):rmkids(e,Z,ae)})},rmkids=(e,Z,ie)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ie),Z.readdir(e,(ae,de)=>{if(ae)return ie(ae);let ve,be=de.length;if(0===be)return Z.rmdir(e,ie);de.forEach(ae=>{rimraf$1(yt.default.join(e,ae),Z,ae=>{if(!ve)return ae?ie(ve=ae):void(0===--be&&Z.rmdir(e,ie))})})})},rimrafSync=(e,Z)=>{let ie;if(defaults(Z=Z||{}),Vt.default(e,"rimraf: missing path"),Vt.default.equal(typeof e,"string","rimraf: path should be a string"),Vt.default(Z,"rimraf: missing options"),Vt.default.equal(typeof Z,"object","rimraf: options should be object"),Z.disableGlob||!Sc.hasMagic(e))ie=[e];else try{Z.lstatSync(e),ie=[e]}catch(ae){ie=Sc.sync(e,Z.glob)}if(ie.length)for(let e=0;e<ie.length;e++){const ae=ie[e];let de;try{de=Z.lstatSync(ae)}catch(e){if("ENOENT"===e.code)return;"EPERM"===e.code&&kc&&fixWinEPERMSync(ae,Z,e)}try{de&&de.isDirectory()?rmdirSync(ae,Z,null):Z.unlinkSync(ae)}catch(e){if("ENOENT"===e.code)return;if("EPERM"===e.code)return kc?fixWinEPERMSync(ae,Z,e):rmdirSync(ae,Z,e);if("EISDIR"!==e.code)throw e;rmdirSync(ae,Z,e)}}},rmdirSync=(e,Z,ie)=>{Vt.default(e),Vt.default(Z);try{Z.rmdirSync(e)}catch(ae){if("ENOENT"===ae.code)return;if("ENOTDIR"===ae.code)throw ie;"ENOTEMPTY"!==ae.code&&"EEXIST"!==ae.code&&"EPERM"!==ae.code||rmkidsSync(e,Z)}},rmkidsSync=(e,Z)=>{Vt.default(e),Vt.default(Z),Z.readdirSync(e).forEach(ie=>rimrafSync(yt.default.join(e,ie),Z));const ie=kc?100:1;let ae=0;for(;;){let de=!0;try{const ie=Z.rmdirSync(e,Z);return de=!1,ie}finally{if(++ae<ie&&de)continue}}};var Nc=rimraf$1;rimraf$1.sync=rimrafSync;var _c=Nc.sync,Fc=function del(e){return!!St.default.existsSync(e)&&(_c(e,{glob:!1}),!0)},Oc=Tc.writeJSON,Lc={load:function(e,Z){var ie=this;ie._visited={},ie._persisted={},ie._pathToFile=Z?yt.default.resolve(Z,e):yt.default.resolve(__dirname,"../.cache/",e),St.default.existsSync(ie._pathToFile)&&(ie._persisted=Tc.tryParse(ie._pathToFile,{}))},loadFile:function(e){var Z=yt.default.dirname(e),ie=yt.default.basename(e);this.load(ie,Z)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(e,Z){this._visited[e]=!0,this._persisted[e]=Z},removeKey:function(e){delete this._visited[e],delete this._persisted[e]},getKey:function(e){return this._visited[e]=!0,this._persisted[e]},_prune:function(){var e=this,Z={},ie=Object.keys(e._visited);0!==ie.length&&(ie.forEach(function(ie){Z[ie]=e._persisted[ie]}),e._visited={},e._persisted=Z)},save:function(e){var Z=this;!e&&Z._prune(),Oc(Z._pathToFile,Z._persisted)},removeCacheFile:function(){return Fc(this._pathToFile)},destroy:function(){var e=this;e._visited={},e._persisted={},e.removeCacheFile()}},Bc={load:function(e,Z){return this.create(e,Z)},create:function(e,Z){var ie=Object.create(Lc);return ie.load(e,Z),ie},createFromFile:function(e){var Z=Object.create(Lc);return Z.loadFile(e),Z},clearCacheById:function(e,Z){var ie=Z?yt.default.resolve(Z,e):yt.default.resolve(__dirname,"../.cache/",e);return Fc(ie)},clearAll:function(e){var Z=e?yt.default.resolve(e):yt.default.resolve(__dirname,"../.cache/");return Fc(Z)}},Mc="";function updateAuthToken(e){Mc=e}var request=function(e,Z,ie){var ae=(void 0===ie?{method:"POST"}:ie).method;return __awaiter(this,void 0,void 0,function(){var ie,de,ve,be;return __generator(this,function(Ce){switch(Ce.label){case 0:return ie=__read((Mc||"").split("##"),2),de=ie[0],ve=ie[1],be={"Content-Type":"application/json",Authorization:"Bearer ".concat(de),client:ve||""},[4,hc({method:ae,url:(process.env.DEV?"http://127.0.0.1:1626":"https://editor.appthen.com")+e,data:Z,headers:be})];case 1:return[2,Ce.sent()]}})})};require("getpinyin").getFirstPY;var jc,Rc,Uc,$c,qc,zc=getCachePath("mengti_translate"),Hc=Bc.load("default",zc),Vc=function(){function OrderedSet(e){this._set=new Set,this._arr=[],e&&(this._set=new Set(e),this._arr=e.slice(0))}return OrderedSet.prototype.add=function(e){this._set.has(e)||(this._set.add(e),this._arr.push(e))},OrderedSet.prototype.delete=function(e){this._set.has(e)&&(this._set.delete(e),this._arr.splice(this._arr.indexOf(e),1))},OrderedSet.prototype.has=function(e){return this._set.has(e)},OrderedSet.prototype.toArray=function(){return this._arr.slice(0)},OrderedSet}(),Gc=function(){function ScopeBindings(e){void 0===e&&(e=null),this._bindings=new Vc,this.parent=e}return ScopeBindings.prototype.hasBinding=function(e){var Z;return this._bindings.has(e)||!!(null===(Z=this.parent)||void 0===Z?void 0:Z.hasBinding(e))},ScopeBindings.prototype.hasOwnBinding=function(e){return this._bindings.has(e)},ScopeBindings.prototype.addBinding=function(e){this._bindings.add(e)},ScopeBindings.prototype.removeBinding=function(e){this._bindings.delete(e)},ScopeBindings.prototype.getAllBindings=function(){for(var e=new Vc(this._bindings.toArray()),Z=this.parent;Z;Z=null==Z?void 0:Z.parent)Z.getAllOwnedBindings().forEach(function(Z){e.add(Z)});return e.toArray()},ScopeBindings.prototype.getAllOwnedBindings=function(){return this._bindings.toArray()},ScopeBindings}(),Wc=function(){function Scope(e){void 0===e&&(e=null),this.parent=e,this.bindings=void 0}return Scope.createRootScope=function(){return new Scope},Scope.prototype.createSubScope=function(e){var Z=this.bindings,ie=new Gc(Z);e.forEach(function(e){ie.addBinding(e)});var ae=new Scope(this);return ae.bindings=ie,ae},Scope}();!function(e){e.CSS="css",e.SCSS="scss",e.LESS="less",e.HTML="html",e.JS="js",e.JSX="jsx",e.TS="ts",e.TSX="tsx",e.JSON="json"}(jc||(jc={})),function(e){e.AST="ast",e.STRING="string",e.JSON="json"}(Rc||(Rc={})),function(e){e.COMPONENT="component",e.UTILS="utils",e.I18N="i18n"}(Uc||(Uc={})),function(e){e.PAGE="pages",e.BLOCK="components",e.COMPONENT="components",e.UTILS="utils"}($c||($c={})),function(e){e.External="External",e.Internal="Internal"}(qc||(qc={}));var Jc,Kc=function(e){function CodeGeneratorError(Z,ie){var ae=this.constructor,de=e.call(this,Z)||this;return de.name=de.constructor.name,de.detail=ie,Object.setPrototypeOf(de,ae.prototype),de}return __extends(CodeGeneratorError,e),CodeGeneratorError}(Error);!function(e){function ComponentValidationError(){return null!==e&&e.apply(this,arguments)||this}__extends(ComponentValidationError,e)}(Kc),function(e){function CompatibilityError(){return null!==e&&e.apply(this,arguments)||this}__extends(CompatibilityError,e)}(Kc),function(e){function PublisherError(){return null!==e&&e.apply(this,arguments)||this}__extends(PublisherError,e)}(Kc),function(e){e.BEFORE="NodeCodePieceBefore",e.TAG="NodeCodePieceTag",e.ATTR="NodeCodePieceAttr",e.CHILDREN="NodeCodePieceChildren",e.AFTER="NodeCodePieceAfter"}(Jc||(Jc={}));var Xc=function(e){function ParseError(Z,ie){var ae=this.constructor,de=e.call(this,'Failed to parse expression "'.concat("string"==typeof Z?Z:Bn(Z),'"'))||this;return de.expr=Z,de.detail=ie,Object.setPrototypeOf(de,ae.prototype),de}return __extends(ParseError,e),ParseError}(Error),Yc={ArrayExpression:{fields:["elements"]},AssignmentExpression:{fields:["left","right"]},BinaryExpression:{fields:["left","right"]},CallExpression:{fields:["arguments","callee"]},ConditionalExpression:{fields:["test","consequent","alternate"]},DoWhileStatement:{fields:["test"]},ExpressionStatement:{fields:["expression"]},ForInStatement:{fields:["right"]},ForStatement:{fields:["init","test","update"]},IfStatement:{fields:["test"]},LogicalExpression:{fields:["left","right"]},MemberExpression:{fields:function(e){return"MemberExpression"===e.type&&e.computed?["object","property"]:["object"]}},NewExpression:{fields:["callee","arguments"]},ObjectMethod:{fields:function(e){return"ObjectMethod"===e.type&&e.computed?["key"]:[]}},ObjectProperty:{fields:function(e){return"ObjectProperty"===e.type&&e.computed?["key","value"]:["value"]}},ReturnStatement:{fields:["argument"]},SequenceExpression:{fields:["expressions"]},ParenthesizedExpression:{fields:["expression"]},SwitchCase:{fields:["test"]},SwitchStatement:{fields:["discriminant"]},ThrowStatement:{fields:["argument"]},UnaryExpression:{fields:["argument"]},UpdateExpression:{fields:["argument"]},VariableDeclarator:{fields:["init"]},WhileStatement:{fields:["test"]},WithStatement:{fields:["object"]},AssignmentPattern:{fields:["right"]},ArrowFunctionExpression:{fields:["body"]},ClassExpression:{fields:["superClass"]},ClassDeclaration:{fields:["superClass"]},ExportDefaultDeclaration:{fields:["declaration"]},ForOfStatement:{fields:["right"]},ClassMethod:{fields:function(e){return"ClassMethod"===e.type&&e.computed?["key"]:[]}},SpreadElement:{fields:["argument"]},TaggedTemplateExpression:{fields:["tag"]},TemplateLiteral:{fields:["expressions"]},YieldExpression:{fields:["argument"]},AwaitExpression:{fields:["argument"]},OptionalMemberExpression:{fields:function(e){return"OptionalMemberExpression"===e.type&&e.computed?["object","property"]:["object"]}},OptionalCallExpression:{fields:["callee","arguments"]},JSXSpreadAttribute:{fields:["argument"]},BindExpression:{fields:["object","callee"]},ClassProperty:{fields:function(e){return"ClassProperty"===e.type&&e.computed?["key","value"]:["value"]}},PipelineTopicExpression:{fields:["expression"]},PipelineBareFunction:{fields:["callee"]},ClassPrivateProperty:{fields:["value"]},Decorator:{fields:["expression"]},TupleExpression:{fields:["elements"]},TSDeclareMethod:{fields:function(e){return"TSDeclareMethod"===e.type&&e.computed?["key"]:[]}},TSPropertySignature:{fields:function(e){return"TSPropertySignature"===e.type&&e.computed?["key","initializer"]:["initializer"]}},TSMethodSignature:{fields:function(e){return"TSMethodSignature"===e.type&&e.computed?["key"]:[]}},TSAsExpression:{fields:["expression"]},TSTypeAssertion:{fields:["expression"]},TSEnumDeclaration:{fields:["initializer"]},TSEnumMember:{fields:["initializer"]},TSNonNullExpression:{fields:["expression"]},TSExportAssignment:{fields:["expression"]}},Zc={ArrowFunctionExpression:!1,FunctionExpression:!0,FunctionDeclaration:!0,ClassDeclaration:!0,ClassExpression:!0,ClassBody:!0,ClassImplements:!0,ClassMethod:!0,ClassPrivateMethod:!0,ClassProperty:!0,ClassPrivateProperty:!0,DeclareClass:!0},Qc=["arguments","this","super"];function parseExpressionConvertThis2Context(e,Z,ie){if(void 0===Z&&(Z="_this"),void 0===ie&&(ie=[]),!e)return e;try{var ae="string"==typeof e?pr(e):e,de=kt.expressionStatement(ae),ve=kt.file(kt.program([de])),be=new Set(ie),Ce=Zc[ae.type]?-1:0;return It.default(ve,{enter:function(e){Zc[e.node.type]&&Ce++},exit:function(e){Zc[e.node.type]&&Ce--},MemberExpression:function(e){if(e.isMemberExpression()){var ie=e.get("object");if(ie.isThisExpression()){if(!e.node.computed){var ae=e.get("property");if(ae.isIdentifier()&&be.has(ae.node.name))return void e.replaceWith(kt.identifier(ae.node.name))}Ce<=0&&ie.replaceWith(kt.identifier(Z))}}},ThisExpression:function(e){e.isThisExpression()&&"MemberExpression"!==e.parent.type&&Ce<=0&&e.replaceWith(kt.identifier(Z))}}),Bn(de.expression,{sourceMaps:!1}).code}catch(Z){throw new Xc(e,Z)}}function parseFunction(e){try{var Z=lr("(".concat(e,");")),ie=null;return It.default(Z,{FunctionExpression:function(e){ie=e.node,e.stop()}}),ie}catch(Z){throw new Xc(e,Z)}}function generateExpression(e,Z){if(et.isJSExpression(e)){var ie=e.value.trim();if(!ie)return"null";var ae=function transformExpressionLocalRef(e,Z){if(!e)return e;if(!Z)throw new Error("transform expression without scope");try{var ie="string"==typeof e?pr(e):e,ae=kt.expressionStatement(ie),de=kt.file(kt.program([ae]));return It.default(de,{MemberExpression:function(e){if(e.isMemberExpression()&&e.get("object").isThisExpression()){var ie=e.get("property"),ae="";!e.node.computed&&ie.isIdentifier()?ae=ie.node.name:e.node.computed&&ie.isStringLiteral()&&(ae=ie.node.value),ae&&Z.bindings&&Z.bindings.hasBinding(ae)&&e.replaceWith(kt.identifier(ae))}}}),Bn(ae.expression,{sourceMaps:!1}).code}catch(Z){throw new Xc(e,Z)}}(ie,Z);return ae}throw new Kc("Not a IPublicTypeJSExpression")}function generateFunction(e,Z){if(void 0===Z&&(Z={name:void 0,isMember:!1,isBlock:!1,isArrow:!1,isBindExpr:!1}),function isJsCode(e){return et.isJSExpression(e)||et.isJSFunction(e)}(e)){var ie=e;return Z.isMember?function transformFuncExpr2MethodMember(e,Z){var ie=parseFunction(Z);if(ie){var ae=kt.classMethod("method",e&&kt.identifier(e)||ie.id||kt.identifier("notDefineName"),ie.params,ie.body,void 0,void 0,void 0,ie.async||void 0);return Bn(ae,{sourceMaps:!1}).code}throw new Error("Can not find Function Statement")}(Z.name||"",ie.value):Z.isBlock?function getBodyStatements(e){var Z=parseFunction(e);if(Z){var ie=Z.body.body,ae=kt.program(ie,void 0,"module",void 0);return Bn(ae,{sourceMaps:!1}).code}throw new Error("Can not find Function Statement")}(ie.value):Z.isArrow?function getArrowFunction(e){var Z=parseFunction(e);if(Z){var ie=kt.arrowFunctionExpression(Z.params,Z.body,Z.async||void 0);return Bn(ie,{sourceMaps:!1}).code}throw new Error("Can not find Function Statement")}(ie.value):Z.isBindExpr?"(".concat(ie.value,").bind(this)"):ie.value}throw new Kc("Not a IPublicTypeJSFunction or IPublicTypeJSExpression")}function unwrapJsExprQuoteInJsx(e){return e.length>=2&&"{"===e[0]&&"}"===e[e.length-1]?e.slice(1,e.length-1):e}function generateJSSlot(e,Z,ie){if(et.isJSSlot(e)){var ae=e,de=ae.title,ve=ae.params,be=ae.value,Ce=ve?Z.createSubScope(ve||[]):Z,ke=be?function generateNodeDataOrArrayForJSSlot(e,Z,ie){if(Array.isArray(e))return 0===e.length?"[]":1===e.length?unwrapJsExprQuoteInJsx(Z(e,ie))||"null":"[\n".concat(e.map(function(e){return"string"==typeof e?JSON.stringify(e):unwrapJsExprQuoteInJsx(Z(e,ie))||"null"}).join(",\n")||"null","\n]");return unwrapJsExprQuoteInJsx(Z(e,ie))||"null"}(be,ie,Ce):"null";return ve?[de&&(Ie=de,"/* ".concat(Ie.split("\n").join(" ").replace(/\*\//g,"*-/"),"*/")),"(",(ve||[]).join(", "),") => (",ke,")"].filter(Boolean).join(""):ke||"[]"}var Ie;throw new Kc("Not a JSSlot")}function executeFunctionStack(e,Z,ie,ae,de){var ve=[];Array.isArray(ie)?ve.push.apply(ve,__spreadArray([],__read(ie),!1)):ve.push(ie);for(var be=ae,_loop_1=function(){var e,Z=ve.pop();if(Z){var ie=(e=be,function(ie,ae,de){return Z(ie,ae,de,e)});be=ie}};ve.length>0;)_loop_1();return be(e,Z,de)}function generateArray(e,Z,ie){void 0===ie&&(ie={});var ae=e.map(function(e){return generateUnknownType(e,Z,ie)}).join(",");return"[".concat(ae,"]")}function generateObject(e,Z,ie){if(void 0===ie&&(ie={}),"i18n"===e.type)return e.params&&"object"==typeof e.params?"this._i18nText(".concat(generateUnknownType(Yt.default.omit(e,"type"),Z,ie),")"):"this._i18nText(".concat(JSON.stringify(Yt.default.omit(e,"type")),")");var ae=Object.keys(e).map(function(ae){var de=JSON.stringify(ae),ve=generateUnknownType(e[ae],Z,ie);return"".concat(de,": ").concat(ve)}).join(",\n");return"{".concat(ae,"}")}function generateString(e){return JSON.stringify(e)}function generateNumber(e){return String(e)}function generateBool(e){return e?"true":"false"}function genFunction(e){var Z=function parseExpressionGetKeywords(e){if(!e)return[];try{var Z=new Vc,ie=lr("!(".concat(e,");")),addIdentifierIfNeeded_1=function(e){"object"==typeof e&&be.isIdentifier(e)&&Qc.includes(e.name)&&Z.add(e.name)};return It.default(ie,{enter:function(e){var Z,ie=e.node,ae=null===(Z=Yc[ie.type])||void 0===Z?void 0:Z.fields;ae&&("function"==typeof ae?ae(ie):ae).forEach(function(e){var Z=ie[e];"object"==typeof Z&&(Array.isArray(Z)?Z.forEach(function(e){addIdentifierIfNeeded_1(e)}):addIdentifierIfNeeded_1(Z))})}}),Z.toArray().filter(Boolean)}catch(Z){throw new Xc(e,Z)}}(e.value);return Z.includes("arguments")?generateFunction(e,{isBindExpr:!0}):generateFunction(e,{isArrow:!0})}function genJSSlot(e,Z,ie){return void 0===ie&&(ie={}),ie.nodeGenerator?generateJSSlot(e,Z,ie.nodeGenerator):""}function generateUnknownType(e,Z,ie){var ae,de,ve,be,Ce,ke,Ie,_e,Fe;if(void 0===ie&&(ie={}),Yt.default.isUndefined(e))return"undefined";if(Yt.default.isNull(e))return"null";if(Yt.default.isArray(e))return(null===(ae=ie.handlers)||void 0===ae?void 0:ae.array)?executeFunctionStack(e,Z,ie.handlers.array,generateArray,ie):generateArray(e,Z,ie);if(function isVariable(e){return!(!Yt.default.isObject(e)||"variable"!==e.type)}(e)){var Oe={type:"JSExpression",value:e.variable};return(null===(de=ie.handlers)||void 0===de?void 0:de.expression)?executeFunctionStack(Oe,Z,ie.handlers.expression,generateExpression,ie):generateExpression(Oe,Z)}if(et.isJSExpression(e))return(null===(ve=ie.handlers)||void 0===ve?void 0:ve.expression)?executeFunctionStack(e,Z,ie.handlers.expression,generateExpression,ie):generateExpression(e,Z);if(et.isJSFunction(e))return(null===(be=ie.handlers)||void 0===be?void 0:be.function)?executeFunctionStack(e,Z,ie.handlers.function,genFunction,ie):genFunction(e);if(et.isJSSlot(e))return(null===(Ce=ie.handlers)||void 0===Ce?void 0:Ce.slot)?executeFunctionStack(e,Z,ie.handlers.slot,genJSSlot,ie):genJSSlot(e,Z,ie);if(function isDataSource(e){return"object"==typeof e&&null!=e&&"DataSource"===e.type}(e))return generateUnknownType({type:"JSExpression",value:"this.dataSourceMap[".concat(JSON.stringify(e.id),"]")},Z,ie);if(Yt.default.isObject(e))return(null===(ke=ie.handlers)||void 0===ke?void 0:ke.object)?executeFunctionStack(e,Z,ie.handlers.object,generateObject,ie):generateObject(e,Z,ie);if(Yt.default.isString(e))return(null===(Ie=ie.handlers)||void 0===Ie?void 0:Ie.string)?executeFunctionStack(e,Z,ie.handlers.string,generateString,ie):generateString(e);if(Yt.default.isNumber(e))return(null===(_e=ie.handlers)||void 0===_e?void 0:_e.number)?executeFunctionStack(e,Z,ie.handlers.number,generateNumber,ie):generateNumber(e);if(Yt.default.isBoolean(e))return(null===(Fe=ie.handlers)||void 0===Fe?void 0:Fe.boolean)?executeFunctionStack(e,Z,ie.handlers.boolean,generateBool,ie):generateBool(e);throw new Kc("Meet unknown composite value type")}function generateCompositeType(e,Z,ie){return void 0===ie&&(ie={}),generateUnknownType(e,Z,ie)}function wrapAsFunction$1(e,Z){return et.isJSExpression(e)||et.isJSFunction(e)?{type:"JSExpression",value:"() => { return ((".concat(e.value,"))}")}:{type:"JSExpression",value:"() => {return((".concat(generateCompositeType(e,Z),"))}")}}var transformUtils=function(e,Z,ie,ae,de){var ve,be,Ce,ke,Ie,_e=Et.readFileSync(e.path+"/"+e.fileName,"utf-8");(_e=_e+"\n"+(be=Z.dataSource,Ce=Wc.createRootScope(),ke=be&&be.list||[],Ie="",ke.length>0&&(Ie="\n// 数据源配置\nexport const dataSourceConfig = ".concat(generateCompositeType(__assign(__assign({},be),{list:__spreadArray([],__read(ke.map(function(e){return __assign(__assign({},e),{isInit:wrapAsFunction$1(e.isInit,Ce),options:wrapAsFunction$1(e.options,Ce)})})),!1)}),Ce,{handlers:{function:function(e){return parseExpressionConvertThis2Context(e.value,"this")},expression:function(e){return parseExpressionConvertThis2Context(e.value,"this")}}}),";\n")),"\n// 兼容性:保留旧的全局数据 API,但使用新的全局数据存储\nimport { globalDataStore } from './globalData';\n".concat(Ie,"\n// 兼容旧版本的 API\nexport const setGlobalData = (key, value) => globalDataStore.set(key, value);\nexport const getGlobalData = (key) => globalDataStore.get(key);\nexport const reloadGlobalData = (key, options) => globalDataStore.load(key, options);\nexport const globalDataSourceMap = globalDataStore.dataSourceMap;\n "))).includes("this.history")&&(_e=_e.replace(/this\.history/g,"this.utils.history"));var Fe=lr("".concat(_e),{sourceType:"module",plugins:["typescript","decorators-legacy"]}),Oe=new Set,Be=new Set,Me=new Set(["Laf"]),qe={};"vite"===ae&&(qe["@/utils/router"]=[{name:"redirectTo"},{name:"navigateTo"},{name:"navigateBack"},{name:"history"}]);var Ve=function(e,Z){return null==e?void 0:e.filter(function(e){var ie,ae,de,ve;return!!(null==e?void 0:e.package)&&!1!==e.enable&&(!(null===(ie=e.advanced)||void 0===ie?void 0:ie.frames)||0===(null===(ae=e.advanced)||void 0===ae?void 0:ae.frames.length)||(null===(ve=null===(de=e.advanced)||void 0===de?void 0:de.frames)||void 0===ve?void 0:ve.includes(Z)))})}(ie.assets,"taro"===ae?"app":"web"),Ze=[];null==Ve||Ve.forEach(function(e){var Z,ie,ae;(null===(Z=e.utils)||void 0===Z?void 0:Z.length)>0&&(qe[e.package.package]=e.utils),(null===(ie=e.advanced)||void 0===ie?void 0:ie.extendCode)&&Ze.push(null===(ae=e.advanced)||void 0===ae?void 0:ae.extendCode)});var et=Object.values(qe).map(function(e){return e.map(function(e){return e.name})}).flat();It.default(Fe,{MemberExpression:function(e){e.node.object&&"ThisExpression"===e.node.object.type&&e.node.property&&"constants"===e.node.property.name&&e.replaceWith(kt.identifier("constants"));var Z=e.node,ie=Z.object,ae=Z.property;if(ie&&"MemberExpression"===ie.type&&"ThisExpression"===ie.object.type&&"utils"===ie.property.name){var de=ae.name;de&&(e.replaceWith(kt.identifier(de)),Oe.add(de))}},FunctionExpression:function(e){var Z,ie,ae,de,ve;e.parent&&(null===(ie=null===(Z=e.parent)||void 0===Z?void 0:Z.id)||void 0===ie?void 0:ie.name)===(null===(de=null===(ae=e.node)||void 0===ae?void 0:ae.id)||void 0===de?void 0:de.name)&&(null===(ve=e.node)||void 0===ve?void 0:ve.id)&&(e.node.id.name="")},ExportNamedDeclaration:function(e){var Z,ie,ae;if(e.node.declaration&&"VariableDeclaration"===e.node.declaration.type&&e.node.declaration.declarations&&e.node.declaration.declarations.length>0&&"VariableDeclarator"===e.node.declaration.declarations[0].type){var de=null===(ae=null===(ie=null===(Z=e.node.declaration.declarations)||void 0===Z?void 0:Z[0])||void 0===ie?void 0:ie.id)||void 0===ae?void 0:ae.name;Be.add(de)}}}),It.default(Fe,{Program:function(e){var Z=e.node.body;Be.add("setGlobalData"),Be.add("getGlobalData"),Be.add("reloadGlobalData"),Be.add("globalDataSourceMap"),Oe.add("dataSource"),Z.splice(1,0,kt.importDeclaration(Array.from(Oe).filter(function(e){return!Be.has(e)&&!Me.has(e)&&!et.includes(e)}).map(function(e){return kt.importSpecifier(kt.identifier(e),kt.identifier(e))}),kt.stringLiteral("vite"===ae?"@appthen/utils":"cross-ui/utils"))),Z.splice(2,0,kt.importDeclaration(["requestHandle"].map(function(e){return kt.importSpecifier(kt.identifier(e),kt.identifier(e))}),kt.stringLiteral("./dataSource"))),Z.splice(3,0,kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier("constants"))],kt.stringLiteral("./constants")));var ie=-1;Object.keys(qe).forEach(function(e){var ae,de,ve,be,Ce=Ve.find(function(Z){return Z.package.package===e}),ke=((null==Ce?void 0:Ce.package)||{}).destructuring,Ie=function packageNameToCamelCase(e){var Z=e.replace(/[@/]/g,"-"),ie=Z.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});/^\d/.test(ie)&&(ie="pkg".concat(ie));return ie}(e),_e=qe[e];!1===ke?(ie+=1,Z.splice(4+ie,0,kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier(Ie))],kt.stringLiteral(e))),_e.forEach(function(e){ie+=1;var ae=kt.memberExpression(kt.identifier(Ie),kt.identifier(e.name)),de=kt.variableDeclarator(kt.identifier(e.name),ae),ve=kt.variableDeclaration("const",[de]),be=kt.exportNamedDeclaration(ve);Z.splice(4+ie,0,be)})):be=kt.exportNamedDeclaration(null,"*"===(null===(de=null===(ae=_e[0])||void 0===ae?void 0:ae.npm)||void 0===de?void 0:de.exportName)?[kt.exportNamespaceSpecifier(kt.identifier(null===(ve=_e[0])||void 0===ve?void 0:ve.name))]:_e.map(function(e){var Z;return kt.exportSpecifier(kt.identifier((null===(Z=e.npm)||void 0===Z?void 0:Z.exportName)||e.name),kt.identifier(e.name))}),kt.stringLiteral(e)),!e.includes("@/utils")&&be&&(ie+=1,Z.splice(4+ie,0,be));var Fe=_e.filter(function(e){return Oe.has(e.name)});Fe.length>0&&(ie+=1,Z.splice(4+ie,0,kt.importDeclaration(Fe.map(function(e){return kt.importSpecifier(kt.identifier(e.name),kt.identifier(e.name))}),kt.stringLiteral(e))))})}});var tt=Bn(Fe).code;if((null===(ve=ie.plugins)||void 0===ve?void 0:ve.length)>0)for(var ct=0;ct<ie.plugins.length;ct++){"laf"===ie.plugins[ct].pluginName&&(tt="".concat(tt,'\nimport { Cloud } from "laf-client-sdk";\nexport const Laf = Cloud;'))}return tt=tt.replace('export * as _ from "lodash";','export { default as _ } from "lodash";'),Ze.length>0&&(tt=Ze.join("\n")+"\n"+tt),tt+="\n\nexport {\n addPortal,\n removePortal,\n registerPartalComponent,\n showComponentModal,\n renderComponentPortal,\n renderComponent,\n} from '@appthen/react';\n",Et.writeFileSync(e.path+"/"+e.fileName,tt),{code:tt}};var objectToObjectExpression=function(e){if("string"==typeof e)return kt.stringLiteral(e);if("number"==typeof e)return kt.numericLiteral(e);if("boolean"==typeof e)return kt.booleanLiteral(e);if(Array.isArray(e))return kt.arrayExpression(e.map(function(e){return objectToObjectExpression(e)}));if("object"==typeof e&&null!==e)return kt.objectExpression(Object.entries(e).map(function(e){var Z=__read(e,2),ie=Z[0],ae=Z[1];return kt.objectProperty(kt.identifier(ie),objectToObjectExpression(ae))}));throw new Error("Unsupported value type: ".concat(typeof e))},eu={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7};eu.ROOT,eu.GROUP,eu.POSITION,eu.SET,eu.RANGE,eu.REPETITION,eu.REFERENCE,eu.CHAR;var INTS=function(){return[{type:eu.RANGE,from:48,to:57}]},WORDS=function(){return[{type:eu.CHAR,value:95},{type:eu.RANGE,from:97,to:122},{type:eu.RANGE,from:65,to:90}].concat(INTS())},WHITESPACE=function(){return[{type:eu.CHAR,value:9},{type:eu.CHAR,value:10},{type:eu.CHAR,value:11},{type:eu.CHAR,value:12},{type:eu.CHAR,value:13},{type:eu.CHAR,value:32},{type:eu.CHAR,value:160},{type:eu.CHAR,value:5760},{type:eu.CHAR,value:6158},{type:eu.CHAR,value:8192},{type:eu.CHAR,value:8193},{type:eu.CHAR,value:8194},{type:eu.CHAR,value:8195},{type:eu.CHAR,value:8196},{type:eu.CHAR,value:8197},{type:eu.CHAR,value:8198},{type:eu.CHAR,value:8199},{type:eu.CHAR,value:8200},{type:eu.CHAR,value:8201},{type:eu.CHAR,value:8202},{type:eu.CHAR,value:8232},{type:eu.CHAR,value:8233},{type:eu.CHAR,value:8239},{type:eu.CHAR,value:8287},{type:eu.CHAR,value:12288},{type:eu.CHAR,value:65279}]},sets_words=function(){return{type:eu.SET,set:WORDS(),not:!1}},sets_notWords=function(){return{type:eu.SET,set:WORDS(),not:!0}},sets_ints=function(){return{type:eu.SET,set:INTS(),not:!1}},sets_notInts=function(){return{type:eu.SET,set:INTS(),not:!0}},sets_whitespace=function(){return{type:eu.SET,set:WHITESPACE(),not:!1}},sets_notWhitespace=function(){return{type:eu.SET,set:WHITESPACE(),not:!0}},sets_anyChar=function(){return{type:eu.SET,set:[{type:eu.CHAR,value:10},{type:eu.CHAR,value:13},{type:eu.CHAR,value:8232},{type:eu.CHAR,value:8233}],not:!0}},tu=createCommonjsModule(function(e,Z){var ie={0:0,t:9,n:10,v:11,f:12,r:13};Z.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g,function(e,Z,ae,de,ve,be,Ce,ke){if(ae)return e;var Ie=Z?8:de?parseInt(de,16):ve?parseInt(ve,16):be?parseInt(be,8):Ce?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(Ce):ie[ke],_e=String.fromCharCode(Ie);return/[\[\]{}\^$.|?*+()]/.test(_e)&&(_e="\\"+_e),_e}),e},Z.tokenizeClass=function(e,ie){for(var ae,de,ve=[],be=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;null!=(ae=be.exec(e));)if(ae[1])ve.push(sets_words());else if(ae[2])ve.push(sets_ints());else if(ae[3])ve.push(sets_whitespace());else if(ae[4])ve.push(sets_notWords());else if(ae[5])ve.push(sets_notInts());else if(ae[6])ve.push(sets_notWhitespace());else if(ae[7])ve.push({type:eu.RANGE,from:(ae[8]||ae[9]).charCodeAt(0),to:ae[10].charCodeAt(0)});else{if(!(de=ae[12]))return[ve,be.lastIndex];ve.push({type:eu.CHAR,value:de.charCodeAt(0)})}Z.error(ie,"Unterminated character class")},Z.error=function(e,Z){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+Z)}});tu.strToChars,tu.tokenizeClass,tu.error;var positions_wordBoundary=function(){return{type:eu.POSITION,value:"b"}},positions_nonWordBoundary=function(){return{type:eu.POSITION,value:"B"}},positions_begin=function(){return{type:eu.POSITION,value:"^"}},positions_end=function(){return{type:eu.POSITION,value:"$"}},lib=function(e){var Z,ie,ae=0,de={type:eu.ROOT,stack:[]},ve=de,be=de.stack,Ce=[],repeatErr=function(Z){tu.error(e,"Nothing to repeat at column "+(Z-1))},ke=tu.strToChars(e);for(Z=ke.length;ae<Z;)switch(ie=ke[ae++]){case"\\":switch(ie=ke[ae++]){case"b":be.push(positions_wordBoundary());break;case"B":be.push(positions_nonWordBoundary());break;case"w":be.push(sets_words());break;case"W":be.push(sets_notWords());break;case"d":be.push(sets_ints());break;case"D":be.push(sets_notInts());break;case"s":be.push(sets_whitespace());break;case"S":be.push(sets_notWhitespace());break;default:/\d/.test(ie)?be.push({type:eu.REFERENCE,value:parseInt(ie,10)}):be.push({type:eu.CHAR,value:ie.charCodeAt(0)})}break;case"^":be.push(positions_begin());break;case"$":be.push(positions_end());break;case"[":var Ie;"^"===ke[ae]?(Ie=!0,ae++):Ie=!1;var _e=tu.tokenizeClass(ke.slice(ae),e);ae+=_e[1],be.push({type:eu.SET,set:_e[0],not:Ie});break;case".":be.push(sets_anyChar());break;case"(":var Fe={type:eu.GROUP,stack:[],remember:!0};"?"===(ie=ke[ae])&&(ie=ke[ae+1],ae+=2,"="===ie?Fe.followedBy=!0:"!"===ie?Fe.notFollowedBy=!0:":"!==ie&&tu.error(e,"Invalid group, character '"+ie+"' after '?' at column "+(ae-1)),Fe.remember=!1),be.push(Fe),Ce.push(ve),ve=Fe,be=Fe.stack;break;case")":0===Ce.length&&tu.error(e,"Unmatched ) at column "+(ae-1)),be=(ve=Ce.pop()).options?ve.options[ve.options.length-1]:ve.stack;break;case"|":ve.options||(ve.options=[ve.stack],delete ve.stack);var Oe=[];ve.options.push(Oe),be=Oe;break;case"{":var Be,Me,qe=/^(\d+)(,(\d+)?)?\}/.exec(ke.slice(ae));null!==qe?(0===be.length&&repeatErr(ae),Be=parseInt(qe[1],10),Me=qe[2]?qe[3]?parseInt(qe[3],10):1/0:Be,ae+=qe[0].length,be.push({type:eu.REPETITION,min:Be,max:Me,value:be.pop()})):be.push({type:eu.CHAR,value:123});break;case"?":0===be.length&&repeatErr(ae),be.push({type:eu.REPETITION,min:0,max:1,value:be.pop()});break;case"+":0===be.length&&repeatErr(ae),be.push({type:eu.REPETITION,min:1,max:1/0,value:be.pop()});break;case"*":0===be.length&&repeatErr(ae),be.push({type:eu.REPETITION,min:0,max:1/0,value:be.pop()});break;default:be.push({type:eu.CHAR,value:ie.charCodeAt(0)})}return 0!==Ce.length&&tu.error(e,"Unterminated group"),de},ru=lib.types=eu,safeRegex=function(e,Z){Z||(Z={});var ie=void 0===Z.limit?25:Z.limit;!function isRegExp(e){return"[object RegExp]"==={}.toString.call(e)}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("chalk"),Z=require("path"),ie=require("os"),ae=require("child_process"),de=require("@appthen/base-generator"),ve=require("fs"),be=require("@babel/types"),Ce=require("@babel/traverse"),ke=require("crypto"),Ie=require("http"),_e=require("https"),Fe=require("url"),Oe=require("stream"),Be=require("assert"),Me=require("tty"),qe=require("util"),Ve=require("zlib"),Ze=require("glob"),et=require("@alilc/lowcode-types"),tt=require("lodash"),ct=require("net"),ut=require("prettier"),lt=require("fs-extra"),pt=require("socket.io-client"),ft=require("whatwg-url");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var Z=Object.create(null);return e&&Object.keys(e).forEach(function(ie){if("default"!==ie){var ae=Object.getOwnPropertyDescriptor(e,ie);Object.defineProperty(Z,ie,ae.get?ae:{enumerable:!0,get:function(){return e[ie]}})}}),Z.default=e,Object.freeze(Z)}var mt=_interopDefaultLegacy(e),yt=_interopDefaultLegacy(Z),gt=_interopNamespace(Z),vt=_interopDefaultLegacy(ie),bt=_interopDefaultLegacy(de),Et=_interopNamespace(ve),St=_interopDefaultLegacy(ve),Dt=_interopDefaultLegacy(be),kt=_interopNamespace(be),It=_interopDefaultLegacy(Ce),_t=_interopDefaultLegacy(ke),Ft=_interopDefaultLegacy(Ie),Ut=_interopDefaultLegacy(_e),qt=_interopDefaultLegacy(Fe),Ht=_interopDefaultLegacy(Oe),Vt=_interopDefaultLegacy(Be),Gt=_interopDefaultLegacy(Me),Wt=_interopDefaultLegacy(qe),Jt=_interopDefaultLegacy(Ve),Xt=_interopDefaultLegacy(Ze),Yt=_interopDefaultLegacy(tt),Zt=_interopDefaultLegacy(ct),tr=_interopDefaultLegacy(ut),nr=_interopDefaultLegacy(lt),sr=_interopNamespace(lt),ir=_interopDefaultLegacy(pt),ar=_interopDefaultLegacy(ft),extendStatics=function(e,Z){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,Z){e.__proto__=Z}||function(e,Z){for(var ie in Z)Object.prototype.hasOwnProperty.call(Z,ie)&&(e[ie]=Z[ie])},extendStatics(e,Z)};function __extends(e,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,Z),e.prototype=null===Z?Object.create(Z):(__.prototype=Z.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(e){for(var Z,ie=1,ae=arguments.length;ie<ae;ie++)for(var de in Z=arguments[ie])Object.prototype.hasOwnProperty.call(Z,de)&&(e[de]=Z[de]);return e},__assign.apply(this,arguments)};function __awaiter(e,Z,ie,ae){return new(ie||(ie=Promise))(function(de,ve){function fulfilled(e){try{step(ae.next(e))}catch(e){ve(e)}}function rejected(e){try{step(ae.throw(e))}catch(e){ve(e)}}function step(e){e.done?de(e.value):function adopt(e){return e instanceof ie?e:new ie(function(Z){Z(e)})}(e.value).then(fulfilled,rejected)}step((ae=ae.apply(e,Z||[])).next())})}function __generator(e,Z){var ie,ae,de,ve={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]},be=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return be.next=verb(0),be.throw=verb(1),be.return=verb(2),"function"==typeof Symbol&&(be[Symbol.iterator]=function(){return this}),be;function verb(Ce){return function(ke){return function step(Ce){if(ie)throw new TypeError("Generator is already executing.");for(;be&&(be=0,Ce[0]&&(ve=0)),ve;)try{if(ie=1,ae&&(de=2&Ce[0]?ae.return:Ce[0]?ae.throw||((de=ae.return)&&de.call(ae),0):ae.next)&&!(de=de.call(ae,Ce[1])).done)return de;switch(ae=0,de&&(Ce=[2&Ce[0],de.value]),Ce[0]){case 0:case 1:de=Ce;break;case 4:return ve.label++,{value:Ce[1],done:!1};case 5:ve.label++,ae=Ce[1],Ce=[0];continue;case 7:Ce=ve.ops.pop(),ve.trys.pop();continue;default:if(!(de=ve.trys,(de=de.length>0&&de[de.length-1])||6!==Ce[0]&&2!==Ce[0])){ve=0;continue}if(3===Ce[0]&&(!de||Ce[1]>de[0]&&Ce[1]<de[3])){ve.label=Ce[1];break}if(6===Ce[0]&&ve.label<de[1]){ve.label=de[1],de=Ce;break}if(de&&ve.label<de[2]){ve.label=de[2],ve.ops.push(Ce);break}de[2]&&ve.ops.pop(),ve.trys.pop();continue}Ce=Z.call(e,ve)}catch(e){Ce=[6,e],ae=0}finally{ie=de=0}if(5&Ce[0])throw Ce[1];return{value:Ce[0]?Ce[1]:void 0,done:!0}}([Ce,ke])}}}function __values(e){var Z="function"==typeof Symbol&&Symbol.iterator,ie=Z&&e[Z],ae=0;if(ie)return ie.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&ae>=e.length&&(e=void 0),{value:e&&e[ae++],done:!e}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,Z){var ie="function"==typeof Symbol&&e[Symbol.iterator];if(!ie)return e;var ae,de,ve=ie.call(e),be=[];try{for(;(void 0===Z||Z-- >0)&&!(ae=ve.next()).done;)be.push(ae.value)}catch(e){de={error:e}}finally{try{ae&&!ae.done&&(ie=ve.return)&&ie.call(ve)}finally{if(de)throw de.error}}return be}function __spreadArray(e,Z,ie){if(ie||2===arguments.length)for(var ae,de=0,ve=Z.length;de<ve;de++)!ae&&de in Z||(ae||(ae=Array.prototype.slice.call(Z,0,de)),ae[de]=Z[de]);return e.concat(ae||Array.prototype.slice.call(Z))}function getErrorMessage(e){return e?e instanceof Error?e.message:"string"==typeof e?e:"object"==typeof e&&null!==e?getErrorMessage(e.message)||getErrorMessage(e.errorMessage)||getErrorMessage(e.detail):null:null}function readFileList(e,Z){Et.readdirSync(e).forEach(function(ie,ae){if(Et.statSync(e+ie).isDirectory())readFileList(e+ie+"/",Z);else{var de=ie.split("."),ve=e.split("/")[e.split("/").length-2],be=de[de.length-1],Ce={path:e.lastIndexOf("/")===e.length-1?e.slice(0,-1):e,fileName:ie,name:ve,ext:be};Z.push(Ce)}})}"function"==typeof SuppressedError&&SuppressedError;var getAllFile=function(e){var Z=[];return readFileList(e,Z),Z};function removeDir(e){Et.existsSync(e)&&(Et.readdirSync(e).forEach(function(Z,ie){var ae=e+"/"+Z;Et.statSync(ae).isDirectory()?removeDir(ae):Et.unlinkSync(ae)}),Et.rmdirSync(e))}var or="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,Z){return e(Z={exports:{}},Z.exports),Z.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var ur=createCommonjsModule(function(e,Z){function _objectWithoutPropertiesLoose(e,Z){if(null==e)return{};var ie={};for(var ae in e)if({}.hasOwnProperty.call(e,ae)){if(-1!==Z.indexOf(ae))continue;ie[ae]=e[ae]}return ie}Object.defineProperty(Z,"__esModule",{value:!0});class Position{constructor(e,Z,ie){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=Z,this.index=ie}}class SourceLocation{constructor(e,Z){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=Z}}function createPositionWithColumnOffset(e,Z){const{line:ie,column:ae,index:de}=e;return new Position(ie,ae+Z,de+Z)}const ie="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var ae={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:ie},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:ie}};const de={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"},toNodeDescription=e=>"UpdateExpression"===e.type?de.UpdateExpression[`${e.prefix}`]:de[e.type];var ve={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:Z})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${Z}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:Z})=>`Unexpected token${Z?` '${Z}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:Z})=>`The only valid meta property for ${e} is ${e}.${Z}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},be={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const Ce=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var ke=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const Ie=["message"];function defineHidden(e,Z,ie){Object.defineProperty(e,Z,{enumerable:!1,configurable:!0,value:ie})}function toParseErrorConstructor({toMessage:e,code:Z,reasonCode:ie,syntaxPlugin:ae}){const de="MissingPlugin"===ie||"MissingOneOfPlugins"===ie;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[ie]&&(ie=e[ie])}return function constructor(ve,be){const Ce=new SyntaxError;return Ce.code=Z,Ce.reasonCode=ie,Ce.loc=ve,Ce.pos=ve.index,Ce.syntaxPlugin=ae,de&&(Ce.missingPlugin=be.missingPlugin),defineHidden(Ce,"clone",function clone(e={}){var Z;const{line:ie,column:ae,index:de}=null!=(Z=e.loc)?Z:ve;return constructor(new Position(ie,ae,de),Object.assign({},be,e.details))}),defineHidden(Ce,"details",be),Object.defineProperty(Ce,"message",{configurable:!0,get(){const Z=`${e(be)} (${ve.line}:${ve.column})`;return this.message=Z,Z},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),Ce}}function ParseErrorEnum(e,Z){if(Array.isArray(e))return Z=>ParseErrorEnum(Z,e[0]);const ie={};for(const ae of Object.keys(e)){const de=e[ae],ve="string"==typeof de?{message:()=>de}:"function"==typeof de?{message:de}:de,{message:be}=ve,Ce=_objectWithoutPropertiesLoose(ve,Ie),ke="string"==typeof be?()=>be:be;ie[ae]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:ae,toMessage:ke},Z?{syntaxPlugin:Z}:{},Ce))}return ie}const _e=Object.assign({},ParseErrorEnum(ae),ParseErrorEnum(ve),ParseErrorEnum({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),ParseErrorEnum(be),ParseErrorEnum`pipelineOperator`(ke));const{defineProperty:Fe}=Object,toUnenumerable=(e,Z)=>{e&&Fe(e,Z,{enumerable:!1,value:e[Z]})};function toESTreeLocation(e){return toUnenumerable(e.loc.start,"index"),toUnenumerable(e.loc.end,"index"),e}class TokContext{constructor(e,Z){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!Z}}const Oe={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",!0)};Oe.template=new TokContext("`",!0);const Be=!0,Me=!0,qe=!0,Ve=!0,Ze=!0;class ExportedTokenType{constructor(e,Z={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=Z.keyword,this.beforeExpr=!!Z.beforeExpr,this.startsExpr=!!Z.startsExpr,this.rightAssociative=!!Z.rightAssociative,this.isLoop=!!Z.isLoop,this.isAssign=!!Z.isAssign,this.prefix=!!Z.prefix,this.postfix=!!Z.postfix,this.binop=null!=Z.binop?Z.binop:null,this.updateContext=null}}const et=new Map;function createKeyword(e,Z={}){Z.keyword=e;const ie=createToken(e,Z);return et.set(e,ie),ie}function createBinop(e,Z){return createToken(e,{beforeExpr:Be,binop:Z})}let tt=-1;const ct=[],ut=[],lt=[],pt=[],ft=[],mt=[];function createToken(e,Z={}){var ie,ae,de,ve;return++tt,ut.push(e),lt.push(null!=(ie=Z.binop)?ie:-1),pt.push(null!=(ae=Z.beforeExpr)&&ae),ft.push(null!=(de=Z.startsExpr)&&de),mt.push(null!=(ve=Z.prefix)&&ve),ct.push(new ExportedTokenType(e,Z)),tt}function createKeywordLike(e,Z={}){var ie,ae,de,ve;return++tt,et.set(e,tt),ut.push(e),lt.push(null!=(ie=Z.binop)?ie:-1),pt.push(null!=(ae=Z.beforeExpr)&&ae),ft.push(null!=(de=Z.startsExpr)&&de),mt.push(null!=(ve=Z.prefix)&&ve),ct.push(new ExportedTokenType("name",Z)),tt}const yt={bracketL:createToken("[",{beforeExpr:Be,startsExpr:Me}),bracketHashL:createToken("#[",{beforeExpr:Be,startsExpr:Me}),bracketBarL:createToken("[|",{beforeExpr:Be,startsExpr:Me}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:Be,startsExpr:Me}),braceBarL:createToken("{|",{beforeExpr:Be,startsExpr:Me}),braceHashL:createToken("#{",{beforeExpr:Be,startsExpr:Me}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:Be,startsExpr:Me}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:Be}),semi:createToken(";",{beforeExpr:Be}),colon:createToken(":",{beforeExpr:Be}),doubleColon:createToken("::",{beforeExpr:Be}),dot:createToken("."),question:createToken("?",{beforeExpr:Be}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:Be}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:Be}),backQuote:createToken("`",{startsExpr:Me}),dollarBraceL:createToken("${",{beforeExpr:Be,startsExpr:Me}),templateTail:createToken("...`",{startsExpr:Me}),templateNonTail:createToken("...${",{beforeExpr:Be,startsExpr:Me}),at:createToken("@"),hash:createToken("#",{startsExpr:Me}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:Be,isAssign:Ve}),assign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),slashAssign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),xorAssign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),moduloAssign:createToken("_=",{beforeExpr:Be,isAssign:Ve}),incDec:createToken("++/--",{prefix:Ze,postfix:!0,startsExpr:Me}),bang:createToken("!",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),tilde:createToken("~",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),doubleCaret:createToken("^^",{startsExpr:Me}),doubleAt:createToken("@@",{startsExpr:Me}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:Be,binop:9,prefix:Ze,startsExpr:Me}),modulo:createToken("%",{binop:10,startsExpr:Me}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:Be,binop:11,rightAssociative:!0}),_in:createKeyword("in",{beforeExpr:Be,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:Be,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:Be}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:Be}),_else:createKeyword("else",{beforeExpr:Be}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:Me}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:Be}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:Be,startsExpr:Me}),_this:createKeyword("this",{startsExpr:Me}),_super:createKeyword("super",{startsExpr:Me}),_class:createKeyword("class",{startsExpr:Me}),_extends:createKeyword("extends",{beforeExpr:Be}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:Me}),_null:createKeyword("null",{startsExpr:Me}),_true:createKeyword("true",{startsExpr:Me}),_false:createKeyword("false",{startsExpr:Me}),_typeof:createKeyword("typeof",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_void:createKeyword("void",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_delete:createKeyword("delete",{beforeExpr:Be,prefix:Ze,startsExpr:Me}),_do:createKeyword("do",{isLoop:qe,beforeExpr:Be}),_for:createKeyword("for",{isLoop:qe}),_while:createKeyword("while",{isLoop:qe}),_as:createKeywordLike("as",{startsExpr:Me}),_assert:createKeywordLike("assert",{startsExpr:Me}),_async:createKeywordLike("async",{startsExpr:Me}),_await:createKeywordLike("await",{startsExpr:Me}),_defer:createKeywordLike("defer",{startsExpr:Me}),_from:createKeywordLike("from",{startsExpr:Me}),_get:createKeywordLike("get",{startsExpr:Me}),_let:createKeywordLike("let",{startsExpr:Me}),_meta:createKeywordLike("meta",{startsExpr:Me}),_of:createKeywordLike("of",{startsExpr:Me}),_sent:createKeywordLike("sent",{startsExpr:Me}),_set:createKeywordLike("set",{startsExpr:Me}),_source:createKeywordLike("source",{startsExpr:Me}),_static:createKeywordLike("static",{startsExpr:Me}),_using:createKeywordLike("using",{startsExpr:Me}),_yield:createKeywordLike("yield",{startsExpr:Me}),_asserts:createKeywordLike("asserts",{startsExpr:Me}),_checks:createKeywordLike("checks",{startsExpr:Me}),_exports:createKeywordLike("exports",{startsExpr:Me}),_global:createKeywordLike("global",{startsExpr:Me}),_implements:createKeywordLike("implements",{startsExpr:Me}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:Me}),_infer:createKeywordLike("infer",{startsExpr:Me}),_is:createKeywordLike("is",{startsExpr:Me}),_mixins:createKeywordLike("mixins",{startsExpr:Me}),_proto:createKeywordLike("proto",{startsExpr:Me}),_require:createKeywordLike("require",{startsExpr:Me}),_satisfies:createKeywordLike("satisfies",{startsExpr:Me}),_keyof:createKeywordLike("keyof",{startsExpr:Me}),_readonly:createKeywordLike("readonly",{startsExpr:Me}),_unique:createKeywordLike("unique",{startsExpr:Me}),_abstract:createKeywordLike("abstract",{startsExpr:Me}),_declare:createKeywordLike("declare",{startsExpr:Me}),_enum:createKeywordLike("enum",{startsExpr:Me}),_module:createKeywordLike("module",{startsExpr:Me}),_namespace:createKeywordLike("namespace",{startsExpr:Me}),_interface:createKeywordLike("interface",{startsExpr:Me}),_type:createKeywordLike("type",{startsExpr:Me}),_opaque:createKeywordLike("opaque",{startsExpr:Me}),name:createToken("name",{startsExpr:Me}),placeholder:createToken("%%",{startsExpr:Me}),string:createToken("string",{startsExpr:Me}),num:createToken("num",{startsExpr:Me}),bigint:createToken("bigint",{startsExpr:Me}),decimal:createToken("decimal",{startsExpr:Me}),regexp:createToken("regexp",{startsExpr:Me}),privateName:createToken("#name",{startsExpr:Me}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:Be}),jsxTagStart:createToken("jsxTagStart",{startsExpr:Me}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenCanStartExpression(e){return ft[e]}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsPostfix(e){return 34===e}function tokenLabelName(e){return ut[e]}function tokenOperatorPrecedence(e){return lt[e]}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return ct[e]}ct[8].updateContext=e=>{e.pop()},ct[5].updateContext=ct[7].updateContext=ct[23].updateContext=e=>{e.push(Oe.brace)},ct[22].updateContext=e=>{e[e.length-1]===Oe.template?e.pop():e.push(Oe.template)},ct[143].updateContext=e=>{e.push(Oe.j_expr,Oe.j_oTag)};let gt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",vt="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const bt=new RegExp("["+gt+"]"),Et=new RegExp("["+gt+vt+"]");gt=vt=null;const St=[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],Dt=[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 isInAstralSet(e,Z){let ie=65536;for(let ae=0,de=Z.length;ae<de;ae+=2){if(ie+=Z[ae],ie>e)return!1;if(ie+=Z[ae+1],ie>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&bt.test(String.fromCharCode(e)):isInAstralSet(e,St)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Et.test(String.fromCharCode(e)):isInAstralSet(e,St)||isInAstralSet(e,Dt))))}const kt=["implements","interface","let","package","private","protected","public","static","yield"],It=["eval","arguments"],_t=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"]),Ft=new Set(kt),Ut=new Set(It);function isReservedWord(e,Z){return Z&&"await"===e||"enum"===e}function isStrictReservedWord(e,Z){return isReservedWord(e,Z)||Ft.has(e)}function isStrictBindOnlyReservedWord(e){return Ut.has(e)}function isStrictBindReservedWord(e,Z){return isStrictReservedWord(e,Z)||isStrictBindOnlyReservedWord(e)}const qt=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"]);class Scope{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ScopeHandler{constructor(e,Z){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=Z}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:Z}=this.scopeStack[e];if(128&Z)return!0;if(1731&Z)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,Z,ie){let ae=this.currentScope();if(8&Z||16&Z){this.checkRedeclarationInScope(ae,e,Z,ie);let de=ae.names.get(e)||0;16&Z?de|=4:(ae.firstLexicalName||(ae.firstLexicalName=e),de|=2),ae.names.set(e,de),8&Z&&this.maybeExportDefined(ae,e)}else if(4&Z)for(let de=this.scopeStack.length-1;de>=0&&(ae=this.scopeStack[de],this.checkRedeclarationInScope(ae,e,Z,ie),ae.names.set(e,1|(ae.names.get(e)||0)),this.maybeExportDefined(ae,e),!(1667&ae.flags));--de);this.parser.inModule&&1&ae.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,Z){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(Z)}checkRedeclarationInScope(e,Z,ie,ae){this.isRedeclaredInScope(e,Z,ie)&&this.parser.raise(_e.VarRedeclaration,ae,{identifierName:Z})}isRedeclaredInScope(e,Z,ie){if(!(1&ie))return!1;if(8&ie)return e.names.has(Z);const ae=e.names.get(Z);return 16&ie?(2&ae)>0||!this.treatFunctionsAsVarInScope(e)&&(1&ae)>0:(2&ae)>0&&!(8&e.flags&&e.firstLexicalName===Z)||!this.treatFunctionsAsVarInScope(e)&&(4&ae)>0}checkLocalExport(e){const{name:Z}=e;this.scopeStack[0].names.has(Z)||this.undefinedExports.set(Z,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:Z}=this.scopeStack[e];if(1667&Z)return Z}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:Z}=this.scopeStack[e];if(1731&Z&&!(4&Z))return Z}}}class FlowScope extends Scope{constructor(...e){super(...e),this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,Z,ie){const ae=this.currentScope();if(2048&Z)return this.checkRedeclarationInScope(ae,e,Z,ie),this.maybeExportDefined(ae,e),void ae.declareFunctions.add(e);super.declareName(e,Z,ie)}isRedeclaredInScope(e,Z,ie){if(super.isRedeclaredInScope(e,Z,ie))return!0;if(2048&ie&&!e.declareFunctions.has(Z)){const ie=e.names.get(Z);return(4&ie)>0||(2&ie)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const Ht=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Vt=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:Z})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${Z}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:Z})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${Z}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:Z})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${Z}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:Z,explicitType:ie})=>`Enum \`${e}\` has type \`${ie}\`, so the initializer of \`${Z}\` needs to be a ${ie} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:Z})=>`Symbol enum members cannot be initialized. Use \`${Z},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:Z})=>`The enum member initializer for \`${Z}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:Z,suggestion:ie})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${Z}\`, consider using \`${ie}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:Z})=>`Number enum members need to be initialized, e.g. \`${Z} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:Z})=>`\`declare export ${e}\` is not supported. Use \`${Z}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}const Gt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const Wt=/\*?\s*@((?:no)?flow)\b/;const Jt={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Xt=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function hasNewLine(e,Z,ie){for(let ae=Z;ae<ie;ae++)if(isNewLine(e.charCodeAt(ae)))return!0;return!1}const Yt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Zt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const tr=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:Z})=>`Unexpected token \`${e}\`. Did you mean \`${Z}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}class TypeScriptScope extends Scope{constructor(...e){super(...e),this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new TypeScriptScope(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,Z){const ie=this.importsStack.length;if(this.importsStack[ie-1].has(e))return!0;if(!Z&&ie>1)for(let Z=0;Z<ie-1;Z++)if(this.importsStack[Z].has(e))return!0;return!1}declareName(e,Z,ie){if(4096&Z)return this.hasImport(e,!0)&&this.parser.raise(_e.VarRedeclaration,ie,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const ae=this.currentScope();let de=ae.tsNames.get(e)||0;if(1024&Z)return this.maybeExportDefined(ae,e),void ae.tsNames.set(e,16|de);super.declareName(e,Z,ie),2&Z&&(1&Z||(this.checkRedeclarationInScope(ae,e,Z,ie),this.maybeExportDefined(ae,e)),de|=1),256&Z&&(de|=2),512&Z&&(de|=4),128&Z&&(de|=8),de&&ae.tsNames.set(e,de)}isRedeclaredInScope(e,Z,ie){const ae=e.tsNames.get(Z);if((2&ae)>0){if(256&ie){return!!(512&ie)!==(4&ae)>0}return!0}return 128&ie&&(8&ae)>0?!!(2&e.names.get(Z))&&!!(1&ie):!!(2&ie&&(1&ae)>0)||super.isRedeclaredInScope(e,Z,ie)}checkLocalExport(e){const{name:Z}=e;if(this.hasImport(Z))return;for(let e=this.scopeStack.length-1;e>=0;e--){const ie=this.scopeStack[e].tsNames.get(Z);if((1&ie)>0||(16&ie)>0)return}super.checkLocalExport(e)}}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function functionFlags(e,Z){return(e?2:0)|(Z?1:0)}class BaseParser{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[Z,ie]=e;if(!this.hasPlugin(Z))return!1;const ae=this.plugins.get(Z);for(const e of Object.keys(ie))if((null==ae?void 0:ae[e])!==ie[e])return!1;return!0}}getPluginOption(e,Z){var ie;return null==(ie=this.plugins.get(e))?void 0:ie[Z]}}function setTrailingComments(e,Z){void 0===e.trailingComments?e.trailingComments=Z:e.trailingComments.unshift(...Z)}function setInnerComments(e,Z){void 0===e.innerComments?e.innerComments=Z:e.innerComments.unshift(...Z)}function adjustInnerComments(e,Z,ie){let ae=null,de=Z.length;for(;null===ae&&de>0;)ae=Z[--de];null===ae||ae.start>ie.start?setInnerComments(e,ie.comments):setTrailingComments(ae,ie.comments)}class CommentsParser extends BaseParser{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:Z}=this.state;this.comments.length!==Z&&(this.comments.length=Z),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:Z}=this.state,ie=Z.length;if(0===ie)return;let ae=ie-1;const de=Z[ae];de.start===e.end&&(de.leadingNode=e,ae--);const{start:ve}=e;for(;ae>=0;ae--){const ie=Z[ae],de=ie.end;if(!(de>ve)){de===ve&&(ie.trailingNode=e);break}ie.containingNode=e,this.finalizeComment(ie),Z.splice(ae,1)}}finalizeComment(e){var Z;const{comments:ie}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&setTrailingComments(e.leadingNode,ie),null!==e.trailingNode&&function setLeadingComments(e,Z){void 0===e.leadingComments?e.leadingComments=Z:e.leadingComments.unshift(...Z)}(e.trailingNode,ie);else{const{containingNode:ae,start:de}=e;if(44===this.input.charCodeAt(this.offsetToSourcePos(de)-1))switch(ae.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(ae,ae.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(ae,ae.arguments,e);break;case"ImportExpression":adjustInnerComments(ae,[ae.source,null!=(Z=ae.options)?Z:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(ae,ae.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(ae,ae.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(ae,ae.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":adjustInnerComments(ae,ae.members,e);break;default:setInnerComments(ae,ie)}else setInnerComments(ae,ie)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let Z=e.length-1;Z>=0;Z--)this.finalizeComment(e[Z]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:Z}=this.state,{length:ie}=Z;if(0===ie)return;const ae=Z[ie-1];ae.leadingNode===e&&(ae.leadingNode=null)}takeSurroundingComments(e,Z,ie){const{commentStack:ae}=this.state,de=ae.length;if(0===de)return;let ve=de-1;for(;ve>=0;ve--){const de=ae[ve],be=de.end;if(de.start===ie)de.leadingNode=e;else if(be===Z)de.trailingNode=e;else if(be<Z)break}}}class State{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=[Oe.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:Z,startIndex:ie,startLine:ae,startColumn:de}){this.strict=!1!==e&&(!0===e||"module"===Z),this.startIndex=ie,this.curLine=ae,this.lineStart=-de,this.startLoc=this.endLoc=new Position(ae,de,ie)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var nr=function isDigit(e){return e>=48&&e<=57};const sr={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ir={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,Z,ie,ae,de,ve){const be=ie,Ce=ae,ke=de;let Ie="",_e=null,Fe=ie;const{length:Oe}=Z;for(;;){if(ie>=Oe){ve.unterminated(be,Ce,ke),Ie+=Z.slice(Fe,ie);break}const Be=Z.charCodeAt(ie);if(isStringEnd(e,Be,Z,ie)){Ie+=Z.slice(Fe,ie);break}if(92===Be){Ie+=Z.slice(Fe,ie);const be=readEscapedChar(Z,ie,ae,de,"template"===e,ve);null!==be.ch||_e?Ie+=be.ch:_e={pos:ie,lineStart:ae,curLine:de},({pos:ie,lineStart:ae,curLine:de}=be),Fe=ie}else 8232===Be||8233===Be?(++de,ae=++ie):10===Be||13===Be?"template"===e?(Ie+=Z.slice(Fe,ie)+"\n",++ie,13===Be&&10===Z.charCodeAt(ie)&&++ie,++de,Fe=ae=ie):ve.unterminated(be,Ce,ke):++ie}return{pos:ie,str:Ie,firstInvalidLoc:_e,lineStart:ae,curLine:de,containsInvalid:!!_e}}function isStringEnd(e,Z,ie,ae){return"template"===e?96===Z||36===Z&&123===ie.charCodeAt(ae+1):Z===("double"===e?34:39)}function readEscapedChar(e,Z,ie,ae,de,ve){const be=!de;Z++;const res=e=>({pos:Z,ch:e,lineStart:ie,curLine:ae}),Ce=e.charCodeAt(Z++);switch(Ce){case 110:return res("\n");case 114:return res("\r");case 120:{let de;return({code:de,pos:Z}=readHexChar(e,Z,ie,ae,2,!1,be,ve)),res(null===de?null:String.fromCharCode(de))}case 117:{let de;return({code:de,pos:Z}=readCodePoint(e,Z,ie,ae,be,ve)),res(null===de?null:String.fromCodePoint(de))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===e.charCodeAt(Z)&&++Z;case 10:ie=Z,++ae;case 8232:case 8233:return res("");case 56:case 57:if(de)return res(null);ve.strictNumericEscape(Z-1,ie,ae);default:if(Ce>=48&&Ce<=55){const be=Z-1;let Ce=/^[0-7]+/.exec(e.slice(be,Z+2))[0],ke=parseInt(Ce,8);ke>255&&(Ce=Ce.slice(0,-1),ke=parseInt(Ce,8)),Z+=Ce.length-1;const Ie=e.charCodeAt(Z);if("0"!==Ce||56===Ie||57===Ie){if(de)return res(null);ve.strictNumericEscape(be,ie,ae)}return res(String.fromCharCode(ke))}return res(String.fromCharCode(Ce))}}function readHexChar(e,Z,ie,ae,de,ve,be,Ce){const ke=Z;let Ie;return({n:Ie,pos:Z}=readInt(e,Z,ie,ae,16,de,ve,!1,Ce,!be)),null===Ie&&(be?Ce.invalidEscapeSequence(ke,ie,ae):Z=ke-1),{code:Ie,pos:Z}}function readInt(e,Z,ie,ae,de,ve,be,Ce,ke,Ie){const _e=Z,Fe=16===de?sr.hex:sr.decBinOct,Oe=16===de?ir.hex:10===de?ir.dec:8===de?ir.oct:ir.bin;let Be=!1,Me=0;for(let _e=0,qe=null==ve?1/0:ve;_e<qe;++_e){const ve=e.charCodeAt(Z);let _e;if(95===ve&&"bail"!==Ce){const de=e.charCodeAt(Z-1),ve=e.charCodeAt(Z+1);if(Ce){if(Number.isNaN(ve)||!Oe(ve)||Fe.has(de)||Fe.has(ve)){if(Ie)return{n:null,pos:Z};ke.unexpectedNumericSeparator(Z,ie,ae)}}else{if(Ie)return{n:null,pos:Z};ke.numericSeparatorInEscapeSequence(Z,ie,ae)}++Z;continue}if(_e=ve>=97?ve-97+10:ve>=65?ve-65+10:nr(ve)?ve-48:1/0,_e>=de){if(_e<=9&&Ie)return{n:null,pos:Z};if(_e<=9&&ke.invalidDigit(Z,ie,ae,de))_e=0;else{if(!be)break;_e=0,Be=!0}}++Z,Me=Me*de+_e}return Z===_e||null!=ve&&Z-_e!==ve||Be?{n:null,pos:Z}:{n:Me,pos:Z}}function readCodePoint(e,Z,ie,ae,de,ve){let be;if(123===e.charCodeAt(Z)){if(++Z,({code:be,pos:Z}=readHexChar(e,Z,ie,ae,e.indexOf("}",Z)-Z,!0,de,ve)),++Z,null!==be&&be>1114111){if(!de)return{code:null,pos:Z};ve.invalidCodePoint(Z,ie,ae)}}else({code:be,pos:Z}=readHexChar(e,Z,ie,ae,4,!1,de,ve));return{code:be,pos:Z}}function buildPosition(e,Z,ie){return new Position(ie,e-Z,e)}const ar=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const Z=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=Z+e.start,this.end=Z+e.end,this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,Z){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,Z,ie,ae)=>!!(2048&this.optionFlags)&&(this.raise(_e.InvalidDigit,buildPosition(e,Z,ie),{radix:ae}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(_e.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_e.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_e.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_e.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,Z,ie)=>{this.recordStrictModeErrors(_e.StrictNumericEscape,buildPosition(e,Z,ie))},unterminated:(e,Z,ie)=>{throw this.raise(_e.UnterminatedString,buildPosition(e-1,Z,ie))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_e.StrictNumericEscape),unterminated:(e,Z,ie)=>{throw this.raise(_e.UnterminatedTemplate,buildPosition(e,Z,ie))}}),this.state=new State,this.state.init(e),this.input=Z,this.length=Z.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new Token(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const Z=this.state;return this.state=e,Z}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Yt.lastIndex=e,Yt.test(this.input)?Yt.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Zt.lastIndex=e,Zt.test(this.input)?Zt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let Z=this.input.charCodeAt(e);if(55296==(64512&Z)&&++e<this.input.length){const ie=this.input.charCodeAt(e);56320==(64512&ie)&&(Z=65536+((1023&Z)<<10)+(1023&ie))}return Z}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,Z])=>this.raise(e,Z)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let Z;this.isLookahead||(Z=this.state.curPosition());const ie=this.state.pos,ae=this.input.indexOf(e,ie+2);if(-1===ae)throw this.raise(_e.UnterminatedComment,this.state.curPosition());for(this.state.pos=ae+e.length,Xt.lastIndex=ie+2;Xt.test(this.input)&&Xt.lastIndex<=ae;)++this.state.curLine,this.state.lineStart=Xt.lastIndex;if(this.isLookahead)return;const de={type:"CommentBlock",value:this.input.slice(ie+2,ae),start:this.sourceToOffsetPos(ie),end:this.sourceToOffsetPos(ae+e.length),loc:new SourceLocation(Z,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(de),de}skipLineComment(e){const Z=this.state.pos;let ie;this.isLookahead||(ie=this.state.curPosition());let ae=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(ae)&&++this.state.pos<this.length;)ae=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const de=this.state.pos,ve={type:"CommentLine",value:this.input.slice(Z+e,de),start:this.sourceToOffsetPos(Z),end:this.sourceToOffsetPos(de),loc:new SourceLocation(ie,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(ve),ve}skipSpace(){const e=this.state.pos,Z=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const ie=this.input.charCodeAt(this.state.pos);switch(ie){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==Z||Z.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==Z||Z.push(e));break}default:break e}break;default:if(isWhitespace(ie))++this.state.pos;else if(45===ie&&!this.inModule&&8192&this.optionFlags){const ie=this.state.pos;if(45!==this.input.charCodeAt(ie+1)||62!==this.input.charCodeAt(ie+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==Z||Z.push(e))}}else{if(60!==ie||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==Z||Z.push(e))}}}}}if((null==Z?void 0:Z.length)>0){const ie=this.state.pos,ae={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(ie),comments:Z,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(ae)}}finishToken(e,Z){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const ie=this.state.type;this.state.type=e,this.state.value=Z,this.isLookahead||this.updateContext(ie)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,Z=this.codePointAtPos(e);if(Z>=48&&Z<=57)throw this.raise(_e.UnexpectedDigitAfterHash,this.state.curPosition());if(123===Z||91===Z&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===Z?_e.RecordExpressionHashIncorrectStartSyntaxType:_e.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===Z?this.finishToken(7):this.finishToken(1)}else isIdentifierStart(Z)?(++this.state.pos,this.finishToken(139,this.readWord1(Z))):92===Z?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const Z=this.state.pos;for(this.state.pos+=1;!isNewLine(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const ie=this.input.slice(Z+2,this.state.pos);return this.finishToken(28,ie),!0}readToken_mult_modulo(e){let Z=42===e?55:54,ie=1,ae=this.input.charCodeAt(this.state.pos+1);42===e&&42===ae&&(ie++,ae=this.input.charCodeAt(this.state.pos+2),Z=57),61!==ae||this.state.inType||(ie++,Z=37===e?33:30),this.finishOp(Z,ie)}readToken_pipe_amp(e){const Z=this.input.charCodeAt(this.state.pos+1);if(Z!==e){if(124===e){if(62===Z)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===Z){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===Z){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==Z?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const Z=this.input.charCodeAt(this.state.pos+1);Z!==e?61===Z?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,Z=this.input.charCodeAt(e+1);if(60===Z)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==Z?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,Z=this.input.charCodeAt(e+1);if(62===Z){const Z=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+Z)?void this.finishOp(30,Z+1):void this.finishOp(52,Z)}61!==Z?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const Z=this.input.charCodeAt(this.state.pos+1);if(61!==Z)return 61===e&&62===Z?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),Z=this.input.charCodeAt(this.state.pos+2);63===e?61===Z?this.finishOp(30,3):this.finishOp(40,2):46!==e||Z>=48&&Z<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(_e.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord(e)}throw this.raise(_e.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,Z){const ie=this.input.slice(this.state.pos,this.state.pos+Z);this.state.pos+=Z,this.finishToken(e,ie)}readRegexp(){const e=this.state.startLoc,Z=this.state.start+1;let ie,ae,{pos:de}=this.state;for(;;++de){if(de>=this.length)throw this.raise(_e.UnterminatedRegExp,createPositionWithColumnOffset(e,1));const Z=this.input.charCodeAt(de);if(isNewLine(Z))throw this.raise(_e.UnterminatedRegExp,createPositionWithColumnOffset(e,1));if(ie)ie=!1;else{if(91===Z)ae=!0;else if(93===Z&&ae)ae=!1;else if(47===Z&&!ae)break;ie=92===Z}}const ve=this.input.slice(Z,de);++de;let be="";const nextPos=()=>createPositionWithColumnOffset(e,de+2-Z);for(;de<this.length;){const e=this.codePointAtPos(de),Z=String.fromCharCode(e);if(ar.has(e))118===e?be.includes("u")&&this.raise(_e.IncompatibleRegExpUVFlags,nextPos()):117===e&&be.includes("v")&&this.raise(_e.IncompatibleRegExpUVFlags,nextPos()),be.includes(Z)&&this.raise(_e.DuplicateRegExpFlags,nextPos());else{if(!isIdentifierChar(e)&&92!==e)break;this.raise(_e.MalformedRegExpFlags,nextPos())}++de,be+=Z}this.state.pos=de,this.finishToken(138,{pattern:ve,flags:be})}readInt(e,Z,ie=!1,ae=!0){const{n:de,pos:ve}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,Z,ie,ae,this.errorHandlers_readInt,!1);return this.state.pos=ve,de}readRadixNumber(e){const Z=this.state.pos,ie=this.state.curPosition();let ae=!1;this.state.pos+=2;const de=this.readInt(e);null==de&&this.raise(_e.InvalidDigit,createPositionWithColumnOffset(ie,2),{radix:e});const ve=this.input.charCodeAt(this.state.pos);if(110===ve)++this.state.pos,ae=!0;else if(109===ve)throw this.raise(_e.InvalidDecimal,ie);if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(_e.NumberIdentifier,this.state.curPosition());if(ae){const e=this.input.slice(Z,this.state.pos).replace(/[_n]/g,"");return void this.finishToken(136,e)}this.finishToken(135,de)}readNumber(e){const Z=this.state.pos,ie=this.state.curPosition();let ae=!1,de=!1,ve=!1,be=!1;e||null!==this.readInt(10)||this.raise(_e.InvalidNumber,this.state.curPosition());const Ce=this.state.pos-Z>=2&&48===this.input.charCodeAt(Z);if(Ce){const e=this.input.slice(Z,this.state.pos);if(this.recordStrictModeErrors(_e.StrictOctalLiteral,ie),!this.state.strict){const Z=e.indexOf("_");Z>0&&this.raise(_e.ZeroDigitNumericSeparator,createPositionWithColumnOffset(ie,Z))}be=Ce&&!/[89]/.test(e)}let ke=this.input.charCodeAt(this.state.pos);if(46!==ke||be||(++this.state.pos,this.readInt(10),ae=!0,ke=this.input.charCodeAt(this.state.pos)),69!==ke&&101!==ke||be||(ke=this.input.charCodeAt(++this.state.pos),43!==ke&&45!==ke||++this.state.pos,null===this.readInt(10)&&this.raise(_e.InvalidOrMissingExponent,ie),ae=!0,ve=!0,ke=this.input.charCodeAt(this.state.pos)),110===ke&&((ae||Ce)&&this.raise(_e.InvalidBigIntLiteral,ie),++this.state.pos,de=!0),109===ke){this.expectPlugin("decimal",this.state.curPosition()),(ve||Ce)&&this.raise(_e.InvalidDecimal,ie),++this.state.pos;var Ie=!0}if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(_e.NumberIdentifier,this.state.curPosition());const Fe=this.input.slice(Z,this.state.pos).replace(/[_mn]/g,"");if(de)return void this.finishToken(136,Fe);if(Ie)return void this.finishToken(137,Fe);const Oe=be?parseInt(Fe,8):parseFloat(Fe);this.finishToken(135,Oe)}readCodePoint(e){const{code:Z,pos:ie}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=ie,Z}readString(e){const{str:Z,pos:ie,curLine:ae,lineStart:de}=readStringContents(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=ie+1,this.state.lineStart=de,this.state.curLine=ae,this.finishToken(134,Z)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:Z,firstInvalidLoc:ie,pos:ae,curLine:de,lineStart:ve}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=ae+1,this.state.lineStart=ve,this.state.curLine=de,ie&&(this.state.firstInvalidTemplateEscapePos=new Position(ie.curLine,ie.pos-ie.lineStart,this.sourceToOffsetPos(ie.pos))),96===this.input.codePointAt(ae)?this.finishToken(24,ie?null:e+Z+"`"):(this.state.pos++,this.finishToken(25,ie?null:e+Z+"${"))}recordStrictModeErrors(e,Z){const ie=Z.index;this.state.strict&&!this.state.strictErrors.has(ie)?this.raise(e,Z):this.state.strictErrors.set(ie,[e,Z])}readWord1(e){this.state.containsEsc=!1;let Z="";const ie=this.state.pos;let ae=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,Z+=this.input.slice(ae,this.state.pos);const e=this.state.curPosition(),de=this.state.pos===ie?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(_e.MissingUnicodeEscape,this.state.curPosition()),ae=this.state.pos-1;continue}++this.state.pos;const ve=this.readCodePoint(!0);null!==ve&&(de(ve)||this.raise(_e.EscapedCharNotAnIdentifier,e),Z+=String.fromCodePoint(ve)),ae=this.state.pos}}}return Z+this.input.slice(ae,this.state.pos)}readWord(e){const Z=this.readWord1(e),ie=et.get(Z);void 0!==ie?this.finishToken(ie,tokenLabelName(ie)):this.finishToken(132,Z)}checkKeywordEscapes(){const{type:e}=this.state;tokenIsKeyword(e)&&this.state.containsEsc&&this.raise(_e.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}raise(e,Z,ie={}){const ae=e(Z instanceof Position?Z:Z.loc.start,ie);if(!(2048&this.optionFlags))throw ae;return this.isLookahead||this.state.errors.push(ae),ae}raiseOverwrite(e,Z,ie={}){const ae=Z instanceof Position?Z:Z.loc.start,de=ae.index,ve=this.state.errors;for(let Z=ve.length-1;Z>=0;Z--){const be=ve[Z];if(be.loc.index===de)return ve[Z]=e(ae,ie);if(be.loc.index<de)break}return this.raise(e,Z,ie)}updateContext(e){}unexpected(e,Z){throw this.raise(_e.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:Z?tokenLabelName(Z):null})}expectPlugin(e,Z){if(this.hasPlugin(e))return!0;throw this.raise(_e.MissingPlugin,null!=Z?Z:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(_e.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(Z,ie,ae)=>{this.raise(e,buildPosition(Z,ie,ae))}}}class ClassScope{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const e=this.stack.pop(),Z=this.current();for(const[ie,ae]of Array.from(e.undefinedPrivateNames))Z?Z.undefinedPrivateNames.has(ie)||Z.undefinedPrivateNames.set(ie,ae):this.parser.raise(_e.InvalidPrivateFieldResolution,ae,{identifierName:ie})}declarePrivateName(e,Z,ie){const{privateNames:ae,loneAccessors:de,undefinedPrivateNames:ve}=this.current();let be=ae.has(e);if(3&Z){const ie=be&&de.get(e);if(ie){be=(3&ie)===(3&Z)||(4&ie)!==(4&Z),be||de.delete(e)}else be||de.set(e,Z)}be&&this.parser.raise(_e.PrivateNameRedeclaration,ie,{identifierName:e}),ae.add(e),ve.delete(e)}usePrivateName(e,Z){let ie;for(ie of this.stack)if(ie.privateNames.has(e))return;ie?ie.undefinedPrivateNames.set(e,Z):this.parser.raise(_e.InvalidPrivateFieldResolution,Z,{identifierName:e})}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,Z){const ie=Z.index;this.declarationErrors.set(ie,[e,Z])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0,this.stack=[new ExpressionScope],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,Z){const ie=Z.loc.start,{stack:ae}=this;let de=ae.length-1,ve=ae[de];for(;!ve.isCertainlyParameterDeclaration();){if(!ve.canBeArrowParameterDeclaration())return;ve.recordDeclarationError(e,ie),ve=ae[--de]}this.parser.raise(e,ie)}recordArrowParameterBindingError(e,Z){const{stack:ie}=this,ae=ie[ie.length-1],de=Z.loc.start;if(ae.isCertainlyParameterDeclaration())this.parser.raise(e,de);else{if(!ae.canBeArrowParameterDeclaration())return;ae.recordDeclarationError(e,de)}}recordAsyncArrowParametersError(e){const{stack:Z}=this;let ie=Z.length-1,ae=Z[ie];for(;ae.canBeArrowParameterDeclaration();)2===ae.type&&ae.recordDeclarationError(_e.AwaitBindingIdentifier,e),ae=Z[--ie]}validateAsPattern(){const{stack:e}=this,Z=e[e.length-1];Z.canBeArrowParameterDeclaration()&&Z.iterateErrors(([Z,ie])=>{this.parser.raise(Z,ie);let ae=e.length-2,de=e[ae];for(;de.canBeArrowParameterDeclaration();)de.clearDeclarationError(ie.index),de=e[--ae]})}}function newExpressionScope(){return new ExpressionScope}class UtilParser extends Tokenizer{addExtra(e,Z,ie,ae=!0){if(!e)return;let{extra:de}=e;null==de&&(de={},e.extra=de),ae?de[Z]=ie:Object.defineProperty(de,Z,{enumerable:ae,value:ie})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,Z){if(this.input.startsWith(Z,e)){const ie=this.input.charCodeAt(e+Z.length);return!(isIdentifierChar(ie)||55296==(64512&ie))}return!1}isLookaheadContextual(e){const Z=this.nextTokenStart();return this.isUnparsedContextual(Z,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,Z){if(!this.eatContextual(e)){if(null!=Z)throw this.raise(Z,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_e.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,Z){this.eat(e)||this.unexpected(Z,e)}tryParse(e,Z=this.state.clone()){const ie={node:null};try{const ae=e((e=null)=>{throw ie.node=e,ie});if(this.state.errors.length>Z.errors.length){const e=this.state;return this.state=Z,this.state.tokensLength=e.tokensLength,{node:ae,error:e.errors[Z.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:ae,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const ae=this.state;if(this.state=Z,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:ae};if(e===ie)return{node:ie.node,error:null,thrown:!1,aborted:!0,failState:ae};throw e}}checkExpressionErrors(e,Z){if(!e)return!1;const{shorthandAssignLoc:ie,doubleProtoLoc:ae,privateKeyLoc:de,optionalParametersLoc:ve,voidPatternLoc:be}=e;if(!Z)return!!(ie||ae||ve||de||be);null!=ie&&this.raise(_e.InvalidCoverInitializedName,ie),null!=ae&&this.raise(_e.DuplicateProto,ae),null!=de&&this.raise(_e.UnexpectedPrivateField,de),null!=ve&&this.unexpected(ve),null!=be&&this.raise(_e.InvalidCoverDiscardElement,be)}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const Z=this.state.labels;this.state.labels=[];const ie=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const ae=this.inModule;this.inModule=e;const de=this.scope,ve=this.getScopeHandler();this.scope=new ve(this,e);const be=this.prodParam;this.prodParam=new ProductionParameterHandler;const Ce=this.classScope;this.classScope=new ClassScopeHandler(this);const ke=this.expressionScope;return this.expressionScope=new ExpressionScopeHandler(this),()=>{this.state.labels=Z,this.exportedIdentifiers=ie,this.inModule=ae,this.scope=de,this.prodParam=be,this.classScope=Ce,this.expressionScope=ke}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const Z=!this.inModule&&"commonjs"===this.options.sourceType;(Z||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let ie=Z?514:1;4&this.optionFlags&&(ie|=512),this.scope.enter(ie)}checkDestructuringPrivate(e){const{privateKeyLoc:Z}=e;null!==Z&&this.expectPlugin("destructuringPrivate",Z)}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Node{constructor(e,Z,ie){this.type="",this.start=Z,this.end=0,this.loc=new SourceLocation(ie),128&(null==e?void 0:e.optionFlags)&&(this.range=[Z,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const or=Node.prototype;or.__clone=function(){const e=new Node(void 0,this.start,this.loc.start),Z=Object.keys(this);for(let ie=0,ae=Z.length;ie<ae;ie++){const ae=Z[ie];"leadingComments"!==ae&&"trailingComments"!==ae&&"innerComments"!==ae&&(e[ae]=this[ae])}return e};class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,Z){return this.finishNodeAt(e,Z,this.state.lastTokEndLoc)}finishNodeAt(e,Z,ie){return e.type=Z,e.end=ie.index,e.loc.end=ie,128&this.optionFlags&&(e.range[1]=ie.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,Z){e.start=Z.index,e.loc.start=Z,128&this.optionFlags&&(e.range[0]=Z.index)}resetEndLocation(e,Z=this.state.lastTokEndLoc){e.end=Z.index,e.loc.end=Z,128&this.optionFlags&&(e.range[1]=Z.index)}resetStartLocationFromNode(e,Z){this.resetStartLocation(e,Z.loc.start)}castNodeTo(e,Z){return e.type=Z,e}cloneIdentifier(e){const{type:Z,start:ie,end:ae,loc:de,range:ve,name:be}=e,Ce=Object.create(or);return Ce.type=Z,Ce.start=ie,Ce.end=ae,Ce.loc=de,Ce.range=ve,Ce.name=be,e.extra&&(Ce.extra=e.extra),Ce}cloneStringLiteral(e){const{type:Z,start:ie,end:ae,loc:de,range:ve,extra:be}=e,Ce=Object.create(or);return Ce.type=Z,Ce.start=ie,Ce.end=ae,Ce.loc=de,Ce.range=ve,Ce.extra=be,Ce.value=e.value,Ce}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,Z=!1){var ie,ae;let de;switch(("ParenthesizedExpression"===e.type||null!=(ie=e.extra)&&ie.parenthesized)&&(de=unwrapParenthesizedExpression(e),Z?"Identifier"===de.type?this.expressionScope.recordArrowParameterBindingError(_e.InvalidParenthesizedAssignment,e):"MemberExpression"===de.type||this.isOptionalMemberExpression(de)||this.raise(_e.InvalidParenthesizedAssignment,e):this.raise(_e.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let ie=0,ae=e.properties.length,de=ae-1;ie<ae;ie++){var ve;const ae=e.properties[ie],be=ie===de;this.toAssignableObjectExpressionProp(ae,be,Z),be&&"RestElement"===ae.type&&null!=(ve=e.extra)&&ve.trailingCommaLoc&&this.raise(_e.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:ie,value:ae}=e;this.isPrivateName(ie)&&this.classScope.usePrivateName(this.getPrivateNameSV(ie),ie.loc.start),this.toAssignable(ae,Z);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(ae=e.extra)?void 0:ae.trailingCommaLoc,Z);break;case"AssignmentExpression":"="!==e.operator&&this.raise(_e.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(_e.VoidPatternInitializer,e.left),this.toAssignable(e.left,Z);break;case"ParenthesizedExpression":this.toAssignable(de,Z)}}toAssignableObjectExpressionProp(e,Z,ie){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?_e.PatternHasAccessor:_e.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const ae=e.argument;this.checkToRestConversion(ae,!1),this.toAssignable(ae,ie),Z||this.raise(_e.RestTrailingComma,e)}else this.toAssignable(e,ie)}toAssignableList(e,Z,ie){const ae=e.length-1;for(let de=0;de<=ae;de++){const ve=e[de];ve&&(this.toAssignableListItem(e,de,ie),"RestElement"===ve.type&&(de<ae?this.raise(_e.RestTrailingComma,ve):Z&&this.raise(_e.RestTrailingComma,Z)))}}toAssignableListItem(e,Z,ie){const ae=e[Z];if("SpreadElement"===ae.type){this.castNodeTo(ae,"RestElement");const e=ae.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,ie)}else this.toAssignable(ae,ie)}isAssignable(e,Z){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const Z=e.properties.length-1;return e.properties.every((e,ie)=>"ObjectMethod"!==e.type&&(ie===Z||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!Z;default:return!1}}toReferencedList(e,Z){return e}toReferencedListDeep(e,Z){this.toReferencedList(e,Z);for(const Z of e)"ArrayExpression"===(null==Z?void 0:Z.type)&&this.toReferencedListDeep(Z.elements)}parseSpread(e){const Z=this.startNode();return this.next(),Z.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(Z,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const Z=this.parseBindingAtom();return"VoidPattern"===Z.type&&this.raise(_e.UnexpectedVoidPattern,Z),e.argument=Z,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,Z,ie){const ae=1&ie,de=[];let ve=!0;for(;!this.eat(e);)if(ve?ve=!1:this.expect(12),ae&&this.match(12))de.push(null);else{if(this.eat(e))break;if(this.match(21)){let ae=this.parseRestBinding();if((this.hasPlugin("flow")||2&ie)&&(ae=this.parseFunctionParamType(ae)),de.push(ae),!this.checkCommaAfterRest(Z)){this.expect(e);break}}else{const e=[];if(2&ie)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(_e.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());de.push(this.parseBindingElement(ie,e))}}return de}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(_e.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:Z}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const ie=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",Z),this.classScope.usePrivateName(this.state.value,Z),ie.key=this.parsePrivateName()):this.parsePropertyName(ie),ie.method=!1,this.parseObjPropValue(ie,Z,!1,!1,!0,!1)}parseBindingElement(e,Z){const ie=this.parseMaybeDefault();(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(ie),Z.length&&(ie.decorators=Z,this.resetStartLocationFromNode(ie,Z[0]));return this.parseMaybeDefault(ie.loc.start,ie)}parseFunctionParamType(e){return e}parseMaybeDefault(e,Z){if(null!=e||(e=this.state.startLoc),Z=null!=Z?Z:this.parseBindingAtom(),!this.eat(29))return Z;const ie=this.startNodeAt(e);return"VoidPattern"===Z.type&&this.raise(_e.VoidPatternInitializer,Z),ie.left=Z,ie.right=this.parseMaybeAssignAllowIn(),this.finishNode(ie,"AssignmentPattern")}isValidLVal(e,Z,ie){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,Z,ie=64,ae=!1,de=!1,ve=!1){var be;const Ce=e.type;if(this.isObjectMethod(e))return;const ke=this.isOptionalMemberExpression(e);if(ke||"MemberExpression"===Ce)return ke&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==Z.type&&this.raise(_e.InvalidLhsOptionalChaining,e,{ancestor:Z})),void(64!==ie&&this.raise(_e.InvalidPropertyBindingPattern,e));if("Identifier"===Ce){this.checkIdentifier(e,ie,de);const{name:Z}=e;return void(ae&&(ae.has(Z)?this.raise(_e.ParamDupe,e):ae.add(Z)))}"VoidPattern"===Ce&&"CatchClause"===Z.type&&this.raise(_e.VoidPatternCatchClauseParam,e);const Ie=this.isValidLVal(Ce,!(ve||null!=(be=e.extra)&&be.parenthesized)&&"AssignmentExpression"===Z.type,ie);if(!0===Ie)return;if(!1===Ie){const ae=64===ie?_e.InvalidLhs:_e.InvalidLhsBinding;return void this.raise(ae,e,{ancestor:Z})}let Fe,Oe;"string"==typeof Ie?(Fe=Ie,Oe="ParenthesizedExpression"===Ce):[Fe,Oe]=Ie;const Be="ArrayPattern"===Ce||"ObjectPattern"===Ce?{type:Ce}:Z,Me=e[Fe];if(Array.isArray(Me))for(const e of Me)e&&this.checkLVal(e,Be,ie,ae,de,Oe);else Me&&this.checkLVal(Me,Be,ie,ae,de,Oe)}checkIdentifier(e,Z,ie=!1){this.state.strict&&(ie?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))&&(64===Z?this.raise(_e.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_e.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&Z&&"let"===e.name&&this.raise(_e.LetInLexicalBinding,e),64&Z||this.declareNameFromIdentifier(e,Z)}declareNameFromIdentifier(e,Z){this.scope.declareName(e.name,Z,e.loc.start)}checkToRestConversion(e,Z){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,Z);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(Z)break;default:this.raise(_e.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?_e.RestTrailingComma:_e.ElementAfterRest,this.state.startLoc),!0)}}function assert(e){if(!e)throw new Error("Assert fail")}const ur=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function tsIsAccessModifier(e){return"private"===e||"public"===e||"protected"===e}function tsIsVarianceAnnotations(e){return"in"===e||"out"===e}function isPossiblyLiteralEnum(e){if("MemberExpression"!==e.type)return!1;const{computed:Z,property:ie}=e;return(!Z||"StringLiteral"===ie.type||!("TemplateLiteral"!==ie.type||ie.expressions.length>0))&&isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,Z){var ie;const{type:ae}=e;if(null!=(ie=e.extra)&&ie.parenthesized)return!1;if(Z){if("Literal"===ae){const{value:Z}=e;if("string"==typeof Z||"boolean"==typeof Z)return!0}}else if("StringLiteral"===ae||"BooleanLiteral"===ae)return!0;return!(!isNumber(e,Z)&&!function isNegativeNumber(e,Z){if("UnaryExpression"===e.type){const{operator:ie,argument:ae}=e;if("-"===ie&&isNumber(ae,Z))return!0}return!1}(e,Z))||("TemplateLiteral"===ae&&0===e.expressions.length||!!isPossiblyLiteralEnum(e))}function isNumber(e,Z){return Z?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function isUncomputedMemberExpressionChain(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&isUncomputedMemberExpressionChain(e.object)}const lr=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});const pr=["minimal","fsharp","hack","smart"],fr=["^^","@@","^","%","#"];const br={estree:e=>class ESTreeParserMixin extends e{parse(){const e=toESTreeLocation(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(toESTreeLocation)),e}parseRegExpLiteral({pattern:e,flags:Z}){let ie=null;try{ie=new RegExp(e,Z)}catch(e){}const ae=this.estreeParseLiteral(ie);return ae.regex={pattern:e,flags:Z},ae}parseBigIntLiteral(e){let Z;try{Z=BigInt(e)}catch(e){Z=null}const ie=this.estreeParseLiteral(Z);return ie.bigint=String(ie.value||e),ie}parseDecimalLiteral(e){const Z=this.estreeParseLiteral(null);return Z.decimal=String(Z.value||e),Z}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,Z){const ie=this.startNodeAtNode(e);return ie.expression=e,this.finishNodeAt(ie,"ChainExpression",Z)}directiveToStmt(e){const Z=e.value;delete e.value,this.castNodeTo(Z,"Literal"),Z.raw=Z.extra.raw,Z.value=Z.extra.expressionValue;const ie=this.castNodeTo(e,"ExpressionStatement");return ie.expression=Z,ie.directive=Z.extra.rawValue,delete Z.extra,ie}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:Z,end:ie,loc:ae,range:de,raw:ve,value:be}=e,Ce=Object.create(e.constructor.prototype);return Ce.type="Literal",Ce.start=Z,Ce.end=ie,Ce.loc=ae,Ce.range=de,Ce.raw=ve,Ce.value=be,Ce}initFunction(e,Z){super.initFunction(e,Z),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var Z;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(Z=e.expression.extra)&&Z.parenthesized)}parseBlockBody(e,Z,ie,ae,de){super.parseBlockBody(e,Z,ie,ae,de);const ve=e.directives.map(e=>this.directiveToStmt(e));e.body=ve.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const Z=super.getPrivateNameSV(e);return delete e.id,e.name=Z,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,Z){const ie=super.parseLiteral(e,Z);return ie.raw=ie.extra.raw,delete ie.extra,ie}parseFunctionBody(e,Z,ie=!1){super.parseFunctionBody(e,Z,ie),e.expression="BlockStatement"!==e.body.type}parseMethod(e,Z,ie,ae,de,ve,be=!1){let Ce=this.startNode();Ce.kind=e.kind,Ce=super.parseMethod(Ce,Z,ie,ae,de,ve,be),delete Ce.kind;const{typeParameters:ke}=e;ke&&(delete e.typeParameters,Ce.typeParameters=ke,this.resetStartLocationFromNode(Ce,ke));const Ie=this.castNodeTo(Ce,"FunctionExpression");return e.value=Ie,"ClassPrivateMethod"===ve&&(e.computed=!1),"ObjectMethod"===ve?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const Z=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(Z,"PropertyDefinition"),Z):Z}parseClassPrivateProperty(...e){const Z=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(Z,"PropertyDefinition"),Z.computed=!1,Z):Z}parseClassAccessorProperty(e){const Z=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(Z.abstract&&this.hasPlugin("typescript")?(delete Z.abstract,this.castNodeTo(Z,"TSAbstractAccessorProperty")):this.castNodeTo(Z,"AccessorProperty"),Z):Z}parseObjectProperty(e,Z,ie,ae){const de=super.parseObjectProperty(e,Z,ie,ae);return de&&(de.kind="init",this.castNodeTo(de,"Property")),de}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,Z,ie){return"Property"===e?"value":super.isValidLVal(e,Z,ie)}isAssignable(e,Z){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,Z):super.isAssignable(e,Z)}toAssignable(e,Z=!1){if(null!=e&&this.isObjectProperty(e)){const{key:ie,value:ae}=e;this.isPrivateName(ie)&&this.classScope.usePrivateName(this.getPrivateNameSV(ie),ie.loc.start),this.toAssignable(ae,Z)}else super.toAssignable(e,Z)}toAssignableObjectExpressionProp(e,Z,ie){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(_e.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,Z,ie):this.raise(_e.PatternHasAccessor,e.key)}finishCallExpression(e,Z){const ie=super.finishCallExpression(e,Z);var ae,de;"Import"===ie.callee.type?(this.castNodeTo(ie,"ImportExpression"),ie.source=ie.arguments[0],ie.options=null!=(ae=ie.arguments[1])?ae:null,ie.attributes=null!=(de=ie.arguments[1])?de:null,delete ie.arguments,delete ie.callee):"OptionalCallExpression"===ie.type?this.castNodeTo(ie,"CallExpression"):ie.optional=!1;return ie}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,Z){const ie=this.state.lastTokStartLoc,ae=super.parseExport(e,Z);switch(ae.type){case"ExportAllDeclaration":ae.exported=null;break;case"ExportNamedDeclaration":1===ae.specifiers.length&&"ExportNamespaceSpecifier"===ae.specifiers[0].type&&(this.castNodeTo(ae,"ExportAllDeclaration"),ae.exported=ae.specifiers[0].exported,delete ae.specifiers);case"ExportDefaultDeclaration":{var de;const{declaration:e}=ae;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(de=e.decorators)?void 0:de.length)>0&&e.start===ae.start&&this.resetStartLocation(ae,ie)}}return ae}stopParseSubscript(e,Z){const ie=super.stopParseSubscript(e,Z);return Z.optionalChainMember?this.estreeParseChainExpression(ie,e.loc.end):ie}parseMember(e,Z,ie,ae,de){const ve=super.parseMember(e,Z,ie,ae,de);return"OptionalMemberExpression"===ve.type?this.castNodeTo(ve,"MemberExpression"):ve.optional=!1,ve}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,Z){const ie=super.castNodeTo(e,Z);return this.fillOptionalPropertiesForTSESLint(ie),ie}cloneIdentifier(e){const Z=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(Z),Z}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,Z,ie){return toESTreeLocation(super.finishNodeAt(e,Z,ie))}finishNode(e,Z){const ie=super.finishNode(e,Z);return this.fillOptionalPropertiesForTSESLint(ie),ie}resetStartLocation(e,Z){super.resetStartLocation(e,Z),toESTreeLocation(e)}resetEndLocation(e,Z=this.state.lastTokEndLoc){super.resetEndLocation(e,Z),toESTreeLocation(e)}},jsx:e=>class JSXParserMixin extends e{jsxReadToken(){let e="",Z=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(tr.UnterminatedJsxContent,this.state.startLoc);const ie=this.input.charCodeAt(this.state.pos);switch(ie){case 60:case 123:return this.state.pos===this.state.start?void(60===ie&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(ie)):(e+=this.input.slice(Z,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(Z,this.state.pos),e+=this.jsxReadEntity(),Z=this.state.pos;break;default:isNewLine(ie)?(e+=this.input.slice(Z,this.state.pos),e+=this.jsxReadNewLine(!0),Z=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const Z=this.input.charCodeAt(this.state.pos);let ie;return++this.state.pos,13===Z&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,ie=e?"\n":"\r\n"):ie=String.fromCharCode(Z),++this.state.curLine,this.state.lineStart=this.state.pos,ie}jsxReadString(e){let Z="",ie=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_e.UnterminatedString,this.state.startLoc);const ae=this.input.charCodeAt(this.state.pos);if(ae===e)break;38===ae?(Z+=this.input.slice(ie,this.state.pos),Z+=this.jsxReadEntity(),ie=this.state.pos):isNewLine(ae)?(Z+=this.input.slice(ie,this.state.pos),Z+=this.jsxReadNewLine(!1),ie=this.state.pos):++this.state.pos}Z+=this.input.slice(ie,this.state.pos++),this.finishToken(134,Z)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const Z=this.readInt(e,void 0,!1,"bail");if(null!==Z&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(Z)}else{let Z=0,ie=!1;for(;Z++<10&&this.state.pos<this.length&&!(ie=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(ie){const Z=this.input.slice(e,this.state.pos),ie=Jt[Z];if(++this.state.pos,ie)return ie}}return this.state.pos=e,"&"}jsxReadWord(){let e;const Z=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);this.finishToken(141,this.input.slice(Z,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:tokenIsKeyword(this.state.type)?e.name=tokenLabelName(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,Z=this.jsxParseIdentifier();if(!this.eat(14))return Z;const ie=this.startNodeAt(e);return ie.namespace=Z,ie.name=this.jsxParseIdentifier(),this.finishNode(ie,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let Z=this.jsxParseNamespacedName();if("JSXNamespacedName"===Z.type)return Z;for(;this.eat(16);){const ie=this.startNodeAt(e);ie.object=Z,ie.property=this.jsxParseIdentifier(),Z=this.finishNode(ie,"JSXMemberExpression")}return Z}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(Oe.brace),this.next(),e=this.jsxParseExpressionContainer(e,Oe.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(tr.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(tr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(Oe.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,Z){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const Z=this.parseExpression();e.expression=Z}return this.setContext(Z),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(Oe.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(Oe.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const Z=this.startNodeAt(e);return this.eat(144)?this.finishNode(Z,"JSXOpeningFragment"):(Z.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Z))}jsxParseOpeningElementAfterName(e){const Z=[];for(;!this.match(56)&&!this.match(144);)Z.push(this.jsxParseAttribute());return e.attributes=Z,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const Z=this.startNodeAt(e);return this.eat(144)?this.finishNode(Z,"JSXClosingFragment"):(Z.name=this.jsxParseElementName(),this.expect(144),this.finishNode(Z,"JSXClosingElement"))}jsxParseElementAt(e){const Z=this.startNodeAt(e),ie=[],ae=this.jsxParseOpeningElementAt(e);let de=null;if(!ae.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){de=this.jsxParseClosingElementAt(e);break e}ie.push(this.jsxParseElementAt(e));break;case 142:ie.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(Oe.brace),this.next(),this.match(21)?ie.push(this.jsxParseSpreadChild(e)):ie.push(this.jsxParseExpressionContainer(e,Oe.j_expr));break}default:this.unexpected()}isFragment(ae)&&!isFragment(de)&&null!==de?this.raise(tr.MissingClosingTagFragment,de):!isFragment(ae)&&isFragment(de)?this.raise(tr.MissingClosingTagElement,de,{openingTagName:getQualifiedJSXName(ae.name)}):isFragment(ae)||isFragment(de)||getQualifiedJSXName(de.name)!==getQualifiedJSXName(ae.name)&&this.raise(tr.MissingClosingTagElement,de,{openingTagName:getQualifiedJSXName(ae.name)})}if(isFragment(ae)?(Z.openingFragment=ae,Z.closingFragment=de):(Z.openingElement=ae,Z.closingElement=de),Z.children=ie,this.match(47))throw this.raise(tr.UnwrappedAdjacentJSXElements,this.state.startLoc);return isFragment(ae)?this.finishNode(Z,"JSXFragment"):this.finishNode(Z,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:Z}=this.state;Z[Z.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const Z=this.curContext();if(Z!==Oe.j_expr){if(Z===Oe.j_oTag||Z===Oe.j_cTag){if(isIdentifierStart(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&Z===Oe.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:Z,type:ie}=this.state;if(56===ie&&143===e)Z.splice(-2,2,Oe.j_cTag),this.state.canStartJSXElement=!1;else if(143===ie)Z.push(Oe.j_oTag);else if(144===ie){const ie=Z[Z.length-1];ie===Oe.j_oTag&&56===e||ie===Oe.j_cTag?(Z.pop(),this.state.canStartJSXElement=Z[Z.length-1]===Oe.j_expr):(this.setContext(Oe.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=function tokenComesBeforeExpression(e){return pt[e]}(ie)}},flow:e=>class FlowParserMixin extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,Z){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,Z)}addComment(e){if(void 0===this.flowPragma){const Z=Wt.exec(e.value);if(Z)if("flow"===Z[1])this.flowPragma="flow";else{if("noflow"!==Z[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){const Z=this.state.inType;this.state.inType=!0,this.expect(e||14);const ie=this.flowParseType();return this.state.inType=Z,ie}flowParsePredicate(){const e=this.startNode(),Z=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>Z.index+1&&this.raise(Vt.UnexpectedSpaceBetweenModuloChecks,Z),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let Z=null,ie=null;return this.match(54)?(this.state.inType=e,ie=this.flowParsePredicate()):(Z=this.flowParseType(),this.state.inType=e,this.match(54)&&(ie=this.flowParsePredicate())),[Z,ie]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const Z=e.id=this.parseIdentifier(),ie=this.startNode(),ae=this.startNode();this.match(47)?ie.typeParameters=this.flowParseTypeParameterDeclaration():ie.typeParameters=null,this.expect(10);const de=this.flowParseFunctionTypeParams();return ie.params=de.params,ie.rest=de.rest,ie.this=de._this,this.expect(11),[ie.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),ae.typeAnnotation=this.finishNode(ie,"FunctionTypeAnnotation"),Z.typeAnnotation=this.finishNode(ae,"TypeAnnotation"),this.resetEndLocation(Z),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,Z){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(Z&&this.raise(Vt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,Z):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const Z=e.body=this.startNode(),ie=Z.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(Vt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,Vt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),ie.push(e)}this.scope.exit(),this.expect(8),this.finishNode(Z,"BlockStatement");let ae=null,de=!1;return ie.forEach(e=>{!function isEsModuleType(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(de&&this.raise(Vt.DuplicateDeclareModuleExports,e),"ES"===ae&&this.raise(Vt.AmbiguousDeclareModuleKind,e),ae="CommonJS",de=!0):("CommonJS"===ae&&this.raise(Vt.AmbiguousDeclareModuleKind,e),ae="ES")}),e.kind=ae||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,Z){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!Z){const e=this.state.value;throw this.raise(Vt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Gt[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration"):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const Z=this.flowParseTypeAlias(e);return this.castNodeTo(Z,"DeclareTypeAlias"),Z}flowParseDeclareOpaqueType(e){this.next();const Z=this.flowParseOpaqueType(e,!0);return this.castNodeTo(Z,"DeclareOpaqueType"),Z}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,Z){if(e.id=this.flowParseRestrictedIdentifier(!Z,!0),this.scope.declareName(e.id.name,Z?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!Z&&this.eat(12));if(Z){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:Z,allowExact:!1,allowSpread:!1,allowProto:Z,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Vt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,Z,ie){Ht.has(e)&&this.raise(ie?Vt.AssignReservedType:Vt.UnexpectedReservedType,Z,{reservedType:e})}flowParseRestrictedIdentifier(e,Z){return this.checkReservedType(this.state.value,this.state.startLoc,Z),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,Z){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,Z||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const Z=this.state.startLoc,ie=this.startNode(),ae=this.flowParseVariance(),de=this.flowParseTypeAnnotatableIdentifier();return ie.name=de.name,ie.variance=ae,ie.bound=de.typeAnnotation,this.match(29)?(this.eat(29),ie.default=this.flowParseType()):e&&this.raise(Vt.MissingTypeParamDefault,Z),this.finishNode(ie,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,Z=this.startNode();Z.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let ie=!1;do{const e=this.flowParseTypeParameter(ie);Z.params.push(e),e.default&&(ie=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(Z,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===Oe.brace)return e();{const Z=this.state.context;this.state.context=[Z[0]];try{return e()}finally{this.state.context=Z}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),Z=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const Z=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=Z}),this.state.inType=Z,this.state.inType||this.curContext()!==Oe.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return;const e=this.startNode(),Z=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=Z,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,Z,ie){return e.static=Z,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=ie,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,Z){return e.static=Z,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,Z){const ie=this.startNode();return e.static=Z,e.value=this.flowParseObjectTypeMethodish(ie),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:Z,allowSpread:ie,allowProto:ae,allowInexact:de}){const ve=this.state.inType;this.state.inType=!0;const be=this.startNode();let Ce,ke;be.callProperties=[],be.properties=[],be.indexers=[],be.internalSlots=[];let Ie=!1;for(Z&&this.match(6)?(this.expect(6),Ce=9,ke=!0):(this.expect(5),Ce=8,ke=!1),be.exact=ke;!this.match(Ce);){let Z=!1,ve=null,Ce=null;const _e=this.startNode();if(ae&&this.isContextual(118)){const Z=this.lookahead();14!==Z.type&&17!==Z.type&&(this.next(),ve=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),Z=!0)}const Fe=this.flowParseVariance();if(this.eat(0))null!=ve&&this.unexpected(ve),this.eat(0)?(Fe&&this.unexpected(Fe.loc.start),be.internalSlots.push(this.flowParseObjectTypeInternalSlot(_e,Z))):be.indexers.push(this.flowParseObjectTypeIndexer(_e,Z,Fe));else if(this.match(10)||this.match(47))null!=ve&&this.unexpected(ve),Fe&&this.unexpected(Fe.loc.start),be.callProperties.push(this.flowParseObjectTypeCallProperty(_e,Z));else{let e="init";if(this.isContextual(99)||this.isContextual(104)){tokenIsLiteralPropertyName(this.lookahead().type)&&(e=this.state.value,this.next())}const ae=this.flowParseObjectTypeProperty(_e,Z,ve,Fe,e,ie,null!=de?de:!ke);null===ae?(Ie=!0,Ce=this.state.lastTokStartLoc):be.properties.push(ae)}this.flowObjectTypeSemicolon(),!Ce||this.match(8)||this.match(9)||this.raise(Vt.UnexpectedExplicitInexactInObject,Ce)}this.expect(Ce),ie&&(be.inexact=Ie);const _e=this.finishNode(be,"ObjectTypeAnnotation");return this.state.inType=ve,_e}flowParseObjectTypeProperty(e,Z,ie,ae,de,ve,be){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(ve?be||this.raise(Vt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Vt.InexactInsideNonObject,this.state.lastTokStartLoc),ae&&this.raise(Vt.InexactVariance,ae),null):(ve||this.raise(Vt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=ie&&this.unexpected(ie),ae&&this.raise(Vt.SpreadVariance,ae),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=Z,e.proto=null!=ie,e.kind=de;let be=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=ie&&this.unexpected(ie),ae&&this.unexpected(ae.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==de&&"set"!==de||this.flowCheckGetterSetterParams(e),!ve&&"constructor"===e.key.name&&e.value.this&&this.raise(Vt.ThisParamBannedInConstructor,e.value.this)):("init"!==de&&this.unexpected(),e.method=!1,this.eat(17)&&(be=!0),e.value=this.flowParseTypeInitialiser(),e.variance=ae),e.optional=be,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const Z="get"===e.kind?0:1,ie=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Vt.GetterMayNotHaveThisParam:Vt.SetterMayNotHaveThisParam,e.value.this),ie!==Z&&this.raise("get"===e.kind?_e.BadGetterArity:_e.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(_e.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,Z){null!=e||(e=this.state.startLoc);let ie=Z||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const Z=this.startNodeAt(e);Z.qualification=ie,Z.id=this.flowParseRestrictedIdentifier(!0),ie=this.finishNode(Z,"QualifiedTypeIdentifier")}return ie}flowParseGenericType(e,Z){const ie=this.startNodeAt(e);return ie.typeParameters=null,ie.id=this.flowParseQualifiedTypeIdentifier(e,Z),this.match(47)&&(ie.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(ie,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let Z=null,ie=!1,ae=null;const de=this.startNode(),ve=this.lookahead(),be=78===this.state.type;return 14===ve.type||17===ve.type?(be&&!e&&this.raise(Vt.ThisParamMustBeFirst,de),Z=this.parseIdentifier(be),this.eat(17)&&(ie=!0,be&&this.raise(Vt.ThisParamMayNotBeOptional,de)),ae=this.flowParseTypeInitialiser()):ae=this.flowParseType(),de.name=Z,de.optional=ie,de.typeAnnotation=ae,this.finishNode(de,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const Z=this.startNodeAt(e.loc.start);return Z.name=null,Z.optional=!1,Z.typeAnnotation=e,this.finishNode(Z,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let Z=null,ie=null;for(this.match(78)&&(ie=this.flowParseFunctionTypeParam(!0),ie.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(Z=this.flowParseFunctionTypeParam(!1)),{params:e,rest:Z,_this:ie}}flowIdentToTypeAnnotation(e,Z,ie){switch(ie.name){case"any":return this.finishNode(Z,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(Z,"BooleanTypeAnnotation");case"mixed":return this.finishNode(Z,"MixedTypeAnnotation");case"empty":return this.finishNode(Z,"EmptyTypeAnnotation");case"number":return this.finishNode(Z,"NumberTypeAnnotation");case"string":return this.finishNode(Z,"StringTypeAnnotation");case"symbol":return this.finishNode(Z,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(ie.name),this.flowParseGenericType(e,ie)}}flowParsePrimaryType(){const e=this.state.startLoc,Z=this.startNode();let ie,ae,de=!1;const ve=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,ae=this.flowParseTupleType(),this.state.noAnonFunctionType=ve,ae;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),ie=this.flowParseFunctionTypeParams(),e.params=ie.params,e.rest=ie.rest,e.this=ie._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;de=17!==e&&14!==e}else de=!0;if(de){if(this.state.noAnonFunctionType=!1,ae=this.flowParseType(),this.state.noAnonFunctionType=ve,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),ae;this.eat(12)}return ie=ae?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(ae)]):this.flowParseFunctionTypeParams(),e.params=ie.params,e.rest=ie.rest,e.this=ie._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return Z.value=this.match(85),this.next(),this.finishNode(Z,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",Z);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",Z);throw this.raise(Vt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(Z,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(Z,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(Z,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(Z,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);return this.next(),super.createIdentifier(Z,e)}if(tokenIsIdentifier(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,Z,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let Z=this.flowParsePrimaryType(),ie=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const ae=this.startNodeAt(e),de=this.eat(18);ie=ie||de,this.expect(0),!de&&this.match(3)?(ae.elementType=Z,this.next(),Z=this.finishNode(ae,"ArrayTypeAnnotation")):(ae.objectType=Z,ae.indexType=this.flowParseType(),this.expect(3),ie?(ae.optional=de,Z=this.finishNode(ae,"OptionalIndexedAccessType")):Z=this.finishNode(ae,"IndexedAccessType"))}return Z}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const Z=this.startNodeAt(e.loc.start);return Z.params=[this.reinterpretTypeAsFunctionTypeParam(e)],Z.rest=null,Z.this=null,Z.returnType=this.flowParseType(),Z.typeParameters=null,this.finishNode(Z,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const Z=this.flowParseAnonFunctionWithoutParens();for(e.types=[Z];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?Z:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const Z=this.flowParseIntersectionType();for(e.types=[Z];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?Z:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const Z=this.flowParseUnionType();return this.state.inType=e,Z}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,Z=this.parseIdentifier();return this.flowParseGenericType(e,Z)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const Z=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(Z.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(Z)),Z}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,Z,ie=!1){Z?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,ie)):super.parseFunctionBody(e,!1,ie)}parseFunctionBodyAndFinish(e,Z,ie=!1){if(this.match(14)){const Z=this.startNode();[Z.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=Z.typeAnnotation?this.finishNode(Z,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,Z,ie)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(tokenIsKeywordOrIdentifier(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const Z=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(Z)||(this.flowPragma=null),Z}parseExpressionStatement(e,Z,ie){if("Identifier"===Z.type)if("declare"===Z.name){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(tokenIsIdentifier(this.state.type)){if("interface"===Z.name)return this.flowParseInterface(e);if("type"===Z.name)return this.flowParseTypeAlias(e);if("opaque"===Z.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,Z,ie)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||tokenIsFlowInterfaceOrTypeOrOpaque(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||tokenIsFlowInterfaceOrTypeOrOpaque(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,Z,ie){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const Z=this.lookaheadCharCode();if(44===Z||61===Z||58===Z||41===Z)return this.setOptionalParametersError(ie),e}this.expect(17);const ae=this.state.clone(),de=this.state.noArrowAt,ve=this.startNodeAt(Z);let{consequent:be,failed:Ce}=this.tryParseConditionalConsequent(),[ke,Ie]=this.getArrowLikeExpressions(be);if(Ce||Ie.length>0){const e=[...de];if(Ie.length>0){this.state=ae,this.state.noArrowAt=e;for(let Z=0;Z<Ie.length;Z++)e.push(Ie[Z].start);({consequent:be,failed:Ce}=this.tryParseConditionalConsequent()),[ke,Ie]=this.getArrowLikeExpressions(be)}Ce&&ke.length>1&&this.raise(Vt.AmbiguousConditionalArrow,ae.startLoc),Ce&&1===ke.length&&(this.state=ae,e.push(ke[0].start),this.state.noArrowAt=e,({consequent:be,failed:Ce}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(be,!0),this.state.noArrowAt=de,this.expect(14),ve.test=e,ve.consequent=be,ve.alternate=this.forwardNoArrowParamsConversionAt(ve,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(ve,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),Z=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:Z}}getArrowLikeExpressions(e,Z){const ie=[e],ae=[];for(;0!==ie.length;){const e=ie.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):ae.push(e),ie.push(e.body)):"ConditionalExpression"===e.type&&(ie.push(e.consequent),ie.push(e.alternate))}return Z?(ae.forEach(e=>this.finishArrowValidation(e)),[ae,[]]):function partition(e,Z){const ie=[],ae=[];for(let de=0;de<e.length;de++)(Z(e[de],de,e)?ie:ae).push(e[de]);return[ie,ae]}(ae,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var Z;this.toAssignableList(e.params,null==(Z=e.extra)?void 0:Z.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,Z){let ie;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),ie=Z(),this.state.noArrowParamsConversionAt.pop()):ie=Z(),ie}parseParenItem(e,Z){const ie=super.parseParenItem(e,Z);if(this.eat(17)&&(ie.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(Z);return e.expression=ie,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return ie}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const Z=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(Z)}if(this.isContextual(131)){e.exportKind="type";const Z=this.startNode();return this.next(),this.flowParseOpaqueType(Z,!1)}if(this.isContextual(129)){e.exportKind="type";const Z=this.startNode();return this.next(),this.flowParseInterface(Z)}if(this.isContextual(126)){e.exportKind="value";const Z=this.startNode();return this.next(),this.flowParseEnumDeclaration(Z)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:Z}=this.state,ie=super.maybeParseExportNamespaceSpecifier(e);return ie&&"type"===e.exportKind&&this.unexpected(Z),ie}parseClassId(e,Z,ie){super.parseClassId(e,Z,ie),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,Z,ie){const{startLoc:ae}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,Z))return;Z.declare=!0}super.parseClassMember(e,Z,ie),Z.declare&&("ClassProperty"!==Z.type&&"ClassPrivateProperty"!==Z.type&&"PropertyDefinition"!==Z.type?this.raise(Vt.DeclareClassElement,ae):Z.value&&this.raise(Vt.DeclareClassFieldInitializer,Z.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),Z="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(_e.InvalidIdentifier,this.state.curPosition(),{identifierName:Z}),this.finishToken(132,Z)}getTokenFromCode(e){const Z=this.input.charCodeAt(this.state.pos+1);123===e&&124===Z?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===Z?this.finishOp(18,2):this.finishOp(17,1):!function isIteratorStart(e,Z,ie){return 64===e&&64===Z&&isIdentifierStart(ie)}(e,Z,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,Z){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,Z):super.isAssignable(e,Z)}toAssignable(e,Z=!1){Z||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,Z)}toAssignableList(e,Z,ie){for(let Z=0;Z<e.length;Z++){const ie=e[Z];"TypeCastExpression"===(null==ie?void 0:ie.type)&&(e[Z]=this.typeCastToParameter(ie))}super.toAssignableList(e,Z,ie)}toReferencedList(e,Z){for(let ae=0;ae<e.length;ae++){var ie;const de=e[ae];!de||"TypeCastExpression"!==de.type||null!=(ie=de.extra)&&ie.parenthesized||!(e.length>1)&&Z||this.raise(Vt.TypeCastInPattern,de.typeAnnotation)}return e}parseArrayLike(e,Z,ie,ae){const de=super.parseArrayLike(e,Z,ie,ae);return Z&&!this.state.maybeInArrowParameters&&this.toReferencedList(de.elements),de}isValidLVal(e,Z,ie){return"TypeCastExpression"===e||super.isValidLVal(e,Z,ie)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,Z,ie,ae,de,ve){if(Z.variance&&this.unexpected(Z.variance.loc.start),delete Z.variance,this.match(47)&&(Z.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,Z,ie,ae,de,ve),Z.params&&de){const e=Z.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Vt.ThisParamBannedInConstructor,Z)}else if("MethodDefinition"===Z.type&&de&&Z.value.params){const e=Z.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Vt.ThisParamBannedInConstructor,Z)}}pushClassPrivateMethod(e,Z,ie,ae){Z.variance&&this.unexpected(Z.variance.loc.start),delete Z.variance,this.match(47)&&(Z.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,Z,ie,ae)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const Z=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,Z.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const Z=this.getObjectOrClassMethodParams(e);if(Z.length>0){const ie=Z[0];this.isThisParam(ie)&&"get"===e.kind?this.raise(Vt.GetterMayNotHaveThisParam,ie):this.isThisParam(ie)&&this.raise(Vt.SetterMayNotHaveThisParam,ie)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,Z,ie,ae,de,ve,be){let Ce;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!ve&&(Ce=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const ke=super.parseObjPropValue(e,Z,ie,ae,de,ve,be);return Ce&&((ke.value||ke).typeParameters=Ce),ke}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Vt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Vt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Vt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Vt.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,Z){const ie=super.parseMaybeDefault(e,Z);return"AssignmentPattern"===ie.type&&ie.typeAnnotation&&ie.right.start<ie.typeAnnotation.start&&this.raise(Vt.TypeBeforeInitializer,ie.typeAnnotation),ie}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Vt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,Z,ie){Z.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(Z,ie))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const Z=this.lookaheadCharCode();return 123===Z||42===Z}return!e&&this.isContextual(87)}applyImportPhase(e,Z,ie,ae){if(super.applyImportPhase(e,Z,ie,ae),Z){if(!ie&&this.match(65))return;e.exportKind="type"===ie?ie:"value"}else"type"===ie&&this.match(55)&&this.unexpected(),e.importKind="type"===ie||"typeof"===ie?ie:"value"}parseImportSpecifier(e,Z,ie,ae,de){const ve=e.imported;let be=null;"Identifier"===ve.type&&("type"===ve.name?be="type":"typeof"===ve.name&&(be="typeof"));let Ce=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const Z=this.parseIdentifier(!0);null===be||tokenIsKeywordOrIdentifier(this.state.type)?(e.imported=ve,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=Z,e.importKind=be,e.local=this.cloneIdentifier(Z))}else{if(null!==be&&tokenIsKeywordOrIdentifier(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=be;else{if(Z)throw this.raise(_e.ImportBindingIsString,e,{importName:ve.value});e.imported=ve,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(Ce=!0,e.local=this.cloneIdentifier(e.imported))}const ke=hasTypeImportKind(e);return ie&&ke&&this.raise(Vt.ImportTypeShorthandOnlyInPureImport,e),(ie||ke)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!Ce||ie||ke||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,Z){const ie=e.kind;"get"!==ie&&"set"!==ie&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,Z)}parseVarId(e,Z){super.parseVarId(e,Z),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,Z){if(this.match(14)){const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Z}return super.parseAsyncArrowFromCallExpression(e,Z)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,Z){var ie;let ae,de=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(de=this.state.clone(),ae=this.tryParse(()=>super.parseMaybeAssign(e,Z),de),!ae.error)return ae.node;const{context:ie}=this.state,ve=ie[ie.length-1];ve!==Oe.j_oTag&&ve!==Oe.j_expr||ie.pop()}if(null!=(ie=ae)&&ie.error||this.match(47)){var ve,be;let ie;de=de||this.state.clone();const Ce=this.tryParse(ae=>{var de;ie=this.flowParseTypeParameterDeclaration();const ve=this.forwardNoArrowParamsConversionAt(ie,()=>{const ae=super.parseMaybeAssign(e,Z);return this.resetStartLocationFromNode(ae,ie),ae});null!=(de=ve.extra)&&de.parenthesized&&ae();const be=this.maybeUnwrapTypeCastExpression(ve);return"ArrowFunctionExpression"!==be.type&&ae(),be.typeParameters=ie,this.resetStartLocationFromNode(be,ie),ve},de);let ke=null;if(Ce.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(Ce.node).type){if(!Ce.error&&!Ce.aborted)return Ce.node.async&&this.raise(Vt.UnexpectedTypeParameterBeforeAsyncArrowFunction,ie),Ce.node;ke=Ce.node}if(null!=(ve=ae)&&ve.node)return this.state=ae.failState,ae.node;if(ke)return this.state=Ce.failState,ke;if(null!=(be=ae)&&be.thrown)throw ae.error;if(Ce.thrown)throw Ce.error;throw this.raise(Vt.UnexpectedTokenAfterTypeParameter,ie)}return super.parseMaybeAssign(e,Z)}parseArrow(e){if(this.match(14)){const Z=this.tryParse(()=>{const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const ie=this.startNode();return[ie.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Z,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),ie});if(Z.thrown)return null;Z.error&&(this.state=Z.failState),e.returnType=Z.node.typeAnnotation?this.finishNode(Z.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,Z){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=Z:super.setArrowFunctionParameters(e,Z)}checkParams(e,Z,ie,ae=!0){if(!ie||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let Z=0;Z<e.params.length;Z++)this.isThisParam(e.params[Z])&&Z>0&&this.raise(Vt.ThisParamMustBeFirst,e.params[Z]);super.checkParams(e,Z,ie,ae)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,Z,ie){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(Z.index)){this.next();const ie=this.startNodeAt(Z);ie.callee=e,ie.arguments=super.parseCallExpressionArguments(),e=this.finishNode(ie,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const ae=this.state.clone(),de=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(Z)||e(),ae);if(!de.error&&!de.aborted)return de.node;const ve=this.tryParse(()=>super.parseSubscripts(e,Z,ie),ae);if(ve.node&&!ve.error)return ve.node;if(de.node)return this.state=de.failState,de.node;if(ve.node)return this.state=ve.failState,ve.node;throw de.error||ve.error}return super.parseSubscripts(e,Z,ie)}parseSubscript(e,Z,ie,ae){if(this.match(18)&&this.isLookaheadToken_lt()){if(ae.optionalChainMember=!0,ie)return ae.stop=!0,e;this.next();const de=this.startNodeAt(Z);return de.callee=e,de.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),de.arguments=this.parseCallExpressionArguments(),de.optional=!0,this.finishCallExpression(de,!0)}if(!ie&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const ie=this.startNodeAt(Z);ie.callee=e;const de=this.tryParse(()=>(ie.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),ie.arguments=super.parseCallExpressionArguments(),ae.optionalChainMember&&(ie.optional=!1),this.finishCallExpression(ie,ae.optionalChainMember)));if(de.node)return de.error&&(this.state=de.failState),de.node}return super.parseSubscript(e,Z,ie,ae)}parseNewCallee(e){super.parseNewCallee(e);let Z=null;this.shouldParseTypes()&&this.match(47)&&(Z=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=Z}parseAsyncArrowWithTypeParameters(e){const Z=this.startNodeAt(e);if(this.parseFunctionParams(Z,!1),this.parseArrow(Z))return super.parseArrowExpression(Z,void 0,!0)}readToken_mult_modulo(e){const Z=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===Z&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const Z=this.input.charCodeAt(this.state.pos+1);124!==e||125!==Z?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,Z){const ie=super.parseTopLevel(e,Z);return this.state.hasFlowComment&&this.raise(Vt.UnterminatedFlowComment,this.state.curPosition()),ie}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Vt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let Z=2;for(;[32,9].includes(this.input.charCodeAt(e+Z));)Z++;const ie=this.input.charCodeAt(Z+e),ae=this.input.charCodeAt(Z+e+1);return 58===ie&&58===ae?Z+2:"flow-include"===this.input.slice(Z+e,Z+e+12)?Z+12:58===ie&&58!==ae&&Z}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(_e.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:Z,memberName:ie}){this.raise(Vt.EnumBooleanMemberNotInitialized,e,{memberName:ie,enumName:Z})}flowEnumErrorInvalidMemberInitializer(e,Z){return this.raise(Z.explicitType?"symbol"===Z.explicitType?Vt.EnumInvalidMemberInitializerSymbolType:Vt.EnumInvalidMemberInitializerPrimaryType:Vt.EnumInvalidMemberInitializerUnknownType,e,Z)}flowEnumErrorNumberMemberNotInitialized(e,Z){this.raise(Vt.EnumNumberMemberNotInitialized,e,Z)}flowEnumErrorStringMemberInconsistentlyInitialized(e,Z){this.raise(Vt.EnumStringMemberInconsistentlyInitialized,e,Z)}flowEnumMemberInit(){const e=this.state.startLoc,endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const Z=this.parseNumericLiteral(this.state.value);return endOfInit()?{type:"number",loc:Z.loc.start,value:Z}:{type:"invalid",loc:e}}case 134:{const Z=this.parseStringLiteral(this.state.value);return endOfInit()?{type:"string",loc:Z.loc.start,value:Z}:{type:"invalid",loc:e}}case 85:case 86:{const Z=this.parseBooleanLiteral(this.match(85));return endOfInit()?{type:"boolean",loc:Z.loc.start,value:Z}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,Z,ie){const{explicitType:ae}=Z;null!==ae&&ae!==ie&&this.flowEnumErrorInvalidMemberInitializer(e,Z)}flowEnumMembers({enumName:e,explicitType:Z}){const ie=new Set,ae={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let de=!1;for(;!this.match(8);){if(this.eat(21)){de=!0;break}const ve=this.startNode(),{id:be,init:Ce}=this.flowEnumMemberRaw(),ke=be.name;if(""===ke)continue;/^[a-z]/.test(ke)&&this.raise(Vt.EnumInvalidMemberName,be,{memberName:ke,suggestion:ke[0].toUpperCase()+ke.slice(1),enumName:e}),ie.has(ke)&&this.raise(Vt.EnumDuplicateMemberName,be,{memberName:ke,enumName:e}),ie.add(ke);const Ie={enumName:e,explicitType:Z,memberName:ke};switch(ve.id=be,Ce.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(Ce.loc,Ie,"boolean"),ve.init=Ce.value,ae.booleanMembers.push(this.finishNode(ve,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(Ce.loc,Ie,"number"),ve.init=Ce.value,ae.numberMembers.push(this.finishNode(ve,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(Ce.loc,Ie,"string"),ve.init=Ce.value,ae.stringMembers.push(this.finishNode(ve,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Ce.loc,Ie);case"none":switch(Z){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Ce.loc,Ie);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Ce.loc,Ie);break;default:ae.defaultedMembers.push(this.finishNode(ve,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:ae,hasUnknownMembers:de}}flowEnumStringMembers(e,Z,{enumName:ie}){if(0===e.length)return Z;if(0===Z.length)return e;if(Z.length>e.length){for(const Z of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(Z,{enumName:ie});return Z}for(const e of Z)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:ie});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type))throw this.raise(Vt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:Z}=this.state;return this.next(),"boolean"!==Z&&"number"!==Z&&"string"!==Z&&"symbol"!==Z&&this.raise(Vt.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:Z}),Z}flowEnumBody(e,Z){const ie=Z.name,ae=Z.loc.start,de=this.flowEnumParseExplicitType({enumName:ie});this.expect(5);const{members:ve,hasUnknownMembers:be}=this.flowEnumMembers({enumName:ie,explicitType:de});switch(e.hasUnknownMembers=be,de){case"boolean":return e.explicitType=!0,e.members=ve.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=ve.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(ve.stringMembers,ve.defaultedMembers,{enumName:ie}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=ve.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const Z=ve.booleanMembers.length,de=ve.numberMembers.length,be=ve.stringMembers.length,Ce=ve.defaultedMembers.length;if(Z||de||be||Ce){if(Z||de){if(!de&&!be&&Z>=Ce){for(const e of ve.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:ie,memberName:e.id.name});return e.members=ve.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!Z&&!be&&de>=Ce){for(const e of ve.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:ie,memberName:e.id.name});return e.members=ve.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Vt.EnumInconsistentMemberValues,ae,{enumName:ie}),empty()}return e.members=this.flowEnumStringMembers(ve.stringMembers,ve.defaultedMembers,{enumName:ie}),this.expect(8),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const Z=this.parseIdentifier();return e.id=Z,e.body=this.flowEnumBody(this.startNode(),Z),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const Z=this.input.charCodeAt(e+1);return 60!==Z&&61!==Z}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class TypeScriptParserMixin extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ur.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ur.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ur.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,Z,ie){if(!tokenIsIdentifier(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const ae=this.state.value;if(e.includes(ae)){if(ie&&this.match(106))return;if(Z&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return ae}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:Z,stopOnStartOfClassStaticBlock:ie,errorTemplate:ae=ur.InvalidModifierOnTypeMember},de){const enforceOrder=(e,Z,ie,ae)=>{Z===ie&&de[ae]&&this.raise(ur.InvalidModifiersOrder,e,{orderedModifiers:[ie,ae]})},incompatible=(e,Z,ie,ae)=>{(de[ie]&&Z===ae||de[ae]&&Z===ie)&&this.raise(ur.IncompatibleModifiers,e,{modifiers:[ie,ae]})};for(;;){const{startLoc:ve}=this.state,be=this.tsParseModifier(e.concat(null!=Z?Z:[]),ie,de.static);if(!be)break;tsIsAccessModifier(be)?de.accessibility?this.raise(ur.DuplicateAccessibilityModifier,ve,{modifier:be}):(enforceOrder(ve,be,be,"override"),enforceOrder(ve,be,be,"static"),enforceOrder(ve,be,be,"readonly"),de.accessibility=be):tsIsVarianceAnnotations(be)?(de[be]&&this.raise(ur.DuplicateModifier,ve,{modifier:be}),de[be]=!0,enforceOrder(ve,be,"in","out")):(hasOwnProperty.call(de,be)?this.raise(ur.DuplicateModifier,ve,{modifier:be}):(enforceOrder(ve,be,"static","readonly"),enforceOrder(ve,be,"static","override"),enforceOrder(ve,be,"override","readonly"),enforceOrder(ve,be,"abstract","override"),incompatible(ve,be,"declare","override"),incompatible(ve,be,"static","abstract")),de[be]=!0),null!=Z&&Z.includes(be)&&this.raise(ae,ve,{modifier:be})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,Z){const ie=[];for(;!this.tsIsListTerminator(e);)ie.push(Z());return ie}tsParseDelimitedList(e,Z,ie){return function nonNull(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,Z,!0,ie))}tsParseDelimitedListWorker(e,Z,ie,ae){const de=[];let ve=-1;for(;!this.tsIsListTerminator(e);){ve=-1;const ae=Z();if(null==ae)return;if(de.push(ae),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(ie&&this.expect(12))}ve=this.state.lastTokStartLoc.index}return ae&&(ae.value=ve),de}tsParseBracketedList(e,Z,ie,ae,de){ae||(ie?this.expect(0):this.expect(47));const ve=this.tsParseDelimitedList(e,Z,de);return ie?this.expect(3):this.expect(48),ve}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(ur.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const Z=this.startNode();return this.isContextual(76)?(Z.method=!1,Z.key=this.parseIdentifier(!0),Z.computed=!1,Z.shorthand=!1):this.unexpected(null,76),this.expect(14),Z.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(Z)],this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),Z=[];for(this.expect(5);!this.match(8);){const e=this.state.type;tokenIsIdentifier(e)||134===e?Z.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=Z,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let Z;if(1&e&&this.match(78))if(2&e)Z=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),Z=this.finishNode(e,"ThisExpression")}else Z=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const ie=this.startNodeAtNode(Z);ie.left=Z,ie.right=this.parseIdentifier(!!(1&e)),Z=this.finishNode(ie,"TSQualifiedName")}return Z}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const Z=this.startNodeAtNode(e);return Z.parameterName=e,Z.typeAnnotation=this.tsParseTypeAnnotation(!1),Z.asserts=!1,this.finishNode(Z,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const Z=this.startNode();return e(Z),Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsEatThenParseType(81),Z.default=this.tsEatThenParseType(29),this.finishNode(Z,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const Z=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const ie={value:-1};return Z.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,ie),0===Z.params.length&&this.raise(ur.EmptyTypeParameters,Z),-1!==ie.value&&this.addExtra(Z,"trailingComma",ie.value),this.finishNode(Z,"TSTypeParameterDeclaration")}tsFillSignature(e,Z){const ie=19===e,ae="typeAnnotation";Z.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),Z.parameters=this.tsParseBindingListForSignature(),(ie||this.match(e))&&(Z[ae]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const Z of e){const{type:e}=Z;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(ur.UnsupportedSignatureParameterKind,Z,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,Z){return this.tsFillSignature(14,Z),this.tsParseTypeMemberSemicolon(),this.finishNode(Z,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!tokenIsIdentifier(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const Z=this.parseIdentifier();Z.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(Z),this.expect(3),e.parameters=[Z];const ie=this.tsTryParseTypeAnnotation();return ie&&(e.typeAnnotation=ie),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,Z){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){Z&&this.raise(ur.ReadonlyForMethodSignature,e);const ie=e;ie.kind&&this.match(47)&&this.raise(ur.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,ie),this.tsParseTypeMemberSemicolon();const ae="parameters",de="typeAnnotation";if("get"===ie.kind)ie[ae].length>0&&(this.raise(_e.BadGetterArity,this.state.curPosition()),this.isThisParam(ie[ae][0])&&this.raise(ur.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===ie.kind){if(1!==ie[ae].length)this.raise(_e.BadSetterArity,this.state.curPosition());else{const e=ie[ae][0];this.isThisParam(e)&&this.raise(ur.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(ur.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(ur.SetAccessorCannotHaveRestParameter,this.state.curPosition())}ie[de]&&this.raise(ur.SetAccessorCannotHaveReturnType,ie[de])}else ie.kind="method";return this.finishNode(ie,"TSMethodSignature")}{const ie=e;Z&&(ie.readonly=!0);const ae=this.tsTryParseTypeAnnotation();return ae&&(ie.typeAnnotation=ae),this.tsParseTypeMemberSemicolon(),this.finishNode(ie,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const Z=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(Z,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const Z=this.tsTryParseIndexSignature(e);return Z||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{const Z=this.startNode();Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(Z,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let Z=!1;return e.elementTypes.forEach(e=>{const{type:ie}=e;!Z||"TSRestType"===ie||"TSOptionalType"===ie||"TSNamedTupleMember"===ie&&e.optional||this.raise(ur.OptionalTypeBeforeRequired,e),Z||(Z="TSNamedTupleMember"===ie&&e.optional||"TSOptionalType"===ie)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,Z=this.eat(21),{startLoc:ie}=this.state;let ae,de,ve,be;const Ce=tokenIsKeywordOrIdentifier(this.state.type)?this.lookaheadCharCode():null;if(58===Ce)ae=!0,ve=!1,de=this.parseIdentifier(!0),this.expect(14),be=this.tsParseType();else if(63===Ce){ve=!0;const e=this.state.value,Z=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(ae=!0,de=this.createIdentifier(this.startNodeAt(ie),e),this.expect(17),this.expect(14),be=this.tsParseType()):(ae=!1,be=Z,this.expect(17))}else be=this.tsParseType(),ve=this.eat(17),ae=this.eat(14);if(ae){let e;de?(e=this.startNodeAt(ie),e.optional=ve,e.label=de,e.elementType=be,this.eat(17)&&(e.optional=!0,this.raise(ur.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(ie),e.optional=ve,this.raise(ur.InvalidTupleMemberLabel,be),e.label=be,e.elementType=this.tsParseType()),be=this.finishNode(e,"TSNamedTupleMember")}else if(ve){const e=this.startNodeAt(ie);e.typeAnnotation=be,be=this.finishNode(e,"TSOptionalType")}if(Z){const Z=this.startNodeAt(e);Z.typeAnnotation=be,be=this.finishNode(Z,"TSRestType")}return be}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,Z){const ie=this.startNode();return"TSConstructorType"===e&&(ie.abstract=!!Z,Z&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,ie)),this.finishNode(ie,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),Z=this.lookahead();return 135!==Z.type&&136!==Z.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(tokenIsIdentifier(e)||88===e||84===e){const Z=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function keywordTypeFromName(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==Z&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,Z)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let Z=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const ie=this.startNodeAt(e);ie.elementType=Z,this.expect(3),Z=this.finishNode(ie,"TSArrayType")}else{const ie=this.startNodeAt(e);ie.objectType=Z,ie.indexType=this.tsParseType(),this.expect(3),Z=this.finishNode(ie,"TSIndexedAccessType")}return Z}tsParseTypeOperator(){const e=this.startNode(),Z=this.state.value;return this.next(),e.operator=Z,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===Z&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ur.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const Z=this.startNode();return Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(Z,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){const e=function tokenIsTSTypeOperator(e){return e>=121&&e<=123}(this.state.type)&&!this.state.containsEsc;return e?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,Z,ie){const ae=this.startNode(),de=this.eat(ie),ve=[];do{ve.push(Z())}while(this.eat(ie));return 1!==ve.length||de?(ae.types=ve,this.finishNode(ae,e)):ve[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,Z=e.length;try{return this.parseObjectLike(8,!0),e.length===Z}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,Z=e.length;try{return super.parseBindingList(3,93,1),e.length===Z}catch(e){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)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const Z=this.startNode();this.expect(e);const ie=this.startNode(),ae=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(ae&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(ie.parameterName=e,ie.asserts=!0,ie.typeAnnotation=null,e=this.finishNode(ie,"TSTypePredicate")):(this.resetStartLocationFromNode(e,ie),e.asserts=!0),Z.typeAnnotation=e,this.finishNode(Z,"TSTypeAnnotation")}const de=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!de)return ae?(ie.parameterName=this.parseIdentifier(),ie.asserts=ae,ie.typeAnnotation=null,Z.typeAnnotation=this.finishNode(ie,"TSTypePredicate"),this.finishNode(Z,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,Z);const ve=this.tsParseTypeAnnotation(!1);return ie.parameterName=de,ie.typeAnnotation=ve,ie.asserts=ae,Z.typeAnnotation=this.finishNode(ie,"TSTypePredicate"),this.finishNode(Z,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!tokenIsIdentifier(this.state.type)&&!this.match(78))&&(e&&this.raise(_e.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,Z=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),Z.typeAnnotation=this.tsParseType()}),this.finishNode(Z,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const Z=this.startNodeAtNode(e);return Z.checkType=e,Z.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),Z.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),Z.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(Z,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ur.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const Z=this.state.startLoc,ie=this.tsParseDelimitedList("HeritageClauseElement",()=>{{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}});return ie.length||this.raise(ur.EmptyHeritageClauseType,Z,{token:e}),ie}tsParseInterfaceDeclaration(e,Z={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),Z.declare&&(e.declare=!0),tokenIsIdentifier(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(ur.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const ie=this.startNode();return ie.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(ie,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===Oe.brace)return e();{const Z=this.state.context;this.state.context=[Z[0]];try{return e()}finally{this.state.context=Z}}}tsInType(e){const Z=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=Z}}tsInDisallowConditionalTypesContext(e){const Z=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=Z}}tsInAllowConditionalTypesContext(e){const Z=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=Z}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,Z={}){return Z.const&&(e.const=!0),Z.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,Z=!1){if(e.id=this.parseIdentifier(),Z||this.checkIdentifier(e.id,1024),this.eat(16)){const Z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Z,!0),e.body=Z}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,Z,ie){e.isExport=ie||!1,e.id=Z||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const ae=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==ae.type&&this.raise(ur.ImportAliasHasImportType,ae),e.moduleReference=ae,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const Z=this.state.clone(),ie=e();return this.state=Z,ie}tsTryParseAndCatch(e){const Z=this.tryParse(Z=>e()||Z());if(!Z.aborted&&Z.node)return Z.error&&(this.state=Z.failState),Z.node}tsTryParse(e){const Z=this.state.clone(),ie=e();if(void 0!==ie&&!1!==ie)return ie;this.state=Z}tsTryParseDeclare(e){if(this.isLineTerminator())return;const Z=this.state.type;return this.tsInAmbientContext(()=>{switch(Z){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(ur.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(ur.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const Z=this.tsParseInterfaceDeclaration(e,{declare:!0});if(Z)return Z}default:if(tokenIsIdentifier(Z))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,Z,ie){switch(Z.name){case"declare":{const Z=this.tsTryParseDeclare(e);return Z&&(Z.declare=!0),Z}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);const ie=e;return ie.kind="global",e.global=!0,ie.id=Z,ie.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(ie,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,Z.name,!1,ie)}}tsParseDeclaration(e,Z,ie,ae){switch(Z){case"abstract":if(this.tsCheckLineTerminator(ie)&&(this.match(80)||tokenIsIdentifier(this.state.type)))return this.tsParseAbstractDeclaration(e,ae);break;case"module":if(this.tsCheckLineTerminator(ie)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(tokenIsIdentifier(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(ie)&&tokenIsIdentifier(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(ie)&&tokenIsIdentifier(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const Z=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const ie=this.tsTryParseAndCatch(()=>{const Z=this.startNodeAt(e);return Z.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(Z),Z.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),Z});return this.state.maybeInArrowParameters=Z,ie?super.parseArrowExpression(ie,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(ur.EmptyTypeArguments,e):this.state.inType||this.curContext()!==Oe.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return function tokenIsTSDeclarationStart(e){return e>=124&&e<=130}(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,Z){const ie=Z.length?Z[0].loc.start:this.state.startLoc,ae={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},ae);const de=ae.accessibility,ve=ae.override,be=ae.readonly;4&e||!(de||be||ve)||this.raise(ur.UnexpectedParameterModifier,ie);const Ce=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(Ce);const ke=this.parseMaybeDefault(Ce.loc.start,Ce);if(de||be||ve){const e=this.startNodeAt(ie);return Z.length&&(e.decorators=Z),de&&(e.accessibility=de),be&&(e.readonly=be),ve&&(e.override=ve),"Identifier"!==ke.type&&"AssignmentPattern"!==ke.type&&this.raise(ur.UnsupportedParameterPropertyKind,e),e.parameter=ke,this.finishNode(e,"TSParameterProperty")}return Z.length&&(Ce.decorators=Z),ke}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const Z of e.params)"Identifier"!==Z.type&&Z.optional&&!this.state.isAmbientContext&&this.raise(ur.PatternIsOptional,Z)}setArrowFunctionParameters(e,Z,ie){super.setArrowFunctionParameters(e,Z,ie),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,Z,ie=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const ae="FunctionDeclaration"===Z?"TSDeclareFunction":"ClassMethod"===Z||"ClassPrivateMethod"===Z?"TSDeclareMethod":void 0;return ae&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,ae):"TSDeclareFunction"===ae&&this.state.isAmbientContext&&(this.raise(ur.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,ae,ie):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,Z,ie))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(ur.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,Z){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,Z,ie,ae){const de=super.parseArrayLike(e,Z,ie,ae);return"ArrayExpression"===de.type&&this.tsCheckForInvalidTypeCasts(de.elements),de}parseSubscript(e,Z,ie,ae){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const ie=this.startNodeAt(Z);return ie.expression=e,this.finishNode(ie,"TSNonNullExpression")}let de=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(ie)return ae.stop=!0,e;ae.optionalChainMember=de=!0,this.next()}if(this.match(47)||this.match(51)){let ve;const be=this.tsTryParseAndCatch(()=>{if(!ie&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(Z);if(e)return e}const be=this.tsParseTypeArgumentsInExpression();if(!be)return;if(de&&!this.match(10))return void(ve=this.state.curPosition());if(tokenIsTemplate(this.state.type)){const ie=super.parseTaggedTemplateExpression(e,Z,ae);return ie.typeParameters=be,ie}if(!ie&&this.eat(10)){const ie=this.startNodeAt(Z);return ie.callee=e,ie.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(ie.arguments),ie.typeParameters=be,ae.optionalChainMember&&(ie.optional=de),this.finishCallExpression(ie,ae.optionalChainMember)}const Ce=this.state.type;if(48===Ce||52===Ce||10!==Ce&&tokenCanStartExpression(Ce)&&!this.hasPrecedingLineBreak())return;const ke=this.startNodeAt(Z);return ke.expression=e,ke.typeParameters=be,this.finishNode(ke,"TSInstantiationExpression")});if(ve&&this.unexpected(ve,10),be)return"TSInstantiationExpression"===be.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(ur.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(be.expression=super.stopParseSubscript(e,ae))),be}return super.parseSubscript(e,Z,ie,ae)}parseNewCallee(e){var Z;super.parseNewCallee(e);const{callee:ie}=e;"TSInstantiationExpression"!==ie.type||null!=(Z=ie.extra)&&Z.parenthesized||(e.typeParameters=ie.typeParameters,e.callee=ie.expression)}parseExprOp(e,Z,ie){let ae;if(tokenOperatorPrecedence(58)>ie&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(ae=this.isContextual(120)))){const de=this.startNodeAt(Z);return de.expression=e,de.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(ae&&this.raise(_e.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(de,ae?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(de,Z,ie)}return super.parseExprOp(e,Z,ie)}checkReservedWord(e,Z,ie,ae){this.state.isAmbientContext||super.checkReservedWord(e,Z,ie,ae)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ur.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const Z=this.lookaheadCharCode();return e?123===Z||42===Z:61!==Z}return!e&&this.isContextual(87)}applyImportPhase(e,Z,ie,ae){super.applyImportPhase(e,Z,ie,ae),Z?e.exportKind="type"===ie?"type":"value":e.importKind="type"===ie||"typeof"===ie?ie:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let Z;if(tokenIsIdentifier(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const ie=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,ie);Z=super.parseImportSpecifiersAndAfter(e,ie)}else Z=super.parseImport(e);return"type"===Z.importKind&&Z.specifiers.length>1&&"ImportDefaultSpecifier"===Z.specifiers[0].type&&this.raise(ur.TypeImportCannotSpecifyDefaultAndNamed,Z),Z}parseExport(e,Z){if(this.match(83)){const Z=e;this.next();let ie=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?ie=this.parseMaybeImportPhase(Z,!1):Z.importKind="value";return this.tsParseImportEqualsDeclaration(Z,ie,!0)}if(this.eat(29)){const Z=e;return Z.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Z,"TSExportAssignment")}if(this.eatContextual(93)){const Z=e;return this.expectContextual(128),Z.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Z,"TSNamespaceExportDeclaration")}return super.parseExport(e,Z)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,Z,ie=!1){const{isAmbientContext:ae}=this.state,de=super.parseVarStatement(e,Z,ie||ae);if(!ae)return de;if(!e.declare&&("using"===Z||"await using"===Z))return this.raiseOverwrite(ur.UsingDeclarationInAmbientContext,e,Z),de;for(const{id:e,init:ie}of de.declarations)ie&&("var"===Z||"let"===Z||e.typeAnnotation?this.raise(ur.InitializerNotAllowedInAmbientContext,ie):isValidAmbientConstInitializer(ie,this.hasPlugin("estree"))||this.raise(ur.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,ie));return de}parseStatementContent(e,Z){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,Z)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,Z){return Z.some(Z=>tsIsAccessModifier(Z)?e.accessibility===Z:!!e[Z])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,Z,ie){const ae=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:ae,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ur.InvalidModifierOnTypeParameterPositions},Z);const callParseClassMemberWithIsStatic=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(Z,ae)&&this.raise(ur.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,Z)):this.parseClassMemberWithIsStatic(e,Z,ie,!!Z.static)};Z.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic()}parseClassMemberWithIsStatic(e,Z,ie,ae){const de=this.tsTryParseIndexSignature(Z);if(de)return e.body.push(de),Z.abstract&&this.raise(ur.IndexSignatureHasAbstract,Z),Z.accessibility&&this.raise(ur.IndexSignatureHasAccessibility,Z,{modifier:Z.accessibility}),Z.declare&&this.raise(ur.IndexSignatureHasDeclare,Z),void(Z.override&&this.raise(ur.IndexSignatureHasOverride,Z));!this.state.inAbstractClass&&Z.abstract&&this.raise(ur.NonAbstractClassHasAbstractMethod,Z),Z.override&&(ie.hadSuperClass||this.raise(ur.OverrideNotInSubClass,Z)),super.parseClassMemberWithIsStatic(e,Z,ie,ae)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(ur.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(ur.ClassMethodHasDeclare,e)}parseExpressionStatement(e,Z,ie){return("Identifier"===Z.type?this.tsParseExpressionStatement(e,Z,ie):void 0)||super.parseExpressionStatement(e,Z,ie)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,Z,ie){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const Z=this.lookaheadCharCode();if(44===Z||61===Z||58===Z||41===Z)return this.setOptionalParametersError(ie),e}return super.parseConditional(e,Z,ie)}parseParenItem(e,Z){const ie=super.parseParenItem(e,Z);if(this.eat(17)&&(ie.optional=!0,this.resetEndLocation(e)),this.match(14)){const ie=this.startNodeAt(Z);return ie.expression=e,ie.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(ie,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const Z=this.state.startLoc,ie=this.eatContextual(125);if(ie&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ur.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const ae=tokenIsIdentifier(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return ae?(("TSInterfaceDeclaration"===ae.type||"TSTypeAliasDeclaration"===ae.type||ie)&&(e.exportKind="type"),ie&&"TSImportEqualsDeclaration"!==ae.type&&(this.resetStartLocation(ae,Z),ae.declare=!0),ae):null}parseClassId(e,Z,ie,ae){if((!Z||ie)&&this.isContextual(113))return;super.parseClassId(e,Z,ie,e.declare?1024:8331);const de=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);de&&(e.typeParameters=de)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const Z=this.tsTryParseTypeAnnotation();Z&&(e.typeAnnotation=Z)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(ur.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:Z}=e;this.raise(ur.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==Z.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(Z.start),this.offsetToSourcePos(Z.end))}]`:Z.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(ur.PrivateElementHasAbstract,e),e.accessibility&&this.raise(ur.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(ur.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,Z,ie,ae,de,ve){const be=this.tsTryParseTypeParameters(this.tsParseConstModifier);be&&de&&this.raise(ur.ConstructorHasTypeParameters,be);const{declare:Ce=!1,kind:ke}=Z;!Ce||"get"!==ke&&"set"!==ke||this.raise(ur.DeclareAccessor,Z,{kind:ke}),be&&(Z.typeParameters=be),super.pushClassMethod(e,Z,ie,ae,de,ve)}pushClassPrivateMethod(e,Z,ie,ae){const de=this.tsTryParseTypeParameters(this.tsParseConstModifier);de&&(Z.typeParameters=de),super.pushClassPrivateMethod(e,Z,ie,ae)}declareClassPrivateMethodInScope(e,Z){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,Z))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,Z,ie,ae,de,ve,be){const Ce=this.tsTryParseTypeParameters(this.tsParseConstModifier);return Ce&&(e.typeParameters=Ce),super.parseObjPropValue(e,Z,ie,ae,de,ve,be)}parseFunctionParams(e,Z){const ie=this.tsTryParseTypeParameters(this.tsParseConstModifier);ie&&(e.typeParameters=ie),super.parseFunctionParams(e,Z)}parseVarId(e,Z){super.parseVarId(e,Z),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const ie=this.tsTryParseTypeAnnotation();ie&&(e.id.typeAnnotation=ie,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,Z){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,Z)}parseMaybeAssign(e,Z){var ie,ae,de,ve,be;let Ce,ke,Ie,_e;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(Ce=this.state.clone(),ke=this.tryParse(()=>super.parseMaybeAssign(e,Z),Ce),!ke.error)return ke.node;const{context:ie}=this.state,ae=ie[ie.length-1];ae!==Oe.j_oTag&&ae!==Oe.j_expr||ie.pop()}if(!(null!=(ie=ke)&&ie.error||this.match(47)))return super.parseMaybeAssign(e,Z);Ce&&Ce!==this.state||(Ce=this.state.clone());const Fe=this.tryParse(ie=>{var ae,de;_e=this.tsParseTypeParameters(this.tsParseConstModifier);const ve=super.parseMaybeAssign(e,Z);return("ArrowFunctionExpression"!==ve.type||null!=(ae=ve.extra)&&ae.parenthesized)&&ie(),0!==(null==(de=_e)?void 0:de.params.length)&&this.resetStartLocationFromNode(ve,_e),ve.typeParameters=_e,ve},Ce);if(!Fe.error&&!Fe.aborted)return _e&&this.reportReservedArrowTypeParam(_e),Fe.node;if(!ke&&(assert(!this.hasPlugin("jsx")),Ie=this.tryParse(()=>super.parseMaybeAssign(e,Z),Ce),!Ie.error))return Ie.node;if(null!=(ae=ke)&&ae.node)return this.state=ke.failState,ke.node;if(Fe.node)return this.state=Fe.failState,_e&&this.reportReservedArrowTypeParam(_e),Fe.node;if(null!=(de=Ie)&&de.node)return this.state=Ie.failState,Ie.node;throw(null==(ve=ke)?void 0:ve.error)||Fe.error||(null==(be=Ie)?void 0:be.error)}reportReservedArrowTypeParam(e){var Z;1!==e.params.length||e.params[0].constraint||null!=(Z=e.extra)&&Z.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(ur.ReservedArrowTypeParam,e)}parseMaybeUnary(e,Z){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,Z)}parseArrow(e){if(this.match(14)){const Z=this.tryParse(e=>{const Z=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),Z});if(Z.aborted)return;Z.thrown||(Z.error&&(this.state=Z.failState),e.returnType=Z.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const Z=this.tsTryParseTypeAnnotation();return Z&&(e.typeAnnotation=Z),this.resetEndLocation(e),e}isAssignable(e,Z){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,Z);case"TSParameterProperty":return!0;default:return super.isAssignable(e,Z)}}toAssignable(e,Z=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,Z);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":Z?this.expressionScope.recordArrowParameterBindingError(ur.UnexpectedTypeCastInParameter,e):this.raise(ur.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,Z);break;case"AssignmentExpression":Z||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,Z)}}toAssignableParenthesizedExpression(e,Z){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,Z);break;default:super.toAssignable(e,Z)}}checkToRestConversion(e,Z){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,Z)}}isValidLVal(e,Z,ie){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==ie||!Z)&&["expression",!0];default:return super.isValidLVal(e,Z,ie)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,Z){if(this.match(47)||this.match(51)){const ie=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const ae=super.parseMaybeDecoratorArguments(e,Z);return ae.typeParameters=ie,ae}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,Z)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,Z){const ie=super.parseMaybeDefault(e,Z);return"AssignmentPattern"===ie.type&&ie.typeAnnotation&&ie.right.start<ie.typeAnnotation.start&&this.raise(ur.TypeAnnotationAfterAssign,ie.typeAnnotation),ie}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,Z,ie){const ae=e[Z];"TSTypeCastExpression"===ae.type&&(e[Z]=this.typeCastToParameter(ae)),super.toAssignableListItem(e,Z,ie)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const Z=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());Z&&(e.typeParameters=Z)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const Z=super.getGetterSetterExpectedParamCount(e),ie=this.getObjectOrClassMethodParams(e)[0];return ie&&this.isThisParam(ie)?Z+1:Z}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),Z=this.tsTryParseTypeAnnotation();return Z&&(e.typeAnnotation=Z,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:Z,strict:ie}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=Z,this.state.strict=ie}}parseClass(e,Z,ie){const ae=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,Z,ie)}finally{this.state.inAbstractClass=ae}}tsParseAbstractDeclaration(e,Z){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(Z,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(ur.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,Z,ie,ae,de,ve,be){const Ce=super.parseMethod(e,Z,ie,ae,de,ve,be);if(Ce.abstract||"TSAbstractMethodDefinition"===Ce.type){if((this.hasPlugin("estree")?Ce.value:Ce).body){const{key:e}=Ce;this.raise(ur.AbstractMethodHasImplementation,Ce,{methodName:"Identifier"!==e.type||Ce.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}}return Ce}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,Z,ie,ae){return!Z&&ae?(this.parseTypeOnlyImportExportSpecifier(e,!1,ie),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,Z,ie,ae))}parseImportSpecifier(e,Z,ie,ae,de){return!Z&&ae?(this.parseTypeOnlyImportExportSpecifier(e,!0,ie),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,Z,ie,ae,ie?4098:4096))}parseTypeOnlyImportExportSpecifier(e,Z,ie){const ae=Z?"imported":"local",de=Z?"local":"exported";let ve,be=e[ae],Ce=!1,ke=!0;const Ie=be.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const ie=this.parseIdentifier();tokenIsKeywordOrIdentifier(this.state.type)?(Ce=!0,be=e,ve=Z?this.parseIdentifier():this.parseModuleExportName(),ke=!1):(ve=ie,ke=!1)}else tokenIsKeywordOrIdentifier(this.state.type)?(ke=!1,ve=Z?this.parseIdentifier():this.parseModuleExportName()):(Ce=!0,be=e)}else tokenIsKeywordOrIdentifier(this.state.type)&&(Ce=!0,Z?(be=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(be.name,be.loc.start,!0,!0)):be=this.parseModuleExportName());Ce&&ie&&this.raise(Z?ur.TypeModifierIsUsedInTypeImports:ur.TypeModifierIsUsedInTypeExports,Ie),e[ae]=be,e[de]=ve;e[Z?"importKind":"exportKind"]=Ce?"type":"value",ke&&this.eatContextual(93)&&(e[de]=Z?this.parseIdentifier():this.parseModuleExportName()),e[de]||(e[de]=this.cloneIdentifier(e[ae])),Z&&this.checkIdentifier(e[de],Ce?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}},v8intrinsic:e=>class V8IntrinsicMixin extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,Z=this.startNode();if(this.next(),tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName(),ie=this.createIdentifier(Z,e);if(this.castNodeTo(ie,"V8IntrinsicIdentifier"),this.match(10))return ie}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class PlaceholdersParserMixin extends e{parsePlaceholder(e){if(this.match(133)){const Z=this.startNode();return this.next(),this.assertNoSpace(),Z.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(Z,e)}}finishPlaceholder(e,Z){let ie=e;return ie.expectedNode&&ie.type||(ie=this.finishNode(ie,"Placeholder")),ie.expectedNode=Z,ie}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,Z,ie,ae){void 0!==e&&super.checkReservedWord(e,Z,ie,ae)}cloneIdentifier(e){const Z=super.cloneIdentifier(e);return"Placeholder"===Z.type&&(Z.expectedNode=e.expectedNode),Z}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,Z,ie){return"Placeholder"===e||super.isValidLVal(e,Z,ie)}toAssignable(e,Z){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,Z)}chStartsBindingIdentifier(e,Z){if(super.chStartsBindingIdentifier(e,Z))return!0;const ie=this.nextTokenStart();return 37===this.input.charCodeAt(ie)&&37===this.input.charCodeAt(ie+1)}verifyBreakContinue(e,Z){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,Z)}parseExpressionStatement(e,Z){var ie;if("Placeholder"!==Z.type||null!=(ie=Z.extra)&&ie.parenthesized)return super.parseExpressionStatement(e,Z);if(this.match(14)){const ie=e;return ie.label=this.finishPlaceholder(Z,"Identifier"),this.next(),ie.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(ie,"LabeledStatement")}this.semicolon();const ae=e;return ae.name=Z.name,this.finishPlaceholder(ae,"Statement")}parseBlock(e,Z,ie){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,Z,ie)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,Z,ie){const ae=Z?"ClassDeclaration":"ClassExpression";this.next();const de=this.state.strict,ve=this.parsePlaceholder("Identifier");if(ve){if(!(this.match(81)||this.match(133)||this.match(5))){if(ie||!Z)return e.id=null,e.body=this.finishPlaceholder(ve,"ClassBody"),this.finishNode(e,ae);throw this.raise(lr.ClassNameIsRequired,this.state.startLoc)}e.id=ve}else this.parseClassId(e,Z,ie);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,de),this.finishNode(e,ae)}parseExport(e,Z){const ie=this.parsePlaceholder("Identifier");if(!ie)return super.parseExport(e,Z);const ae=e;if(!this.isContextual(98)&&!this.match(12))return ae.specifiers=[],ae.source=null,ae.declaration=this.finishPlaceholder(ie,"Declaration"),this.finishNode(ae,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const de=this.startNode();return de.exported=ie,ae.specifiers=[this.finishNode(de,"ExportDefaultSpecifier")],super.parseExport(ae,Z)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,Z){var ie;return!(null==(ie=e.specifiers)||!ie.length)||super.maybeParseExportDefaultSpecifier(e,Z)}checkExport(e){const{specifiers:Z}=e;null!=Z&&Z.length&&(e.specifiers=Z.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=Z}parseImport(e){const Z=this.parsePlaceholder("Identifier");if(!Z)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(Z,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const ie=this.startNodeAtNode(Z);if(ie.local=Z,e.specifiers.push(this.finishNode(ie,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(lr.UnexpectedSpace,this.state.lastTokEndLoc)}}},Er=Object.keys(br);class ExpressionParser extends LValParser{checkProto(e,Z,ie,ae){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return ie;const de=e.key;return"__proto__"===("Identifier"===de.type?de.name:de.value)?Z?(this.raise(_e.RecordNoProto,de),!0):(ie&&(ae?null===ae.doubleProtoLoc&&(ae.doubleProtoLoc=de.loc.start):this.raise(_e.DuplicateProto,de)),!0):ie}shouldExitDescending(e,Z){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===Z}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(_e.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(_e.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,Z){return e?this.disallowInAnd(()=>this.parseExpressionBase(Z)):this.allowInAnd(()=>this.parseExpressionBase(Z))}parseExpressionBase(e){const Z=this.state.startLoc,ie=this.parseMaybeAssign(e);if(this.match(12)){const ae=this.startNodeAt(Z);for(ae.expressions=[ie];this.eat(12);)ae.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(ae.expressions),this.finishNode(ae,"SequenceExpression")}return ie}parseMaybeAssignDisallowIn(e,Z){return this.disallowInAnd(()=>this.parseMaybeAssign(e,Z))}parseMaybeAssignAllowIn(e,Z){return this.allowInAnd(()=>this.parseMaybeAssign(e,Z))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,Z){const ie=this.state.startLoc,ae=this.isContextual(108);if(ae&&this.prodParam.hasYield){this.next();let e=this.parseYield(ie);return Z&&(e=Z.call(this,e,ie)),e}let de;e?de=!1:(e=new ExpressionErrors,de=!0);const{type:ve}=this.state;(10===ve||tokenIsIdentifier(ve))&&(this.state.potentialArrowAt=this.state.start);let be=this.parseMaybeConditional(e);if(Z&&(be=Z.call(this,be,ie)),function tokenIsAssignment(e){return e>=29&&e<=33}(this.state.type)){const Z=this.startNodeAt(ie),ae=this.state.value;if(Z.operator=ae,this.match(29)){this.toAssignable(be,!0),Z.left=be;const ae=ie.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=ae&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=ae&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=ae&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=ae&&(e.voidPatternLoc=null)}else Z.left=be;return this.next(),Z.right=this.parseMaybeAssign(),this.checkLVal(be,this.finishNode(Z,"AssignmentExpression")),Z}if(de&&this.checkExpressionErrors(e,!0),ae){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_e.YieldNotInGeneratorFunction,ie),this.parseYield(ie)}return be}parseMaybeConditional(e){const Z=this.state.startLoc,ie=this.state.potentialArrowAt,ae=this.parseExprOps(e);return this.shouldExitDescending(ae,ie)?ae:this.parseConditional(ae,Z,e)}parseConditional(e,Z,ie){if(this.eat(17)){const ie=this.startNodeAt(Z);return ie.test=e,ie.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),ie.alternate=this.parseMaybeAssign(),this.finishNode(ie,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const Z=this.state.startLoc,ie=this.state.potentialArrowAt,ae=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(ae,ie)?ae:this.parseExprOp(ae,Z,-1)}parseExprOp(e,Z,ie){if(this.isPrivateName(e)){const Z=this.getPrivateNameSV(e);(ie>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_e.PrivateInExpectedIn,e,{identifierName:Z}),this.classScope.usePrivateName(Z,e.loc.start)}const ae=this.state.type;if(function tokenIsOperator(e){return e>=39&&e<=59}(ae)&&(this.prodParam.hasIn||!this.match(58))){let de=tokenOperatorPrecedence(ae);if(de>ie){if(39===ae){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,Z)}const ve=this.startNodeAt(Z);ve.left=e,ve.operator=this.state.value;const be=41===ae||42===ae,Ce=40===ae;if(Ce&&(de=tokenOperatorPrecedence(42)),this.next(),39===ae&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(_e.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);ve.right=this.parseExprOpRightExpr(ae,de);const ke=this.finishNode(ve,be||Ce?"LogicalExpression":"BinaryExpression"),Ie=this.state.type;if(Ce&&(41===Ie||42===Ie)||be&&40===Ie)throw this.raise(_e.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(ke,Z,ie)}}return e}parseExprOpRightExpr(e,Z){const ie=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(Z))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_e.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,Z),ie)})}return this.parseExprOpBaseRightExpr(e,Z)}parseExprOpBaseRightExpr(e,Z){const ie=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),ie,function tokenIsRightAssociative(e){return 57===e}(e)?Z-1:Z)}parseHackPipeBody(){var e;const{startLoc:Z}=this.state,ie=this.parseMaybeAssign();return!Ce.has(ie.type)||null!=(e=ie.extra)&&e.parenthesized||this.raise(_e.PipeUnparenthesizedBody,Z,{type:ie.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_e.PipeTopicUnused,Z),ie}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_e.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,Z){const ie=this.state.startLoc,ae=this.isContextual(96);if(ae&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(ie);return Z||this.checkExponentialAfterUnary(e),e}const de=this.match(34),ve=this.startNode();if(function tokenIsPrefix(e){return mt[e]}(this.state.type)){ve.operator=this.state.value,ve.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const ie=this.match(89);if(this.next(),ve.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&ie){const e=ve.argument;"Identifier"===e.type?this.raise(_e.StrictDelete,ve):this.hasPropertyAsPrivateName(e)&&this.raise(_e.DeletePrivateField,ve)}if(!de)return Z||this.checkExponentialAfterUnary(ve),this.finishNode(ve,"UnaryExpression")}const be=this.parseUpdate(ve,de,e);if(ae){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_e.AwaitNotInAsyncContext,ie),this.parseAwait(ie)}return be}parseUpdate(e,Z,ie){if(Z){const Z=e;return this.checkLVal(Z.argument,this.finishNode(Z,"UpdateExpression")),e}const ae=this.state.startLoc;let de=this.parseExprSubscripts(ie);if(this.checkExpressionErrors(ie,!1))return de;for(;tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(ae);e.operator=this.state.value,e.prefix=!1,e.argument=de,this.next(),this.checkLVal(de,de=this.finishNode(e,"UpdateExpression"))}return de}parseExprSubscripts(e){const Z=this.state.startLoc,ie=this.state.potentialArrowAt,ae=this.parseExprAtom(e);return this.shouldExitDescending(ae,ie)?ae:this.parseSubscripts(ae,Z)}parseSubscripts(e,Z,ie){const ae={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,Z,ie,ae),ae.maybeAsyncArrow=!1}while(!ae.stop);return e}parseSubscript(e,Z,ie,ae){const{type:de}=this.state;if(!ie&&15===de)return this.parseBind(e,Z,ie,ae);if(tokenIsTemplate(de))return this.parseTaggedTemplateExpression(e,Z,ae);let ve=!1;if(18===de){if(ie&&(this.raise(_e.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,ae);ae.optionalChainMember=ve=!0,this.next()}if(!ie&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,Z,ae,ve);{const ie=this.eat(0);return ie||ve||this.eat(16)?this.parseMember(e,Z,ae,ie,ve):this.stopParseSubscript(e,ae)}}stopParseSubscript(e,Z){return Z.stop=!0,e}parseMember(e,Z,ie,ae,de){const ve=this.startNodeAt(Z);return ve.object=e,ve.computed=ae,ae?(ve.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(_e.SuperPrivateField,Z),this.classScope.usePrivateName(this.state.value,this.state.startLoc),ve.property=this.parsePrivateName()):ve.property=this.parseIdentifier(!0),ie.optionalChainMember?(ve.optional=de,this.finishNode(ve,"OptionalMemberExpression")):this.finishNode(ve,"MemberExpression")}parseBind(e,Z,ie,ae){const de=this.startNodeAt(Z);return de.object=e,this.next(),de.callee=this.parseNoCallExpr(),ae.stop=!0,this.parseSubscripts(this.finishNode(de,"BindExpression"),Z,ie)}parseCoverCallAndAsyncArrowHead(e,Z,ie,ae){const de=this.state.maybeInArrowParameters;let ve=null;this.state.maybeInArrowParameters=!0,this.next();const be=this.startNodeAt(Z);be.callee=e;const{maybeAsyncArrow:Ce,optionalChainMember:ke}=ie;Ce&&(this.expressionScope.enter(function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}()),ve=new ExpressionErrors),ke&&(be.optional=ae),be.arguments=ae?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,be,ve);let Ie=this.finishCallExpression(be,ke);return Ce&&this.shouldParseAsyncArrow()&&!ae?(ie.stop=!0,this.checkDestructuringPrivate(ve),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),Ie=this.parseAsyncArrowFromCallExpression(this.startNodeAt(Z),Ie)):(Ce&&(this.checkExpressionErrors(ve,!0),this.expressionScope.exit()),this.toReferencedArguments(Ie)),this.state.maybeInArrowParameters=de,Ie}toReferencedArguments(e,Z){this.toReferencedListDeep(e.arguments,Z)}parseTaggedTemplateExpression(e,Z,ie){const ae=this.startNodeAt(Z);return ae.tag=e,ae.quasi=this.parseTemplate(!0),ie.optionalChainMember&&this.raise(_e.OptionalChainingNoTemplate,Z),this.finishNode(ae,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,Z){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(_e.ImportCallArity,e);else for(const Z of e.arguments)"SpreadElement"===Z.type&&this.raise(_e.ImportCallSpreadArgument,Z);return this.finishNode(e,Z?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,Z,ie){const ae=[];let de=!0;const ve=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(de)de=!1;else if(this.expect(12),this.match(11)){Z&&this.addTrailingCommaExtraToNode(Z),this.next();break}ae.push(this.parseExprListItem(11,!1,ie,e))}return this.state.inFSharpPipelineDirectBody=ve,ae}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,Z){var ie;return this.resetPreviousNodeTrailingComments(Z),this.expect(19),this.parseArrowExpression(e,Z.arguments,!0,null==(ie=Z.extra)?void 0:ie.trailingCommaLoc),Z.innerComments&&setInnerComments(e,Z.innerComments),Z.callee.trailingComments&&setInnerComments(e,Z.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let Z,ie=null;const{type:ae}=this.state;switch(ae){case 79:return this.parseSuper();case 83:return Z=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(Z):this.match(10)?512&this.optionFlags?this.parseImportCall(Z):this.finishNode(Z,"Import"):(this.raise(_e.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(Z,"Import"));case 78:return Z=this.startNode(),this.next(),this.finishNode(Z,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:ie=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(ie,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{Z=this.startNode(),this.next(),Z.object=null;const e=Z.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(Z,"BindExpression");throw this.raise(_e.UnsupportedBind,e)}case 139:return this.raise(_e.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());isIdentifierStart(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(137===ae)return this.parseDecimalLiteral(this.state.value);if(2===ae||1===ae)return this.parseArrayLike(2===this.state.type?4:3,!1,!0);if(6===ae||7===ae)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(tokenIsIdentifier(ae)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,Z=this.state.containsEsc,ie=this.parseIdentifier();if(!Z&&"async"===ie.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(ie),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(ie));if(tokenIsIdentifier(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(ie)):ie;if(90===e)return this.resetPreviousNodeTrailingComments(ie),this.parseDo(this.startNodeAtNode(ie),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(ie),[ie],!1)):ie}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,Z){const ie=this.getPluginOption("pipelineOperator","proposal");if(ie)return this.state.type=e,this.state.value=Z,this.state.pos--,this.state.end--,this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1),this.parseTopicReference(ie);this.unexpected()}parseTopicReference(e){const Z=this.startNode(),ie=this.state.startLoc,ae=this.state.type;return this.next(),this.finishTopicReference(Z,ie,e,ae)}finishTopicReference(e,Z,ie,ae){if(this.testTopicReferenceConfiguration(ie,Z,ae))return"hack"===ie?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_e.PipeTopicUnbound,Z),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_e.PrimaryTopicNotAllowed,Z),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(_e.PipeTopicUnconfiguredToken,Z,{token:tokenLabelName(ae)})}testTopicReferenceConfiguration(e,Z,ie){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(ie)}]);case"smart":return 27===ie;default:throw this.raise(_e.PipeTopicRequiresHackPipes,Z)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const Z=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_e.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,Z,!0)}parseDo(e,Z){this.expectPlugin("doExpressions"),Z&&this.expectPlugin("asyncDoExpressions"),e.async=Z,this.next();const ie=this.state.labels;return this.state.labels=[],Z?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=ie,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||16&this.optionFlags?this.scope.allowSuper||16&this.optionFlags||this.raise(_e.UnexpectedSuper,e):this.raise(_e.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(_e.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),Z=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1)),ie=this.state.value;return this.next(),e.id=this.createIdentifier(Z,ie),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const Z=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,Z,"sent")}return this.parseFunction(e)}parseMetaProperty(e,Z,ie){e.meta=Z;const ae=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==ie||ae)&&this.raise(_e.UnsupportedMetaProperty,e.property,{target:Z.name,onlyValidPropertyName:ie}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const Z=this.isContextual(105);return this.expectPlugin(Z?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=Z?"source":"defer",this.parseImportCall(e)}{const Z=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(_e.ImportMetaOutsideModule,Z),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,Z,"meta")}}parseLiteralAtNode(e,Z,ie){return this.addExtra(ie,"rawValue",e),this.addExtra(ie,"raw",this.input.slice(this.offsetToSourcePos(ie.start),this.state.end)),ie.value=e,this.next(),this.finishNode(ie,Z)}parseLiteral(e,Z){const ie=this.startNode();return this.parseLiteralAtNode(e,Z,ie)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const Z=this.startNode();return this.addExtra(Z,"raw",this.input.slice(this.offsetToSourcePos(Z.start),this.state.end)),Z.pattern=e.pattern,Z.flags=e.flags,this.next(),this.finishNode(Z,"RegExpLiteral")}parseBooleanLiteral(e){const Z=this.startNode();return Z.value=e,this.next(),this.finishNode(Z,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const Z=this.state.startLoc;let ie;this.next(),this.expressionScope.enter(function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}());const ae=this.state.maybeInArrowParameters,de=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const ve=this.state.startLoc,be=[],Ce=new ExpressionErrors;let ke,Ie,_e=!0;for(;!this.match(11);){if(_e)_e=!1;else if(this.expect(12,null===Ce.optionalParametersLoc?null:Ce.optionalParametersLoc),this.match(11)){Ie=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(ke=this.state.startLoc,be.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else be.push(this.parseMaybeAssignAllowInOrVoidPattern(11,Ce,this.parseParenItem))}const Fe=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=ae,this.state.inFSharpPipelineDirectBody=de;let Oe=this.startNodeAt(Z);return e&&this.shouldParseArrow(be)&&(Oe=this.parseArrow(Oe))?(this.checkDestructuringPrivate(Ce),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(Oe,be,!1),Oe):(this.expressionScope.exit(),be.length||this.unexpected(this.state.lastTokStartLoc),Ie&&this.unexpected(Ie),ke&&this.unexpected(ke),this.checkExpressionErrors(Ce,!0),this.toReferencedListDeep(be,!0),be.length>1?(ie=this.startNodeAt(ve),ie.expressions=be,this.finishNode(ie,"SequenceExpression"),this.resetEndLocation(ie,Fe)):ie=be[0],this.wrapParenthesis(Z,ie))}wrapParenthesis(e,Z){if(!(1024&this.optionFlags))return this.addExtra(Z,"parenthesized",!0),this.addExtra(Z,"parenStart",e.index),this.takeSurroundingComments(Z,e.index,this.state.lastTokEndLoc.index),Z;const ie=this.startNodeAt(e);return ie.expression=Z,this.finishNode(ie,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,Z){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const Z=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const ie=this.parseMetaProperty(e,Z,"target");return this.scope.allowNewTarget||this.raise(_e.UnexpectedNewTarget,ie),ie}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const Z=this.parseExprList(11);this.toReferencedList(Z),e.arguments=Z}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const Z=this.match(83),ie=this.parseNoCallExpr();e.callee=ie,!Z||"Import"!==ie.type&&"ImportExpression"!==ie.type||this.raise(_e.ImportCallNotNewExpression,ie)}parseTemplateElement(e){const{start:Z,startLoc:ie,end:ae,value:de}=this.state,ve=Z+1,be=this.startNodeAt(createPositionWithColumnOffset(ie,1));null===de&&(e||this.raise(_e.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1)));const Ce=this.match(24),ke=Ce?-1:-2,Ie=ae+ke;be.value={raw:this.input.slice(ve,Ie).replace(/\r\n?/g,"\n"),cooked:null===de?null:de.slice(1,ke)},be.tail=Ce,this.next();const Fe=this.finishNode(be,"TemplateElement");return this.resetEndLocation(Fe,createPositionWithColumnOffset(this.state.lastTokEndLoc,ke)),Fe}parseTemplate(e){const Z=this.startNode();let ie=this.parseTemplateElement(e);const ae=[ie],de=[];for(;!ie.tail;)de.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),ae.push(ie=this.parseTemplateElement(e));return Z.expressions=de,Z.quasis=ae,this.finishNode(Z,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,Z,ie,ae){ie&&this.expectPlugin("recordAndTuple");const de=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let ve=!1,be=!0;const Ce=this.startNode();for(Ce.properties=[],this.next();!this.match(e);){if(be)be=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(Ce);break}let de;Z?de=this.parseBindingProperty():(de=this.parsePropertyDefinition(ae),ve=this.checkProto(de,ie,ve,ae)),ie&&!this.isObjectProperty(de)&&"SpreadElement"!==de.type&&this.raise(_e.InvalidRecordProperty,de),de.shorthand&&this.addExtra(de,"shorthand",!0),Ce.properties.push(de)}this.next(),this.state.inFSharpPipelineDirectBody=de;let ke="ObjectExpression";return Z?ke="ObjectPattern":ie&&(ke="RecordExpression"),this.finishNode(Ce,ke)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let Z=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(_e.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Z.push(this.parseDecorator());const ie=this.startNode();let ae,de=!1,ve=!1;if(this.match(21))return Z.length&&this.unexpected(),this.parseSpread();Z.length&&(ie.decorators=Z,Z=[]),ie.method=!1,e&&(ae=this.state.startLoc);let be=this.eat(55);this.parsePropertyNamePrefixOperator(ie);const Ce=this.state.containsEsc;if(this.parsePropertyName(ie,e),!be&&!Ce&&this.maybeAsyncOrAccessorProp(ie)){const{key:e}=ie,Z=e.name;"async"!==Z||this.hasPrecedingLineBreak()||(de=!0,this.resetPreviousNodeTrailingComments(e),be=this.eat(55),this.parsePropertyName(ie)),"get"!==Z&&"set"!==Z||(ve=!0,this.resetPreviousNodeTrailingComments(e),ie.kind=Z,this.match(55)&&(be=!0,this.raise(_e.AccessorIsGenerator,this.state.curPosition(),{kind:Z}),this.next()),this.parsePropertyName(ie))}return this.parseObjPropValue(ie,ae,be,de,!1,ve,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var Z;const ie=this.getGetterSetterExpectedParamCount(e),ae=this.getObjectOrClassMethodParams(e);ae.length!==ie&&this.raise("get"===e.kind?_e.BadGetterArity:_e.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(Z=ae[ae.length-1])?void 0:Z.type)&&this.raise(_e.BadSetterRestParameter,e)}parseObjectMethod(e,Z,ie,ae,de){if(de){const ie=this.parseMethod(e,Z,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(ie),ie}if(ie||Z||this.match(10))return ae&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,Z,ie,!1,!1,"ObjectMethod")}parseObjectProperty(e,Z,ie,ae){if(e.shorthand=!1,this.eat(14))return e.value=ie?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,ae),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),ie)e.value=this.parseMaybeDefault(Z,this.cloneIdentifier(e.key));else if(this.match(29)){const ie=this.state.startLoc;null!=ae?null===ae.shorthandAssignLoc&&(ae.shorthandAssignLoc=ie):this.raise(_e.InvalidCoverInitializedName,ie),e.value=this.parseMaybeDefault(Z,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,Z,ie,ae,de,ve,be){const Ce=this.parseObjectMethod(e,ie,ae,de,ve)||this.parseObjectProperty(e,Z,de,be);return Ce||this.unexpected(),Ce}parsePropertyName(e,Z){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:ie,value:ae}=this.state;let de;if(tokenIsKeywordOrIdentifier(ie))de=this.parseIdentifier(!0);else switch(ie){case 135:de=this.parseNumericLiteral(ae);break;case 134:de=this.parseStringLiteral(ae);break;case 136:de=this.parseBigIntLiteral(ae);break;case 139:{const e=this.state.startLoc;null!=Z?null===Z.privateKeyLoc&&(Z.privateKeyLoc=e):this.raise(_e.UnexpectedPrivateField,e),de=this.parsePrivateName();break}default:if(137===ie){de=this.parseDecimalLiteral(ae);break}this.unexpected()}e.key=de,139!==ie&&(e.computed=!1)}}initFunction(e,Z){e.id=null,e.generator=!1,e.async=Z}parseMethod(e,Z,ie,ae,de,ve,be=!1){this.initFunction(e,ie),e.generator=Z,this.scope.enter(530|(be?576:0)|(de?32:0)),this.prodParam.enter(functionFlags(ie,e.generator)),this.parseFunctionParams(e,ae);const Ce=this.parseFunctionBodyAndFinish(e,ve,!0);return this.prodParam.exit(),this.scope.exit(),Ce}parseArrayLike(e,Z,ie,ae){ie&&this.expectPlugin("recordAndTuple");const de=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const ve=this.startNode();return this.next(),ve.elements=this.parseExprList(e,!ie,ae,ve),this.state.inFSharpPipelineDirectBody=de,this.finishNode(ve,ie?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,Z,ie,ae){this.scope.enter(518);let de=functionFlags(ie,!1);!this.match(5)&&this.prodParam.hasIn&&(de|=8),this.prodParam.enter(de),this.initFunction(e,ie);const ve=this.state.maybeInArrowParameters;return Z&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,Z,ae)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=ve,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,Z,ie){this.toAssignableList(Z,ie,!1),e.params=Z}parseFunctionBodyAndFinish(e,Z,ie=!1){return this.parseFunctionBody(e,!1,ie),this.finishNode(e,Z)}parseFunctionBody(e,Z,ie=!1){const ae=Z&&!this.match(5);if(this.expressionScope.enter(newExpressionScope()),ae)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,Z,!1);else{const ae=this.state.strict,de=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,de=>{const ve=!this.isSimpleParamList(e.params);de&&ve&&this.raise(_e.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const be=!ae&&this.state.strict;this.checkParams(e,!(this.state.strict||Z||ie||ve),Z,be),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,be)}),this.prodParam.exit(),this.state.labels=de}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let Z=0,ie=e.length;Z<ie;Z++)if(!this.isSimpleParameter(e[Z]))return!1;return!0}checkParams(e,Z,ie,ae=!0){const de=!Z&&new Set,ve={type:"FormalParameters"};for(const Z of e.params)this.checkLVal(Z,ve,5,de,ae)}parseExprList(e,Z,ie,ae){const de=[];let ve=!0;for(;!this.eat(e);){if(ve)ve=!1;else if(this.expect(12),this.match(e)){ae&&this.addTrailingCommaExtraToNode(ae),this.next();break}de.push(this.parseExprListItem(e,Z,ie))}return de}parseExprListItem(e,Z,ie,ae){let de;if(this.match(12))Z||this.raise(_e.UnexpectedToken,this.state.curPosition(),{unexpected:","}),de=null;else if(this.match(21)){const e=this.state.startLoc;de=this.parseParenItem(this.parseSpread(ie),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),ae||this.raise(_e.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),de=this.finishNode(e,"ArgumentPlaceholder")}else de=this.parseMaybeAssignAllowInOrVoidPattern(e,ie,this.parseParenItem);return de}parseIdentifier(e){const Z=this.startNode(),ie=this.parseIdentifierName(e);return this.createIdentifier(Z,ie)}createIdentifier(e,Z){return e.name=Z,e.loc.identifierName=Z,this.finishNode(e,"Identifier")}createIdentifierAt(e,Z,ie){return e.name=Z,e.loc.identifierName=Z,this.finishNodeAt(e,"Identifier",ie)}parseIdentifierName(e){let Z;const{startLoc:ie,type:ae}=this.state;tokenIsKeywordOrIdentifier(ae)?Z=this.state.value:this.unexpected();const de=function tokenKeywordOrIdentifierIsKeyword(e){return e<=92}(ae);return e?de&&this.replaceToken(132):this.checkReservedWord(Z,ie,de,!1),this.next(),Z}checkReservedWord(e,Z,ie,ae){if(e.length>10)return;if(!function canBeReservedWord(e){return qt.has(e)}(e))return;if(ie&&function isKeyword(e){return _t.has(e)}(e))return void this.raise(_e.UnexpectedKeyword,Z,{keyword:e});if((this.state.strict?ae?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule))this.raise(_e.UnexpectedReservedWord,Z,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(_e.YieldBindingIdentifier,Z)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(_e.AwaitBindingIdentifier,Z);if(this.scope.inStaticBlock)return void this.raise(_e.AwaitBindingIdentifierInStaticBlock,Z);this.expressionScope.recordAsyncArrowParametersError(Z)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(_e.ArgumentsInClass,Z)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const Z=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_e.AwaitExpressionFormalParameter,Z),this.eat(55)&&this.raise(_e.ObsoleteAwaitStar,Z),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(Z.argument=this.parseMaybeUnary(null,!0)),this.finishNode(Z,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||tokenIsTemplate(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const Z=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(_e.YieldInParameter,Z);let ie=!1,ae=null;if(!this.hasPrecedingLineBreak())switch(ie=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!ie)break;default:ae=this.parseMaybeAssign()}return Z.delegate=ie,Z.argument=ae,this.finishNode(Z,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(_e.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,Z){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(_e.PipelineHeadSequenceExpression,Z)}parseSmartPipelineBodyInStyle(e,Z){if(this.isSimpleReference(e)){const ie=this.startNodeAt(Z);return ie.callee=e,this.finishNode(ie,"PipelineBareFunction")}{const ie=this.startNodeAt(Z);return this.checkSmartPipeTopicBodyEarlyErrors(Z),ie.expression=e,this.finishNode(ie,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_e.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_e.PipelineTopicUnused,e)}withTopicBindingContext(e){const Z=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=Z}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const Z=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=Z}}}withSoloAwaitPermittingContext(e){const Z=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=Z}}allowInAnd(e){const Z=this.prodParam.currentFlags();if(8&~Z){this.prodParam.enter(8|Z);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const Z=this.prodParam.currentFlags();if(8&Z){this.prodParam.enter(-9&Z);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const Z=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const ie=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const ae=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),Z,e);return this.state.inFSharpPipelineDirectBody=ie,ae}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const Z=this.startNodeAt(this.state.endLoc);this.next();const ie=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(Z,8,"module")}finally{ie()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const Z=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(Z,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,Z,ie){if(null!=Z&&this.match(88)){const ie=this.lookaheadCharCode();if(44===ie||ie===(3===e?93:8===e?125:41)||61===ie)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(Z))}return this.parseMaybeAssignAllowIn(Z,ie)}parsePropertyNamePrefixOperator(e){}}const Cr={kind:1},Ar={kind:2},Tr=/[\uD800-\uDFFF]/u,Sr=/in(?:stanceof)?/y;class StatementParser extends ExpressionParser{parseTopLevel(e,Z){return e.program=this.parseProgram(Z,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function babel7CompatTokens(e,Z,ie){for(let ae=0;ae<e.length;ae++){const de=e[ae],{type:ve}=de;if("number"==typeof ve){if(139===ve){const{loc:Z,start:ie,value:ve,end:be}=de,Ce=ie+1,ke=createPositionWithColumnOffset(Z.start,1);e.splice(ae,1,new Token({type:getExportedToken(27),value:"#",start:ie,end:Ce,startLoc:Z.start,endLoc:ke}),new Token({type:getExportedToken(132),value:ve,start:Ce,end:be,startLoc:ke,endLoc:Z.end})),ae++;continue}if(tokenIsTemplate(ve)){const{loc:be,start:Ce,value:ke,end:Ie}=de,_e=Ce+1,Fe=createPositionWithColumnOffset(be.start,1);let Oe,Be,Me,qe,Ve;Oe=96===Z.charCodeAt(Ce-ie)?new Token({type:getExportedToken(22),value:"`",start:Ce,end:_e,startLoc:be.start,endLoc:Fe}):new Token({type:getExportedToken(8),value:"}",start:Ce,end:_e,startLoc:be.start,endLoc:Fe}),24===ve?(Me=Ie-1,qe=createPositionWithColumnOffset(be.end,-1),Be=null===ke?null:ke.slice(1,-1),Ve=new Token({type:getExportedToken(22),value:"`",start:Me,end:Ie,startLoc:qe,endLoc:be.end})):(Me=Ie-2,qe=createPositionWithColumnOffset(be.end,-2),Be=null===ke?null:ke.slice(1,-2),Ve=new Token({type:getExportedToken(23),value:"${",start:Me,end:Ie,startLoc:qe,endLoc:be.end})),e.splice(ae,1,Oe,new Token({type:getExportedToken(20),value:Be,start:_e,end:Me,startLoc:Fe,endLoc:qe}),Ve),ae+=2;continue}de.type=getExportedToken(ve)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,Z,ie){if(e.sourceType=ie,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,Z),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[e,Z]of Array.from(this.scope.undefinedExports))this.raise(_e.ModuleExportUndefined,Z,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let ae;return ae=140===Z?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1)),ae}stmtToDirective(e){const Z=this.castNodeTo(e,"Directive"),ie=this.castNodeTo(e.expression,"DirectiveLiteral"),ae=ie.value,de=this.input.slice(this.offsetToSourcePos(ie.start),this.offsetToSourcePos(ie.end)),ve=ie.value=de.slice(1,-1);return this.addExtra(ie,"raw",de),this.addExtra(ie,"rawValue",ve),this.addExtra(ie,"expressionValue",ae),Z.value=ie,delete e.expression,Z}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),Z=this.codePointAtPos(e);return this.chStartsBindingIdentifier(Z,e)}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),Z=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const Z=this.lookaheadCharCodeSince(e+2);if(61!==Z&&58!==Z&&59!==Z)return!1}return!(!this.chStartsBindingIdentifier(Z,e)&&!this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const Z=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(Z,e))return!0}return!1}chStartsBindingIdentifier(e,Z){if(isIdentifierStart(e)){if(Sr.lastIndex=Z,Sr.test(this.input)){const e=this.codePointAtPos(Sr.lastIndex);if(!isIdentifierChar(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),Z=this.codePointAtPos(e);return this.chStartsBindingPattern(Z)||this.chStartsBindingIdentifier(Z,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),Z=this.codePointAtPos(e);return 123===Z||this.chStartsBindingIdentifier(Z,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let Z=0;return this.options.annexB&&!this.state.strict&&(Z|=4,e&&(Z|=8)),this.parseStatementLike(Z)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let Z=null;return this.match(26)&&(Z=this.parseDecorators(!0)),this.parseStatementContent(e,Z)}parseStatementContent(e,Z){const ie=this.state.type,ae=this.startNode(),de=!!(2&e),ve=!!(4&e),be=1&e;switch(ie){case 60:return this.parseBreakContinueStatement(ae,!0);case 63:return this.parseBreakContinueStatement(ae,!1);case 64:return this.parseDebuggerStatement(ae);case 90:return this.parseDoWhileStatement(ae);case 91:return this.parseForStatement(ae);case 68:if(46===this.lookaheadCharCode())break;return ve||this.raise(this.state.strict?_e.StrictFunction:this.options.annexB?_e.SloppyFunctionAnnexB:_e.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(ae,!1,!de&&ve);case 80:return de||this.unexpected(),this.parseClass(this.maybeTakeDecorators(Z,ae),!0);case 69:return this.parseIfStatement(ae);case 70:return this.parseReturnStatement(ae);case 71:return this.parseSwitchStatement(ae);case 72:return this.parseThrowStatement(ae);case 73:return this.parseTryStatement(ae);case 96:if(this.isAwaitUsing())return this.allowsUsing()?de?this.recordAwaitIfAllowed()||this.raise(_e.AwaitUsingNotInAsyncContext,ae):this.raise(_e.UnexpectedLexicalDeclaration,ae):this.raise(_e.UnexpectedUsingDeclaration,ae),this.next(),this.parseVarStatement(ae,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?de||this.raise(_e.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(_e.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(ae,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),Z=this.codePointAtPos(e);if(91!==Z){if(!de&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(Z,e)&&123!==Z)break}}case 75:de||this.raise(_e.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(ae,e)}case 92:return this.parseWhileStatement(ae);case 76:return this.parseWithStatement(ae);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(ae);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||be||this.raise(_e.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===ie?this.parseImport(ae):this.parseExport(ae,Z),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return de||this.raise(_e.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(ae,!0,!de&&ve)}const Ce=this.state.value,ke=this.parseExpression();return tokenIsIdentifier(ie)&&"Identifier"===ke.type&&this.eat(14)?this.parseLabeledStatement(ae,Ce,ke,e):this.parseExpressionStatement(ae,ke,Z)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(_e.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,Z,ie){var ae;e&&(null!=(ae=Z.decorators)&&ae.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(_e.DecoratorsBeforeAfterExport,Z.decorators[0]),Z.decorators.unshift(...e)):Z.decorators=e,this.resetStartLocationFromNode(Z,e[0]),ie&&this.resetStartLocationFromNode(ie,Z));return Z}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const Z=[];do{Z.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_e.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_e.UnexpectedLeadingDecorator,this.state.startLoc);return Z}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const Z=this.state.startLoc;let ie;if(this.match(10)){const Z=this.state.startLoc;this.next(),ie=this.parseExpression(),this.expect(11),ie=this.wrapParenthesis(Z,ie);const ae=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(ie,Z),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==ie&&this.raise(_e.DecoratorArgumentsOutsideParentheses,ae)}else{for(ie=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(Z);e.object=ie,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,ie=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(ie,Z)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,Z){if(this.eat(10)){const ie=this.startNodeAt(Z);return ie.callee=e,ie.arguments=this.parseCallExpressionArguments(),this.toReferencedList(ie.arguments),this.finishNode(ie,"CallExpression")}return e}parseBreakContinueStatement(e,Z){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,Z),this.finishNode(e,Z?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,Z){let ie;for(ie=0;ie<this.state.labels.length;++ie){const ae=this.state.labels[ie];if(null==e.label||ae.name===e.label.name){if(null!=ae.kind&&(Z||1===ae.kind))break;if(e.label&&Z)break}}if(ie===this.state.labels.length){const ie=Z?"BreakStatement":"ContinueStatement";this.raise(_e.IllegalBreakContinue,e,{type:ie})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Cr),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Cr);let Z=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(Z=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==Z&&this.unexpected(Z),this.parseFor(e,null);const ie=this.isContextual(100);{const ae=this.isAwaitUsing(),de=ae||this.isForUsing(),ve=ie&&this.hasFollowingBindingAtom()||de;if(this.match(74)||this.match(75)||ve){const ie=this.startNode();let ve;ae?(ve="await using",this.recordAwaitIfAllowed()||this.raise(_e.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):ve=this.state.value,this.next(),this.parseVar(ie,!0,ve);const be=this.finishNode(ie,"VariableDeclaration"),Ce=this.match(58);return Ce&&de&&this.raise(_e.ForInUsing,be),(Ce||this.isContextual(102))&&1===be.declarations.length?this.parseForIn(e,be,Z):(null!==Z&&this.unexpected(Z),this.parseFor(e,be))}}const ae=this.isContextual(95),de=new ExpressionErrors,ve=this.parseExpression(!0,de),be=this.isContextual(102);if(be&&(ie&&this.raise(_e.ForOfLet,ve),null===Z&&ae&&"Identifier"===ve.type&&this.raise(_e.ForOfAsync,ve)),be||this.match(58)){this.checkDestructuringPrivate(de),this.toAssignable(ve,!0);const ie=be?"ForOfStatement":"ForInStatement";return this.checkLVal(ve,{type:ie}),this.parseForIn(e,ve,Z)}return this.checkExpressionErrors(de,!0),null!==Z&&this.unexpected(Z),this.parseFor(e,ve)}parseFunctionStatement(e,Z,ie){return this.next(),this.parseFunction(e,1|(ie?2:0)|(Z?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(_e.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const Z=e.cases=[];let ie;this.expect(5),this.state.labels.push(Ar),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const ae=this.match(61);ie&&this.finishNode(ie,"SwitchCase"),Z.push(ie=this.startNode()),ie.consequent=[],this.next(),ae?ie.test=this.parseExpression():(e&&this.raise(_e.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,ie.test=null),this.expect(14)}else ie?ie.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),ie&&this.finishNode(ie,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_e.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const Z=this.startNode();this.next(),this.match(10)?(this.expect(10),Z.param=this.parseCatchClauseParam(),this.expect(11)):(Z.param=null,this.scope.enter(0)),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(Z,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(_e.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,Z,ie=!1){return this.next(),this.parseVar(e,!1,Z,ie),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Cr),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(_e.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,Z,ie,ae){for(const e of this.state.labels)e.name===Z&&this.raise(_e.LabelRedeclaration,ie,{labelName:Z});const de=function tokenIsLoop(e){return e>=90&&e<=92}(this.state.type)?1:this.match(71)?2:null;for(let Z=this.state.labels.length-1;Z>=0;Z--){const ie=this.state.labels[Z];if(ie.statementStart!==e.start)break;ie.statementStart=this.sourceToOffsetPos(this.state.start),ie.kind=de}return this.state.labels.push({name:Z,kind:de,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&ae?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=ie,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,Z,ie){return e.expression=Z,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,Z=!0,ie){const ae=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),Z&&this.scope.enter(0),this.parseBlockBody(ae,e,!1,8,ie),Z&&this.scope.exit(),this.finishNode(ae,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,Z,ie,ae,de){const ve=e.body=[],be=e.directives=[];this.parseBlockOrModuleBlockBody(ve,Z?be:void 0,ie,ae,de)}parseBlockOrModuleBlockBody(e,Z,ie,ae,de){const ve=this.state.strict;let be=!1,Ce=!1;for(;!this.match(ae);){const ae=ie?this.parseModuleItem():this.parseStatementListItem();if(Z&&!Ce){if(this.isValidDirective(ae)){const e=this.stmtToDirective(ae);Z.push(e),be||"use strict"!==e.value.value||(be=!0,this.setStrict(!0));continue}Ce=!0,this.state.strictErrors.clear()}e.push(ae)}null==de||de.call(this,be),ve||this.setStrict(!1),this.next()}parseFor(e,Z){return e.init=Z,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,Z,ie){const ae=this.match(58);return this.next(),ae?null!==ie&&this.unexpected(ie):e.await=null!==ie,"VariableDeclaration"!==Z.type||null==Z.declarations[0].init||ae&&this.options.annexB&&!this.state.strict&&"var"===Z.kind&&"Identifier"===Z.declarations[0].id.type||this.raise(_e.ForInOfLoopInitializer,Z,{type:ae?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===Z.type&&this.raise(_e.InvalidLhs,Z,{ancestor:{type:"ForStatement"}}),e.left=Z,e.right=ae?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,ae?"ForInStatement":"ForOfStatement")}parseVar(e,Z,ie,ae=!1){const de=e.declarations=[];for(e.kind=ie;;){const e=this.startNode();if(this.parseVarId(e,ie),e.init=this.eat(29)?Z?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||ae||("Identifier"===e.id.type||Z&&(this.match(58)||this.isContextual(102))?"const"!==ie&&"using"!==ie&&"await using"!==ie||this.match(58)||this.isContextual(102)||this.raise(_e.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:ie}):this.raise(_e.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),de.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,Z){const ie=this.parseBindingAtom();"using"===Z||"await using"===Z?"ArrayPattern"!==ie.type&&"ObjectPattern"!==ie.type||this.raise(_e.UsingDeclarationHasBindingPattern,ie.loc.start):"VoidPattern"===ie.type&&this.raise(_e.UnexpectedVoidPattern,ie.loc.start),this.checkLVal(ie,{type:"VariableDeclarator"},"var"===Z?5:8201),e.id=ie}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,Z=0){const ie=2&Z,ae=!!(1&Z),de=ae&&!(4&Z),ve=!!(8&Z);this.initFunction(e,ve),this.match(55)&&(ie&&this.raise(_e.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),ae&&(e.id=this.parseFunctionId(de));const be=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(functionFlags(ve,e.generator)),ae||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,ae?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),ae&&!ie&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=be,e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,Z){this.expect(10),this.expressionScope.enter(function newParameterDeclarationScope(){return new ExpressionScope(3)}()),e.params=this.parseBindingList(11,41,2|(Z?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,Z,ie){this.next();const ae=this.state.strict;return this.state.strict=!0,this.parseClassId(e,Z,ie),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,ae),this.finishNode(e,Z?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,Z){this.classScope.enter();const ie={hadConstructor:!1,hadSuperClass:e};let ae=[];const de=this.startNode();if(de.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(ae.length>0)throw this.raise(_e.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){ae.push(this.parseDecorator());continue}const e=this.startNode();ae.length&&(e.decorators=ae,this.resetStartLocationFromNode(e,ae[0]),ae=[]),this.parseClassMember(de,e,ie),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(_e.DecoratorConstructor,e)}}),this.state.strict=Z,this.next(),ae.length)throw this.raise(_e.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(de,"ClassBody")}parseClassMemberFromModifier(e,Z){const ie=this.parseIdentifier(!0);if(this.isClassMethod()){const ae=Z;return ae.kind="method",ae.computed=!1,ae.key=ie,ae.static=!1,this.pushClassMethod(e,ae,!1,!1,!1,!1),!0}if(this.isClassProperty()){const ae=Z;return ae.computed=!1,ae.key=ie,ae.static=!1,e.body.push(this.parseClassProperty(ae)),!0}return this.resetPreviousNodeTrailingComments(ie),!1}parseClassMember(e,Z,ie){const ae=this.isContextual(106);if(ae){if(this.parseClassMemberFromModifier(e,Z))return;if(this.eat(5))return void this.parseClassStaticBlock(e,Z)}this.parseClassMemberWithIsStatic(e,Z,ie,ae)}parseClassMemberWithIsStatic(e,Z,ie,ae){const de=Z,ve=Z,be=Z,Ce=Z,ke=Z,Ie=de,Fe=de;if(Z.static=ae,this.parsePropertyNamePrefixOperator(Z),this.eat(55)){Ie.kind="method";const Z=this.match(139);return this.parseClassElementName(Ie),this.parsePostMemberNameModifiers(Ie),Z?void this.pushClassPrivateMethod(e,ve,!0,!1):(this.isNonstaticConstructor(de)&&this.raise(_e.ConstructorIsGenerator,de.key),void this.pushClassMethod(e,de,!0,!1,!1,!1))}const Oe=!this.state.containsEsc&&tokenIsIdentifier(this.state.type),Be=this.parseClassElementName(Z),Me=Oe?Be.name:null,qe=this.isPrivateName(Be),Ve=this.state.startLoc;if(this.parsePostMemberNameModifiers(Fe),this.isClassMethod()){if(Ie.kind="method",qe)return void this.pushClassPrivateMethod(e,ve,!1,!1);const ae=this.isNonstaticConstructor(de);let be=!1;ae&&(de.kind="constructor",ie.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(_e.DuplicateConstructor,Be),ae&&this.hasPlugin("typescript")&&Z.override&&this.raise(_e.OverrideOnConstructor,Be),ie.hadConstructor=!0,be=ie.hadSuperClass),this.pushClassMethod(e,de,!1,!1,ae,be)}else if(this.isClassProperty())qe?this.pushClassPrivateProperty(e,Ce):this.pushClassProperty(e,be);else if("async"!==Me||this.isLineTerminator())if("get"!==Me&&"set"!==Me||this.match(55)&&this.isLineTerminator())if("accessor"!==Me||this.isLineTerminator())this.isLineTerminator()?qe?this.pushClassPrivateProperty(e,Ce):this.pushClassProperty(e,be):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Be);const Z=this.match(139);this.parseClassElementName(be),this.pushClassAccessorProperty(e,ke,Z)}else{this.resetPreviousNodeTrailingComments(Be),Ie.kind=Me;const Z=this.match(139);this.parseClassElementName(de),Z?this.pushClassPrivateMethod(e,ve,!1,!1):(this.isNonstaticConstructor(de)&&this.raise(_e.ConstructorIsAccessor,de.key),this.pushClassMethod(e,de,!1,!1,!1,!1)),this.checkGetterSetterParams(de)}else{this.resetPreviousNodeTrailingComments(Be);const Z=this.eat(55);Fe.optional&&this.unexpected(Ve),Ie.kind="method";const ie=this.match(139);this.parseClassElementName(Ie),this.parsePostMemberNameModifiers(Fe),ie?this.pushClassPrivateMethod(e,ve,Z,!0):(this.isNonstaticConstructor(de)&&this.raise(_e.ConstructorIsAsync,de.key),this.pushClassMethod(e,de,Z,!0,!1,!1))}}parseClassElementName(e){const{type:Z,value:ie}=this.state;if(132!==Z&&134!==Z||!e.static||"prototype"!==ie||this.raise(_e.StaticPrototype,this.state.startLoc),139===Z){"constructor"===ie&&this.raise(_e.ConstructorClassPrivateField,this.state.startLoc);const Z=this.parsePrivateName();return e.key=Z,Z}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,Z){var ie;this.scope.enter(720);const ae=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const de=Z.body=[];this.parseBlockOrModuleBlockBody(de,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=ae,e.body.push(this.finishNode(Z,"StaticBlock")),null!=(ie=Z.decorators)&&ie.length&&this.raise(_e.DecoratorStaticBlock,Z)}pushClassProperty(e,Z){!Z.computed&&this.nameIsConstructor(Z.key)&&this.raise(_e.ConstructorClassField,Z.key),e.body.push(this.parseClassProperty(Z))}pushClassPrivateProperty(e,Z){const ie=this.parseClassPrivateProperty(Z);e.body.push(ie),this.classScope.declarePrivateName(this.getPrivateNameSV(ie.key),0,ie.key.loc.start)}pushClassAccessorProperty(e,Z,ie){ie||Z.computed||!this.nameIsConstructor(Z.key)||this.raise(_e.ConstructorClassField,Z.key);const ae=this.parseClassAccessorProperty(Z);e.body.push(ae),ie&&this.classScope.declarePrivateName(this.getPrivateNameSV(ae.key),0,ae.key.loc.start)}pushClassMethod(e,Z,ie,ae,de,ve){e.body.push(this.parseMethod(Z,ie,ae,de,ve,"ClassMethod",!0))}pushClassPrivateMethod(e,Z,ie,ae){const de=this.parseMethod(Z,ie,ae,!1,!1,"ClassPrivateMethod",!0);e.body.push(de);const ve="get"===de.kind?de.static?6:2:"set"===de.kind?de.static?5:1:0;this.declareClassPrivateMethodInScope(de,ve)}declareClassPrivateMethodInScope(e,Z){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),Z,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,Z,ie,ae=8331){if(tokenIsIdentifier(this.state.type))e.id=this.parseIdentifier(),Z&&this.declareNameFromIdentifier(e.id,ae);else{if(!ie&&Z)throw this.raise(_e.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,Z){const ie=this.parseMaybeImportPhase(e,!0),ae=this.maybeParseExportDefaultSpecifier(e,ie),de=!ae||this.eat(12),ve=de&&this.eatExportStar(e),be=ve&&this.maybeParseExportNamespaceSpecifier(e),Ce=de&&(!be||this.eat(12)),ke=ae||ve;if(ve&&!be){if(ae&&this.unexpected(),Z)throw this.raise(_e.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const Ie=this.maybeParseExportNamedSpecifiers(e);let Fe;if(ae&&de&&!ve&&!Ie&&this.unexpected(null,5),be&&Ce&&this.unexpected(null,98),ke||Ie){if(Fe=!1,Z)throw this.raise(_e.UnsupportedDecoratorExport,e);this.parseExportFrom(e,ke)}else Fe=this.maybeParseExportDeclaration(e);if(ke||Ie||Fe){var Oe;const ie=e;if(this.checkExport(ie,!0,!1,!!ie.source),"ClassDeclaration"===(null==(Oe=ie.declaration)?void 0:Oe.type))this.maybeTakeDecorators(Z,ie.declaration,ie);else if(Z)throw this.raise(_e.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(ie,"ExportNamedDeclaration")}if(this.eat(65)){const ie=e,ae=this.parseExportDefaultExpression();if(ie.declaration=ae,"ClassDeclaration"===ae.type)this.maybeTakeDecorators(Z,ae,ie);else if(Z)throw this.raise(_e.UnsupportedDecoratorExport,e);return this.checkExport(ie,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(ie,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,Z){if(Z||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==Z?void 0:Z.loc.start);const ie=Z||this.parseIdentifier(!0),ae=this.startNodeAtNode(ie);return ae.exported=ie,e.specifiers=[this.finishNode(ae,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var Z;null!=(Z=e).specifiers||(Z.specifiers=[]);const ie=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),ie.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(ie,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const Z=e;Z.specifiers||(Z.specifiers=[]);const ie="type"===Z.exportKind;return Z.specifiers.push(...this.parseExportSpecifiers(ie)),Z.source=null,this.hasPlugin("importAssertions")?Z.assertions=[]:Z.attributes=[],Z.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(_e.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(_e.UnsupportedDefaultExport,this.state.startLoc);const Z=this.parseMaybeAssignAllowIn();return this.semicolon(),Z}parseExportDeclaration(e){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),Z=this.input.charCodeAt(e);if(123===Z||this.chStartsBindingIdentifier(Z,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const Z=this.nextTokenStart(),ie=this.isUnparsedContextual(Z,"from");if(44===this.input.charCodeAt(Z)||tokenIsIdentifier(this.state.type)&&ie)return!0;if(this.match(65)&&ie){const e=this.input.charCodeAt(this.nextTokenStartSince(Z+4));return 34===e||39===e}return!1}parseExportFrom(e,Z){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):Z&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(_e.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(_e.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,Z,ie,ae){var de;if(Z)if(ie){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var ve;const Z=e.declaration;"Identifier"!==Z.type||"from"!==Z.name||Z.end-Z.start!==4||null!=(ve=Z.extra)&&ve.parenthesized||this.raise(_e.ExportDefaultFromAsIdentifier,Z)}}else if(null!=(de=e.specifiers)&&de.length)for(const Z of e.specifiers){const{exported:e}=Z,ie="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(Z,ie),!ae&&Z.local){const{local:e}=Z;"Identifier"!==e.type?this.raise(_e.ExportBindingIsString,Z,{localName:e.value,exportName:ie}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const Z=e.declaration;if("FunctionDeclaration"===Z.type||"ClassDeclaration"===Z.type){const{id:ie}=Z;if(!ie)throw new Error("Assertion failure");this.checkDuplicateExports(e,ie.name)}else if("VariableDeclaration"===Z.type)for(const e of Z.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const Z of e.properties)this.checkDeclaration(Z);else if("ArrayPattern"===e.type)for(const Z of e.elements)Z&&this.checkDeclaration(Z);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,Z){this.exportedIdentifiers.has(Z)&&("default"===Z?this.raise(_e.DuplicateDefaultExport,e):this.raise(_e.DuplicateExport,e,{exportName:Z})),this.exportedIdentifiers.add(Z)}parseExportSpecifiers(e){const Z=[];let ie=!0;for(this.expect(5);!this.eat(8);){if(ie)ie=!1;else if(this.expect(12),this.eat(8))break;const ae=this.isContextual(130),de=this.match(134),ve=this.startNode();ve.local=this.parseModuleExportName(),Z.push(this.parseExportSpecifier(ve,de,e,ae))}return Z}parseExportSpecifier(e,Z,ie,ae){return this.eatContextual(93)?e.exported=this.parseModuleExportName():Z?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),Z=Tr.exec(e.value);return Z&&this.raise(_e.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:Z[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:Z})=>"json"===Z.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:Z}=e,ie=1===Z.length?Z[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==ie&&this.raise(_e.SourcePhaseImportRequiresDefault,Z[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==ie&&this.raise(_e.DeferImportRequiresNamespace,Z[0].loc.start);else if(e.module){var ae;"ImportDefaultSpecifier"!==ie&&this.raise(_e.ImportReflectionNotBinding,Z[0].loc.start),(null==(ae=e.assertions)?void 0:ae.length)>0&&this.raise(_e.ImportReflectionHasAssertion,Z[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:Z}=e;if(null!=Z){const e=Z.find(e=>{let Z;if("ExportSpecifier"===e.type?Z=e.local:"ImportSpecifier"===e.type&&(Z=e.imported),void 0!==Z)return"Identifier"===Z.type?"default"!==Z.name:"default"!==Z.value});void 0!==e&&this.raise(_e.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,Z,ie,ae){Z||("module"===ie?(this.expectPlugin("importReflection",ae),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===ie?(this.expectPlugin("sourcePhaseImports",ae),e.phase="source"):"defer"===ie?(this.expectPlugin("deferredImportEvaluation",ae),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,Z){if(!this.isPotentialImportPhase(Z))return this.applyImportPhase(e,Z,null),null;const ie=this.startNode(),ae=this.parseIdentifierName(!0),{type:de}=this.state;return(tokenIsKeywordOrIdentifier(de)?98!==de||102===this.lookaheadCharCode():12!==de)?(this.applyImportPhase(e,Z,ae,ie.loc.start),null):(this.applyImportPhase(e,Z,null),this.createIdentifier(ie,ae))}isPrecedingIdImportPhase(e){const{type:Z}=this.state;return tokenIsIdentifier(Z)?98!==Z||102===this.lookaheadCharCode():12!==Z}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,Z){e.specifiers=[];const ie=!this.maybeParseDefaultImportSpecifier(e,Z)||this.eat(12),ae=ie&&this.maybeParseStarImportSpecifier(e);return ie&&!ae&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,Z,ie){Z.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(Z,ie))}finishImportSpecifier(e,Z,ie=8201){return this.checkLVal(e.local,{type:Z},ie),this.finishNode(e,Z)}parseImportAttributes(){this.expect(5);const e=[],Z=new Set;do{if(this.match(8))break;const ie=this.startNode(),ae=this.state.value;if(Z.has(ae)&&this.raise(_e.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:ae}),Z.add(ae),this.match(134)?ie.key=this.parseStringLiteral(ae):ie.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_e.ModuleAttributeInvalidValue,this.state.startLoc);ie.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(ie,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],Z=new Set;do{const ie=this.startNode();if(ie.key=this.parseIdentifier(!0),"type"!==ie.key.name&&this.raise(_e.ModuleAttributeDifferentFromType,ie.key),Z.has(ie.key.name)&&this.raise(_e.ModuleAttributesWithDuplicateKeys,ie.key,{key:ie.key.name}),Z.add(ie.key.name),this.expect(14),!this.match(134))throw this.raise(_e.ModuleAttributeInvalidValue,this.state.startLoc);ie.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(ie,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let Z;var ie=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(Z=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):Z=this.parseImportAttributes(),ie=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(_e.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),Z=this.parseImportAttributes()):Z=[];!ie&&this.hasPlugin("importAssertions")?e.assertions=Z:e.attributes=Z}maybeParseDefaultImportSpecifier(e,Z){if(Z){const ie=this.startNodeAtNode(Z);return ie.local=Z,e.specifiers.push(this.finishImportSpecifier(ie,"ImportDefaultSpecifier")),!0}return!!tokenIsKeywordOrIdentifier(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const Z=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,Z,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let Z=!0;for(this.expect(5);!this.eat(8);){if(Z)Z=!1;else{if(this.eat(14))throw this.raise(_e.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const ie=this.startNode(),ae=this.match(134),de=this.isContextual(130);ie.imported=this.parseModuleExportName();const ve=this.parseImportSpecifier(ie,ae,"type"===e.importKind||"typeof"===e.importKind,de,void 0);e.specifiers.push(ve)}}parseImportSpecifier(e,Z,ie,ae,de){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:ie}=e;if(Z)throw this.raise(_e.ImportBindingIsString,e,{importName:ie.value});this.checkReservedWord(ie.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(ie))}return this.finishImportSpecifier(e,"ImportSpecifier",de)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Parser extends StatementParser{constructor(e,Z,ie){super(e=function getOptions(e){const Z={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};if(null==e)return Z;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const ie of Object.keys(Z))null!=e[ie]&&(Z[ie]=e[ie]);if(1===Z.startLine)null==e.startIndex&&Z.startColumn>0?Z.startIndex=Z.startColumn:null==e.startColumn&&Z.startIndex>0&&(Z.startColumn=Z.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===Z.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return Z}(e),Z),this.options=e,this.initializeScopes(),this.plugins=ie,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let ae=0;e.allowAwaitOutsideFunction&&(ae|=1),e.allowReturnOutsideFunction&&(ae|=2),e.allowImportExportEverywhere&&(ae|=8),e.allowSuperOutsideMethod&&(ae|=16),e.allowUndeclaredExports&&(ae|=64),e.allowNewTargetOutsideFunction&&(ae|=4),e.allowYieldOutsideFunction&&(ae|=32),e.ranges&&(ae|=128),e.tokens&&(ae|=256),e.createImportExpressions&&(ae|=512),e.createParenthesizedExpressions&&(ae|=1024),e.errorRecovery&&(ae|=2048),e.attachComment&&(ae|=4096),e.annexB&&(ae|=8192),this.optionFlags=ae}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode(),Z=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,Z),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const Pr=function generateExportedTokenTypes(e){const Z={};for(const ie of Object.keys(e))Z[ie]=getExportedToken(e[ie]);return Z}(yt);function getParser(e,Z){let ie=Parser;const ae=new Map;if(null!=e&&e.plugins){for(const Z of e.plugins){let e,ie;"string"==typeof Z?e=Z:[e,ie]=Z,ae.has(e)||ae.set(e,ie||{})}!function validatePlugins(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const Z=e.get("decorators").decoratorsBeforeExport;if(null!=Z&&"boolean"!=typeof Z)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const ie=e.get("decorators").allowCallParenthesized;if(null!=ie&&"boolean"!=typeof ie)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var Z;const ae=e.get("pipelineOperator").proposal;if(!pr.includes(ae)){const e=pr.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===ae){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const Z=e.get("pipelineOperator").topicToken;if(!fr.includes(Z)){const e=fr.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}var ie;if("#"===Z&&"hash"===(null==(ie=e.get("recordAndTuple"))?void 0:ie.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===ae&&"hash"===(null==(Z=e.get("recordAndTuple"))?void 0:Z.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){const Z=e.get("recordAndTuple").syntaxType;if(null!=Z){const e=["hash","bar"];if(!e.includes(Z))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(e=>`'${e}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(ae),ie=function getParserClass(e){const Z=[];for(const ie of Er)e.has(ie)&&Z.push(ie);const ie=Z.join("|");let ae=kr.get(ie);if(!ae){ae=Parser;for(const e of Z)ae=br[e](ae);kr.set(ie,ae)}return ae}(ae)}return new ie(e,Z,ae)}const kr=new Map;Z.parse=function parse(e,Z){var ie;if("unambiguous"!==(null==(ie=Z)?void 0:ie.sourceType))return getParser(Z,e).parse();Z=Object.assign({},Z);try{Z.sourceType="module";const ie=getParser(Z,e),ae=ie.parse();if(ie.sawUnambiguousESM)return ae;if(ie.ambiguousScriptDifferentAst)try{return Z.sourceType="script",getParser(Z,e).parse()}catch(e){}else ae.program.sourceType="script";return ae}catch(ie){try{return Z.sourceType="script",getParser(Z,e).parse()}catch(e){}throw ie}},Z.parseExpression=function parseExpression(e,Z){const ie=getParser(Z,e);return ie.options.strictMode&&(ie.state.strict=!0),ie.getExpression()},Z.tokTypes=Pr});unwrapExports(ur);var lr=ur.parse,pr=ur.parseExpression;ur.tokTypes;var fr=",".charCodeAt(0),br=";".charCodeAt(0),Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cr=new Uint8Array(64),Ar=new Uint8Array(128);for(let e=0;e<64;e++){const Z=Er.charCodeAt(e);Cr[e]=Z,Ar[Z]=e}function decodeInteger(e,Z){let ie=0,ae=0,de=0;do{const Z=e.next();de=Ar[Z],ie|=(31&de)<<ae,ae+=5}while(32&de);const ve=1&ie;return ie>>>=1,ve&&(ie=-2147483648|-ie),Z+ie}function encodeInteger(e,Z,ie){let ae=Z-ie;ae=ae<0?-ae<<1|1:ae<<1;do{let Z=31&ae;ae>>>=5,ae>0&&(Z|=32),e.write(Cr[Z])}while(ae>0);return Z}function hasMoreVlq(e,Z){return!(e.pos>=Z)&&e.peek()!==fr}var Tr="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let Z="";for(let ie=0;ie<e.length;ie++)Z+=String.fromCharCode(e[ie]);return Z}},Sr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:Z}=this;Z[this.pos++]=e,16384===this.pos&&(this.out+=Tr.decode(Z),this.pos=0)}flush(){const{buffer:e,out:Z,pos:ie}=this;return ie>0?Z+Tr.decode(e.subarray(0,ie)):Z}},Pr=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:Z,pos:ie}=this,ae=Z.indexOf(e,ie);return-1===ae?Z.length:ae}};function sort(e){e.sort(sortComparator$1)}function sortComparator$1(e,Z){return e[0]-Z[0]}function encode$3(e){const Z=new Sr;let ie=0,ae=0,de=0,ve=0;for(let be=0;be<e.length;be++){const Ce=e[be];if(be>0&&Z.write(br),0===Ce.length)continue;let ke=0;for(let e=0;e<Ce.length;e++){const be=Ce[e];e>0&&Z.write(fr),ke=encodeInteger(Z,be[0],ke),1!==be.length&&(ie=encodeInteger(Z,be[1],ie),ae=encodeInteger(Z,be[2],ae),de=encodeInteger(Z,be[3],de),4!==be.length&&(ve=encodeInteger(Z,be[4],ve)))}}return Z.flush()}const kr=/^[\w+.-]+:\/\//,Ir=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Nr=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsolutePath(e){return e.startsWith("/")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const Z=Ir.exec(e);return makeUrl(Z[1],Z[2]||"",Z[3],Z[4]||"",Z[5]||"/",Z[6]||"",Z[7]||"")}function makeUrl(e,Z,ie,ae,de,ve,be){return{scheme:e,user:Z,host:ie,port:ae,path:de,query:ve,hash:be,type:7}}function parseUrl$2(e){if(function isSchemeRelativeUrl(e){return e.startsWith("//")}(e)){const Z=parseAbsoluteUrl("http:"+e);return Z.scheme="",Z.type=6,Z}if(isAbsolutePath(e)){const Z=parseAbsoluteUrl("http://foo.com"+e);return Z.scheme="",Z.host="",Z.type=5,Z}if(function isFileUrl(e){return e.startsWith("file:")}(e))return function parseFileUrl(e){const Z=Nr.exec(e),ie=Z[2];return makeUrl("file:","",Z[1]||"","",isAbsolutePath(ie)?ie:"/"+ie,Z[3]||"",Z[4]||"")}(e);if(function isAbsoluteUrl(e){return kr.test(e)}(e))return parseAbsoluteUrl(e);const Z=parseAbsoluteUrl("http://foo.com/"+e);return Z.scheme="",Z.host="",Z.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,Z}function normalizePath(e,Z){const ie=Z<=4,ae=e.path.split("/");let de=1,ve=0,be=!1;for(let e=1;e<ae.length;e++){const Z=ae[e];Z?(be=!1,"."!==Z&&(".."!==Z?(ae[de++]=Z,ve++):ve?(be=!0,ve--,de--):ie&&(ae[de++]=Z))):be=!0}let Ce="";for(let e=1;e<de;e++)Ce+="/"+ae[e];(!Ce||be&&!Ce.endsWith("/.."))&&(Ce+="/"),e.path=Ce}function resolve$1(e,Z){if(!e&&!Z)return"";const ie=parseUrl$2(e);let ae=ie.type;if(Z&&7!==ae){const e=parseUrl$2(Z),de=e.type;switch(ae){case 1:ie.hash=e.hash;case 2:ie.query=e.query;case 3:case 4:!function mergePaths(e,Z){normalizePath(Z,Z.type),"/"===e.path?e.path=Z.path:e.path=function stripPathFilename(e){if(e.endsWith("/.."))return e;const Z=e.lastIndexOf("/");return e.slice(0,Z+1)}(Z.path)+e.path}(ie,e);case 5:ie.user=e.user,ie.host=e.host,ie.port=e.port;case 6:ie.scheme=e.scheme}de>ae&&(ae=de)}normalizePath(ie,ae);const de=ie.query+ie.hash;switch(ae){case 2:case 3:return de;case 4:{const ae=ie.path.slice(1);return ae?isRelative(Z||e)&&!isRelative(ae)?"./"+ae+de:ae+de:de||"."}case 5:return ie.path+de;default:return ie.scheme+"//"+ie.user+ie.host+ie.port+ie.path+de}}function nextUnsortedSegmentLine(e,Z){for(let ie=Z;ie<e.length;ie++)if(!isSorted(e[ie]))return ie;return e.length}function isSorted(e){for(let Z=1;Z<e.length;Z++)if(e[Z][0]<e[Z-1][0])return!1;return!0}function sortSegments(e,Z){return Z||(e=e.slice()),e.sort(sortComparator)}function sortComparator(e,Z){return e[0]-Z[0]}var Or=!1;function upperBound(e,Z,ie){for(let ae=ie+1;ae<e.length&&e[ae][0]===Z;ie=ae++);return ie}function lowerBound(e,Z,ie){for(let ae=ie-1;ae>=0&&e[ae][0]===Z;ie=ae--);return ie}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,Z,ie,ae){const{lastKey:de,lastNeedle:ve,lastIndex:be}=ie;let Ce=0,ke=e.length-1;if(ae===de){if(Z===ve)return Or=-1!==be&&e[be][0]===Z,be;Z>=ve?Ce=-1===be?0:be:ke=be}return ie.lastKey=ae,ie.lastNeedle=Z,ie.lastIndex=function binarySearch$1(e,Z,ie,ae){for(;ie<=ae;){const de=ie+(ae-ie>>1),ve=e[de][0]-Z;if(0===ve)return Or=!0,de;ve<0?ie=de+1:ae=de-1}return Or=!1,ie-1}(e,Z,Ce,ke)}function insert$1(e,Z,ie){for(let ie=e.length;ie>Z;ie--)e[ie]=e[ie-1];e[Z]=ie}function buildNullArray(){return{__proto__:null}}function parse$3(e){return"string"==typeof e?JSON.parse(e):e}var FlattenMap=function(e,Z){const ie=parse$3(e);if(!("sections"in ie))return new jr(ie,Z);const ae=[],de=[],ve=[],be=[],Ce=[];recurse(ie,Z,ae,de,ve,be,Ce,0,0,1/0,1/0);return presortedDecodedMap({version:3,file:ie.file,names:be,sources:de,sourcesContent:ve,mappings:ae,ignoreList:Ce})};function recurse(e,Z,ie,ae,de,ve,be,Ce,ke,Ie,_e){const{sections:Fe}=e;for(let e=0;e<Fe.length;e++){const{map:Oe,offset:Be}=Fe[e];let Me=Ie,qe=_e;if(e+1<Fe.length){const Z=Fe[e+1].offset;Me=Math.min(Ie,Ce+Z.line),Me===Ie?qe=Math.min(_e,ke+Z.column):Me<Ie&&(qe=ke+Z.column)}addSection(Oe,Z,ie,ae,de,ve,be,Ce+Be.line,ke+Be.column,Me,qe)}}function addSection(e,Z,ie,ae,de,ve,be,Ce,ke,Ie,_e){const Fe=parse$3(e);if("sections"in Fe)return recurse(...arguments);const Oe=new jr(Fe,Z),Be=ae.length,Me=ve.length,qe=decodedMappings(Oe),{resolvedSources:Ve,sourcesContent:Ze,ignoreList:et}=Oe;if(append(ae,Ve),append(ve,Oe.names),Ze)append(de,Ze);else for(let e=0;e<Ve.length;e++)de.push(null);if(et)for(let e=0;e<et.length;e++)be.push(et[e]+Be);for(let e=0;e<qe.length;e++){const Z=Ce+e;if(Z>Ie)return;const ae=getLine(ie,Z),de=0===e?ke:0,ve=qe[e];for(let e=0;e<ve.length;e++){const ie=ve[e],be=de+ie[0];if(Z===Ie&&be>=_e)return;if(1===ie.length){ae.push([be]);continue}const Ce=Be+ie[1],ke=ie[2],Fe=ie[3];ae.push(4===ie.length?[be,Ce,ke,Fe]:[be,Ce,ke,Fe,Me+ie[4]])}}}function append(e,Z){for(let ie=0;ie<Z.length;ie++)e.push(Z[ie])}function getLine(e,Z){for(let ie=e.length;ie<=Z;ie++)e[ie]=[];return e[Z]}var Br="`line` must be greater than 0 (lines start at line 1)",Mr="`column` must be greater than or equal to 0 (columns start at column 0)",jr=class{constructor(e,Z){const ie="string"==typeof e;if(!ie&&e._decodedMemo)return e;const ae=parse$3(e),{version:de,file:ve,names:be,sourceRoot:Ce,sources:ke,sourcesContent:Ie}=ae;this.version=de,this.file=ve,this.names=be||[],this.sourceRoot=Ce,this.sources=ke,this.sourcesContent=Ie,this.ignoreList=ae.ignoreList||ae.x_google_ignoreList||void 0;const _e=function resolver(e,Z){const ie=function stripFilename(e){if(!e)return"";const Z=e.lastIndexOf("/");return e.slice(0,Z+1)}(e),ae=Z?Z+"/":"";return e=>resolve$1(ae+(e||""),ie)}(Z,Ce);this.resolvedSources=ke.map(_e);const{mappings:Fe}=ae;if("string"==typeof Fe)this._encoded=Fe,this._decoded=void 0;else{if(!Array.isArray(Fe))throw ae.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(ae)}`);this._encoded=void 0,this._decoded=function maybeSort(e,Z){const ie=nextUnsortedSegmentLine(e,0);if(ie===e.length)return e;Z||(e=e.slice());for(let ae=ie;ae<e.length;ae=nextUnsortedSegmentLine(e,ae+1))e[ae]=sortSegments(e[ae],Z);return e}(Fe,ie)}this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function encodedMappings(e){var Z,ie;return null!=(ie=(Z=e)._encoded)?ie:Z._encoded=encode$3(e._decoded)}function decodedMappings(e){var Z;return(Z=e)._decoded||(Z._decoded=function decode$3(e){const{length:Z}=e,ie=new Pr(e),ae=[];let de=0,ve=0,be=0,Ce=0,ke=0;do{const e=ie.indexOf(";"),Z=[];let Ie=!0,_e=0;for(de=0;ie.pos<e;){let ae;de=decodeInteger(ie,de),de<_e&&(Ie=!1),_e=de,hasMoreVlq(ie,e)?(ve=decodeInteger(ie,ve),be=decodeInteger(ie,be),Ce=decodeInteger(ie,Ce),hasMoreVlq(ie,e)?(ke=decodeInteger(ie,ke),ae=[de,ve,be,Ce,ke]):ae=[de,ve,be,Ce]):ae=[de],Z.push(ae),ie.pos++}Ie||sort(Z),ae.push(Z),ie.pos=e+1}while(ie.pos<=Z);return ae}(e._encoded))}function sourceIndex(e,Z){const{sources:ie,resolvedSources:ae}=e;let de=ie.indexOf(Z);return-1===de&&(de=ae.indexOf(Z)),de}function presortedDecodedMap(e,Z){const ie=new jr(clone$1(e,[]),Z);return ie._decoded=e.mappings,ie}function clone$1(e,Z){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:Z,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,Z,ie,ae){return{source:e,line:Z,column:ie,name:ae}}function GMapping(e,Z){return{line:e,column:Z}}function traceSegmentInternal(e,Z,ie,ae,de){let ve=memoizedBinarySearch(e,ae,Z,ie);return Or?ve=(-1===de?upperBound:lowerBound)(e,ae,ve):-1===de&&ve++,-1===ve||ve===e.length?-1:ve}function generatedPosition(e,Z,ie,ae,de,ve){var be;if(--ie<0)throw new Error(Br);if(ae<0)throw new Error(Mr);const{sources:Ce,resolvedSources:ke}=e;let Ie=Ce.indexOf(Z);if(-1===Ie&&(Ie=ke.indexOf(Z)),-1===Ie)return ve?[]:GMapping(null,null);const _e=(be=e)._bySources||(be._bySources=function buildBySources(e,Z){const ie=Z.map(buildNullArray);for(let ae=0;ae<e.length;ae++){const de=e[ae];for(let e=0;e<de.length;e++){const ve=de[e];if(1===ve.length)continue;const be=ve[1],Ce=ve[2],ke=ve[3],Ie=ie[be],_e=Ie[Ce]||(Ie[Ce]=[]),Fe=Z[be];let Oe=upperBound(_e,ke,memoizedBinarySearch(_e,ke,Fe,Ce));Fe.lastIndex=++Oe,insert$1(_e,Oe,[ke,ae,ve[0]])}}return ie}(decodedMappings(e),e._bySourceMemos=Ce.map(memoizedState))),Fe=_e[Ie][ie];if(null==Fe)return ve?[]:GMapping(null,null);const Oe=e._bySourceMemos[Ie];if(ve)return function sliceGeneratedPositions(e,Z,ie,ae,de){let ve=traceSegmentInternal(e,Z,ie,ae,1);if(Or||-1!==de||ve++,-1===ve||ve===e.length)return[];const be=Or?ae:e[ve][0];Or||(ve=lowerBound(e,be,ve));const Ce=upperBound(e,be,ve),ke=[];for(;ve<=Ce;ve++){const Z=e[ve];ke.push(GMapping(Z[1]+1,Z[2]))}return ke}(Fe,Oe,ie,ae,de);const Be=traceSegmentInternal(Fe,Oe,ie,ae,de);if(-1===Be)return GMapping(null,null);const Me=Fe[Be];return GMapping(Me[1]+1,Me[2])}var Rr=Object.freeze({__proto__:null,AnyMap:FlattenMap,FlattenMap:FlattenMap,GREATEST_LOWER_BOUND:1,LEAST_UPPER_BOUND:-1,TraceMap:jr,allGeneratedPositionsFor:function allGeneratedPositionsFor(e,Z){const{source:ie,line:ae,column:de,bias:ve}=Z;return generatedPosition(e,ie,ae,de,ve||-1,!0)},decodedMap:function decodedMap(e){return clone$1(e,decodedMappings(e))},decodedMappings:decodedMappings,eachMapping:function eachMapping(e,Z){const ie=decodedMappings(e),{names:ae,resolvedSources:de}=e;for(let e=0;e<ie.length;e++){const ve=ie[e];for(let ie=0;ie<ve.length;ie++){const be=ve[ie],Ce=e+1,ke=be[0];let Ie=null,_e=null,Fe=null,Oe=null;1!==be.length&&(Ie=de[be[1]],_e=be[2]+1,Fe=be[3]),5===be.length&&(Oe=ae[be[4]]),Z({generatedLine:Ce,generatedColumn:ke,source:Ie,originalLine:_e,originalColumn:Fe,name:Oe})}}},encodedMap:function encodedMap(e){return clone$1(e,encodedMappings(e))},encodedMappings:encodedMappings,generatedPositionFor:function generatedPositionFor(e,Z){const{source:ie,line:ae,column:de,bias:ve}=Z;return generatedPosition(e,ie,ae,de,ve||1,!1)},isIgnored:function isIgnored(e,Z){const{ignoreList:ie}=e;if(null==ie)return!1;const ae=sourceIndex(e,Z);return-1!==ae&&ie.includes(ae)},originalPositionFor:function originalPositionFor(e,Z){let{line:ie,column:ae,bias:de}=Z;if(ie--,ie<0)throw new Error(Br);if(ae<0)throw new Error(Mr);const ve=decodedMappings(e);if(ie>=ve.length)return OMapping(null,null,null,null);const be=ve[ie],Ce=traceSegmentInternal(be,e._decodedMemo,ie,ae,de||1);if(-1===Ce)return OMapping(null,null,null,null);const ke=be[Ce];if(1===ke.length)return OMapping(null,null,null,null);const{names:Ie,resolvedSources:_e}=e;return OMapping(_e[ke[1]],ke[2]+1,ke[3],5===ke.length?Ie[ke[4]]:null)},presortedDecodedMap:presortedDecodedMap,sourceContentFor:function sourceContentFor(e,Z){const{sourcesContent:ie}=e;if(null==ie)return null;const ae=sourceIndex(e,Z);return-1===ae?null:ie[ae]},traceSegment:function traceSegment(e,Z,ie){const ae=decodedMappings(e);if(Z>=ae.length)return null;const de=ae[Z],ve=traceSegmentInternal(de,e._decodedMemo,Z,ie,1);return-1===ve?null:de[ve]}}),Gr=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function get$1(e,Z){return e._indexes[Z]}function put(e,Z){const ie=get$1(e,Z);if(void 0!==ie)return ie;const{array:ae,_indexes:de}=e,ve=ae.push(Z);return de[Z]=ve-1}var Wr=class{constructor({file:e,sourceRoot:Z}={}){this._names=new Gr,this._sources=new Gr,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=Z,this._ignoreList=new Gr}};function toDecodedMap(e){const{_mappings:Z,_sources:ie,_sourcesContent:ae,_names:de,_ignoreList:ve}=e;return function removeEmptyFinalLines(e){const{length:Z}=e;let ie=Z;for(let Z=ie-1;Z>=0&&!(e[Z].length>0);ie=Z,Z--);ie<Z&&(e.length=ie)}(Z),{version:3,file:e.file||void 0,names:de.array,sourceRoot:e.sourceRoot||void 0,sources:ie.array,sourcesContent:ae,mappings:Z,ignoreList:ve.array}}function addSegmentInternal(e,Z,ie,ae,de,ve,be,Ce,ke){const{_mappings:Ie,_sources:_e,_sourcesContent:Fe,_names:Oe}=Z,Be=function getIndex(e,Z){for(let ie=e.length;ie<=Z;ie++)e[ie]=[];return e[Z]}(Ie,ie),Me=function getColumnIndex(e,Z){let ie=e.length;for(let ae=ie-1;ae>=0;ie=ae--){if(Z>=e[ae][0])break}return ie}(Be,ae);if(!de){if(e&&function skipSourceless(e,Z){if(0===Z)return!0;const ie=e[Z-1];return 1===ie.length}(Be,Me))return;return insert(Be,Me,[ae])}const qe=put(_e,de),Ve=Ce?put(Oe,Ce):-1;if(qe===Fe.length&&(Fe[qe]=null!=ke?ke:null),!e||!function skipSource(e,Z,ie,ae,de,ve){if(0===Z)return!1;const be=e[Z-1];return 1!==be.length&&(ie===be[1]&&ae===be[2]&&de===be[3]&&ve===(5===be.length?be[4]:-1))}(Be,Me,qe,ve,be,Ve))return insert(Be,Me,Ce?[ae,qe,ve,be,Ve]:[ae,qe,ve,be])}function insert(e,Z,ie){for(let ie=e.length;ie>Z;ie--)e[ie]=e[ie-1];e[Z]=ie}function putAll(e,Z){for(let ie=0;ie<Z.length;ie++)put(e,Z[ie])}function addMappingInternal(e,Z,ie){const{generated:ae,source:de,original:ve,name:be,content:Ce}=ie;return de?addSegmentInternal(e,Z,ae.line-1,ae.column,de,ve.line-1,ve.column,be,Ce):addSegmentInternal(e,Z,ae.line-1,ae.column,null,null,null,null,null)}var Jr=Object.freeze({__proto__:null,GenMapping:Wr,addMapping:function addMapping(e,Z){return addMappingInternal(!1,e,Z)},addSegment:function addSegment(e,Z,ie,ae,de,ve,be,Ce){return addSegmentInternal(!1,e,Z,ie,ae,de,ve,be,Ce)},allMappings:function allMappings(e){const Z=[],{_mappings:ie,_sources:ae,_names:de}=e;for(let e=0;e<ie.length;e++){const ve=ie[e];for(let ie=0;ie<ve.length;ie++){const be=ve[ie],Ce={line:e+1,column:be[0]};let ke,Ie,_e;1!==be.length&&(ke=ae.array[be[1]],Ie={line:be[2]+1,column:be[3]},5===be.length&&(_e=de.array[be[4]])),Z.push({generated:Ce,source:ke,original:Ie,name:_e})}}return Z},fromMap:function fromMap(e){const Z=new jr(e),ie=new Wr({file:Z.file,sourceRoot:Z.sourceRoot});return putAll(ie._names,Z.names),putAll(ie._sources,Z.sources),ie._sourcesContent=Z.sourcesContent||Z.sources.map(()=>null),ie._mappings=decodedMappings(Z),Z.ignoreList&&putAll(ie._ignoreList,Z.ignoreList),ie},maybeAddMapping:(e,Z)=>addMappingInternal(!0,e,Z),maybeAddSegment:(e,Z,ie,ae,de,ve,be,Ce)=>addSegmentInternal(!0,e,Z,ie,ae,de,ve,be,Ce),setIgnore:function setIgnore(e,Z,ie=!0){const{_sources:ae,_sourcesContent:de,_ignoreList:ve}=e,be=put(ae,Z);be===de.length&&(de[be]=null),ie?put(ve,be):function remove(e,Z){const ie=get$1(e,Z);if(void 0===ie)return;const{array:ae,_indexes:de}=e;for(let e=ie+1;e<ae.length;e++){const Z=ae[e];ae[e-1]=Z,de[Z]--}de[Z]=void 0,ae.pop()}(ve,be)},setSourceContent:function setSourceContent(e,Z,ie){const{_sources:ae,_sourcesContent:de}=e;de[put(ae,Z)]=ie},toDecodedMap:toDecodedMap,toEncodedMap:function toEncodedMap(e){const Z=toDecodedMap(e);return Object.assign({},Z,{mappings:encode$3(Z.mappings)})}}),Kr=getCjsExportFromNamespace(Jr),Xr=getCjsExportFromNamespace(Rr),Yr=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;Z.default=class SourceMap{constructor(e,Z){var ie;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const ae=this._map=new Kr.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(ie=e.sourceFileName)?void 0:ie.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new Xr.TraceMap(e.inputSourceMap);const Z=this._inputMap.resolvedSources;if(Z.length)for(let e=0;e<Z.length;e++){var de;(0,Kr.setSourceContent)(ae,Z[e],null==(de=this._inputMap.sourcesContent)?void 0:de[e])}}if("string"!=typeof Z||e.inputSourceMap){if("object"==typeof Z)for(const e of Object.keys(Z))(0,Kr.setSourceContent)(ae,e.replace(/\\/g,"/"),Z[e])}else(0,Kr.setSourceContent)(ae,this._sourceFileName,Z)}get(){return(0,Kr.toEncodedMap)(this._map)}getDecoded(){return(0,Kr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Kr.allMappings)(this._map))}mark(e,Z,ie,ae,de,ve){var be;let Ce;if(this._rawMappings=void 0,null!=Z)if(this._inputMap){if(Ce=(0,Xr.originalPositionFor)(this._inputMap,{line:Z,column:ie}),!Ce.name&&de){const e=(0,Xr.originalPositionFor)(this._inputMap,de);e.name&&(ae=e.name)}}else Ce={source:(null==ve?void 0:ve.replace(/\\/g,"/"))||this._sourceFileName,line:Z,column:ie};(0,Kr.maybeAddMapping)(this._map,{name:ae,generated:e,source:null==(be=Ce)?void 0:be.source,original:Ce})}}});unwrapExports(Yr);var Zr=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;Z.default=class Buffer{constructor(e,Z){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=Z;for(let e=0;e<64;e++)this._fastIndentations.push(Z.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let Z=0;Z<16;Z++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,Z,ie,ae,de){const ve=this._queueCursor;ve===this._queue.length&&this._allocQueue();const be=this._queue[ve];be.char=e,be.repeat=Z,be.line=ie,be.column=ae,be.filename=de,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,Z={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const ie=e?e.get():null;return Z.map=ie,ie},set map(e){Object.defineProperty(Z,"map",{value:e,writable:!0})},get rawMappings(){const ie=null==e?void 0:e.getRawMappings();return Z.rawMappings=ie,ie},set rawMappings(e){Object.defineProperty(Z,"rawMappings",{value:e,writable:!0})}};return Z}append(e,Z){this._flush(),this._append(e,this._sourcePosition,Z)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const Z=this._sourcePosition;this._pushQueue(e,1,Z.line,Z.column,Z.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,Z=this._queue;for(let ie=0;ie<e;ie++){const e=Z[ie];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,Z,ie){if(this._last=e,-1===e){const e=this._fastIndentations[Z];this._str+=void 0!==e?e:Z>1?this._indentChar.repeat(Z):this._indentChar}else this._str+=Z>1?String.fromCharCode(e).repeat(Z):String.fromCharCode(e);10!==e?(this._mark(ie.line,ie.column,ie.identifierName,ie.identifierNamePos,ie.filename),this._position.column+=Z):(this._position.line++,this._position.column=0),this._canMarkIdName&&(ie.identifierName=void 0,ie.identifierNamePos=void 0)}_append(e,Z,ie){const ae=e.length,de=this._position;if(this._last=e.charCodeAt(ae-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!ie&&!this._map)return void(de.column+=ae);const{column:ve,identifierName:be,identifierNamePos:Ce,filename:ke}=Z;let Ie=Z.line;null==be&&null==Ce||!this._canMarkIdName||(Z.identifierName=void 0,Z.identifierNamePos=void 0);let _e=e.indexOf("\n"),Fe=0;for(0!==_e&&this._mark(Ie,ve,be,Ce,ke);-1!==_e;)de.line++,de.column=0,Fe=_e+1,Fe<ae&&void 0!==Ie&&this._mark(++Ie,0,null,null,ke),_e=e.indexOf("\n",Fe);de.column+=ae-Fe}_mark(e,Z,ie,ae,de){var ve;null==(ve=this._map)||ve.mark(this._position,e,Z,ie,ae,de)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let Z=0;if(0===e)return 10===this._last?1:0;for(let ie=e-1;ie>=0&&10===this._queue[ie].char;ie--)Z++;return Z===e&&10===this._last?Z+1:Z}endsWithCharAndNewline(){const e=this._queue,Z=this._queueCursor;if(0!==Z){if(10!==e[Z-1].char)return;return Z>1?e[Z-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,Z){if(!this._map)return void Z();this.source("start",e);const ie=e.identifierName,ae=this._sourcePosition;ie&&(this._canMarkIdName=!1,ae.identifierName=ie),Z(),ie&&(this._canMarkIdName=!0,ae.identifierName=void 0,ae.identifierNamePos=void 0),this.source("end",e)}source(e,Z){this._map&&this._normalizePosition(e,Z,0)}sourceWithOffset(e,Z,ie){this._map&&this._normalizePosition(e,Z,ie)}_normalizePosition(e,Z,ie){const ae=Z[e],de=this._sourcePosition;ae&&(de.line=ae.line,de.column=Math.max(ae.column+ie,0),de.filename=Z.filename)}getCurrentColumn(){const e=this._queue,Z=this._queueCursor;let ie=-1,ae=0;for(let de=0;de<Z;de++){const Z=e[de];10===Z.char&&(ie=ae),ae+=Z.repeat}return-1===ie?this._position.column+ae:ae-1-ie}getCurrentLine(){let e=0;const Z=this._queue;for(let ie=0;ie<this._queueCursor;ie++)10===Z[ie].char&&e++;return this._position.line+e}}});unwrapExports(Zr);var Qr=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.nodes=void 0;const{FLIPPED_ALIAS_KEYS:ie,isArrayExpression:ae,isAssignmentExpression:de,isBinary:ve,isBlockStatement:be,isCallExpression:Ce,isFunction:ke,isIdentifier:Ie,isLiteral:_e,isMemberExpression:Fe,isObjectExpression:Oe,isOptionalCallExpression:Be,isOptionalMemberExpression:Me,isStringLiteral:qe}=Dt.default;function crawlInternal(e,Z){return e?(Fe(e)||Me(e)?(crawlInternal(e.object,Z),e.computed&&crawlInternal(e.property,Z)):ve(e)||de(e)?(crawlInternal(e.left,Z),crawlInternal(e.right,Z)):Ce(e)||Be(e)?(Z.hasCall=!0,crawlInternal(e.callee,Z)):ke(e)?Z.hasFunction=!0:Ie(e)&&(Z.hasHelper=Z.hasHelper||e.callee&&isHelper(e.callee)),Z):Z}function crawl(e){return crawlInternal(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function isHelper(e){return!!e&&(Fe(e)?isHelper(e.object)||isHelper(e.property):Ie(e)?"require"===e.name||95===e.name.charCodeAt(0):Ce(e)?isHelper(e.callee):!(!ve(e)&&!de(e))&&(Ie(e.left)&&isHelper(e.left)||isHelper(e.right)))}function isType(e){return _e(e)||Oe(e)||ae(e)||Ie(e)||Fe(e)}const Ve=Z.nodes={AssignmentExpression(e){const Z=crawl(e.right);if(Z.hasCall&&Z.hasHelper||Z.hasFunction)return Z.hasFunction?3:2},SwitchCase:(e,Z)=>(e.consequent.length||Z.cases[0]===e?1:0)|(e.consequent.length||Z.cases[Z.cases.length-1]!==e?0:2),LogicalExpression(e){if(ke(e.left)||ke(e.right))return 2},Literal(e){if(qe(e)&&"use strict"===e.value)return 2},CallExpression(e){if(ke(e.callee)||isHelper(e))return 3},OptionalCallExpression(e){if(ke(e.callee))return 3},VariableDeclaration(e){for(let Z=0;Z<e.declarations.length;Z++){const ie=e.declarations[Z];let ae=isHelper(ie.id)&&!isType(ie.init);if(!ae&&ie.init){const e=crawl(ie.init);ae=isHelper(ie.init)&&e.hasCall||e.hasFunction}if(ae)return 3}},IfStatement(e){if(be(e.consequent))return 3}};Ve.ObjectProperty=Ve.ObjectTypeProperty=Ve.ObjectMethod=function(e,Z){if(Z.properties[0]===e)return 1},Ve.ObjectTypeCallProperty=function(e,Z){var ie;if(Z.callProperties[0]===e&&(null==(ie=Z.properties)||!ie.length))return 1},Ve.ObjectTypeIndexer=function(e,Z){var ie,ae;if(!(Z.indexers[0]!==e||null!=(ie=Z.properties)&&ie.length||null!=(ae=Z.callProperties)&&ae.length))return 1},Ve.ObjectTypeInternalSlot=function(e,Z){var ie,ae,de;if(!(Z.internalSlots[0]!==e||null!=(ie=Z.properties)&&ie.length||null!=(ae=Z.callProperties)&&ae.length||null!=(de=Z.indexers)&&de.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,Z]){[e].concat(ie[e]||[]).forEach(function(e){const ie=Z?3:0;Ve[e]=()=>ie})})});unwrapExports(Qr),Qr.nodes;var tn=nn,rn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.AssignmentExpression=function AssignmentExpression(e,Z,ie){return!(!needsParenBeforeExpressionBrace(ie)||!ke(e.left))||ConditionalExpression(e,Z)},Z.Binary=Binary,Z.BinaryExpression=function BinaryExpression(e,Z,ie){return"in"===e.operator&&Boolean(ie&tn.TokenContext.forInOrInitHeadAccumulate)},Z.ClassExpression=function ClassExpression(e,Z,ie){return Boolean(ie&(tn.TokenContext.expressionStatement|tn.TokenContext.exportDefault))},Z.ArrowFunctionExpression=Z.ConditionalExpression=ConditionalExpression,Z.DoExpression=function DoExpression(e,Z,ie){return!e.async&&Boolean(ie&tn.TokenContext.expressionStatement)},Z.FunctionExpression=function FunctionExpression(e,Z,ie){return Boolean(ie&(tn.TokenContext.expressionStatement|tn.TokenContext.exportDefault))},Z.FunctionTypeAnnotation=function FunctionTypeAnnotation(e,Z,ie){const ae=Z.type;return"UnionTypeAnnotation"===ae||"IntersectionTypeAnnotation"===ae||"ArrayTypeAnnotation"===ae||Boolean(ie&tn.TokenContext.arrowFlowReturnType)},Z.Identifier=function Identifier(e,Z,ie,ae){var de;const be=Z.type;if(null!=(de=e.extra)&&de.parenthesized&&"AssignmentExpression"===be&&Z.left===e){const e=Z.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==Z.right.id)return!0}if(ae&&ae(e)!==e.name)return!1;if("let"===e.name){return!!((Ce(Z,{object:e,computed:!0})||Ie(Z,{object:e,computed:!0,optional:!1}))&&ie&(tn.TokenContext.expressionStatement|tn.TokenContext.forInitHead|tn.TokenContext.forInHead))||Boolean(ie&tn.TokenContext.forOfHead)}return"async"===e.name&&ve(Z,{left:e,await:!1})},Z.LogicalExpression=function LogicalExpression(e,Z){const ie=Z.type;if(isTSTypeExpression(ie))return!0;if("LogicalExpression"!==ie)return!1;switch(e.operator){case"||":return"??"===Z.operator||"&&"===Z.operator;case"&&":return"??"===Z.operator;case"??":return"??"!==Z.operator}},Z.NullableTypeAnnotation=function NullableTypeAnnotation(e,Z){return ie(Z)},Z.ObjectExpression=function ObjectExpression(e,Z,ie){return needsParenBeforeExpressionBrace(ie)},Z.OptionalIndexedAccessType=function OptionalIndexedAccessType(e,Z){return be(Z)&&Z.objectType===e},Z.OptionalCallExpression=Z.OptionalMemberExpression=function OptionalMemberExpression(e,Z){return de(Z)&&Z.callee===e||Ce(Z)&&Z.object===e},Z.SequenceExpression=function SequenceExpression(e,Z){const ie=Z.type;if("SequenceExpression"===ie||"ParenthesizedExpression"===ie||"MemberExpression"===ie&&Z.property===e||"OptionalMemberExpression"===ie&&Z.property===e||"TemplateLiteral"===ie)return!1;if("ClassDeclaration"===ie)return!0;if("ForOfStatement"===ie)return Z.right===e;if("ExportDefaultDeclaration"===ie)return!0;return!Fe(Z)},Z.TSSatisfiesExpression=Z.TSAsExpression=function TSAsExpression(e,Z){if(("AssignmentExpression"===Z.type||"AssignmentPattern"===Z.type)&&Z.left===e)return!0;if("BinaryExpression"===Z.type&&("|"===Z.operator||"&"===Z.operator)&&e===Z.left)return!0;return Binary(e,Z)},Z.TSConditionalType=function TSConditionalType(e,Z){const ie=Z.type;if("TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie||"TSTypeOperator"===ie||"TSTypeParameter"===ie)return!0;if(("TSIntersectionType"===ie||"TSUnionType"===ie)&&Z.types[0]===e)return!0;if("TSConditionalType"===ie&&(Z.checkType===e||Z.extendsType===e))return!0;return!1},Z.TSConstructorType=Z.TSFunctionType=function TSFunctionType(e,Z){const ie=Z.type;return"TSIntersectionType"===ie||"TSUnionType"===ie||"TSTypeOperator"===ie||"TSOptionalType"===ie||"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSConditionalType"===ie&&(Z.checkType===e||Z.extendsType===e)},Z.TSInferType=function TSInferType(e,Z){const ie=Z.type;if("TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie)return!0;if(e.typeParameter.constraint&&("TSIntersectionType"===ie||"TSUnionType"===ie)&&Z.types[0]===e)return!0;return!1},Z.TSInstantiationExpression=function TSInstantiationExpression(e,Z){const ie=Z.type;return("CallExpression"===ie||"OptionalCallExpression"===ie||"NewExpression"===ie||"TSInstantiationExpression"===ie)&&!!Z.typeParameters},Z.TSIntersectionType=function TSIntersectionType(e,Z){const ie=Z.type;return"TSTypeOperator"===ie||"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie},Z.UnaryLike=Z.TSTypeAssertion=UnaryLike,Z.TSTypeOperator=function TSTypeOperator(e,Z){const ie=Z.type;return"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie},Z.TSUnionType=function TSUnionType(e,Z){const ie=Z.type;return"TSIntersectionType"===ie||"TSTypeOperator"===ie||"TSArrayType"===ie||"TSIndexedAccessType"===ie&&Z.objectType===e||"TSOptionalType"===ie},Z.IntersectionTypeAnnotation=Z.UnionTypeAnnotation=function UnionTypeAnnotation(e,Z){const ie=Z.type;return"ArrayTypeAnnotation"===ie||"NullableTypeAnnotation"===ie||"IntersectionTypeAnnotation"===ie||"UnionTypeAnnotation"===ie},Z.UpdateExpression=function UpdateExpression(e,Z){return hasPostfixPart(e,Z)||isClassExtendsClause(e,Z)},Z.AwaitExpression=Z.YieldExpression=function YieldExpression(e,Z){const ie=Z.type;return"BinaryExpression"===ie||"LogicalExpression"===ie||"UnaryExpression"===ie||"SpreadElement"===ie||hasPostfixPart(e,Z)||"AwaitExpression"===ie&&_e(e)||"ConditionalExpression"===ie&&e===Z.test||isClassExtendsClause(e,Z)||isTSTypeExpression(ie)};const{isArrayTypeAnnotation:ie,isBinaryExpression:ae,isCallExpression:de,isForOfStatement:ve,isIndexedAccessType:be,isMemberExpression:Ce,isObjectPattern:ke,isOptionalMemberExpression:Ie,isYieldExpression:_e,isStatement:Fe}=Dt.default,Oe=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function getBinaryPrecedence(e,Z){return"BinaryExpression"===Z||"LogicalExpression"===Z?Oe.get(e.operator):"TSAsExpression"===Z||"TSSatisfiesExpression"===Z?Oe.get("in"):void 0}function isTSTypeExpression(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const isClassExtendsClause=(e,Z)=>{const ie=Z.type;return("ClassDeclaration"===ie||"ClassExpression"===ie)&&Z.superClass===e},hasPostfixPart=(e,Z)=>{const ie=Z.type;return("MemberExpression"===ie||"OptionalMemberExpression"===ie)&&Z.object===e||("CallExpression"===ie||"OptionalCallExpression"===ie||"NewExpression"===ie)&&Z.callee===e||"TaggedTemplateExpression"===ie&&Z.tag===e||"TSNonNullExpression"===ie};function needsParenBeforeExpressionBrace(e){return Boolean(e&(tn.TokenContext.expressionStatement|tn.TokenContext.arrowBody))}function Binary(e,Z){const ie=Z.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===ie&&"**"===Z.operator)return Z.left===e;if(isClassExtendsClause(e,Z))return!0;if(hasPostfixPart(e,Z)||"UnaryExpression"===ie||"SpreadElement"===ie||"AwaitExpression"===ie)return!0;const ae=getBinaryPrecedence(Z,ie);if(null!=ae){const de=getBinaryPrecedence(e,e.type);if(ae===de&&"BinaryExpression"===ie&&Z.right===e||ae>de)return!0}}function UnaryLike(e,Z){return hasPostfixPart(e,Z)||ae(Z)&&"**"===Z.operator&&Z.left===e||isClassExtendsClause(e,Z)}function ConditionalExpression(e,Z){const ie=Z.type;return!!("UnaryExpression"===ie||"SpreadElement"===ie||"BinaryExpression"===ie||"LogicalExpression"===ie||"ConditionalExpression"===ie&&Z.test===e||"AwaitExpression"===ie||isTSTypeExpression(ie))||UnaryLike(e,Z)}});unwrapExports(rn),rn.AssignmentExpression,rn.Binary,rn.BinaryExpression,rn.ClassExpression,rn.ArrowFunctionExpression,rn.ConditionalExpression,rn.DoExpression,rn.FunctionExpression,rn.FunctionTypeAnnotation,rn.Identifier,rn.LogicalExpression,rn.NullableTypeAnnotation,rn.ObjectExpression,rn.OptionalIndexedAccessType,rn.OptionalCallExpression,rn.OptionalMemberExpression,rn.SequenceExpression,rn.TSSatisfiesExpression,rn.TSAsExpression,rn.TSConditionalType,rn.TSConstructorType,rn.TSFunctionType,rn.TSInferType,rn.TSInstantiationExpression,rn.TSIntersectionType,rn.UnaryLike,rn.TSTypeAssertion,rn.TSTypeOperator,rn.TSUnionType,rn.IntersectionTypeAnnotation,rn.UnionTypeAnnotation,rn.UpdateExpression,rn.AwaitExpression,rn.YieldExpression;var nn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.TokenContext=void 0,Z.isLastChild=function isLastChild(e,Z){const ie=ae[e.type];for(let ae=ie.length-1;ae>=0;ae--){const de=e[ie[ae]];if(de===Z)return!0;if(Array.isArray(de)){let e=de.length-1;for(;e>=0&&null===de[e];)e--;return e>=0&&de[e]===Z}if(de)return!1}return!1},Z.needsParens=function needsParens(e,Z,ie,ae){var be;if(!Z)return!1;if(ke(Z)&&Z.callee===e&&isOrHasCallExpression(e))return!0;if(ve(Z))return!(isDecoratorMemberExpression(e)||de(e)&&isDecoratorMemberExpression(e.callee)||Ie(e));return null==(be=_e.get(e.type))?void 0:be(e,Z,ie,ae)},Z.needsWhitespace=needsWhitespace,Z.needsWhitespaceAfter=function needsWhitespaceAfter(e,Z){return needsWhitespace(e,Z,2)},Z.needsWhitespaceBefore=function needsWhitespaceBefore(e,Z){return needsWhitespace(e,Z,1)};const{FLIPPED_ALIAS_KEYS:ie,VISITOR_KEYS:ae,isCallExpression:de,isDecorator:ve,isExpressionStatement:be,isMemberExpression:Ce,isNewExpression:ke,isParenthesizedExpression:Ie}=Dt.default;function expandAliases(e){const Z=new Map;function add(e,ie){const ae=Z.get(e);Z.set(e,ae?function(e,Z,de,ve){var be;return null!=(be=ae(e,Z,de,ve))?be:ie(e,Z,de,ve)}:ie)}for(const Z of Object.keys(e)){const ae=ie[Z];if(ae)for(const ie of ae)add(ie,e[Z]);else add(Z,e[Z])}return Z}Z.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const _e=expandAliases(rn),Fe=expandAliases(Qr.nodes);function isOrHasCallExpression(e){return!!de(e)||Ce(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,Z,ie){var ae;if(!e)return!1;be(e)&&(e=e.expression);const de=null==(ae=Fe.get(e.type))?void 0:ae(e,Z);return"number"==typeof de&&0!==(de&ie)}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&isDecoratorMemberExpression(e.object);default:return!1}}});unwrapExports(nn),nn.TokenContext,nn.isLastChild,nn.needsParens,nn.needsWhitespace,nn.needsWhitespaceAfter,nn.needsWhitespaceBefore;var sn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.TokenMap=void 0;const{traverseFast:ie,VISITOR_KEYS:ae}=Dt.default;Z.TokenMap=class TokenMap{constructor(e,Z,ae){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=Z,this._source=ae,ie(e,e=>{const Z=this._getTokensIndexesOfNode(e);Z.length>0&&this._nodesToTokenIndexes.set(e,Z)}),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(ie)for(let e=0;e<ie.length;e++){const ae=ie[e],de=this._tokens[ae];if(Z(de,ae))return de}return null}findLastIndex(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(ie)for(let e=ie.length-1;e>=0;e--){const ae=ie[e];if(Z(this._tokens[ae],ae))return ae}return-1}findMatching(e,Z,ie=0){const ae=this._nodesToTokenIndexes.get(e);if(ae){let de=0;const ve=ie;if(ve>1){const ae=this._nodesOccurrencesCountCache.get(e);ae&&ae.test===Z&&ae.count<ve&&(de=ae.i+1,ie-=ae.count+1)}for(;de<ae.length;de++){const be=this._tokens[ae[de]];if(this.matchesOriginal(be,Z)){if(0===ie)return ve>0&&this._nodesOccurrencesCountCache.set(e,{test:Z,count:ve,i:de}),be;ie--}}}return null}matchesOriginal(e,Z){return e.end-e.start===Z.length&&(null!=e.value?e.value===Z:this._source.startsWith(Z,e.start))}startMatches(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(!ie)return!1;const ae=this._tokens[ie[0]];return ae.start===e.start&&this.matchesOriginal(ae,Z)}endMatches(e,Z){const ie=this._nodesToTokenIndexes.get(e);if(!ie)return!1;const ae=this._tokens[ie[ie.length-1]];return ae.end===e.end&&this.matchesOriginal(ae,Z)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:Z,last:ie}=this._findTokensOfNode(e,0,this._tokens.length-1);let de=Z;const ve=function*childrenIterator(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let Z=1;Z<e.quasis.length;Z++)yield e.expressions[Z-1],yield e.quasis[Z];return}const Z=ae[e.type];for(const ie of Z){const Z=e[ie];Z&&(Array.isArray(Z)?yield*Z:yield Z)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||ve.next();const be=[];for(const e of ve){if(null==e)continue;if(null==e.start||null==e.end)continue;const Z=this._findTokensOfNode(e,de,ie),ae=Z.first;for(let e=de;e<ae;e++)be.push(e);de=Z.last+1}for(let e=de;e<=ie;e++)be.push(e);return be}_findTokensOfNode(e,Z,ie){const ae=this._tokensCache.get(e);if(ae)return ae;const de=this._findFirstTokenOfNode(e.start,Z,ie),ve=this._findLastTokenOfNode(e.end,de,ie);return this._tokensCache.set(e,{first:de,last:ve}),{first:de,last:ve}}_findFirstTokenOfNode(e,Z,ie){for(;Z<=ie;){const ae=ie+Z>>1;if(e<this._tokens[ae].start)ie=ae-1;else{if(!(e>this._tokens[ae].start))return ae;Z=ae+1}}return Z}_findLastTokenOfNode(e,Z,ie){for(;Z<=ie;){const ae=ie+Z>>1;if(e<this._tokens[ae].end)ie=ae-1;else{if(!(e>this._tokens[ae].end))return ae;Z=ae+1}}return ie}}});unwrapExports(sn),sn.TokenMap;var an=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.TaggedTemplateExpression=function TaggedTemplateExpression(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},Z.TemplateElement=function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},Z.TemplateLiteral=function TemplateLiteral(e){this._printTemplate(e,e.expressions)},Z._printTemplate=function _printTemplate(e,Z){const ie=e.quasis;let ae="`";for(let de=0;de<ie.length-1;de++)if(ae+=ie[de].value.raw,this.token(ae+"${",!0),this.print(Z[de]),ae="}",this.tokenMap){const Z=this.tokenMap.findMatching(e,"}",de);Z&&this._catchUpTo(Z.loc.start)}ae+=ie[ie.length-1].value.raw,this.token(ae+"`",!0)}});unwrapExports(an),an.TaggedTemplateExpression,an.TemplateElement,an.TemplateLiteral,an._printTemplate;var cn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.LogicalExpression=Z.BinaryExpression=Z.AssignmentExpression=function AssignmentExpression(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator);this.space(),this.print(e.right)},Z.AssignmentPattern=function AssignmentPattern(e){this.print(e.left),("Identifier"===e.left.type||be(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation));this.space(),this.tokenChar(61),this.space(),this.print(e.right)},Z.AwaitExpression=function AwaitExpression(e){this.word("await"),this.space(),this.print(e.argument)},Z.BindExpression=function BindExpression(e){this.print(e.object),this.token("::"),this.print(e.callee)},Z.CallExpression=function CallExpression(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const Z=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),Z(),this.rightParens(e)},Z.ConditionalExpression=function ConditionalExpression(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},Z.Decorator=function Decorator(e){this.tokenChar(64),this.print(e.expression),this.newline()},Z.DoExpression=function DoExpression(e){e.async&&(this.word("async",!0),this.space());this.word("do"),this.space(),this.print(e.body)},Z.EmptyStatement=function EmptyStatement(){this.semicolon(!0)},Z.ExpressionStatement=function ExpressionStatement(e){this.tokenContext|=tn.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},Z.Import=function Import(){this.word("import")},Z.MemberExpression=function MemberExpression(e){if(this.print(e.object),!e.computed&&de(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let Z=e.computed;ae(e.property)&&"number"==typeof e.property.value&&(Z=!0);if(Z){const Z=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),Z()}else this.tokenChar(46),this.print(e.property)},Z.MetaProperty=function MetaProperty(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},Z.ModuleExpression=function ModuleExpression(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:Z}=e;(Z.body.length||Z.directives.length)&&this.newline();this.print(Z),this.dedent(),this.rightBrace(e)},Z.NewExpression=function NewExpression(e,Z){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!ie(Z,{callee:e})&&!de(Z)&&!ve(Z))return;this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?.");if(0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const ae=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),ae(),this.rightParens(e)},Z.OptionalCallExpression=function OptionalCallExpression(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?.");this.print(e.typeArguments),this.tokenChar(40);const Z=this.enterDelimited();this.printList(e.arguments),Z(),this.rightParens(e)},Z.OptionalMemberExpression=function OptionalMemberExpression(e){let{computed:Z}=e;const{optional:ie,property:ve}=e;if(this.print(e.object),!Z&&de(ve))throw new TypeError("Got a MemberExpression for MemberExpression property");ae(ve)&&"number"==typeof ve.value&&(Z=!0);ie&&this.token("?.");Z?(this.tokenChar(91),this.print(ve),this.tokenChar(93)):(ie||this.tokenChar(46),this.print(ve))},Z.ParenthesizedExpression=function ParenthesizedExpression(e){this.tokenChar(40);const Z=this.enterDelimited();this.print(e.expression),Z(),this.rightParens(e)},Z.PrivateName=function PrivateName(e){this.tokenChar(35),this.print(e.id)},Z.SequenceExpression=function SequenceExpression(e){this.printList(e.expressions)},Z.Super=function Super(){this.word("super")},Z.ThisExpression=function ThisExpression(){this.word("this")},Z.UnaryExpression=function UnaryExpression(e){const{operator:Z}=e;"void"===Z||"delete"===Z||"typeof"===Z||"throw"===Z?(this.word(Z),this.space()):this.token(Z);this.print(e.argument)},Z.UpdateExpression=function UpdateExpression(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},Z.V8IntrinsicIdentifier=function V8IntrinsicIdentifier(e){this.tokenChar(37),this.word(e.name)},Z.YieldExpression=function YieldExpression(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},Z._shouldPrintDecoratorsBeforeExport=function _shouldPrintDecoratorsBeforeExport(e){if("boolean"==typeof this.format.decoratorsBeforeExport)return this.format.decoratorsBeforeExport;return"number"==typeof e.start&&e.start===e.declaration.start};const{isCallExpression:ie,isLiteral:ae,isMemberExpression:de,isNewExpression:ve,isPattern:be}=Dt.default});unwrapExports(cn),cn.LogicalExpression,cn.BinaryExpression,cn.AssignmentExpression,cn.AssignmentPattern,cn.AwaitExpression,cn.BindExpression,cn.CallExpression,cn.ConditionalExpression,cn.Decorator,cn.DoExpression,cn.EmptyStatement,cn.ExpressionStatement,cn.Import,cn.MemberExpression,cn.MetaProperty,cn.ModuleExpression,cn.NewExpression,cn.OptionalCallExpression,cn.OptionalMemberExpression,cn.ParenthesizedExpression,cn.PrivateName,cn.SequenceExpression,cn.Super,cn.ThisExpression,cn.UnaryExpression,cn.UpdateExpression,cn.V8IntrinsicIdentifier,cn.YieldExpression,cn._shouldPrintDecoratorsBeforeExport;var un=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.BreakStatement=function BreakStatement(e){this.word("break"),printStatementAfterKeyword(this,e.label)},Z.CatchClause=function CatchClause(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space());this.print(e.body)},Z.ContinueStatement=function ContinueStatement(e){this.word("continue"),printStatementAfterKeyword(this,e.label)},Z.DebuggerStatement=function DebuggerStatement(){this.word("debugger"),this.semicolon()},Z.DoWhileStatement=function DoWhileStatement(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},Z.ForOfStatement=Z.ForInStatement=void 0,Z.ForStatement=function ForStatement(e){this.word("for"),this.space(),this.tokenChar(40);{const Z=this.enterForStatementInit();this.print(e.init),Z()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test));this.token(";",!1,1),e.update&&(this.space(),this.print(e.update));this.tokenChar(41),this.printBlock(e)},Z.IfStatement=function IfStatement(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const Z=e.alternate&&de(getLastStatement(e.consequent));Z&&(this.tokenChar(123),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent),Z&&(this.dedent(),this.newline(),this.tokenChar(125));e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},Z.LabeledStatement=function LabeledStatement(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},Z.ReturnStatement=function ReturnStatement(e){this.word("return"),printStatementAfterKeyword(this,e.argument)},Z.SwitchCase=function SwitchCase(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},Z.SwitchStatement=function SwitchStatement(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,function addNewlines(Z,ie){if(!Z&&e.cases[e.cases.length-1]===ie)return-1}),this.rightBrace(e)},Z.ThrowStatement=function ThrowStatement(e){this.word("throw"),printStatementAfterKeyword(this,e.argument)},Z.TryStatement=function TryStatement(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},Z.VariableDeclaration=function VariableDeclaration(e,Z){e.declare&&(this.word("declare"),this.space());const{kind:de}=e;"await using"===de?(this.word("await"),this.space(),this.word("using",!0)):this.word(de,"using"===de);this.space();let ve=!1;if(!ie(Z))for(const Z of e.declarations)Z.init&&(ve=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,ve?function(e){this.token(",",!1,e),this.newline()}:void 0),ie(Z))if(ae(Z)){if(Z.init===e)return}else if(Z.left===e)return;this.semicolon()},Z.VariableDeclarator=function VariableDeclarator(e){this.print(e.id),e.definite&&this.tokenChar(33);this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},Z.WhileStatement=function WhileStatement(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},Z.WithStatement=function WithStatement(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};const{isFor:ie,isForStatement:ae,isIfStatement:de,isStatement:ve}=Dt.default;function getLastStatement(e){const{body:Z}=e;return!1===ve(Z)?e:getLastStatement(Z)}function ForXStatement(e){this.word("for"),this.space();const Z="ForOfStatement"===e.type;Z&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const ie=this.enterForXStatementInit(Z);this.print(e.left),null==ie||ie()}this.space(),this.word(Z?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function printStatementAfterKeyword(e,Z){Z&&(e.space(),e.printTerminatorless(Z)),e.semicolon()}Z.ForInStatement=ForXStatement,Z.ForOfStatement=ForXStatement});unwrapExports(un),un.BreakStatement,un.CatchClause,un.ContinueStatement,un.DebuggerStatement,un.DoWhileStatement,un.ForOfStatement,un.ForInStatement,un.ForStatement,un.IfStatement,un.LabeledStatement,un.ReturnStatement,un.SwitchCase,un.SwitchStatement,un.ThrowStatement,un.TryStatement,un.VariableDeclaration,un.VariableDeclarator,un.WhileStatement,un.WithStatement;var ln=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ClassAccessorProperty=function ClassAccessorProperty(e){var Z;this.printJoin(e.decorators);const ie=null==(Z=e.key.loc)||null==(Z=Z.end)?void 0:Z.line;ie&&this.catchUp(ie);this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},Z.ClassBody=function ClassBody(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const Z=function classBodyEmptySemicolonsPrinter(e,Z){if(!e.tokenMap||null==Z.start||null==Z.end)return null;const ie=e.tokenMap.getIndexes(Z);if(!ie)return null;let ae=1,de=0,ve=0;const advanceNextLocIndex=()=>{for(;ve<Z.body.length&&null==Z.body[ve].start;)ve++};return advanceNextLocIndex(),be=>{ve<=be&&(ve=be+1,advanceNextLocIndex());const Ce=ve===Z.body.length?Z.end:Z.body[ve].start;let ke;for(;ae<ie.length&&e.tokenMap.matchesOriginal(ke=e._tokens[ie[ae]],";")&&ke.start<Ce;)e.token(";",void 0,de++),ae++}}(this,e);null==Z||Z(-1);const ie=this.enterDelimited();this.printJoin(e.body,!0,!0,Z,!0),ie(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},Z.ClassExpression=Z.ClassDeclaration=function ClassDeclaration(e,Z){(ie(Z)||ae(Z))&&this._shouldPrintDecoratorsBeforeExport(Z)||this.printJoin(e.decorators);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),e.id&&(this.space(),this.print(e.id));this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements));this.space(),this.print(e.body)},Z.ClassMethod=function ClassMethod(e){this._classMethodHead(e),this.space(),this.print(e.body)},Z.ClassPrivateMethod=function ClassPrivateMethod(e){this._classMethodHead(e),this.space(),this.print(e.body)},Z.ClassPrivateProperty=function ClassPrivateProperty(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},Z.ClassProperty=function ClassProperty(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var Z;const ie=null==(Z=e.key.loc)||null==(Z=Z.end)?void 0:Z.line;ie&&this.catchUp(ie)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},Z.StaticBlock=function StaticBlock(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},Z._classMethodHead=function _classMethodHead(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var Z;const ie=null==(Z=e.key.loc)||null==(Z=Z.end)?void 0:Z.line;ie&&this.catchUp(ie)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};const{isExportDefaultDeclaration:ie,isExportNamedDeclaration:ae}=Dt.default});unwrapExports(ln),ln.ClassAccessorProperty,ln.ClassBody,ln.ClassExpression,ln.ClassDeclaration,ln.ClassMethod,ln.ClassPrivateMethod,ln.ClassPrivateProperty,ln.ClassProperty,ln.StaticBlock,ln._classMethodHead;var pn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ArrowFunctionExpression=function ArrowFunctionExpression(e,Z){e.async&&(this.word("async",!0),this.space());this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,Z):this.print(e.params[0],!0);this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=tn.TokenContext.arrowBody,this.print(e.body)},Z.FunctionDeclaration=Z.FunctionExpression=function FunctionExpression(e,Z){this._functionHead(e,Z),this.space(),this.print(e.body)},Z._functionHead=function _functionHead(e,Z){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space());this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42));this.space(),e.id&&this.print(e.id);this._params(e,e.id,Z),"TSDeclareFunction"!==e.type&&this._predicate(e)},Z._methodHead=function _methodHead(e){const Z=e.kind,ie=e.key;"get"!==Z&&"set"!==Z||(this.word(Z),this.space());e.async&&(this.word("async",!0),this.space());"method"!==Z&&"init"!==Z||e.generator&&this.tokenChar(42);e.computed?(this.tokenChar(91),this.print(ie),this.tokenChar(93)):this.print(ie);e.optional&&this.tokenChar(63);this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},Z._param=function _param(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},Z._parameters=function _parameters(e,Z){const ie=this.enterDelimited(),ae=this.shouldPrintTrailingComma(Z),de=e.length;for(let Z=0;Z<de;Z++)this._param(e[Z]),(ae||Z<de-1)&&(this.token(",",null,Z),this.space());this.token(Z),ie()},Z._params=function _params(e,Z,ie){this.print(e.typeParameters);const ae=_getFuncIdName.call(this,Z,ie);ae&&this.sourceIdentifierName(ae.name,ae.pos);this.tokenChar(40),this._parameters(e.params,")");const de="ArrowFunctionExpression"===e.type;this.print(e.returnType,de),this._noLineTerminator=de},Z._predicate=function _predicate(e,Z){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,Z))},Z._shouldPrintArrowParamsParens=function _shouldPrintArrowParamsParens(e){var Z,ae;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const de=e.params[0];if(!ie(de)||de.typeAnnotation||de.optional||null!=(Z=de.leadingComments)&&Z.length||null!=(ae=de.trailingComments)&&ae.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const Z=this.tokenMap.findMatching(e,"=>");return null==(null==Z?void 0:Z.loc)||Z.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};const{isIdentifier:ie}=Dt.default;function _getFuncIdName(e,Z){let ie,ae=e;if(!ae&&Z){const e=Z.type;"VariableDeclarator"===e?ae=Z.id:"AssignmentExpression"===e||"AssignmentPattern"===e?ae=Z.left:"ObjectProperty"===e||"ClassProperty"===e?Z.computed&&"StringLiteral"!==Z.key.type||(ae=Z.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(ae=Z.key)}if(ae){var de,ve;if("Identifier"===ae.type)ie={pos:null==(de=ae.loc)?void 0:de.start,name:(null==(ve=ae.loc)?void 0:ve.identifierName)||ae.name};else if("PrivateName"===ae.type){var be;ie={pos:null==(be=ae.loc)?void 0:be.start,name:"#"+ae.id.name}}else if("StringLiteral"===ae.type){var Ce;ie={pos:null==(Ce=ae.loc)?void 0:Ce.start,name:ae.value}}return ie}}});unwrapExports(pn),pn.ArrowFunctionExpression,pn.FunctionDeclaration,pn.FunctionExpression,pn._functionHead,pn._methodHead,pn._param,pn._parameters,pn._params,pn._predicate,pn._shouldPrintArrowParamsParens;var hn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ExportAllDeclaration=function ExportAllDeclaration(e){var Z,ie;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(Z=e.attributes)&&Z.length||null!=(ie=e.assertions)&&ie.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source);this.semicolon()},Z.ExportDefaultDeclaration=function ExportDefaultDeclaration(e){maybePrintDecoratorsBeforeExport(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=tn.TokenContext.exportDefault;const Z=e.declaration;this.print(Z),Ce(Z)||this.semicolon()},Z.ExportDefaultSpecifier=function ExportDefaultSpecifier(e){this.print(e.exported)},Z.ExportNamedDeclaration=function ExportNamedDeclaration(e){if(maybePrintDecoratorsBeforeExport(this,e),this.word("export"),this.space(),e.declaration){const Z=e.declaration;this.print(Z),Ce(Z)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const ve=e.specifiers.slice(0);let be=!1;for(;;){const e=ve[0];if(!ae(e)&&!de(e))break;be=!0,this.print(ve.shift()),ve.length&&(this.tokenChar(44),this.space())}let Ce=!1;var Z,ie;if((ve.length||!ve.length&&!be)&&(Ce=!0,this.tokenChar(123),ve.length&&(this.space(),this.printList(ve,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source)this.space(),this.word("from"),this.space(),null!=(Z=e.attributes)&&Z.length||null!=(ie=e.assertions)&&ie.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,Ce)):this.print(e.source);this.semicolon()}},Z.ExportNamespaceSpecifier=function ExportNamespaceSpecifier(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},Z.ExportSpecifier=function ExportSpecifier(e){"type"===e.exportKind&&(this.word("type"),this.space());this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},Z.ImportAttribute=function ImportAttribute(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},Z.ImportDeclaration=function ImportDeclaration(e){var Z,ie;this.word("import"),this.space();const ae="type"===e.importKind||"typeof"===e.importKind;ae?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const de=e.specifiers.slice(0),Ce=!!de.length;for(;Ce;){const e=de[0];if(!ve(e)&&!be(e))break;this.print(de.shift()),de.length&&(this.tokenChar(44),this.space())}let ke=!1;de.length?(ke=!0,this.tokenChar(123),this.space(),this.printList(de,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):ae&&!Ce&&(ke=!0,this.tokenChar(123),this.tokenChar(125));(Ce||ae)&&(this.space(),this.word("from"),this.space());null!=(Z=e.attributes)&&Z.length||null!=(ie=e.assertions)&&ie.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,ke)):this.print(e.source);this.semicolon()},Z.ImportDefaultSpecifier=function ImportDefaultSpecifier(e){this.print(e.local)},Z.ImportExpression=function ImportExpression(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase));this.tokenChar(40);const Z=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options));Z&&this.tokenChar(44);this.rightParens(e)},Z.ImportNamespaceSpecifier=function ImportNamespaceSpecifier(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},Z.ImportSpecifier=function ImportSpecifier(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},Z._printAttributes=function _printAttributes(e,Z){var ie;const{importAttributesKeyword:ae}=this.format,{attributes:de,assertions:ve}=e;de&&!ae&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!ke&&(ke=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const be="assert"===ae||!ae&&ve;if(this.word(be?"assert":"with"),this.space(),!be&&("with-legacy"===ae||!ae&&null!=(ie=e.extra)&&ie.deprecatedWithLegacySyntax))return void this.printList(de||ve);const Ce=Z?1:0;this.token("{",null,Ce),this.space(),this.printList(de||ve,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,Ce)};const{isClassDeclaration:ie,isExportDefaultSpecifier:ae,isExportNamespaceSpecifier:de,isImportDefaultSpecifier:ve,isImportNamespaceSpecifier:be,isStatement:Ce}=Dt.default;let ke=!1;function maybePrintDecoratorsBeforeExport(e,Z){ie(Z.declaration)&&e._shouldPrintDecoratorsBeforeExport(Z)&&e.printJoin(Z.declaration.decorators)}});unwrapExports(hn),hn.ExportAllDeclaration,hn.ExportDefaultDeclaration,hn.ExportDefaultSpecifier,hn.ExportNamedDeclaration,hn.ExportNamespaceSpecifier,hn.ExportSpecifier,hn.ImportAttribute,hn.ImportDeclaration,hn.ImportDefaultSpecifier,hn.ImportExpression,hn.ImportNamespaceSpecifier,hn.ImportSpecifier,hn._printAttributes;const dn={},mn=dn.hasOwnProperty,forOwn=(e,Z)=>{for(const ie in e)mn.call(e,ie)&&Z(ie,e[ie])},fourHexEscape=e=>"\\u"+("0000"+e).slice(-4),hexadecimal=(e,Z)=>{let ie=e.toString(16);return Z?ie:ie.toUpperCase()},yn=dn.toString,gn=Array.isArray,isBigInt=e=>"bigint"==typeof e,xn={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},vn=/[\\\b\f\n\r\t]/,bn=/[0-9]/,En=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Cn=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,An=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,jsesc=(e,Z)=>{const increaseIndentation=()=>{_e=Ie,++Z.indentLevel,Ie=Z.indent.repeat(Z.indentLevel)},ie={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},ae=Z&&Z.json;var de,ve;ae&&(ie.quotes="double",ie.wrap=!0),de=ie,Z=(ve=Z)?(forOwn(ve,(e,Z)=>{de[e]=Z}),de):de,"single"!=Z.quotes&&"double"!=Z.quotes&&"backtick"!=Z.quotes&&(Z.quotes="single");const be="double"==Z.quotes?'"':"backtick"==Z.quotes?"`":"'",Ce=Z.compact,ke=Z.lowercaseHex;let Ie=Z.indent.repeat(Z.indentLevel),_e="";const Fe=Z.__inline1__,Oe=Z.__inline2__,Be=Ce?"":"\n";let Me,qe=!0;const Ve="binary"==Z.numbers,Ze="octal"==Z.numbers,et="decimal"==Z.numbers,tt="hexadecimal"==Z.numbers;if(ae&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==yn.call(e))(e)){if((e=>"[object Map]"==yn.call(e))(e))return 0==e.size?"new Map()":(Ce||(Z.__inline1__=!0,Z.__inline2__=!1),"new Map("+jsesc(Array.from(e),Z)+")");if((e=>"[object Set]"==yn.call(e))(e))return 0==e.size?"new Set()":"new Set("+jsesc(Array.from(e),Z)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(e),Z)+")";if(gn(e))return Me=[],Z.wrap=!0,Fe&&(Z.__inline1__=!1,Z.__inline2__=!0),Oe||increaseIndentation(),((e,Z)=>{const ie=e.length;let ae=-1;for(;++ae<ie;)Z(e[ae])})(e,e=>{qe=!1,Oe&&(Z.__inline2__=!1),Me.push((Ce||Oe?"":Ie)+jsesc(e,Z))}),qe?"[]":Oe?"["+Me.join(", ")+"]":"["+Be+Me.join(","+Be)+Be+(Ce?"":_e)+"]";if((e=>"number"==typeof e||"[object Number]"==yn.call(e))(e)||isBigInt(e)){if(ae)return JSON.stringify(Number(e));let Z;if(et)Z=String(e);else if(tt){let ie=e.toString(16);ke||(ie=ie.toUpperCase()),Z="0x"+ie}else Ve?Z="0b"+e.toString(2):Ze&&(Z="0o"+e.toString(8));return isBigInt(e)?Z+"n":Z}return isBigInt(e)?ae?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==yn.call(e))(e)?(Me=[],Z.wrap=!0,increaseIndentation(),forOwn(e,(e,ie)=>{qe=!1,Me.push((Ce?"":Ie)+jsesc(e,Z)+":"+(Ce?"":" ")+jsesc(ie,Z))}),qe?"{}":"{"+Be+Me.join(","+Be)+Be+(Ce?"":_e)+"}"):ae?JSON.stringify(e)||"null":String(e)}const ct=Z.escapeEverything?Cn:An;return Me=e.replace(ct,(e,ie,de,ve,Ce,Ie)=>{if(ie){if(Z.minimal)return ie;const e=ie.charCodeAt(0),ae=ie.charCodeAt(1);if(Z.es6){return"\\u{"+hexadecimal(1024*(e-55296)+ae-56320+65536,ke)+"}"}return fourHexEscape(hexadecimal(e,ke))+fourHexEscape(hexadecimal(ae,ke))}if(de)return fourHexEscape(hexadecimal(de.charCodeAt(0),ke));if("\0"==e&&!ae&&!bn.test(Ie.charAt(Ce+1)))return"\\0";if(ve)return ve==be||Z.escapeEverything?"\\"+ve:ve;if(vn.test(e))return xn[e];if(Z.minimal&&!En.test(e))return e;const _e=hexadecimal(e.charCodeAt(0),ke);return ae||_e.length>2?fourHexEscape(_e):"\\x"+("00"+_e).slice(-2)}),"`"==be&&(Me=Me.replace(/\$\{/g,"\\${")),Z.isScriptContext&&(Me=Me.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,ae?"\\u003C!--":"\\x3C!--")),Z.wrap&&(Me=be+Me+be),Me};jsesc.version="3.0.2";var wn=jsesc,Sn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.ArgumentPlaceholder=function ArgumentPlaceholder(){this.tokenChar(63)},Z.ArrayPattern=Z.ArrayExpression=function ArrayExpression(e){const Z=e.elements,ie=Z.length;this.tokenChar(91);const ae=this.enterDelimited();for(let e=0;e<Z.length;e++){const ae=Z[e];ae?(e>0&&this.space(),this.print(ae),(e<ie-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}ae(),this.tokenChar(93)},Z.BigIntLiteral=function BigIntLiteral(e){const Z=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==Z)return void this.word(Z);this.word(e.value+"n")},Z.BooleanLiteral=function BooleanLiteral(e){this.word(e.value?"true":"false")},Z.Identifier=function Identifier(e){var Z;this.sourceIdentifierName((null==(Z=e.loc)?void 0:Z.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},Z.NullLiteral=function NullLiteral(){this.word("null")},Z.NumericLiteral=function NumericLiteral(e){const Z=this.getPossibleRaw(e),ie=this.format.jsescOption,ae=e.value,de=ae+"";ie.numbers?this.number(wn(ae,ie),ae):null==Z?this.number(de,ae):this.format.minified?this.number(Z.length<de.length?Z:de,ae):this.number(Z,ae)},Z.ObjectPattern=Z.ObjectExpression=function ObjectExpression(e){const Z=e.properties;if(this.tokenChar(123),Z.length){const e=this.enterDelimited();this.space(),this.printList(Z,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},Z.ObjectMethod=function ObjectMethod(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},Z.ObjectProperty=function ObjectProperty(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(ie(e.value)&&ae(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&ae(e.key)&&ae(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},Z.PipelineBareFunction=function PipelineBareFunction(e){this.print(e.callee)},Z.PipelinePrimaryTopicReference=function PipelinePrimaryTopicReference(){this.tokenChar(35)},Z.PipelineTopicExpression=function PipelineTopicExpression(e){this.print(e.expression)},Z.RecordExpression=function RecordExpression(e){const Z=e.properties;let ie,ae;if("bar"===this.format.recordAndTupleSyntaxType)ie="{|",ae="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);ie="#{",ae="}"}this.token(ie),Z.length&&(this.space(),this.printList(Z,this.shouldPrintTrailingComma(ae),!0,!0),this.space());this.token(ae)},Z.RegExpLiteral=function RegExpLiteral(e){this.word(`/${e.pattern}/${e.flags}`)},Z.SpreadElement=Z.RestElement=function RestElement(e){this.token("..."),this.print(e.argument)},Z.StringLiteral=function StringLiteral(e){const Z=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==Z)return void this.token(Z);const ie=wn(e.value,this.format.jsescOption);this.token(ie)},Z.TopicReference=function TopicReference(){const{topicToken:e}=this.format;if(!be.has(e)){const Z=JSON.stringify(e),ie=Array.from(be,e=>JSON.stringify(e));throw new Error(`The "topicToken" generator option must be one of ${ie.join(", ")} (${Z} received instead).`)}this.token(e)},Z.TupleExpression=function TupleExpression(e){const Z=e.elements,ie=Z.length;let ae,de;if("bar"===this.format.recordAndTupleSyntaxType)ae="[|",de="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);ae="#[",de="]"}this.token(ae);for(let e=0;e<Z.length;e++){const ae=Z[e];ae&&(e>0&&this.space(),this.print(ae),(e<ie-1||this.shouldPrintTrailingComma(de))&&this.token(",",!1,e))}this.token(de)},Z.VoidPattern=function VoidPattern(){this.word("void")},Z._getRawIdentifier=function _getRawIdentifier(e){if(e===de)return ve;de=e;const{name:Z}=e,ie=this.tokenMap.find(e,e=>e.value===Z);if(ie)return ve=this._originalCode.slice(ie.start,ie.end),ve;return ve=e.name};const{isAssignmentPattern:ie,isIdentifier:ae}=Dt.default;let de=null,ve="";const be=new Set(["^^","@@","^","%","#"])});unwrapExports(Sn),Sn.ArgumentPlaceholder,Sn.ArrayPattern,Sn.ArrayExpression,Sn.BigIntLiteral,Sn.BooleanLiteral,Sn.Identifier,Sn.NullLiteral,Sn.NumericLiteral,Sn.ObjectPattern,Sn.ObjectExpression,Sn.ObjectMethod,Sn.ObjectProperty,Sn.PipelineBareFunction,Sn.PipelinePrimaryTopicReference,Sn.PipelineTopicExpression,Sn.RecordExpression,Sn.RegExpLiteral,Sn.SpreadElement,Sn.RestElement,Sn.StringLiteral,Sn.TopicReference,Sn.TupleExpression,Sn.VoidPattern,Sn._getRawIdentifier;var Dn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.AnyTypeAnnotation=function AnyTypeAnnotation(){this.word("any")},Z.ArrayTypeAnnotation=function ArrayTypeAnnotation(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},Z.BooleanLiteralTypeAnnotation=function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")},Z.BooleanTypeAnnotation=function BooleanTypeAnnotation(){this.word("boolean")},Z.DeclareClass=function DeclareClass(e,Z){ie(Z)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},Z.DeclareExportAllDeclaration=function DeclareExportAllDeclaration(e){this.word("declare"),this.space(),hn.ExportAllDeclaration.call(this,e)},Z.DeclareExportDeclaration=function DeclareExportDeclaration(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());FlowExportDeclaration.call(this,e)},Z.DeclareFunction=function DeclareFunction(e,Z){ie(Z)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate));this.semicolon()},Z.DeclareInterface=function DeclareInterface(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},Z.DeclareModule=function DeclareModule(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},Z.DeclareModuleExports=function DeclareModuleExports(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},Z.DeclareOpaqueType=function DeclareOpaqueType(e,Z){ie(Z)||(this.word("declare"),this.space());this.OpaqueType(e)},Z.DeclareTypeAlias=function DeclareTypeAlias(e){this.word("declare"),this.space(),this.TypeAlias(e)},Z.DeclareVariable=function DeclareVariable(e,Z){ie(Z)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},Z.DeclaredPredicate=function DeclaredPredicate(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},Z.EmptyTypeAnnotation=function EmptyTypeAnnotation(){this.word("empty")},Z.EnumBooleanBody=function EnumBooleanBody(e){const{explicitType:Z}=e;enumExplicitType(this,"boolean",Z),enumBody(this,e)},Z.EnumBooleanMember=function EnumBooleanMember(e){enumInitializedMember(this,e)},Z.EnumDeclaration=function EnumDeclaration(e){const{id:Z,body:ie}=e;this.word("enum"),this.space(),this.print(Z),this.print(ie)},Z.EnumDefaultedMember=function EnumDefaultedMember(e){const{id:Z}=e;this.print(Z),this.tokenChar(44)},Z.EnumNumberBody=function EnumNumberBody(e){const{explicitType:Z}=e;enumExplicitType(this,"number",Z),enumBody(this,e)},Z.EnumNumberMember=function EnumNumberMember(e){enumInitializedMember(this,e)},Z.EnumStringBody=function EnumStringBody(e){const{explicitType:Z}=e;enumExplicitType(this,"string",Z),enumBody(this,e)},Z.EnumStringMember=function EnumStringMember(e){enumInitializedMember(this,e)},Z.EnumSymbolBody=function EnumSymbolBody(e){enumExplicitType(this,"symbol",!0),enumBody(this,e)},Z.ExistsTypeAnnotation=function ExistsTypeAnnotation(){this.tokenChar(42)},Z.FunctionTypeAnnotation=function FunctionTypeAnnotation(e,Z){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space()));this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest));this.tokenChar(41);const ie=null==Z?void 0:Z.type;null!=ie&&("ObjectTypeCallProperty"===ie||"ObjectTypeInternalSlot"===ie||"DeclareFunction"===ie||"ObjectTypeProperty"===ie&&Z.method)?this.tokenChar(58):(this.space(),this.token("=>"));this.space(),this.print(e.returnType)},Z.FunctionTypeParam=function FunctionTypeParam(e){this.print(e.name),e.optional&&this.tokenChar(63);e.name&&(this.tokenChar(58),this.space());this.print(e.typeAnnotation)},Z.IndexedAccessType=function IndexedAccessType(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Z.InferredPredicate=function InferredPredicate(){this.tokenChar(37),this.word("checks")},Z.InterfaceDeclaration=function InterfaceDeclaration(e){this.word("interface"),this.space(),this._interfaceish(e)},Z.GenericTypeAnnotation=Z.ClassImplements=Z.InterfaceExtends=function InterfaceExtends(e){this.print(e.id),this.print(e.typeParameters,!0)},Z.InterfaceTypeAnnotation=function InterfaceTypeAnnotation(e){var Z;this.word("interface"),null!=(Z=e.extends)&&Z.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));this.space(),this.print(e.body)},Z.IntersectionTypeAnnotation=function IntersectionTypeAnnotation(e){this.printJoin(e.types,void 0,void 0,andSeparator)},Z.MixedTypeAnnotation=function MixedTypeAnnotation(){this.word("mixed")},Z.NullLiteralTypeAnnotation=function NullLiteralTypeAnnotation(){this.word("null")},Z.NullableTypeAnnotation=function NullableTypeAnnotation(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(Z,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return Sn.NumericLiteral}}),Z.NumberTypeAnnotation=function NumberTypeAnnotation(){this.word("number")},Z.ObjectTypeAnnotation=function ObjectTypeAnnotation(e){e.exact?this.token("{|"):this.tokenChar(123);const Z=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];Z.length&&(this.newline(),this.space(),this.printJoin(Z,!0,!0,void 0,void 0,function addNewlines(e){if(e&&!Z[0])return 1},()=>{(1!==Z.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space());e.inexact&&(this.indent(),this.token("..."),Z.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.tokenChar(125)},Z.ObjectTypeCallProperty=function ObjectTypeCallProperty(e){e.static&&(this.word("static"),this.space());this.print(e.value)},Z.ObjectTypeIndexer=function ObjectTypeIndexer(e){e.static&&(this.word("static"),this.space());this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space());this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},Z.ObjectTypeInternalSlot=function ObjectTypeInternalSlot(e){e.static&&(this.word("static"),this.space());this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},Z.ObjectTypeProperty=function ObjectTypeProperty(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},Z.ObjectTypeSpreadProperty=function ObjectTypeSpreadProperty(e){this.token("..."),this.print(e.argument)},Z.OpaqueType=function OpaqueType(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype));e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype));this.semicolon()},Z.OptionalIndexedAccessType=function OptionalIndexedAccessType(e){this.print(e.objectType),e.optional&&this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Z.QualifiedTypeIdentifier=function QualifiedTypeIdentifier(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(Z,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return Sn.StringLiteral}}),Z.StringTypeAnnotation=function StringTypeAnnotation(){this.word("string")},Z.SymbolTypeAnnotation=function SymbolTypeAnnotation(){this.word("symbol")},Z.ThisTypeAnnotation=function ThisTypeAnnotation(){this.word("this")},Z.TupleTypeAnnotation=function TupleTypeAnnotation(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},Z.TypeAlias=function TypeAlias(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},Z.TypeAnnotation=function TypeAnnotation(e,Z){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===Z.type?this.tokenContext|=tn.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},Z.TypeCastExpression=function TypeCastExpression(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},Z.TypeParameter=function TypeParameter(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound);e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},Z.TypeParameterDeclaration=Z.TypeParameterInstantiation=function TypeParameterInstantiation(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},Z.TypeofTypeAnnotation=function TypeofTypeAnnotation(e){this.word("typeof"),this.space(),this.print(e.argument)},Z.UnionTypeAnnotation=function UnionTypeAnnotation(e){this.printJoin(e.types,void 0,void 0,orSeparator)},Z.Variance=function Variance(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},Z.VoidTypeAnnotation=function VoidTypeAnnotation(){this.word("void")},Z._interfaceish=function _interfaceish(e){var Z;this.print(e.id),this.print(e.typeParameters),null!=(Z=e.extends)&&Z.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));if("DeclareClass"===e.type){var ie,ae;null!=(ie=e.mixins)&&ie.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(ae=e.implements)&&ae.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)},Z._variance=function _variance(e){var Z;const ie=null==(Z=e.variance)?void 0:Z.kind;null!=ie&&("plus"===ie?this.tokenChar(43):"minus"===ie&&this.tokenChar(45))};const{isDeclareExportDeclaration:ie,isStatement:ae}=Dt.default;function enumExplicitType(e,Z,ie){ie&&(e.space(),e.word("of"),e.space(),e.word(Z)),e.space()}function enumBody(e,Z){const{members:ie}=Z;e.token("{"),e.indent(),e.newline();for(const Z of ie)e.print(Z),e.newline();Z.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function enumInitializedMember(e,Z){e.print(Z.id),e.space(),e.token("="),e.space(),e.print(Z.init),e.token(",")}function FlowExportDeclaration(e){if(e.declaration){const Z=e.declaration;this.print(Z),ae(Z)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function andSeparator(e){this.space(),this.token("&",!1,e),this.space()}function orSeparator(e){this.space(),this.token("|",!1,e),this.space()}});unwrapExports(Dn),Dn.AnyTypeAnnotation,Dn.ArrayTypeAnnotation,Dn.BooleanLiteralTypeAnnotation,Dn.BooleanTypeAnnotation,Dn.DeclareClass,Dn.DeclareExportAllDeclaration,Dn.DeclareExportDeclaration,Dn.DeclareFunction,Dn.DeclareInterface,Dn.DeclareModule,Dn.DeclareModuleExports,Dn.DeclareOpaqueType,Dn.DeclareTypeAlias,Dn.DeclareVariable,Dn.DeclaredPredicate,Dn.EmptyTypeAnnotation,Dn.EnumBooleanBody,Dn.EnumBooleanMember,Dn.EnumDeclaration,Dn.EnumDefaultedMember,Dn.EnumNumberBody,Dn.EnumNumberMember,Dn.EnumStringBody,Dn.EnumStringMember,Dn.EnumSymbolBody,Dn.ExistsTypeAnnotation,Dn.FunctionTypeAnnotation,Dn.FunctionTypeParam,Dn.IndexedAccessType,Dn.InferredPredicate,Dn.InterfaceDeclaration,Dn.GenericTypeAnnotation,Dn.ClassImplements,Dn.InterfaceExtends,Dn.InterfaceTypeAnnotation,Dn.IntersectionTypeAnnotation,Dn.MixedTypeAnnotation,Dn.NullLiteralTypeAnnotation,Dn.NullableTypeAnnotation,Dn.NumberLiteralTypeAnnotation,Dn.NumberTypeAnnotation,Dn.ObjectTypeAnnotation,Dn.ObjectTypeCallProperty,Dn.ObjectTypeIndexer,Dn.ObjectTypeInternalSlot,Dn.ObjectTypeProperty,Dn.ObjectTypeSpreadProperty,Dn.OpaqueType,Dn.OptionalIndexedAccessType,Dn.QualifiedTypeIdentifier,Dn.StringLiteralTypeAnnotation,Dn.StringTypeAnnotation,Dn.SymbolTypeAnnotation,Dn.ThisTypeAnnotation,Dn.TupleTypeAnnotation,Dn.TypeAlias,Dn.TypeAnnotation,Dn.TypeCastExpression,Dn.TypeParameter,Dn.TypeParameterDeclaration,Dn.TypeParameterInstantiation,Dn.TypeofTypeAnnotation,Dn.UnionTypeAnnotation,Dn.Variance,Dn.VoidTypeAnnotation,Dn._interfaceish,Dn._variance;var kn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.BlockStatement=function BlockStatement(e){var Z;this.tokenChar(123);const ie=this.enterDelimited(),ae=null==(Z=e.directives)?void 0:Z.length;if(ae){var de;const Z=e.body.length?2:1;this.printSequence(e.directives,!0,Z),null!=(de=e.directives[ae-1].trailingComments)&&de.length||this.newline(Z)}this.printSequence(e.body,!0),ie(),this.rightBrace(e)},Z.Directive=function Directive(e){this.print(e.value),this.semicolon()},Z.DirectiveLiteral=function DirectiveLiteral(e){const Z=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==Z)return void this.token(Z);const{value:de}=e;if(ae.test(de)){if(ie.test(de))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${de}'`)}else this.token(`"${de}"`)},Z.File=function File(e){e.program&&this.print(e.program.interpreter);this.print(e.program)},Z.InterpreterDirective=function InterpreterDirective(e){this.token(`#!${e.value}`),this.newline(1,!0)},Z.Placeholder=function Placeholder(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},Z.Program=function Program(e){var Z;this.noIndentInnerCommentsHere(),this.printInnerComments();const ie=null==(Z=e.directives)?void 0:Z.length;if(ie){var ae;const Z=e.body.length?2:1;this.printSequence(e.directives,void 0,Z),null!=(ae=e.directives[ie-1].trailingComments)&&ae.length||this.newline(Z)}this.printSequence(e.body)};const ie=/(?:^|[^\\])(?:\\\\)*'/,ae=/(?:^|[^\\])(?:\\\\)*"/});unwrapExports(kn),kn.BlockStatement,kn.Directive,kn.DirectiveLiteral,kn.File,kn.InterpreterDirective,kn.Placeholder,kn.Program;var In=createCommonjsModule(function(e,Z){function spaceSeparator(){this.space()}Object.defineProperty(Z,"__esModule",{value:!0}),Z.JSXAttribute=function JSXAttribute(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},Z.JSXClosingElement=function JSXClosingElement(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},Z.JSXClosingFragment=function JSXClosingFragment(){this.token("</"),this.tokenChar(62)},Z.JSXElement=function JSXElement(e){const Z=e.openingElement;if(this.print(Z),Z.selfClosing)return;this.indent();for(const Z of e.children)this.print(Z);this.dedent(),this.print(e.closingElement)},Z.JSXEmptyExpression=function JSXEmptyExpression(){this.printInnerComments()},Z.JSXExpressionContainer=function JSXExpressionContainer(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},Z.JSXFragment=function JSXFragment(e){this.print(e.openingFragment),this.indent();for(const Z of e.children)this.print(Z);this.dedent(),this.print(e.closingFragment)},Z.JSXIdentifier=function JSXIdentifier(e){this.word(e.name)},Z.JSXMemberExpression=function JSXMemberExpression(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},Z.JSXNamespacedName=function JSXNamespacedName(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},Z.JSXOpeningElement=function JSXOpeningElement(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments);this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,spaceSeparator));e.selfClosing&&(this.space(),this.tokenChar(47));this.tokenChar(62)},Z.JSXOpeningFragment=function JSXOpeningFragment(){this.tokenChar(60),this.tokenChar(62)},Z.JSXSpreadAttribute=function JSXSpreadAttribute(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},Z.JSXSpreadChild=function JSXSpreadChild(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},Z.JSXText=function JSXText(e){const Z=this.getPossibleRaw(e);void 0!==Z?this.token(Z,!0):this.token(e.value,!0)}});unwrapExports(In),In.JSXAttribute,In.JSXClosingElement,In.JSXClosingFragment,In.JSXElement,In.JSXEmptyExpression,In.JSXExpressionContainer,In.JSXFragment,In.JSXIdentifier,In.JSXMemberExpression,In.JSXNamespacedName,In.JSXOpeningElement,In.JSXOpeningFragment,In.JSXSpreadAttribute,In.JSXSpreadChild,In.JSXText;var Nn=createCommonjsModule(function(e,Z){function maybePrintTrailingCommaOrSemicolon(e,Z){e.tokenMap&&Z.start&&Z.end?e.tokenMap.endMatches(Z,",")?e.token(","):e.tokenMap.endMatches(Z,";")&&e.semicolon():e.semicolon()}function tsPrintUnionOrIntersectionType(e,Z,ie){var ae;let de=0;null!=(ae=e.tokenMap)&&ae.startMatches(Z,ie)&&(de=1,e.token(ie)),e.printJoin(Z.types,void 0,void 0,function(e){this.space(),this.token(ie,null,e+de),this.space()})}function tokenIfPlusMinus(e,Z){!0!==Z&&e.token(Z)}function TSEnumBody(e){printBraced(this,e,()=>{var Z;return this.printList(e.members,null==(Z=this.shouldPrintTrailingComma("}"))||Z,!0,!0)})}function printBraced(e,Z,ie){e.token("{");const ae=e.enterDelimited();ie(),ae(),e.rightBrace(Z)}function printModifiersList(e,Z,ie){var ae;const de=new Set;for(const e of ie)e&&de.add(e);null==(ae=e.tokenMap)||ae.find(Z,Z=>{if(de.has(Z.value))return e.token(Z.value),e.space(),de.delete(Z.value),0===de.size});for(const Z of de)e.word(Z),e.space()}Object.defineProperty(Z,"__esModule",{value:!0}),Z.TSAnyKeyword=function TSAnyKeyword(){this.word("any")},Z.TSArrayType=function TSArrayType(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},Z.TSSatisfiesExpression=Z.TSAsExpression=function TSTypeExpression(e){const{type:Z,expression:ie,typeAnnotation:ae}=e;this.print(ie,!0),this.space(),this.word("TSAsExpression"===Z?"as":"satisfies"),this.space(),this.print(ae)},Z.TSBigIntKeyword=function TSBigIntKeyword(){this.word("bigint")},Z.TSBooleanKeyword=function TSBooleanKeyword(){this.word("boolean")},Z.TSCallSignatureDeclaration=function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSInterfaceHeritage=Z.TSClassImplements=function TSClassImplements(e){this.print(e.expression),this.print(e.typeArguments)},Z.TSConditionalType=function TSConditionalType(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},Z.TSConstructSignatureDeclaration=function TSConstructSignatureDeclaration(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSConstructorType=function TSConstructorType(e){e.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},Z.TSDeclareFunction=function TSDeclareFunction(e,Z){e.declare&&(this.word("declare"),this.space());this._functionHead(e,Z),this.semicolon()},Z.TSDeclareMethod=function TSDeclareMethod(e){this._classMethodHead(e),this.semicolon()},Z.TSEnumBody=TSEnumBody,Z.TSEnumDeclaration=function TSEnumDeclaration(e){const{declare:Z,const:ie,id:ae}=e;Z&&(this.word("declare"),this.space());ie&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(ae),this.space(),TSEnumBody.call(this,e)},Z.TSEnumMember=function TSEnumMember(e){const{id:Z,initializer:ie}=e;this.print(Z),ie&&(this.space(),this.tokenChar(61),this.space(),this.print(ie))},Z.TSExportAssignment=function TSExportAssignment(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},Z.TSExternalModuleReference=function TSExternalModuleReference(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},Z.TSFunctionType=function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)},Z.TSImportEqualsDeclaration=function TSImportEqualsDeclaration(e){const{id:Z,moduleReference:ie}=e;e.isExport&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(Z),this.space(),this.tokenChar(61),this.space(),this.print(ie),this.semicolon()},Z.TSImportType=function TSImportType(e){const{argument:Z,qualifier:ie,options:ae}=e;this.word("import"),this.tokenChar(40),this.print(Z),ae&&(this.tokenChar(44),this.print(ae));this.tokenChar(41),ie&&(this.tokenChar(46),this.print(ie));const de=e.typeParameters;de&&this.print(de)},Z.TSIndexSignature=function TSIndexSignature(e){const{readonly:Z,static:ie}=e;ie&&(this.word("static"),this.space());Z&&(this.word("readonly"),this.space());this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSIndexedAccessType=function TSIndexedAccessType(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Z.TSInferType=function TSInferType(e){this.word("infer"),this.print(e.typeParameter)},Z.TSInstantiationExpression=function TSInstantiationExpression(e){this.print(e.expression),this.print(e.typeParameters)},Z.TSInterfaceBody=function TSInterfaceBody(e){printBraced(this,e,()=>this.printJoin(e.body,!0,!0))},Z.TSInterfaceDeclaration=function TSInterfaceDeclaration(e){const{declare:Z,id:ie,typeParameters:ae,extends:de,body:ve}=e;Z&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(ie),this.print(ae),null!=de&&de.length&&(this.space(),this.word("extends"),this.space(),this.printList(de));this.space(),this.print(ve)},Z.TSIntersectionType=function TSIntersectionType(e){tsPrintUnionOrIntersectionType(this,e,"&")},Z.TSIntrinsicKeyword=function TSIntrinsicKeyword(){this.word("intrinsic")},Z.TSLiteralType=function TSLiteralType(e){this.print(e.literal)},Z.TSMappedType=function TSMappedType(e){const{nameType:Z,optional:ie,readonly:ae,typeAnnotation:de}=e;this.tokenChar(123);const ve=this.enterDelimited();this.space(),ae&&(tokenIfPlusMinus(this,ae),this.word("readonly"),this.space());this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),Z&&(this.space(),this.word("as"),this.space(),this.print(Z));this.tokenChar(93),ie&&(tokenIfPlusMinus(this,ie),this.tokenChar(63));de&&(this.tokenChar(58),this.space(),this.print(de));this.space(),ve(),this.tokenChar(125)},Z.TSMethodSignature=function TSMethodSignature(e){const{kind:Z}=e;"set"!==Z&&"get"!==Z||(this.word(Z),this.space());this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSModuleBlock=function TSModuleBlock(e){printBraced(this,e,()=>this.printSequence(e.body,!0))},Z.TSModuleDeclaration=function TSModuleDeclaration(e){const{declare:Z,id:ie,kind:ae}=e;Z&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=ae?ae:"Identifier"===ie.type?"namespace":"module"),this.space()),this.print(ie),!e.body)return void this.semicolon();let Z=e.body;for(;"TSModuleDeclaration"===Z.type;)this.tokenChar(46),this.print(Z.id),Z=Z.body;this.space(),this.print(Z)}},Z.TSNamedTupleMember=function TSNamedTupleMember(e){this.print(e.label),e.optional&&this.tokenChar(63);this.tokenChar(58),this.space(),this.print(e.elementType)},Z.TSNamespaceExportDeclaration=function TSNamespaceExportDeclaration(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},Z.TSNeverKeyword=function TSNeverKeyword(){this.word("never")},Z.TSNonNullExpression=function TSNonNullExpression(e){this.print(e.expression),this.tokenChar(33)},Z.TSNullKeyword=function TSNullKeyword(){this.word("null")},Z.TSNumberKeyword=function TSNumberKeyword(){this.word("number")},Z.TSObjectKeyword=function TSObjectKeyword(){this.word("object")},Z.TSOptionalType=function TSOptionalType(e){this.print(e.typeAnnotation),this.tokenChar(63)},Z.TSParameterProperty=function TSParameterProperty(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},Z.TSParenthesizedType=function TSParenthesizedType(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},Z.TSPropertySignature=function TSPropertySignature(e){const{readonly:Z}=e;Z&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),maybePrintTrailingCommaOrSemicolon(this,e)},Z.TSQualifiedName=function TSQualifiedName(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},Z.TSRestType=function TSRestType(e){this.token("..."),this.print(e.typeAnnotation)},Z.TSStringKeyword=function TSStringKeyword(){this.word("string")},Z.TSSymbolKeyword=function TSSymbolKeyword(){this.word("symbol")},Z.TSTemplateLiteralType=function TSTemplateLiteralType(e){this._printTemplate(e,e.types)},Z.TSThisType=function TSThisType(){this.word("this")},Z.TSTupleType=function TSTupleType(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},Z.TSTypeAliasDeclaration=function TSTypeAliasDeclaration(e){const{declare:Z,id:ie,typeParameters:ae,typeAnnotation:de}=e;Z&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(ie),this.print(ae),this.space(),this.tokenChar(61),this.space(),this.print(de),this.semicolon()},Z.TSTypeAnnotation=function TSTypeAnnotation(e,Z){this.token("TSFunctionType"!==Z.type&&"TSConstructorType"!==Z.type||Z.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},Z.TSTypeAssertion=function TSTypeAssertion(e){const{typeAnnotation:Z,expression:ie}=e;this.tokenChar(60),this.print(Z),this.tokenChar(62),this.space(),this.print(ie)},Z.TSTypeLiteral=function TSTypeLiteral(e){printBraced(this,e,()=>this.printJoin(e.members,!0,!0))},Z.TSTypeOperator=function TSTypeOperator(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},Z.TSTypeParameter=function TSTypeParameter(e){e.const&&(this.word("const"),this.space());e.in&&(this.word("in"),this.space());e.out&&(this.word("out"),this.space());this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint));e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},Z.TSTypeParameterDeclaration=Z.TSTypeParameterInstantiation=function TSTypeParameterInstantiation(e,Z){this.tokenChar(60);let ie="ArrowFunctionExpression"===Z.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(ie&&(ie=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),ie||(ie=this.shouldPrintTrailingComma(">")));this.printList(e.params,ie),this.tokenChar(62)},Z.TSTypePredicate=function TSTypePredicate(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},Z.TSTypeQuery=function TSTypeQuery(e){this.word("typeof"),this.space(),this.print(e.exprName);const Z=e.typeParameters;Z&&this.print(Z)},Z.TSTypeReference=function TSTypeReference(e){const Z=e.typeParameters;this.print(e.typeName,!!Z),this.print(Z)},Z.TSUndefinedKeyword=function TSUndefinedKeyword(){this.word("undefined")},Z.TSUnionType=function TSUnionType(e){tsPrintUnionOrIntersectionType(this,e,"|")},Z.TSUnknownKeyword=function TSUnknownKeyword(){this.word("unknown")},Z.TSVoidKeyword=function TSVoidKeyword(){this.word("void")},Z.tsPrintClassMemberModifiers=function tsPrintClassMemberModifiers(e){const Z="ClassPrivateProperty"===e.type,ie="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;printModifiersList(this,e,[ie&&e.declare&&"declare",!Z&&e.accessibility]),e.static&&(this.word("static"),this.space());printModifiersList(this,e,[!Z&&e.abstract&&"abstract",!Z&&e.override&&"override",(ie||Z)&&e.readonly&&"readonly"])},Z.tsPrintFunctionOrConstructorType=function tsPrintFunctionOrConstructorType(e){const{typeParameters:Z}=e,ie=e.parameters;this.print(Z),this.tokenChar(40),this._parameters(ie,")"),this.space();const ae=e.typeAnnotation;this.print(ae)},Z.tsPrintPropertyOrMethodName=function tsPrintPropertyOrMethodName(e){e.computed&&this.tokenChar(91);this.print(e.key),e.computed&&this.tokenChar(93);e.optional&&this.tokenChar(63)},Z.tsPrintSignatureDeclarationBase=function tsPrintSignatureDeclarationBase(e){const{typeParameters:Z}=e,ie=e.parameters;this.print(Z),this.tokenChar(40),this._parameters(ie,")");const ae=e.typeAnnotation;this.print(ae)}});unwrapExports(Nn),Nn.TSAnyKeyword,Nn.TSArrayType,Nn.TSSatisfiesExpression,Nn.TSAsExpression,Nn.TSBigIntKeyword,Nn.TSBooleanKeyword,Nn.TSCallSignatureDeclaration,Nn.TSInterfaceHeritage,Nn.TSClassImplements,Nn.TSConditionalType,Nn.TSConstructSignatureDeclaration,Nn.TSConstructorType,Nn.TSDeclareFunction,Nn.TSDeclareMethod,Nn.TSEnumBody,Nn.TSEnumDeclaration,Nn.TSEnumMember,Nn.TSExportAssignment,Nn.TSExternalModuleReference,Nn.TSFunctionType,Nn.TSImportEqualsDeclaration,Nn.TSImportType,Nn.TSIndexSignature,Nn.TSIndexedAccessType,Nn.TSInferType,Nn.TSInstantiationExpression,Nn.TSInterfaceBody,Nn.TSInterfaceDeclaration,Nn.TSIntersectionType,Nn.TSIntrinsicKeyword,Nn.TSLiteralType,Nn.TSMappedType,Nn.TSMethodSignature,Nn.TSModuleBlock,Nn.TSModuleDeclaration,Nn.TSNamedTupleMember,Nn.TSNamespaceExportDeclaration,Nn.TSNeverKeyword,Nn.TSNonNullExpression,Nn.TSNullKeyword,Nn.TSNumberKeyword,Nn.TSObjectKeyword,Nn.TSOptionalType,Nn.TSParameterProperty,Nn.TSParenthesizedType,Nn.TSPropertySignature,Nn.TSQualifiedName,Nn.TSRestType,Nn.TSStringKeyword,Nn.TSSymbolKeyword,Nn.TSTemplateLiteralType,Nn.TSThisType,Nn.TSTupleType,Nn.TSTypeAliasDeclaration,Nn.TSTypeAnnotation,Nn.TSTypeAssertion,Nn.TSTypeLiteral,Nn.TSTypeOperator,Nn.TSTypeParameter,Nn.TSTypeParameterDeclaration,Nn.TSTypeParameterInstantiation,Nn.TSTypePredicate,Nn.TSTypeQuery,Nn.TSTypeReference,Nn.TSUndefinedKeyword,Nn.TSUnionType,Nn.TSUnknownKeyword,Nn.TSVoidKeyword,Nn.tsPrintClassMemberModifiers,Nn.tsPrintFunctionOrConstructorType,Nn.tsPrintPropertyOrMethodName,Nn.tsPrintSignatureDeclarationBase;var _n=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Object.keys(an).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===an[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return an[e]}}))}),Object.keys(cn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===cn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return cn[e]}}))}),Object.keys(un).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===un[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return un[e]}}))}),Object.keys(ln).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===ln[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return ln[e]}}))}),Object.keys(pn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===pn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return pn[e]}}))}),Object.keys(hn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===hn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return hn[e]}}))}),Object.keys(Sn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===Sn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return Sn[e]}}))}),Object.keys(Dn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===Dn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return Dn[e]}}))}),Object.keys(kn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===kn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return kn[e]}}))}),Object.keys(In).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===In[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return In[e]}}))}),Object.keys(Nn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in Z&&Z[e]===Nn[e]||Object.defineProperty(Z,e,{enumerable:!0,get:function(){return Nn[e]}}))})});unwrapExports(_n);var Fn=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.addDeprecatedGenerators=function addDeprecatedGenerators(e){{const Z={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const Z=this.getPossibleRaw(e);this.format.minified||void 0===Z?this.word(e.value+"m"):this.word(Z)}};Object.assign(e.prototype,Z)}}});unwrapExports(Fn),Fn.addDeprecatedGenerators;var On=createCommonjsModule(function(e,Z){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=tn;const{isExpression:ae,isFunction:de,isStatement:ve,isClassBody:be,isTSInterfaceBody:Ce,isTSEnumMember:ke}=Dt.default,Ie=/e/i,_e=/\.0+$/,Fe=/[\n\r\u2028\u2029]/,Oe=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return"CommentLine"===e.type||Fe.test(e.value)}const{needsParens:Be}=ie;class Printer{constructor(e,Z,ie,ae){this.tokenContext=tn.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=ie,this._originalCode=ae,this._indentRepeat=e.indent.style.length,this._inputMap=null==Z?void 0:Z._inputMap,this._buf=new Zr.default(Z,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=tn.TokenContext.forInitHead|tn.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=tn.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=tn.TokenContext.forOfHead,null):(this.tokenContext|=tn.TokenContext.forInHead|tn.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=tn.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,Z=this._noLineTerminatorAfterNode;return e&tn.TokenContext.forInOrInitHeadAccumulate||null!==Z?(this._noLineTerminatorAfterNode=null,this.tokenContext=tn.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=Z,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new sn.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const Z=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[Z[Z.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:Z}=this;if(!Z.compact&&!Z.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,Z=!1){this.tokenContext&=tn.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=Z}number(e,Z){this.word(e),this._endsWithInteger=Number.isInteger(Z)&&!function isNonDecimalLiteral(e){if(e.length>2&&48===e.charCodeAt(0)){const Z=e.charCodeAt(1);return 98===Z||111===Z||120===Z}return!1}(e)&&!Ie.test(e)&&!_e.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,Z=!1,ie=0){this.tokenContext&=tn.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,ie),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,ie);const ae=this.getLastChar(),de=e.charCodeAt(0);(33===ae&&("--"===e||61===de)||43===de&&43===ae||45===de&&45===ae||46===de&&this._endsWithInteger)&&this._space(),this._append(e,Z),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=tn.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const Z=String.fromCharCode(e);this._maybePrintInnerComments(Z),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(Z);const ie=this.getLastChar();(43===e&&43===ie||45===e&&45===ie||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,Z){if(!(e<=0)){if(!Z){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let Z=0;Z<e;Z++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,Z){e?(this._catchUp("start",e),this._buf.exactSource(e,Z)):Z()}source(e,Z){Z&&(this._catchUp(e,Z),this._buf.source(e,Z))}sourceWithOffset(e,Z,ie){Z&&!this.format.preserveFormat&&(this._catchUp(e,Z),this._buf.sourceWithOffset(e,Z,ie))}sourceIdentifierName(e,Z){if(!this._buf._canMarkIdName)return;const ie=this._buf._sourcePosition;ie.identifierNamePos=Z,ie.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,Z=0){const ie=this.tokenMap.findMatching(this._currentNode,e,Z);ie&&this._catchUpTo(ie.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,Z){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,Z),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const Z=e-this._buf.getCurrentLine();for(let e=0;e<Z;e++)this._newline()}_catchUp(e,Z){const{format:ie}=this;if(!ie.preserveFormat)return void(ie.retainLines&&null!=Z&&Z[e]&&this.catchUp(Z[e].line));const ae=null==Z?void 0:Z[e];null!=ae&&this._catchUpTo(ae)}_catchUpTo({line:e,column:Z,index:ie}){const ae=e-this._buf.getCurrentLine();if(ae>0&&this._noLineTerminator)return;for(let e=0;e<ae;e++)this._newline();const de=ae>0?Z:Z-this._buf.getCurrentColumn();if(de>0){const e=this._originalCode?this._originalCode.slice(ie-de,ie).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(de);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,Z,de){var ve,be,Ce;if(!e)return;this._endsWithInnerRaw=!1;const ke=e.type,Ie=this.format,_e=Ie.concise;e._compact&&(Ie.concise=!0);const Fe=this[ke];if(void 0===Fe)throw new ReferenceError(`unknown node of type ${JSON.stringify(ke)} with constructor ${JSON.stringify(e.constructor.name)}`);const Oe=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const Me=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!Me);const qe=null==(ve=e.extra)?void 0:ve.parenthesized;let Ve=qe&&Ie.preserveFormat||qe&&Ie.retainFunctionParens&&"FunctionExpression"===ke||Be(e,Oe,this.tokenContext,Ie.preserveFormat?this._boundGetRawIdentifier:void 0);if(!Ve&&qe&&null!=(be=e.leadingComments)&&be.length&&"CommentBlock"===e.leadingComments[0].type){switch(null==Oe?void 0:Oe.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(Oe.callee!==e)break;default:Ve=!0}}let Ze,et,tt=!1;var ct;(!Ve&&this._noLineTerminator&&(null!=(Ce=e.leadingComments)&&Ce.some(commentIsNewline)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(Ve=!0,tt=!0),Ve)||(Z||(Z=Oe&&this._noLineTerminatorAfterNode===Oe&&ie.isLastChild(Oe,e)),Z&&(null!=(ct=e.trailingComments)&&ct.some(commentIsNewline)?ae(e)&&(Ve=!0):(Ze=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)));Ve&&(this.tokenChar(40),tt&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&tn.TokenContext.forInOrInitHeadAccumulate&&(et=this.tokenContext,this.tokenContext=tn.TokenContext.normal),Ze=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,Oe);const ut="Program"===ke||"File"===ke?null:e.loc;this.exactSource(ut,Fe.bind(this,e,Oe)),Ve?(this._printTrailingComments(e,Oe),tt&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=Z,et&&(this.tokenContext=et)):Z&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,Oe)):this._printTrailingComments(e,Oe,de),this._currentNode=Oe,Ie.concise=_e,this._insideAux=Me,void 0!==Ze&&(this._noLineTerminatorAfterNode=Ze),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const Z=e.extra;if(null!=(null==Z?void 0:Z.raw)&&null!=Z.rawValue&&e.value===Z.rawValue)return Z.raw}printJoin(e,Z,ie,ae,de,ve,be,Ce){if(null==e||!e.length)return;if(null==ie&&this.format.retainLines){var ke;const Z=null==(ke=e[0].loc)?void 0:ke.start.line;null!=Z&&Z!==this._buf.getCurrentLine()&&(ie=!0)}ie&&this.indent();const Ie={addNewlines:ve,nextNodeStartLine:0},_e=null==ae?void 0:ae.bind(this),Fe=e.length;for(let ie=0;ie<Fe;ie++){const ae=e[ie];var Oe;if(ae)if(Z&&this._printNewline(0===ie,Ie),this.print(ae,void 0,Ce||0),null==be||be(ae,ie),null!=_e&&(ie<Fe-1?_e(ie,!1):de&&_e(ie,!0)),Z)if(null!=(Oe=ae.trailingComments)&&Oe.length||(this._lastCommentLine=0),ie+1===Fe)this.newline(1);else{var Be;const Z=e[ie+1];Ie.nextNodeStartLine=(null==(Be=Z.loc)?void 0:Be.start.line)||0,this._printNewline(!0,Ie)}}ie&&this.dedent()}printAndIndentOnComments(e){const Z=e.leadingComments&&e.leadingComments.length>0;Z&&this.indent(),this.print(e),Z&&this.dedent()}printBlock(e){const Z=e.body;"EmptyStatement"!==Z.type&&this.space(),this.print(Z)}_printTrailingComments(e,Z,ie){const{innerComments:ae,trailingComments:de}=e;null!=ae&&ae.length&&this._printComments(2,ae,e,Z,ie),null!=de&&de.length&&this._printComments(2,de,e,Z,ie)}_printLeadingComments(e,Z){const ie=e.leadingComments;null!=ie&&ie.length&&this._printComments(0,ie,e,Z)}_maybePrintInnerComments(e,Z){var ie;this._endsWithInnerRaw&&this.printInnerComments(null==(ie=this.tokenMap)?void 0:ie.findMatching(this._currentNode,e,Z));this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const Z=this._currentNode,ie=Z.innerComments;if(null==ie||!ie.length)return;const ae=this.endsWith(32),de=this._indentInnerComments,ve=this._printedComments.size;de&&this.indent(),this._printComments(1,ie,Z,void 0,void 0,e),ae&&ve!==this._printedComments.size&&this.space(),de&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,Z,ie,ae){this.printJoin(e,!0,null!=Z&&Z,void 0,void 0,ae,void 0,ie)}printList(e,Z,ie,ae,de,ve){this.printJoin(e,ie,ae,null!=de?de:commaSeparator,Z,void 0,ve)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const Z=this.tokenMap.findLastIndex(this._currentNode,Z=>this.tokenMap.matchesOriginal(Z,e));return Z<=0?null:this.tokenMap.matchesOriginal(this._tokens[Z-1],",")}_printNewline(e,Z){const ie=this.format;if(ie.retainLines||ie.compact)return;if(ie.concise)return void this.space();if(!e)return;const ae=Z.nextNodeStartLine,de=this._lastCommentLine;if(ae>0&&de>0){const e=ae-de;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,Z){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&Oe.test(e.value))return 2;if(Z&&this.tokenMap){const ie=this.tokenMap.find(this._currentNode,Z=>Z.value===e.value);if(ie&&ie.start>Z.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,Z){const ie=this._noLineTerminator,ae="CommentBlock"===e.type,de=ae&&1!==Z&&!this._noLineTerminator;de&&this._buf.hasContent()&&2!==Z&&this.newline(1);const ve=this.getLastChar();let be;if(91!==ve&&123!==ve&&40!==ve&&this.space(),ae){if(be=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var Ce;const Z=null==(Ce=e.loc)?void 0:Ce.start.column;if(Z){const e=new RegExp("\\n\\s{1,"+Z+"}","g");be=be.replace(e,"\n")}if(this.format.concise)be=be.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),be=be.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else be=ie?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:Z,_printSemicolonBeforeNextNode:ie}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(be,ae),this._printSemicolonBeforeNextNode=ie,this._printSemicolonBeforeNextToken=Z}else this.source("start",e.loc),this._append(be,ae);ae||ie||this.newline(1,!0),de&&3!==Z&&this.newline(1)}_printComments(e,Z,ie,ae,Ie=0,_e){const Oe=ie.loc,Be=Z.length;let Me=!!Oe;const qe=Me?Oe.start.line:0,Ve=Me?Oe.end.line:0;let Ze=0,et=0;const tt=this._noLineTerminator?function(){}:this.newline.bind(this);for(let Oe=0;Oe<Be;Oe++){const ct=Z[Oe],ut=this._shouldPrintComment(ct,_e);if(2===ut){Me=!1;break}if(Me&&ct.loc&&1===ut){const Z=ct.loc.start.line,ie=ct.loc.end.line;if(0===e){let e=0;0===Oe?!this._buf.hasContent()||"CommentLine"!==ct.type&&Z===ie||(e=et=1):e=Z-Ze,Ze=ie,tt(e),this._printComment(ct,1),Oe+1===Be&&(tt(Math.max(qe-Ze,et)),Ze=qe)}else if(1===e){const e=Z-(0===Oe?qe:Ze);Ze=ie,tt(e),this._printComment(ct,1),Oe+1===Be&&(tt(Math.min(1,Ve-Ze)),Ze=Ve)}else{const e=Z-(0===Oe?Ve-Ie:Ze);Ze=ie,tt(e),this._printComment(ct,1)}}else{if(Me=!1,1!==ut)continue;if(1===Be){const Z=ct.loc?ct.loc.start.line===ct.loc.end.line:!Fe.test(ct.value),Ie=Z&&!ve(ie)&&!be(ae)&&!Ce(ae)&&!ke(ie);0===e?this._printComment(ct,Ie&&"ObjectExpression"!==ie.type||Z&&de(ae,{body:ie})?1:0):Ie&&2===e?this._printComment(ct,1):this._printComment(ct,0)}else 1!==e||"ObjectExpression"===ie.type&&ie.properties.length>1||"ClassBody"===ie.type||"TSInterfaceBody"===ie.type?this._printComment(ct,0):this._printComment(ct,0===Oe?2:Oe===Be-1?3:0)}}2===e&&Me&&Ze&&(this._lastCommentLine=Ze)}}function commaSeparator(e,Z){this.token(",",!1,e),Z||this.space()}Object.assign(Printer.prototype,_n),(0,Fn.addDeprecatedGenerators)(Printer),Z.default=Printer});unwrapExports(On);var Ln=createCommonjsModule(function(e,Z){function normalizeOptions(e,Z,ie){if(Z.experimental_preserveFormat){if("string"!=typeof e)throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!Z.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(Z.compact&&"auto"!==Z.compact)throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(Z.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(Z.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(ie.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}const ae={auxiliaryCommentBefore:Z.auxiliaryCommentBefore,auxiliaryCommentAfter:Z.auxiliaryCommentAfter,shouldPrintComment:Z.shouldPrintComment,preserveFormat:Z.experimental_preserveFormat,retainLines:Z.retainLines,retainFunctionParens:Z.retainFunctionParens,comments:null==Z.comments||Z.comments,compact:Z.compact,minified:Z.minified,concise:Z.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},Z.jsescOption),topicToken:Z.topicToken,importAttributesKeyword:Z.importAttributesKeyword};var de;ae.decoratorsBeforeExport=Z.decoratorsBeforeExport,ae.jsescOption.json=Z.jsonCompatibleStrings,ae.recordAndTupleSyntaxType=null!=(de=Z.recordAndTupleSyntaxType)?de:"hash",ae.minified?(ae.compact=!0,ae.shouldPrintComment=ae.shouldPrintComment||(()=>ae.comments)):ae.shouldPrintComment=ae.shouldPrintComment||(e=>ae.comments||e.includes("@license")||e.includes("@preserve")),"auto"===ae.compact&&(ae.compact="string"==typeof e&&e.length>5e5,ae.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${Z.filename} as it exceeds the max of 500KB.`)),(ae.compact||ae.preserveFormat)&&(ae.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:ve,auxiliaryCommentAfter:be,shouldPrintComment:Ce}=ae;return ve&&!Ce(ve)&&(ae.auxiliaryCommentBefore=void 0),be&&!Ce(be)&&(ae.auxiliaryCommentAfter=void 0),ae}function generate(e,Z={},ie){const ae=normalizeOptions(ie,Z,e),de=Z.sourceMaps?new Yr.default(Z,ie):null;return new On.default(ae,de,e.tokens,"string"==typeof ie?ie:null).generate(e)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0,Z.generate=generate,Z.CodeGenerator=class CodeGenerator{constructor(e,Z={},ie){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=normalizeOptions(ie,Z,e),this._map=Z.sourceMaps?new Yr.default(Z,ie):null}generate(){return new On.default(this._format,this._map).generate(this._ast)}},Z.default=generate}),Bn=unwrapExports(Ln);Ln.generate,Ln.CodeGenerator;let Mn,Un,random=e=>((e=>{!Mn||Mn.length<e?(Mn=Buffer.allocUnsafe(128*e),_t.default.randomFillSync(Mn),Un=0):Un+e>Mn.length&&(_t.default.randomFillSync(Mn),Un=0),Un+=e})(e-=0),Mn.subarray(Un-e,Un));require("base-64").encode;var $n=((e,Z=21)=>((e,Z,ie)=>{let ae=(2<<31-Math.clz32(e.length-1|1))-1,de=Math.ceil(1.6*ae*Z/e.length);return(ve=Z)=>{let be="";for(;;){let Z=ie(de),Ce=de;for(;Ce--;)if(be+=e[Z[Ce]&ae]||"",be.length===ve)return be}}})(e,Z,random))("0123456789abcdefghijklmnopqrstuvwxyz",6);var transformJsx=function(e,Z,ie){var ae=[],de=[],ve=!1,be=!1,Ce=null,ke=e.path.includes("/src/components/")?"Component":"Page",Ie=Et.readFileSync(e.path+"/"+e.fileName,"utf-8");Ie.includes("this.globalData")&&(be=!0),Ie.includes("GlobalDataDecorator")&&(ve=!0);var _e=Ie.includes("this.props?.children")||Ie.includes("this.props.children");Ie=(Ie=Ie.replace("{$eval(() => this.props?.children)}","<Outlet />")).replace("{$eval(() => this.props.children)}","<Outlet />"),"vite"===Z&&(Ie=Ie.replace("constants = constants;","constants = constants;\n history = utils.history;"));var Fe=lr("".concat(Ie),{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]});if(It.default(Fe,{ClassDeclaration:function(e){var Z=e.node.decorators;Z&&(Z.some(function(e){return!(!kt.isDecorator(e)||!kt.isIdentifier(e.expression))&&"GlobalDataDecorator"===e.expression.name})&&(ve=!0));Ce||(Ce=e)},MemberExpression:function(e){kt.isThisExpression(e.node.object)&&kt.isIdentifier(e.node.property,{name:"globalData"})&&(be=!0)},Program:function(e){var ae=e.node.body;ae.forEach(function(e){(null==e?void 0:e.source)&&e.source.value.includes("@/components")&&(e.source.value=e.source.value.replace("@/components",ie?"".concat(ie.replace("src","@"),"/components"):"../components"))});var de=ae.find(function(e){return e.source&&"ruoqing-components"===e.source.value});de&&["$eval","$createChildContext","$evalArray"].forEach(function(e){de.specifiers.push(kt.importSpecifier(kt.identifier(e),kt.identifier(e)))});var Ce=ae.findIndex(function(e){var Z;return"@alilc/lowcode-datasource-engine/runtime"===(null===(Z=null==e?void 0:e.source)||void 0===Z?void 0:Z.value)});de&&Ce>-1&&(ae.splice(Ce,1),de.specifiers.push(kt.importSpecifier(kt.identifier("dataSource"),kt.identifier("dataSource"))));var Ie=ae.findIndex(function(e){var Z;return"@alilc/lowcode-datasource-fetch-handler"===(null===(Z=null==e?void 0:e.source)||void 0===Z?void 0:Z.value)});de&&Ie>-1&&(ae.splice(Ie,1),de.specifiers.push(kt.importSpecifier(kt.identifier("requestHandle"),kt.identifier("requestHandle"))));var Fe=ae.findIndex(function(e){var Z;return"./index.css"===(null===(Z=null==e?void 0:e.source)||void 0===Z?void 0:Z.value)});ae.splice(Fe,1,kt.importDeclaration([],kt.stringLiteral("vite"===Z?"./index.css":"./index.scss")));var Oe=__read(lr("const { px, RefsManager, $eval, $evalArray, $createChildContext } = utils;",{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]}).program.body,1)[0];if(ae.splice(Fe+1,0,Oe),_e){var Be=kt.importDeclaration([kt.importSpecifier(kt.identifier("Outlet"),kt.identifier("Outlet"))],kt.stringLiteral("react-router-dom"));ae.splice(Fe+2,0,Be)}if("Page"===ke&&"vite"===Z){Be=kt.importDeclaration([kt.importSpecifier(kt.identifier("withRouter"),kt.identifier("withRouter"))],kt.stringLiteral("@/utils/router"));ae.splice(Fe+(_e?3:2),0,Be)}if(be&&!ve){var Me=kt.importDeclaration([kt.importSpecifier(kt.identifier("GlobalDataDecorator"),kt.identifier("GlobalDataDecorator"))],kt.stringLiteral("@/utils"));ae.splice(Fe+(_e?3:2)+("Page"===ke&&"vite"===Z?1:0),0,Me)}},ImportDeclaration:function(e){var Z,ie,ae;e.node.specifiers&&e.node.specifiers.length>0&&(e.node.specifiers=e.node.specifiers.filter(function(e){return!(e.imported&&"Component"===e.imported.name)})),"StringLiteral"===(null===(Z=e.node.source)||void 0===Z?void 0:Z.type)&&(null===(ae=null===(ie=e.node)||void 0===ie?void 0:ie.source)||void 0===ae?void 0:ae.value)&&(e.node.source.value=e.node.source.value.replace("/src/index.tsx",""))},Literal:function(e){var ie,ae,de;if("string"==typeof(null===(ie=e.node)||void 0===ie?void 0:ie.value)&&(null===(ae=e.node)||void 0===ae?void 0:ae.value.includes("px"))){var ve=null===(de=e.node)||void 0===de?void 0:de.value;ve=ve.replace(/(\d+)px/g,function(e,ie){return"".concat(ie*("vite"===Z?1:2))}),isNaN(Number(ve))||("JSXAttribute"===e.parent.type?e.replaceWith(kt.jsxExpressionContainer(kt.callExpression(kt.identifier("px"),[kt.numericLiteral(Number(ve))]))):e.replaceWith(kt.callExpression(kt.identifier("px"),[kt.numericLiteral(Number(ve))])))}},JSXIdentifier:function(e){("__events"===e.node.name||e.node.name.includes("_unsafe_"))&&e.parentPath.remove()},JSXOpeningElement:function(e){var Z,ie,ae;(null===(Z=e.node.attributes)||void 0===Z?void 0:Z.length)>0&&e.node.attributes.findIndex(function(e){return"className"===e.name.name})>-1&&"Fragment"===(null===(ae=null===(ie=e.node.name)||void 0===ie?void 0:ie.property)||void 0===ae?void 0:ae.name)&&(e.node.attributes=[])},JSXAttribute:function(e){var Z,ie,ve,be,Ce,ke;if("AtIcon"===e.parent.name.name&&"svg"===e.node.name.name&&"StringLiteral"===(null===(Z=e.node)||void 0===Z?void 0:Z.value.type)){var Ie="",_e="";if(Array.isArray(e.container)){var Fe=e.container.find(function(e){return"value"===e.name.name});_e=(null===(ve=null===(ie=e.container.find(function(e){return"color"===e.name.name}))||void 0===ie?void 0:ie.value)||void 0===ve?void 0:ve.value)||"",Fe&&(Ie="svg_".concat((null===(be=null==Fe?void 0:Fe.value)||void 0===be?void 0:be.value)||$n(6)))}Ie||(Ie="svg_".concat($n(6))),de.findIndex(function(e){return e.fileName===Ie})>-1&&(Ie="".concat(Ie,"_").concat($n(6)));var Oe=e.node.value.value;Ie&&Oe&&(Oe&&_e&&(Oe=Oe.replace(/currentColor/g,_e)),Oe&&_e&&(Oe=(Oe=Oe.replace(/width="100%"/g,"")).replace(/height="100%"/g,"")),e.replaceWith(kt.jsxAttribute(kt.jsxIdentifier("svg"),kt.jsxExpressionContainer(kt.memberExpression(kt.identifier("ICONS"),kt.stringLiteral(Ie),!0)))),de.push({svgStr:Oe,fileName:Ie}))}if("Image"===e.parent.name.name&&"src"===e.node.name.name&&"StringLiteral"===(null===(Ce=e.node)||void 0===Ce?void 0:Ce.value.type)){var Be="";if(Array.isArray(e.container)){var Me=e.container.find(function(e){return"className"===e.name.name});if(Me){var qe=null===(ke=null==Me?void 0:Me.value)||void 0===ke?void 0:ke.value;if(qe){var Ve=(Be=function sanitizeFileName(e){return e?e.replace(/[<>:"/\\|?*]/g,"").replace(/\s+/g,"_").replace(/[^\w\-_.]/g,"").replace(/_{2,}/g,"_").replace(/^[_-]+|[_-]+$/g,"").substring(0,50)||"fallback_".concat($n(6)):""}(qe)).split("__");Be=(Ve.length>0?Ve[Ve.length-1]:Be)+".png"}}}Be||(Be="image_".concat($n(6),".png")),ae.findIndex(function(e){return e.fileName===Be.toLowerCase()})>-1&&(Be="r".concat(ae.length,"_").concat(Be.toLowerCase()));var Ze=e.node.value.value,et=Be.toLowerCase(),tt="static_".concat(function sanitizeIdentifier(e){return e&&e.replace(/[^\w]/g,"_").replace(/_{2,}/g,"_").replace(/^[_\d]+|[_]+$/g,"").substring(0,30)||"id_".concat($n(6))}(et.split(".")[0]));if(Be&&Ze){var ct=kt.jSXExpressionContainer(kt.identifier(tt));e.node.value=Be?ct:null,ae.push({url:Ze,fileName:et,line:kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier(tt))],kt.stringLiteral("./images/".concat(et)))})}}},Identifier:function(e){"__$$context"===e.node.name&&"CallExpression"===e.parentPath.type&&(e.node.name="this")},FunctionExpression:function(e){if("JSXExpressionContainer"===e.parent.type){var Z=kt.arrowFunctionExpression(e.node.params,e.node.body,!1);e.replaceWith(Z)}},FunctionDeclaration:function(e){var Z,ie;["__$$eval","__$$createChildContext","__$$evalArray"].includes((null===(ie=null===(Z=null==e?void 0:e.node)||void 0===Z?void 0:Z.id)||void 0===ie?void 0:ie.name)||"")&&e.remove()},CallExpression:function(e){var Z=e.node;kt.isMemberExpression(Z.callee)&&kt.isIdentifier(Z.callee.property,{name:"stopPropagation"})&&e.replaceWith(kt.optionalCallExpression(kt.memberExpression(Z.callee.object,kt.identifier("stopPropagation")),[],!0))},ExportDefaultDeclaration:function(e){if("Page"===ke&&"vite"===Z){var ie=e.node.declaration,ae=kt.callExpression(kt.identifier("withRouter"),[ie]);e.node.declaration=ae}}}),be&&!ve&&Ce){var Oe=kt.decorator(kt.identifier("GlobalDataDecorator"));Ce.node.decorators?Ce.node.decorators.push(Oe):Ce.node.decorators=[Oe]}if(de.length>0){var Be=!1;It.default(Fe,{ImportDeclaration:function(e){if(!Be){var Z=kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier("ICONS"))],kt.stringLiteral("./icons"));e.insertBefore(Z),Be=!0}}})}if(ae.length>0){var Me=!1;It.default(Fe,{ImportDeclaration:function(e){Me||(ae.forEach(function(Z){e.insertBefore(Z.line)}),Me=!0)}})}var qe=Bn(Fe).code;if(qe.includes("<svg")){var Ve=!1;It.default(Fe,{StringLiteral:function(e){var Z=e.node;if(Z.value.startsWith("<svg")){Ve=!0;var ie=function(e){var Z=Buffer.from(e,"utf-8");return"data:image/svg+xml;base64,".concat(Z.toString("base64"))}(Z.value);e.replaceWith(kt.stringLiteral(ie))}}}),Ve&&(qe=Bn(Fe).code)}return{code:qe,images:ae,svgs:de}},qn=function bind(e,Z){return function wrap(){for(var ie=new Array(arguments.length),ae=0;ae<ie.length;ae++)ie[ae]=arguments[ae];return e.apply(Z,ie)}},zn=Object.prototype.toString,Hn=function(e){return function(Z){var ie=zn.call(Z);return e[ie]||(e[ie]=ie.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(e){return e=e.toLowerCase(),function isKindOf(Z){return Hn(Z)===e}}function isArray$1(e){return Array.isArray(e)}function isUndefined(e){return void 0===e}var Vn=kindOfTest("ArrayBuffer");function isObject$7(e){return null!==e&&"object"==typeof e}function isPlainObject$1(e){if("object"!==Hn(e))return!1;var Z=Object.getPrototypeOf(e);return null===Z||Z===Object.prototype}var Wn=kindOfTest("Date"),Jn=kindOfTest("File"),Kn=kindOfTest("Blob"),Yn=kindOfTest("FileList");function isFunction$1(e){return"[object Function]"===zn.call(e)}var Zn=kindOfTest("URLSearchParams");function forEach(e,Z){if(null!=e)if("object"!=typeof e&&(e=[e]),isArray$1(e))for(var ie=0,ae=e.length;ie<ae;ie++)Z.call(null,e[ie],ie,e);else for(var de in e)Object.prototype.hasOwnProperty.call(e,de)&&Z.call(null,e[de],de,e)}var Qn=function(e){return function(Z){return e&&Z instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),es={isArray:isArray$1,isArrayBuffer:Vn,isBuffer:function isBuffer$3(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function isFormData(e){var Z="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||zn.call(e)===Z||isFunction$1(e.toString)&&e.toString()===Z)},isArrayBufferView:function isArrayBufferView(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Vn(e.buffer)},isString:function isString$3(e){return"string"==typeof e},isNumber:function isNumber(e){return"number"==typeof e},isObject:isObject$7,isPlainObject:isPlainObject$1,isUndefined:isUndefined,isDate:Wn,isFile:Jn,isBlob:Kn,isFunction:isFunction$1,isStream:function isStream(e){return isObject$7(e)&&isFunction$1(e.pipe)},isURLSearchParams:Zn,isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:forEach,merge:function merge(){var e={};function assignValue(Z,ie){isPlainObject$1(e[ie])&&isPlainObject$1(Z)?e[ie]=merge(e[ie],Z):isPlainObject$1(Z)?e[ie]=merge({},Z):isArray$1(Z)?e[ie]=Z.slice():e[ie]=Z}for(var Z=0,ie=arguments.length;Z<ie;Z++)forEach(arguments[Z],assignValue);return e},extend:function extend$2(e,Z,ie){return forEach(Z,function assignValue(Z,ae){e[ae]=ie&&"function"==typeof Z?qn(Z,ie):Z}),e},trim:function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function inherits(e,Z,ie,ae){e.prototype=Object.create(Z.prototype,ae),e.prototype.constructor=e,ie&&Object.assign(e.prototype,ie)},toFlatObject:function toFlatObject(e,Z,ie){var ae,de,ve,be={};Z=Z||{};do{for(de=(ae=Object.getOwnPropertyNames(e)).length;de-- >0;)be[ve=ae[de]]||(Z[ve]=e[ve],be[ve]=!0);e=Object.getPrototypeOf(e)}while(e&&(!ie||ie(e,Z))&&e!==Object.prototype);return Z},kindOf:Hn,kindOfTest:kindOfTest,endsWith:function endsWith(e,Z,ie){e=String(e),(void 0===ie||ie>e.length)&&(ie=e.length),ie-=Z.length;var ae=e.indexOf(Z,ie);return-1!==ae&&ae===ie},toArray:function toArray(e){if(!e)return null;var Z=e.length;if(isUndefined(Z))return null;for(var ie=new Array(Z);Z-- >0;)ie[Z]=e[Z];return ie},isTypedArray:Qn,isFileList:Yn};function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ts=function buildURL(e,Z,ie){if(!Z)return e;var ae;if(ie)ae=ie(Z);else if(es.isURLSearchParams(Z))ae=Z.toString();else{var de=[];es.forEach(Z,function serialize(e,Z){null!=e&&(es.isArray(e)?Z+="[]":e=[e],es.forEach(e,function parseValue(e){es.isDate(e)?e=e.toISOString():es.isObject(e)&&(e=JSON.stringify(e)),de.push(encode$2(Z)+"="+encode$2(e))}))}),ae=de.join("&")}if(ae){var ve=e.indexOf("#");-1!==ve&&(e=e.slice(0,ve)),e+=(-1===e.indexOf("?")?"?":"&")+ae}return e};function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,Z,ie){return this.handlers.push({fulfilled:e,rejected:Z,synchronous:!!ie&&ie.synchronous,runWhen:ie?ie.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){es.forEach(this.handlers,function forEachHandler(Z){null!==Z&&e(Z)})};var ns=InterceptorManager,ss=function normalizeHeaderName(e,Z){es.forEach(e,function processHeader(ie,ae){ae!==Z&&ae.toUpperCase()===Z.toUpperCase()&&(e[Z]=ie,delete e[ae])})};function AxiosError(e,Z,ie,ae,de){Error.call(this),this.message=e,this.name="AxiosError",Z&&(this.code=Z),ie&&(this.config=ie),ae&&(this.request=ae),de&&(this.response=de)}es.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var is=AxiosError.prototype,as={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){as[e]={value:e}}),Object.defineProperties(AxiosError,as),Object.defineProperty(is,"isAxiosError",{value:!0}),AxiosError.from=function(e,Z,ie,ae,de,ve){var be=Object.create(is);return es.toFlatObject(e,be,function filter(e){return e!==Error.prototype}),AxiosError.call(be,e.message,Z,ie,ae,de),be.name=e.name,ve&&Object.assign(be,ve),be};var cs=AxiosError,ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var hs=function toFormData(e,Z){Z=Z||new FormData;var ie=[];function convertValue(e){return null===e?"":es.isDate(e)?e.toISOString():es.isArrayBuffer(e)||es.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function build(e,ae){if(es.isPlainObject(e)||es.isArray(e)){if(-1!==ie.indexOf(e))throw Error("Circular reference detected in "+ae);ie.push(e),es.forEach(e,function each(e,ie){if(!es.isUndefined(e)){var de,ve=ae?ae+"."+ie:ie;if(e&&!ae&&"object"==typeof e)if(es.endsWith(ie,"{}"))e=JSON.stringify(e);else if(es.endsWith(ie,"[]")&&(de=es.toArray(e)))return void de.forEach(function(e){!es.isUndefined(e)&&Z.append(ve,convertValue(e))});build(e,ve)}}),ie.pop()}else Z.append(ae,convertValue(e))}(e),Z},ys=function settle(e,Z,ie){var ae=ie.config.validateStatus;ie.status&&ae&&!ae(ie.status)?Z(new cs("Request failed with status code "+ie.status,[cs.ERR_BAD_REQUEST,cs.ERR_BAD_RESPONSE][Math.floor(ie.status/100)-4],ie.config,ie.request,ie)):e(ie)},gs=es.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,Z,ie,ae,de,ve){var be=[];be.push(e+"="+encodeURIComponent(Z)),es.isNumber(ie)&&be.push("expires="+new Date(ie).toGMTString()),es.isString(ae)&&be.push("path="+ae),es.isString(de)&&be.push("domain="+de),!0===ve&&be.push("secure"),document.cookie=be.join("; ")},read:function read(e){var Z=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return Z?decodeURIComponent(Z[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}},xs=function buildFullPath(e,Z){return e&&!function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(Z)?function combineURLs(e,Z){return Z?e.replace(/\/+$/,"")+"/"+Z.replace(/^\/+/,""):e}(e,Z):Z},vs=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],bs=es.isStandardBrowserEnv()?function standardBrowserEnv(){var e,Z=/(msie|trident)/i.test(navigator.userAgent),ie=document.createElement("a");function resolveURL(e){var ae=e;return Z&&(ie.setAttribute("href",ae),ae=ie.href),ie.setAttribute("href",ae),{href:ie.href,protocol:ie.protocol?ie.protocol.replace(/:$/,""):"",host:ie.host,search:ie.search?ie.search.replace(/^\?/,""):"",hash:ie.hash?ie.hash.replace(/^#/,""):"",hostname:ie.hostname,port:ie.port,pathname:"/"===ie.pathname.charAt(0)?ie.pathname:"/"+ie.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(Z){var ie=es.isString(Z)?resolveURL(Z):Z;return ie.protocol===e.protocol&&ie.host===e.host}}():function isURLSameOrigin(){return!0};function CanceledError(e){cs.call(this,null==e?"canceled":e,cs.ERR_CANCELED),this.name="CanceledError"}es.inherits(CanceledError,cs,{__CANCEL__:!0});var Es=CanceledError,Cs=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(Z,ie){var ae,de=e.data,ve=e.headers,be=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(ae),e.signal&&e.signal.removeEventListener("abort",ae)}es.isFormData(de)&&es.isStandardBrowserEnv()&&delete ve["Content-Type"];var Ce=new XMLHttpRequest;if(e.auth){var ke=e.auth.username||"",Ie=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";ve.Authorization="Basic "+btoa(ke+":"+Ie)}var _e=xs(e.baseURL,e.url);function onloadend(){if(Ce){var ae="getAllResponseHeaders"in Ce?function parseHeaders(e){var Z,ie,ae,de={};return e?(es.forEach(e.split("\n"),function parser(e){if(ae=e.indexOf(":"),Z=es.trim(e.substr(0,ae)).toLowerCase(),ie=es.trim(e.substr(ae+1)),Z){if(de[Z]&&vs.indexOf(Z)>=0)return;de[Z]="set-cookie"===Z?(de[Z]?de[Z]:[]).concat([ie]):de[Z]?de[Z]+", "+ie:ie}}),de):de}(Ce.getAllResponseHeaders()):null,de={data:be&&"text"!==be&&"json"!==be?Ce.response:Ce.responseText,status:Ce.status,statusText:Ce.statusText,headers:ae,config:e,request:Ce};ys(function _resolve(e){Z(e),done()},function _reject(e){ie(e),done()},de),Ce=null}}if(Ce.open(e.method.toUpperCase(),ts(_e,e.params,e.paramsSerializer),!0),Ce.timeout=e.timeout,"onloadend"in Ce?Ce.onloadend=onloadend:Ce.onreadystatechange=function handleLoad(){Ce&&4===Ce.readyState&&(0!==Ce.status||Ce.responseURL&&0===Ce.responseURL.indexOf("file:"))&&setTimeout(onloadend)},Ce.onabort=function handleAbort(){Ce&&(ie(new cs("Request aborted",cs.ECONNABORTED,e,Ce)),Ce=null)},Ce.onerror=function handleError(){ie(new cs("Network Error",cs.ERR_NETWORK,e,Ce,Ce)),Ce=null},Ce.ontimeout=function handleTimeout(){var Z=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",ae=e.transitional||ls;e.timeoutErrorMessage&&(Z=e.timeoutErrorMessage),ie(new cs(Z,ae.clarifyTimeoutError?cs.ETIMEDOUT:cs.ECONNABORTED,e,Ce)),Ce=null},es.isStandardBrowserEnv()){var Fe=(e.withCredentials||bs(_e))&&e.xsrfCookieName?gs.read(e.xsrfCookieName):void 0;Fe&&(ve[e.xsrfHeaderName]=Fe)}"setRequestHeader"in Ce&&es.forEach(ve,function setRequestHeader(e,Z){void 0===de&&"content-type"===Z.toLowerCase()?delete ve[Z]:Ce.setRequestHeader(Z,e)}),es.isUndefined(e.withCredentials)||(Ce.withCredentials=!!e.withCredentials),be&&"json"!==be&&(Ce.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&Ce.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&Ce.upload&&Ce.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(ae=function(e){Ce&&(ie(!e||e&&e.type?new Es:e),Ce.abort(),Ce=null)},e.cancelToken&&e.cancelToken.subscribe(ae),e.signal&&(e.signal.aborted?ae():e.signal.addEventListener("abort",ae))),de||(de=null);var Oe=function parseProtocol(e){var Z=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return Z&&Z[1]||""}(_e);Oe&&-1===["http","https","file"].indexOf(Oe)?ie(new cs("Unsupported protocol "+Oe+":",cs.ERR_BAD_REQUEST,e)):Ce.send(de)})},As=1e3,ws=6e4,Ts=60*ws,Ss=24*Ts,Ds=7*Ss,Ps=365.25*Ss,ms$1=function(e,Z){Z=Z||{};var ie=typeof e;if("string"===ie&&e.length>0)return function parse$2(e){if((e=String(e)).length>100)return;var Z=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!Z)return;var ie=parseFloat(Z[1]);switch((Z[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return ie*Ps;case"weeks":case"week":case"w":return ie*Ds;case"days":case"day":case"d":return ie*Ss;case"hours":case"hour":case"hrs":case"hr":case"h":return ie*Ts;case"minutes":case"minute":case"mins":case"min":case"m":return ie*ws;case"seconds":case"second":case"secs":case"sec":case"s":return ie*As;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return ie;default:return}}(e);if("number"===ie&&isFinite(e))return Z.long?function fmtLong$1(e){var Z=Math.abs(e);if(Z>=Ss)return plural$1(e,Z,Ss,"day");if(Z>=Ts)return plural$1(e,Z,Ts,"hour");if(Z>=ws)return plural$1(e,Z,ws,"minute");if(Z>=As)return plural$1(e,Z,As,"second");return e+" ms"}(e):function fmtShort$1(e){var Z=Math.abs(e);if(Z>=Ss)return Math.round(e/Ss)+"d";if(Z>=Ts)return Math.round(e/Ts)+"h";if(Z>=ws)return Math.round(e/ws)+"m";if(Z>=As)return Math.round(e/As)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function plural$1(e,Z,ie,ae){var de=Z>=1.5*ie;return Math.round(e/ie)+" "+ae+(de?"s":"")}var ks=function setup(e){function createDebug(e){let Z,ie,ae,de=null;function debug(...e){if(!debug.enabled)return;const ie=debug,ae=Number(new Date),de=ae-(Z||ae);ie.diff=de,ie.prev=Z,ie.curr=ae,Z=ae,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let ve=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(Z,ae)=>{if("%%"===Z)return"%";ve++;const de=createDebug.formatters[ae];if("function"==typeof de){const ae=e[ve];Z=de.call(ie,ae),e.splice(ve,1),ve--}return Z}),createDebug.formatArgs.call(ie,e);(ie.log||createDebug.log).apply(ie,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==de?de:(ie!==createDebug.namespaces&&(ie=createDebug.namespaces,ae=createDebug.enabled(e)),ae),set:e=>{de=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,Z){const ie=createDebug(this.namespace+(void 0===Z?":":Z)+e);return ie.log=this.log,ie}function matchesTemplate(e,Z){let ie=0,ae=0,de=-1,ve=0;for(;ie<e.length;)if(ae<Z.length&&(Z[ae]===e[ie]||"*"===Z[ae]))"*"===Z[ae]?(de=ae,ve=ie,ae++):(ie++,ae++);else{if(-1===de)return!1;ae=de+1,ve++,ie=ve}for(;ae<Z.length&&"*"===Z[ae];)ae++;return ae===Z.length}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function disable(){const e=[...createDebug.names,...createDebug.skips.map(e=>"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const Z=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of Z)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)},createDebug.enabled=function enabled(e){for(const Z of createDebug.skips)if(matchesTemplate(e,Z))return!1;for(const Z of createDebug.names)if(matchesTemplate(e,Z))return!0;return!1},createDebug.humanize=ms$1,createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(Z=>{createDebug[Z]=e[Z]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let Z=0;for(let ie=0;ie<e.length;ie++)Z=(Z<<5)-Z+e.charCodeAt(ie),Z|=0;return createDebug.colors[Math.abs(Z)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug},Is=createCommonjsModule(function(e,Z){Z.formatArgs=function formatArgs(Z){if(Z[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Z[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const ie="color: "+this.color;Z.splice(1,0,ie,"color: inherit");let ae=0,de=0;Z[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(ae++,"%c"===e&&(de=ae))}),Z.splice(de,0,ie)},Z.save=function save(e){try{e?Z.storage.setItem("debug",e):Z.storage.removeItem("debug")}catch(e){}},Z.load=function load(){let e;try{e=Z.storage.getItem("debug")||Z.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},Z.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},Z.storage=function localstorage(){try{return localStorage}catch(e){}}(),Z.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),Z.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],Z.log=console.debug||console.log||(()=>{}),e.exports=ks(Z);const{formatters:ie}=e.exports;ie.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});Is.formatArgs,Is.save,Is.load,Is.useColors,Is.storage,Is.destroy,Is.colors,Is.log;var hasFlag=(e,Z=process.argv)=>{const ie=e.startsWith("-")?"":1===e.length?"-":"--",ae=Z.indexOf(ie+e),de=Z.indexOf("--");return-1!==ae&&(-1===de||ae<de)};const{env:_s}=process;let Fs;function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function supportsColor(e,Z){if(0===Fs)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(e&&!Z&&void 0===Fs)return 0;const ie=Fs||0;if("dumb"===_s.TERM)return ie;if("win32"===process.platform){const e=vt.default.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in _s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in _s)||"codeship"===_s.CI_NAME?1:ie;if("TEAMCITY_VERSION"in _s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_s.TEAMCITY_VERSION)?1:0;if("truecolor"===_s.COLORTERM)return 3;if("TERM_PROGRAM"in _s){const e=parseInt((_s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_s.TERM)||"COLORTERM"in _s?1:ie}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?Fs=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(Fs=1),"FORCE_COLOR"in _s&&(Fs="true"===_s.FORCE_COLOR?1:"false"===_s.FORCE_COLOR?0:0===_s.FORCE_COLOR.length?1:Math.min(parseInt(_s.FORCE_COLOR,10),3));var Os={supportsColor:function getSupportLevel(e){return translateLevel(supportsColor(e,e&&e.isTTY))},stdout:translateLevel(supportsColor(!0,Gt.default.isatty(1))),stderr:translateLevel(supportsColor(!0,Gt.default.isatty(2)))},Ls=createCommonjsModule(function(e,Z){Z.init=function init(e){e.inspectOpts={};const ie=Object.keys(Z.inspectOpts);for(let ae=0;ae<ie.length;ae++)e.inspectOpts[ie[ae]]=Z.inspectOpts[ie[ae]]},Z.log=function log(...e){return process.stderr.write(Wt.default.formatWithOptions(Z.inspectOpts,...e)+"\n")},Z.formatArgs=function formatArgs(ie){const{namespace:ae,useColors:de}=this;if(de){const Z=this.color,de="[3"+(Z<8?Z:"8;5;"+Z),ve=` ${de};1m${ae} [0m`;ie[0]=ve+ie[0].split("\n").join("\n"+ve),ie.push(de+"m+"+e.exports.humanize(this.diff)+"[0m")}else ie[0]=function getDate(){if(Z.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+ae+" "+ie[0]},Z.save=function save(e){e?process.env.DEBUG=e:delete process.env.DEBUG},Z.load=function load(){return process.env.DEBUG},Z.useColors=function useColors(){return"colors"in Z.inspectOpts?Boolean(Z.inspectOpts.colors):Gt.default.isatty(process.stderr.fd)},Z.destroy=Wt.default.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),Z.colors=[6,2,3,4,5,1];try{const e=Os;e&&(e.stderr||e).level>=2&&(Z.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}Z.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,Z)=>{const ie=Z.substring(6).toLowerCase().replace(/_([a-z])/g,(e,Z)=>Z.toUpperCase());let ae=process.env[Z];return ae=!!/^(yes|on|true|enabled)$/i.test(ae)||!/^(no|off|false|disabled)$/i.test(ae)&&("null"===ae?null:Number(ae)),e[ie]=ae,e},{}),e.exports=ks(Z);const{formatters:ie}=e.exports;ie.o=function(e){return this.inspectOpts.colors=this.useColors,Wt.default.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},ie.O=function(e){return this.inspectOpts.colors=this.useColors,Wt.default.inspect(e,this.inspectOpts)}});Ls.init,Ls.log,Ls.formatArgs,Ls.save,Ls.load,Ls.useColors,Ls.destroy,Ls.colors,Ls.inspectOpts;var Bs,Ms=createCommonjsModule(function(e){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=Is:e.exports=Ls}),debug_1=function(){if(!Bs){try{Bs=Ms("follow-redirects")}catch(e){}"function"!=typeof Bs&&(Bs=function(){})}Bs.apply(null,arguments)},js=qt.default.URL,Rs=Ht.default.Writable;!function detectUnsupportedEnvironment(){var e="undefined"!=typeof process,Z="undefined"!=typeof window&&"undefined"!=typeof document,ie=isFunction(Error.captureStackTrace);e||!Z&&ie||console.warn("The follow-redirects package should be excluded from browser builds.")}();var Us=!1;try{Vt.default(new js(""))}catch(e){Us="ERR_INVALID_URL"===e.code}var $s=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],qs=["abort","aborted","connect","error","socket","timeout"],zs=Object.create(null);qs.forEach(function(e){zs[e]=function(Z,ie,ae){this._redirectable.emit(e,Z,ie,ae)}});var Ws=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError),ei=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ti=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ei),ri=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ni=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),si=Rs.prototype.destroy||noop$1;function RedirectableRequest(e,Z){Rs.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Z&&this.on("response",Z);var ie=this;this._onNativeResponse=function(e){try{ie._processResponse(e)}catch(e){ie.emit("error",e instanceof ei?e:new ei({cause:e}))}},this._performRequest()}function wrap(e){var Z={maxRedirects:21,maxBodyLength:10485760},ie={};return Object.keys(e).forEach(function(ae){var de=ae+":",ve=ie[de]=e[ae],be=Z[ae]=Object.create(ve);Object.defineProperties(be,{request:{value:function request(e,ae,ve){return!function isURL(e){return js&&e instanceof js}(e)?isString$2(e)?e=spreadUrlObject(parseUrl$1(e)):(ve=ae,ae=validateUrl(e),e={protocol:de}):e=spreadUrlObject(e),isFunction(ae)&&(ve=ae,ae=null),(ae=Object.assign({maxRedirects:Z.maxRedirects,maxBodyLength:Z.maxBodyLength},e,ae)).nativeProtocols=ie,isString$2(ae.host)||isString$2(ae.hostname)||(ae.hostname="::1"),Vt.default.equal(ae.protocol,de,"protocol mismatch"),debug_1("options",ae),new RedirectableRequest(ae,ve)},configurable:!0,enumerable:!0,writable:!0},get:{value:function get(e,Z,ie){var ae=be.request(e,Z,ie);return ae.end(),ae},configurable:!0,enumerable:!0,writable:!0}})}),Z}function noop$1(){}function parseUrl$1(e){var Z;if(Us)Z=new js(e);else if(!isString$2((Z=validateUrl(qt.default.parse(e))).protocol))throw new Ws({input:e});return Z}function validateUrl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Ws({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Ws({input:e.href||e});return e}function spreadUrlObject(e,Z){var ie=Z||{};for(var ae of $s)ie[ae]=e[ae];return ie.hostname.startsWith("[")&&(ie.hostname=ie.hostname.slice(1,-1)),""!==ie.port&&(ie.port=Number(ie.port)),ie.path=ie.search?ie.pathname+ie.search:ie.pathname,ie}function removeMatchingHeaders(e,Z){var ie;for(var ae in Z)e.test(ae)&&(ie=Z[ae],delete Z[ae]);return null==ie?void 0:String(ie).trim()}function createErrorType(e,Z,ie){function CustomError(ie){isFunction(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,ie||{}),this.code=e,this.message=this.cause?Z+": "+this.cause.message:Z}return CustomError.prototype=new(ie||Error),Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),CustomError}function destroyRequest(e,Z){for(var ie of qs)e.removeListener(ie,zs[ie]);e.on("error",noop$1),e.destroy(Z)}function isString$2(e){return"string"==typeof e||e instanceof String}function isFunction(e){return"function"==typeof e}RedirectableRequest.prototype=Object.create(Rs.prototype),RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},RedirectableRequest.prototype.destroy=function(e){return destroyRequest(this._currentRequest,e),si.call(this,e),this},RedirectableRequest.prototype.write=function(e,Z,ie){if(this._ending)throw new ni;if(!isString$2(e)&&!function isBuffer$2(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");isFunction(Z)&&(ie=Z,Z=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:Z}),this._currentRequest.write(e,Z,ie)):(this.emit("error",new ri),this.abort()):ie&&ie()},RedirectableRequest.prototype.end=function(e,Z,ie){if(isFunction(e)?(ie=e,e=Z=null):isFunction(Z)&&(ie=Z,Z=null),e){var ae=this,de=this._currentRequest;this.write(e,Z,function(){ae._ended=!0,de.end(null,null,ie)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,ie)},RedirectableRequest.prototype.setHeader=function(e,Z){this._options.headers[e]=Z,this._currentRequest.setHeader(e,Z)},RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},RedirectableRequest.prototype.setTimeout=function(e,Z){var ie=this;function destroyOnTimeout(Z){Z.setTimeout(e),Z.removeListener("timeout",Z.destroy),Z.addListener("timeout",Z.destroy)}function startTimer(Z){ie._timeout&&clearTimeout(ie._timeout),ie._timeout=setTimeout(function(){ie.emit("timeout"),clearTimer()},e),destroyOnTimeout(Z)}function clearTimer(){ie._timeout&&(clearTimeout(ie._timeout),ie._timeout=null),ie.removeListener("abort",clearTimer),ie.removeListener("error",clearTimer),ie.removeListener("response",clearTimer),ie.removeListener("close",clearTimer),Z&&ie.removeListener("timeout",Z),ie.socket||ie._currentRequest.removeListener("socket",startTimer)}return Z&&this.on("timeout",Z),this.socket?startTimer(this.socket):this._currentRequest.once("socket",startTimer),this.on("socket",destroyOnTimeout),this.on("abort",clearTimer),this.on("error",clearTimer),this.on("response",clearTimer),this.on("close",clearTimer),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(Z,ie){return this._currentRequest[e](Z,ie)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}),RedirectableRequest.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var Z=e.path.indexOf("?");Z<0?e.pathname=e.path:(e.pathname=e.path.substring(0,Z),e.search=e.path.substring(Z))}},RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol,Z=this._options.nativeProtocols[e];if(!Z)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var ie=e.slice(0,-1);this._options.agent=this._options.agents[ie]}var ae=this._currentRequest=Z.request(this._options,this._onNativeResponse);for(var de of(ae._redirectable=this,qs))ae.on(de,zs[de]);if(this._currentUrl=/^\//.test(this._options.path)?qt.default.format(this._options):this._options.path,this._isRedirect){var ve=0,be=this,Ce=this._requestBodyBuffers;!function writeNext(e){if(ae===be._currentRequest)if(e)be.emit("error",e);else if(ve<Ce.length){var Z=Ce[ve++];ae.finished||ae.write(Z.data,Z.encoding,writeNext)}else be._ended&&ae.end()}()}},RedirectableRequest.prototype._processResponse=function(e){var Z=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:Z});var ie,ae=e.headers.location;if(!ae||!1===this._options.followRedirects||Z<300||Z>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(destroyRequest(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ti;var de=this._options.beforeRedirect;de&&(ie=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var ve=this._options.method;((301===Z||302===Z)&&"POST"===this._options.method||303===Z&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],removeMatchingHeaders(/^content-/i,this._options.headers));var be=removeMatchingHeaders(/^host$/i,this._options.headers),Ce=parseUrl$1(this._currentUrl),ke=be||Ce.host,Ie=/^\w+:/.test(ae)?this._currentUrl:qt.default.format(Object.assign(Ce,{host:ke})),_e=function resolveUrl$1(e,Z){return Us?new js(e,Z):parseUrl$1(qt.default.resolve(Z,e))}(ae,Ie);if(debug_1("redirecting to",_e.href),this._isRedirect=!0,spreadUrlObject(_e,this._options),(_e.protocol!==Ce.protocol&&"https:"!==_e.protocol||_e.host!==ke&&!function isSubdomain(e,Z){Vt.default(isString$2(e)&&isString$2(Z));var ie=e.length-Z.length-1;return ie>0&&"."===e[ie]&&e.endsWith(Z)}(_e.host,ke))&&removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),isFunction(de)){var Fe={headers:e.headers,statusCode:Z},Oe={url:Ie,method:ve,headers:ie};de(this._options,Fe,Oe),this._sanitizeOptions(this._options)}this._performRequest()};var ii=wrap({http:Ft.default,https:Ut.default}),ai=wrap;ii.wrap=ai;var oi="0.27.2",ci=ii.http,ui=ii.https,li=oi,pi=/https:?/,hi=["http:","https:","file:"];function setProxy(e,Z,ie){if(e.hostname=Z.host,e.host=Z.host,e.port=Z.port,e.path=ie,Z.auth){var ae=Buffer.from(Z.auth.username+":"+Z.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+ae}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host,setProxy(e,Z,e.href)}}var di=function httpAdapter(e){return new Promise(function dispatchHttpRequest(Z,ie){var ae;function done(){e.cancelToken&&e.cancelToken.unsubscribe(ae),e.signal&&e.signal.removeEventListener("abort",ae)}var de=function resolve(e){done(),Z(e)},ve=!1,be=function reject(e){done(),ve=!0,ie(e)},Ce=e.data,ke=e.headers,Ie={};if(Object.keys(ke).forEach(function storeLowerName(e){Ie[e.toLowerCase()]=e}),"user-agent"in Ie?ke[Ie["user-agent"]]||delete ke[Ie["user-agent"]]:ke["User-Agent"]="axios/"+li,es.isFormData(Ce)&&es.isFunction(Ce.getHeaders))Object.assign(ke,Ce.getHeaders());else if(Ce&&!es.isStream(Ce)){if(Buffer.isBuffer(Ce));else if(es.isArrayBuffer(Ce))Ce=Buffer.from(new Uint8Array(Ce));else{if(!es.isString(Ce))return be(new cs("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",cs.ERR_BAD_REQUEST,e));Ce=Buffer.from(Ce,"utf-8")}if(e.maxBodyLength>-1&&Ce.length>e.maxBodyLength)return be(new cs("Request body larger than maxBodyLength limit",cs.ERR_BAD_REQUEST,e));Ie["content-length"]||(ke["Content-Length"]=Ce.length)}var _e=void 0;e.auth&&(_e=(e.auth.username||"")+":"+(e.auth.password||""));var Fe=xs(e.baseURL,e.url),Oe=qt.default.parse(Fe),Be=Oe.protocol||hi[0];if(-1===hi.indexOf(Be))return be(new cs("Unsupported protocol "+Be,cs.ERR_BAD_REQUEST,e));if(!_e&&Oe.auth){var Me=Oe.auth.split(":");_e=(Me[0]||"")+":"+(Me[1]||"")}_e&&Ie.authorization&&delete ke[Ie.authorization];var qe=pi.test(Be),Ve=qe?e.httpsAgent:e.httpAgent;try{ts(Oe.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(Z){var Ze=new Error(Z.message);Ze.config=e,Ze.url=e.url,Ze.exists=!0,be(Ze)}var et={path:ts(Oe.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:ke,agent:Ve,agents:{http:e.httpAgent,https:e.httpsAgent},auth:_e};e.socketPath?et.socketPath=e.socketPath:(et.hostname=Oe.hostname,et.port=Oe.port);var tt,ct=e.proxy;if(!ct&&!1!==ct){var ut=Be.slice(0,-1)+"_proxy",lt=process.env[ut]||process.env[ut.toUpperCase()];if(lt){var pt=qt.default.parse(lt),ft=process.env.no_proxy||process.env.NO_PROXY,mt=!0;if(ft){var yt=ft.split(",").map(function trim(e){return e.trim()});mt=!yt.some(function proxyMatch(e){return!!e&&("*"===e||("."===e[0]&&Oe.hostname.substr(Oe.hostname.length-e.length)===e||Oe.hostname===e))})}if(mt&&(ct={host:pt.hostname,port:pt.port,protocol:pt.protocol},pt.auth)){var gt=pt.auth.split(":");ct.auth={username:gt[0],password:gt[1]}}}}ct&&(et.headers.host=Oe.hostname+(Oe.port?":"+Oe.port:""),setProxy(et,ct,Be+"//"+Oe.hostname+(Oe.port?":"+Oe.port:"")+et.path));var vt=qe&&(!ct||pi.test(ct.protocol));e.transport?tt=e.transport:0===e.maxRedirects?tt=vt?Ut.default:Ft.default:(e.maxRedirects&&(et.maxRedirects=e.maxRedirects),e.beforeRedirect&&(et.beforeRedirect=e.beforeRedirect),tt=vt?ui:ci),e.maxBodyLength>-1&&(et.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(et.insecureHTTPParser=e.insecureHTTPParser);var bt=tt.request(et,function handleResponse(Z){if(!bt.aborted){var ie=Z,ae=Z.req||bt;if(204!==Z.statusCode&&"HEAD"!==ae.method&&!1!==e.decompress)switch(Z.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ie=ie.pipe(Jt.default.createUnzip()),delete Z.headers["content-encoding"]}var Ce={status:Z.statusCode,statusText:Z.statusMessage,headers:Z.headers,config:e,request:ae};if("stream"===e.responseType)Ce.data=ie,ys(de,be,Ce);else{var ke=[],Ie=0;ie.on("data",function handleStreamData(Z){ke.push(Z),Ie+=Z.length,e.maxContentLength>-1&&Ie>e.maxContentLength&&(ve=!0,ie.destroy(),be(new cs("maxContentLength size of "+e.maxContentLength+" exceeded",cs.ERR_BAD_RESPONSE,e,ae)))}),ie.on("aborted",function handlerStreamAborted(){ve||(ie.destroy(),be(new cs("maxContentLength size of "+e.maxContentLength+" exceeded",cs.ERR_BAD_RESPONSE,e,ae)))}),ie.on("error",function handleStreamError(Z){bt.aborted||be(cs.from(Z,null,e,ae))}),ie.on("end",function handleStreamEnd(){try{var Z=1===ke.length?ke[0]:Buffer.concat(ke);"arraybuffer"!==e.responseType&&(Z=Z.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(Z=es.stripBOM(Z))),Ce.data=Z}catch(Z){be(cs.from(Z,null,e,Ce.request,Ce))}ys(de,be,Ce)})}}});if(bt.on("error",function handleRequestError(Z){be(cs.from(Z,null,e,bt))}),bt.on("socket",function handleRequestSocket(e){e.setKeepAlive(!0,6e4)}),e.timeout){var Et=parseInt(e.timeout,10);if(isNaN(Et))return void be(new cs("error trying to parse `config.timeout` to int",cs.ERR_BAD_OPTION_VALUE,e,bt));bt.setTimeout(Et,function handleRequestTimeout(){bt.abort();var Z=e.transitional||ls;be(new cs("timeout of "+Et+"ms exceeded",Z.clarifyTimeoutError?cs.ETIMEDOUT:cs.ECONNABORTED,e,bt))})}(e.cancelToken||e.signal)&&(ae=function(e){bt.aborted||(bt.abort(),be(!e||e&&e.type?new Es:e))},e.cancelToken&&e.cancelToken.subscribe(ae),e.signal&&(e.signal.aborted?ae():e.signal.addEventListener("abort",ae))),es.isStream(Ce)?Ce.on("error",function handleStreamError(Z){be(cs.from(Z,e,null,bt))}).pipe(bt):bt.end(Ce)})},fi=Ht.default.Stream,mi=DelayedStream;function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Wt.default.inherits(DelayedStream,fi),DelayedStream.create=function(e,Z){var ie=new this;for(var ae in Z=Z||{})ie[ae]=Z[ae];ie.source=e;var de=e.emit;return e.emit=function(){return ie._handleEmit(arguments),de.apply(e,arguments)},e.on("error",function(){}),ie.pauseStream&&e.pause(),ie},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var e=fi.prototype.pipe.apply(this,arguments);return this.resume(),e},DelayedStream.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var yi=Ht.default.Stream,gi=CombinedStream;function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Wt.default.inherits(CombinedStream,yi),CombinedStream.create=function(e){var Z=new this;for(var ie in e=e||{})Z[ie]=e[ie];return Z},CombinedStream.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},CombinedStream.prototype.append=function(e){if(CombinedStream.isStreamLike(e)){if(!(e instanceof mi)){var Z=mi.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=Z}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},CombinedStream.prototype.pipe=function(e,Z){return yi.prototype.pipe.call(this,e,Z),this.resume(),e},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){CombinedStream.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},CombinedStream.prototype._pipeNext=function(e){if(this._currentStream=e,CombinedStream.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var Z=e;this.write(Z),this._getNext()},CombinedStream.prototype._handleErrors=function(e){var Z=this;e.on("error",function(e){Z._emitError(e)})},CombinedStream.prototype.write=function(e){this.emit("data",e)},CombinedStream.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(Z){Z.dataSize&&(e.dataSize+=Z.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var xi=getCjsExportFromNamespace(Object.freeze({__proto__:null,default:{"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),vi=createCommonjsModule(function(e,Z){var ie=yt.default.extname,ae=/^\s*([^;\s]*)(?:;|\s|$)/,de=/^text\//i;function charset(e){if(!e||"string"!=typeof e)return!1;var Z=ae.exec(e),ie=Z&&xi[Z[1].toLowerCase()];return ie&&ie.charset?ie.charset:!(!Z||!de.test(Z[1]))&&"UTF-8"}Z.charset=charset,Z.charsets={lookup:charset},Z.contentType=function contentType(e){if(!e||"string"!=typeof e)return!1;var ie=-1===e.indexOf("/")?Z.lookup(e):e;if(!ie)return!1;if(-1===ie.indexOf("charset")){var ae=Z.charset(ie);ae&&(ie+="; charset="+ae.toLowerCase())}return ie},Z.extension=function extension(e){if(!e||"string"!=typeof e)return!1;var ie=ae.exec(e),de=ie&&Z.extensions[ie[1].toLowerCase()];if(!de||!de.length)return!1;return de[0]},Z.extensions=Object.create(null),Z.lookup=function lookup(e){if(!e||"string"!=typeof e)return!1;var ae=ie("x."+e).toLowerCase().substr(1);if(!ae)return!1;return Z.types[ae]||!1},Z.types=Object.create(null),function populateMaps(e,Z){var ie=["nginx","apache",void 0,"iana"];Object.keys(xi).forEach(function forEachMimeType(ae){var de=xi[ae],ve=de.extensions;if(ve&&ve.length){e[ae]=ve;for(var be=0;be<ve.length;be++){var Ce=ve[be];if(Z[Ce]){var ke=ie.indexOf(xi[Z[Ce]].source),Ie=ie.indexOf(de.source);if("application/octet-stream"!==Z[Ce]&&(ke>Ie||ke===Ie&&"application/"===Z[Ce].substr(0,12)))continue}Z[Ce]=ae}}})}(Z.extensions,Z.types)});vi.charset,vi.charsets,vi.contentType,vi.extension,vi.extensions,vi.lookup,vi.types;var bi=function defer(e){var Z="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;Z?Z(e):setTimeout(e,0)};var Ei=function async(e){var Z=!1;return bi(function(){Z=!0}),function async_callback(ie,ae){Z?e(ie,ae):bi(function nextTick_callback(){e(ie,ae)})}};var Ci=function abort(e){Object.keys(e.jobs).forEach(clean.bind(e)),e.jobs={}};function clean(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Ai=function iterate(e,Z,ie,ae){var de=ie.keyedList?ie.keyedList[ie.index]:ie.index;ie.jobs[de]=function runJob(e,Z,ie,ae){var de;de=2==e.length?e(ie,Ei(ae)):e(ie,Z,Ei(ae));return de}(Z,de,e[de],function(e,Z){de in ie.jobs&&(delete ie.jobs[de],e?Ci(ie):ie.results[de]=Z,ae(e,ie.results))})};var wi=function state(e,Z){var ie=!Array.isArray(e),ae={index:0,keyedList:ie||Z?Object.keys(e):null,jobs:{},results:ie?{}:[],size:ie?Object.keys(e).length:e.length};Z&&ae.keyedList.sort(ie?Z:function(ie,ae){return Z(e[ie],e[ae])});return ae};var Ti=function terminator(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Ci(this),Ei(e)(null,this.results)};var Si=function parallel(e,Z,ie){var ae=wi(e);for(;ae.index<(ae.keyedList||e).length;)Ai(e,Z,ae,function(e,Z){e?ie(e,Z):0!==Object.keys(ae.jobs).length||ie(null,ae.results)}),ae.index++;return Ti.bind(ae,ie)};var Di=function serialOrdered(e,Z,ie,ae){var de=wi(e,ie);return Ai(e,Z,de,function iteratorHandler(ie,ve){ie?ae(ie,ve):(de.index++,de.index<(de.keyedList||e).length?Ai(e,Z,de,iteratorHandler):ae(null,de.results))}),Ti.bind(de,ae)},Pi=ascending,ki=function descending(e,Z){return-1*ascending(e,Z)};function ascending(e,Z){return e<Z?-1:e>Z?1:0}Di.ascending=Pi,Di.descending=ki;var Ii={parallel:Si,serial:function serial(e,Z,ie){return Di(e,Z,null,ie)},serialOrdered:Di},Ni=Object,_i=Error,Fi=EvalError,Oi=RangeError,Li=ReferenceError,Bi=SyntaxError,Mi=TypeError,ji=URIError,Ri=Math.abs,Ui=Math.floor,$i=Math.max,qi=Math.min,zi=Math.pow,Hi=Math.round,Vi=Number.isNaN||function isNaN(e){return e!=e},Gi=Object.getOwnPropertyDescriptor;if(Gi)try{Gi([],"length")}catch(e){Gi=null}var Wi=Gi,Ji=Object.defineProperty||!1;if(Ji)try{Ji({},"a",{value:1})}catch(e){Ji=!1}var Ki,Xi=Ji,Yi=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},Z=Symbol("test"),ie=Object(Z);if("string"==typeof Z)return!1;if("[object Symbol]"!==Object.prototype.toString.call(Z))return!1;if("[object Symbol]"!==Object.prototype.toString.call(ie))return!1;for(var ae in e[Z]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var de=Object.getOwnPropertySymbols(e);if(1!==de.length||de[0]!==Z)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,Z))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ve=Object.getOwnPropertyDescriptor(e,Z);if(42!==ve.value||!0!==ve.enumerable)return!1}return!0},Zi="undefined"!=typeof Symbol&&Symbol,Qi="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null,sa=Ni,aa=sa.getPrototypeOf||null,oa=Object.prototype.toString,ca=Math.max,ua=function concatty(e,Z){for(var ie=[],ae=0;ae<e.length;ae+=1)ie[ae]=e[ae];for(var de=0;de<Z.length;de+=1)ie[de+e.length]=Z[de];return ie},la=Function.prototype.bind||function bind(e){var Z=this;if("function"!=typeof Z||"[object Function]"!==oa.apply(Z))throw new TypeError("Function.prototype.bind called on incompatible "+Z);for(var ie,ae=function slicy(e,Z){for(var ie=[],ae=Z||0,de=0;ae<e.length;ae+=1,de+=1)ie[de]=e[ae];return ie}(arguments,1),de=ca(0,Z.length-ae.length),ve=[],be=0;be<de;be++)ve[be]="$"+be;if(ie=Function("binder","return function ("+function(e,Z){for(var ie="",ae=0;ae<e.length;ae+=1)ie+=e[ae],ae+1<e.length&&(ie+=Z);return ie}(ve,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof ie){var de=Z.apply(this,ua(ae,arguments));return Object(de)===de?de:this}return Z.apply(e,ua(ae,arguments))}),Z.prototype){var Ce=function Empty(){};Ce.prototype=Z.prototype,ie.prototype=new Ce,Ce.prototype=null}return ie},pa=Function.prototype.call,ha=Function.prototype.apply,da="undefined"!=typeof Reflect&&Reflect&&Reflect.apply||la.call(pa,ha),fa=Mi,xa=Wi;try{Ki=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var ba,Ea=!!Ki&&xa&&xa(Object.prototype,"__proto__"),Ca=Object,Aa=Ca.getPrototypeOf,Ta=Ea&&"function"==typeof Ea.get?function callBindBasic(e){if(e.length<1||"function"!=typeof e[0])throw new fa("a function is required");return da(la,pa,e)}([Ea.get]):"function"==typeof Aa&&function getDunder(e){return Aa(null==e?e:Ca(e))},Sa=Qi?function getProto(e){return Qi(e)}:aa?function getProto(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return aa(e)}:Ta?function getProto(e){return Ta(e)}:null,Da=Function.prototype.call,Pa=Object.prototype.hasOwnProperty,ka=la.call(Da,Pa),Ia=_i,_a=Fi,Fa=Oi,Oa=Li,La=Bi,Ba=ji,Ma=Ri,ja=Ui,Ra=$i,Ua=qi,$a=zi,qa=Hi,Ha=function sign(e){return Vi(e)||0===e?e:e<0?-1:1},Va=Xi,Ga=ka,Wa=Function,getEvalledConstructor=function(e){try{return Wa('"use strict"; return ('+e+").constructor;")()}catch(e){}},throwTypeError=function(){throw new fa},Ja=xa?function(){try{return throwTypeError}catch(e){try{return xa(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,Ka=function hasNativeSymbols(){return"function"==typeof Zi&&("function"==typeof Symbol&&("symbol"==typeof Zi("foo")&&("symbol"==typeof Symbol("bar")&&Yi())))}(),Xa={},Ya="undefined"!=typeof Uint8Array&&Sa?Sa(Uint8Array):ba,Za={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ba:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ba:ArrayBuffer,"%ArrayIteratorPrototype%":Ka&&Sa?Sa([][Symbol.iterator]()):ba,"%AsyncFromSyncIteratorPrototype%":ba,"%AsyncFunction%":Xa,"%AsyncGenerator%":Xa,"%AsyncGeneratorFunction%":Xa,"%AsyncIteratorPrototype%":Xa,"%Atomics%":"undefined"==typeof Atomics?ba:Atomics,"%BigInt%":"undefined"==typeof BigInt?ba:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ba:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ba:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ba:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ia,"%eval%":eval,"%EvalError%":_a,"%Float16Array%":"undefined"==typeof Float16Array?ba:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ba:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ba:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ba:FinalizationRegistry,"%Function%":Wa,"%GeneratorFunction%":Xa,"%Int8Array%":"undefined"==typeof Int8Array?ba:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ba:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ba:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ka&&Sa?Sa(Sa([][Symbol.iterator]())):ba,"%JSON%":"object"==typeof JSON?JSON:ba,"%Map%":"undefined"==typeof Map?ba:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ka&&Sa?Sa((new Map)[Symbol.iterator]()):ba,"%Math%":Math,"%Number%":Number,"%Object%":sa,"%Object.getOwnPropertyDescriptor%":xa,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ba:Promise,"%Proxy%":"undefined"==typeof Proxy?ba:Proxy,"%RangeError%":Fa,"%ReferenceError%":Oa,"%Reflect%":"undefined"==typeof Reflect?ba:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ba:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ka&&Sa?Sa((new Set)[Symbol.iterator]()):ba,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ba:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ka&&Sa?Sa(""[Symbol.iterator]()):ba,"%Symbol%":Ka?Symbol:ba,"%SyntaxError%":La,"%ThrowTypeError%":Ja,"%TypedArray%":Ya,"%TypeError%":fa,"%Uint8Array%":"undefined"==typeof Uint8Array?ba:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ba:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ba:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ba:Uint32Array,"%URIError%":Ba,"%WeakMap%":"undefined"==typeof WeakMap?ba:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ba:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ba:WeakSet,"%Function.prototype.call%":pa,"%Function.prototype.apply%":ha,"%Object.defineProperty%":Va,"%Object.getPrototypeOf%":aa,"%Math.abs%":Ma,"%Math.floor%":ja,"%Math.max%":Ra,"%Math.min%":Ua,"%Math.pow%":$a,"%Math.round%":qa,"%Math.sign%":Ha,"%Reflect.getPrototypeOf%":Qi};if(Sa)try{null.error}catch(e){var Qa=Sa(Sa(e));Za["%Error.prototype%"]=Qa}var to=function doEval(e){var Z;if("%AsyncFunction%"===e)Z=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)Z=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)Z=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var ie=doEval("%AsyncGeneratorFunction%");ie&&(Z=ie.prototype)}else if("%AsyncIteratorPrototype%"===e){var ae=doEval("%AsyncGenerator%");ae&&Sa&&(Z=Sa(ae.prototype))}return Za[e]=Z,Z},no={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},so=la.call(pa,Array.prototype.concat),io=la.call(ha,Array.prototype.splice),ao=la.call(pa,String.prototype.replace),oo=la.call(pa,String.prototype.slice),uo=la.call(pa,RegExp.prototype.exec),lo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,po=/\\(\\)?/g,ho=function getBaseIntrinsic(e,Z){var ie,ae=e;if(Ga(no,ae)&&(ae="%"+(ie=no[ae])[0]+"%"),Ga(Za,ae)){var de=Za[ae];if(de===Xa&&(de=to(ae)),void 0===de&&!Z)throw new fa("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:ie,name:ae,value:de}}throw new La("intrinsic "+e+" does not exist!")},fo=function GetIntrinsic(e,Z){if("string"!=typeof e||0===e.length)throw new fa("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Z)throw new fa('"allowMissing" argument must be a boolean');if(null===uo(/^%?[^%]*%?$/,e))throw new La("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ie=function stringToPath(e){var Z=oo(e,0,1),ie=oo(e,-1);if("%"===Z&&"%"!==ie)throw new La("invalid intrinsic syntax, expected closing `%`");if("%"===ie&&"%"!==Z)throw new La("invalid intrinsic syntax, expected opening `%`");var ae=[];return ao(e,lo,function(e,Z,ie,de){ae[ae.length]=ie?ao(de,po,"$1"):Z||e}),ae}(e),ae=ie.length>0?ie[0]:"",de=ho("%"+ae+"%",Z),ve=de.name,be=de.value,Ce=!1,ke=de.alias;ke&&(ae=ke[0],io(ie,so([0,1],ke)));for(var Ie=1,_e=!0;Ie<ie.length;Ie+=1){var Fe=ie[Ie],Oe=oo(Fe,0,1),Be=oo(Fe,-1);if(('"'===Oe||"'"===Oe||"`"===Oe||'"'===Be||"'"===Be||"`"===Be)&&Oe!==Be)throw new La("property names with quotes must have matching quotes");if("constructor"!==Fe&&_e||(Ce=!0),Ga(Za,ve="%"+(ae+="."+Fe)+"%"))be=Za[ve];else if(null!=be){if(!(Fe in be)){if(!Z)throw new fa("base intrinsic for "+e+" exists, but the property is not available.");return}if(xa&&Ie+1>=ie.length){var Me=xa(be,Fe);be=(_e=!!Me)&&"get"in Me&&!("originalValue"in Me.get)?Me.get:be[Fe]}else _e=Ga(be,Fe),be=be[Fe];_e&&!Ce&&(Za[ve]=be)}}return be},mo=fo("%Object.defineProperty%",!0),Do=function hasToStringTagShams(){return Yi()&&!!Symbol.toStringTag}()?Symbol.toStringTag:null,populate=function(e,Z){return Object.keys(Z).forEach(function(ie){e[ie]=e[ie]||Z[ie]}),e},ko=function setToStringTag(e,Z){var ie=arguments.length>2&&!!arguments[2]&&arguments[2].force,ae=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==ie&&"boolean"!=typeof ie||void 0!==ae&&"boolean"!=typeof ae)throw new fa("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!Do||!ie&&Ga(e,Do)||(mo?mo(e,Do,{configurable:!ae,enumerable:!1,value:Z,writable:!1}):e[Do]=Z)},No=qt.default.parse,Fo=Ht.default.Stream;function FormData$2(e){if(!(this instanceof FormData$2))return new FormData$2(e);for(var Z in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],gi.call(this),e=e||{})this[Z]=e[Z]}Wt.default.inherits(FormData$2,gi),FormData$2.LINE_BREAK="\r\n",FormData$2.DEFAULT_CONTENT_TYPE="application/octet-stream",FormData$2.prototype.append=function(e,Z,ie){"string"==typeof(ie=ie||{})&&(ie={filename:ie});var ae=gi.prototype.append.bind(this);if("number"!=typeof Z&&null!=Z||(Z=String(Z)),Array.isArray(Z))this._error(new Error("Arrays are not supported."));else{var de=this._multiPartHeader(e,Z,ie),ve=this._multiPartFooter();ae(de),ae(Z),ae(ve),this._trackLength(de,Z,ie)}},FormData$2.prototype._trackLength=function(e,Z,ie){var ae=0;null!=ie.knownLength?ae+=Number(ie.knownLength):Buffer.isBuffer(Z)?ae=Z.length:"string"==typeof Z&&(ae=Buffer.byteLength(Z)),this._valueLength+=ae,this._overheadLength+=Buffer.byteLength(e)+FormData$2.LINE_BREAK.length,Z&&(Z.path||Z.readable&&Ga(Z,"httpVersion")||Z instanceof Fo)&&(ie.knownLength||this._valuesToMeasure.push(Z))},FormData$2.prototype._lengthRetriever=function(e,Z){Ga(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?Z(null,e.end+1-(e.start?e.start:0)):St.default.stat(e.path,function(ie,ae){if(ie)Z(ie);else{var de=ae.size-(e.start?e.start:0);Z(null,de)}}):Ga(e,"httpVersion")?Z(null,Number(e.headers["content-length"])):Ga(e,"httpModule")?(e.on("response",function(ie){e.pause(),Z(null,Number(ie.headers["content-length"]))}),e.resume()):Z("Unknown stream")},FormData$2.prototype._multiPartHeader=function(e,Z,ie){if("string"==typeof ie.header)return ie.header;var ae,de=this._getContentDisposition(Z,ie),ve=this._getContentType(Z,ie),be="",Ce={"Content-Disposition":["form-data",'name="'+e+'"'].concat(de||[]),"Content-Type":[].concat(ve||[])};for(var ke in"object"==typeof ie.header&&populate(Ce,ie.header),Ce)if(Ga(Ce,ke)){if(null==(ae=Ce[ke]))continue;Array.isArray(ae)||(ae=[ae]),ae.length&&(be+=ke+": "+ae.join("; ")+FormData$2.LINE_BREAK)}return"--"+this.getBoundary()+FormData$2.LINE_BREAK+be+FormData$2.LINE_BREAK},FormData$2.prototype._getContentDisposition=function(e,Z){var ie;if("string"==typeof Z.filepath?ie=yt.default.normalize(Z.filepath).replace(/\\/g,"/"):Z.filename||e&&(e.name||e.path)?ie=yt.default.basename(Z.filename||e&&(e.name||e.path)):e&&e.readable&&Ga(e,"httpVersion")&&(ie=yt.default.basename(e.client._httpMessage.path||"")),ie)return'filename="'+ie+'"'},FormData$2.prototype._getContentType=function(e,Z){var ie=Z.contentType;return!ie&&e&&e.name&&(ie=vi.lookup(e.name)),!ie&&e&&e.path&&(ie=vi.lookup(e.path)),!ie&&e&&e.readable&&Ga(e,"httpVersion")&&(ie=e.headers["content-type"]),ie||!Z.filepath&&!Z.filename||(ie=vi.lookup(Z.filepath||Z.filename)),!ie&&e&&"object"==typeof e&&(ie=FormData$2.DEFAULT_CONTENT_TYPE),ie},FormData$2.prototype._multiPartFooter=function(){return function(e){var Z=FormData$2.LINE_BREAK;0===this._streams.length&&(Z+=this._lastBoundary()),e(Z)}.bind(this)},FormData$2.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData$2.LINE_BREAK},FormData$2.prototype.getHeaders=function(e){var Z,ie={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(Z in e)Ga(e,Z)&&(ie[Z.toLowerCase()]=e[Z]);return ie},FormData$2.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},FormData$2.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},FormData$2.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),Z=this.getBoundary(),ie=0,ae=this._streams.length;ie<ae;ie++)"function"!=typeof this._streams[ie]&&(e=Buffer.isBuffer(this._streams[ie])?Buffer.concat([e,this._streams[ie]]):Buffer.concat([e,Buffer.from(this._streams[ie])]),"string"==typeof this._streams[ie]&&this._streams[ie].substring(2,Z.length+2)===Z||(e=Buffer.concat([e,Buffer.from(FormData$2.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},FormData$2.prototype._generateBoundary=function(){this._boundary="--------------------------"+_t.default.randomBytes(12).toString("hex")},FormData$2.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},FormData$2.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},FormData$2.prototype.getLength=function(e){var Z=this._overheadLength+this._valueLength;this._streams.length&&(Z+=this._lastBoundary().length),this._valuesToMeasure.length?Ii.parallel(this._valuesToMeasure,this._lengthRetriever,function(ie,ae){ie?e(ie):(ae.forEach(function(e){Z+=e}),e(null,Z))}):process.nextTick(e.bind(this,null,Z))},FormData$2.prototype.submit=function(e,Z){var ie,ae,de={method:"post"};return"string"==typeof e?(e=No(e),ae=populate({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},de)):(ae=populate(e,de)).port||(ae.port="https:"===ae.protocol?443:80),ae.headers=this.getHeaders(e.headers),ie="https:"===ae.protocol?Ut.default.request(ae):Ft.default.request(ae),this.getLength(function(e,ae){if(e&&"Unknown stream"!==e)this._error(e);else if(ae&&ie.setHeader("Content-Length",ae),this.pipe(ie),Z){var de,callback=function(e,ae){return ie.removeListener("error",callback),ie.removeListener("response",de),Z.call(this,e,ae)};de=callback.bind(this,null),ie.on("error",callback),ie.on("response",de)}}.bind(this)),ie},FormData$2.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},FormData$2.prototype.toString=function(){return"[object FormData]"},ko(FormData$2,"FormData");var Lo=FormData$2,Vo=Lo,Go={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,Z){!es.isUndefined(e)&&es.isUndefined(e["Content-Type"])&&(e["Content-Type"]=Z)}var Wo={transitional:ls,adapter:function getDefaultAdapter(){var e;return"undefined"!=typeof XMLHttpRequest?e=Cs:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=di),e}(),transformRequest:[function transformRequest(e,Z){if(ss(Z,"Accept"),ss(Z,"Content-Type"),es.isFormData(e)||es.isArrayBuffer(e)||es.isBuffer(e)||es.isStream(e)||es.isFile(e)||es.isBlob(e))return e;if(es.isArrayBufferView(e))return e.buffer;if(es.isURLSearchParams(e))return setContentTypeIfUnset(Z,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var ie,ae=es.isObject(e),de=Z&&Z["Content-Type"];if((ie=es.isFileList(e))||ae&&"multipart/form-data"===de){var ve=this.env&&this.env.FormData;return hs(ie?{"files[]":e}:e,ve&&new ve)}return ae||"application/json"===de?(setContentTypeIfUnset(Z,"application/json"),function stringifySafely(e,Z,ie){if(es.isString(e))try{return(Z||JSON.parse)(e),es.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(ie||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){var Z=this.transitional||Wo.transitional,ie=Z&&Z.silentJSONParsing,ae=Z&&Z.forcedJSONParsing,de=!ie&&"json"===this.responseType;if(de||ae&&es.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(de){if("SyntaxError"===e.name)throw cs.from(e,cs.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vo},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};es.forEach(["delete","get","head"],function forEachMethodNoData(e){Wo.headers[e]={}}),es.forEach(["post","put","patch"],function forEachMethodWithData(e){Wo.headers[e]=es.merge(Go)});var Jo=Wo,Ko=function transformData(e,Z,ie){var ae=this||Jo;return es.forEach(ie,function transform(ie){e=ie.call(ae,e,Z)}),e},Xo=function isCancel(e){return!(!e||!e.__CANCEL__)};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Es}var Yo=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=Ko.call(e,e.data,e.headers,e.transformRequest),e.headers=es.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),es.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(Z){delete e.headers[Z]}),(e.adapter||Jo.adapter)(e).then(function onAdapterResolution(Z){return throwIfCancellationRequested(e),Z.data=Ko.call(e,Z.data,Z.headers,e.transformResponse),Z},function onAdapterRejection(Z){return Xo(Z)||(throwIfCancellationRequested(e),Z&&Z.response&&(Z.response.data=Ko.call(e,Z.response.data,Z.response.headers,e.transformResponse))),Promise.reject(Z)})},ec=function mergeConfig(e,Z){Z=Z||{};var ie={};function getMergedValue(e,Z){return es.isPlainObject(e)&&es.isPlainObject(Z)?es.merge(e,Z):es.isPlainObject(Z)?es.merge({},Z):es.isArray(Z)?Z.slice():Z}function mergeDeepProperties(ie){return es.isUndefined(Z[ie])?es.isUndefined(e[ie])?void 0:getMergedValue(void 0,e[ie]):getMergedValue(e[ie],Z[ie])}function valueFromConfig2(e){if(!es.isUndefined(Z[e]))return getMergedValue(void 0,Z[e])}function defaultToConfig2(ie){return es.isUndefined(Z[ie])?es.isUndefined(e[ie])?void 0:getMergedValue(void 0,e[ie]):getMergedValue(void 0,Z[ie])}function mergeDirectKeys(ie){return ie in Z?getMergedValue(e[ie],Z[ie]):ie in e?getMergedValue(void 0,e[ie]):void 0}var ae={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};return es.forEach(Object.keys(e).concat(Object.keys(Z)),function computeConfigValue(e){var Z=ae[e]||mergeDeepProperties,de=Z(e);es.isUndefined(de)&&Z!==mergeDirectKeys||(ie[e]=de)}),ie},tc=oi,rc={};["object","boolean","number","function","string","symbol"].forEach(function(e,Z){rc[e]=function validator(ie){return typeof ie===e||"a"+(Z<1?"n ":" ")+e}});var nc={};rc.transitional=function transitional(e,Z,ie){function formatMessage(e,Z){return"[Axios v"+tc+"] Transitional option '"+e+"'"+Z+(ie?". "+ie:"")}return function(ie,ae,de){if(!1===e)throw new cs(formatMessage(ae," has been removed"+(Z?" in "+Z:"")),cs.ERR_DEPRECATED);return Z&&!nc[ae]&&(nc[ae]=!0,console.warn(formatMessage(ae," has been deprecated since v"+Z+" and will be removed in the near future"))),!e||e(ie,ae,de)}};var sc={assertOptions:function assertOptions(e,Z,ie){if("object"!=typeof e)throw new cs("options must be an object",cs.ERR_BAD_OPTION_VALUE);for(var ae=Object.keys(e),de=ae.length;de-- >0;){var ve=ae[de],be=Z[ve];if(be){var Ce=e[ve],ke=void 0===Ce||be(Ce,ve,e);if(!0!==ke)throw new cs("option "+ve+" must be "+ke,cs.ERR_BAD_OPTION_VALUE)}else if(!0!==ie)throw new cs("Unknown option "+ve,cs.ERR_BAD_OPTION)}},validators:rc},ic=sc.validators;function Axios(e){this.defaults=e,this.interceptors={request:new ns,response:new ns}}Axios.prototype.request=function request(e,Z){"string"==typeof e?(Z=Z||{}).url=e:Z=e||{},(Z=ec(this.defaults,Z)).method?Z.method=Z.method.toLowerCase():this.defaults.method?Z.method=this.defaults.method.toLowerCase():Z.method="get";var ie=Z.transitional;void 0!==ie&&sc.assertOptions(ie,{silentJSONParsing:ic.transitional(ic.boolean),forcedJSONParsing:ic.transitional(ic.boolean),clarifyTimeoutError:ic.transitional(ic.boolean)},!1);var ae=[],de=!0;this.interceptors.request.forEach(function unshiftRequestInterceptors(e){"function"==typeof e.runWhen&&!1===e.runWhen(Z)||(de=de&&e.synchronous,ae.unshift(e.fulfilled,e.rejected))});var ve,be=[];if(this.interceptors.response.forEach(function pushResponseInterceptors(e){be.push(e.fulfilled,e.rejected)}),!de){var Ce=[Yo,void 0];for(Array.prototype.unshift.apply(Ce,ae),Ce=Ce.concat(be),ve=Promise.resolve(Z);Ce.length;)ve=ve.then(Ce.shift(),Ce.shift());return ve}for(var ke=Z;ae.length;){var Ie=ae.shift(),_e=ae.shift();try{ke=Ie(ke)}catch(e){_e(e);break}}try{ve=Yo(ke)}catch(e){return Promise.reject(e)}for(;be.length;)ve=ve.then(be.shift(),be.shift());return ve},Axios.prototype.getUri=function getUri(e){e=ec(this.defaults,e);var Z=xs(e.baseURL,e.url);return ts(Z,e.params,e.paramsSerializer)},es.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(Z,ie){return this.request(ec(ie||{},{method:e,url:Z,data:(ie||{}).data}))}}),es.forEach(["post","put","patch"],function forEachMethodWithData(e){function generateHTTPMethod(Z){return function httpMethod(ie,ae,de){return this.request(ec(de||{},{method:e,headers:Z?{"Content-Type":"multipart/form-data"}:{},url:ie,data:ae}))}}Axios.prototype[e]=generateHTTPMethod(),Axios.prototype[e+"Form"]=generateHTTPMethod(!0)});var ac=Axios;function CancelToken(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var Z;this.promise=new Promise(function promiseExecutor(e){Z=e});var ie=this;this.promise.then(function(e){if(ie._listeners){var Z,ae=ie._listeners.length;for(Z=0;Z<ae;Z++)ie._listeners[Z](e);ie._listeners=null}}),this.promise.then=function(e){var Z,ae=new Promise(function(e){ie.subscribe(e),Z=e}).then(e);return ae.cancel=function reject(){ie.unsubscribe(Z)},ae},e(function cancel(e){ie.reason||(ie.reason=new Es(e),Z(ie.reason))})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},CancelToken.prototype.unsubscribe=function unsubscribe(e){if(this._listeners){var Z=this._listeners.indexOf(e);-1!==Z&&this._listeners.splice(Z,1)}},CancelToken.source=function source(){var e;return{token:new CancelToken(function executor(Z){e=Z}),cancel:e}};var cc=CancelToken;var uc=function createInstance(e){var Z=new ac(e),ie=qn(ac.prototype.request,Z);return es.extend(ie,ac.prototype,Z),es.extend(ie,Z),ie.create=function create(Z){return createInstance(ec(e,Z))},ie}(Jo);uc.Axios=ac,uc.CanceledError=Es,uc.CancelToken=cc,uc.isCancel=Xo,uc.VERSION=oi,uc.toFormData=hs,uc.AxiosError=cs,uc.Cancel=uc.CanceledError,uc.all=function all(e){return Promise.all(e)},uc.spread=function spread(e){return function wrap(Z){return e.apply(null,Z)}},uc.isAxiosError=function isAxiosError(e){return es.isObject(e)&&!0===e.isAxiosError};var lc=uc,pc=uc;lc.default=pc;var hc=lc,getCachePath=function(e){var Z=yt.default.join(vt.default.homedir(),".cache",e);return St.default.existsSync(Z)||St.default.mkdirSync(Z,{recursive:!0}),Z},dc=getCachePath("mengti_file"),downloadFile=function(e,Z){return __awaiter(void 0,void 0,void 0,function(){var ie,ae,de,ve;return __generator(this,function(be){switch(be.label){case 0:if(ie=e.includes("?")?e.split("?")[0]:e,ae=ie.split("/")[ie.split("/").length-1],de=dc+"/"+ae,Et.existsSync(de)){if(0!==Et.statSync(de).size)return Et.copyFileSync(de,Z),[2,{filePath:Z}];Et.unlinkSync(de)}return ve=Et.createWriteStream(de),[4,hc({url:e,method:"GET",responseType:"stream",timeout:3e4})];case 1:return be.sent().data.pipe(ve),[2,new Promise(function(e,ie){ve.on("finish",function(){0!==Et.statSync(de).size?(Et.copyFileSync(de,Z),e({filePath:Z})):ie(new Error("Downloaded file is empty"))}),ve.on("error",function(e){ie(e)})})]}})})};const{parse:fc,stringify:mc}=JSON,{keys:xc}=Object,vc=String,bc="string",Ec={},Cc="object",noop=(e,Z)=>Z,primitives=e=>e instanceof vc?vc(e):e,Primitives=(e,Z)=>typeof Z===bc?new vc(Z):Z,revive=(e,Z,ie,ae)=>{const de=[];for(let ve=xc(ie),{length:be}=ve,Ce=0;Ce<be;Ce++){const be=ve[Ce],ke=ie[be];if(ke instanceof vc){const ve=e[ke];typeof ve!==Cc||Z.has(ve)?ie[be]=ae.call(ie,be,ve):(Z.add(ve),ie[be]=Ec,de.push({k:be,a:[e,Z,ve,ae]}))}else ie[be]!==Ec&&(ie[be]=ae.call(ie,be,ke))}for(let{length:e}=de,Z=0;Z<e;Z++){const{k:e,a:ve}=de[Z];ie[e]=ae.call(ie,e,revive.apply(null,ve))}return ie},set=(e,Z,ie)=>{const ae=vc(Z.push(ie)-1);return e.set(ie,ae),ae},parse$1=(e,Z)=>{const ie=fc(e,Primitives).map(primitives),ae=ie[0],de=Z||noop,ve=typeof ae===Cc&&ae?revive(ie,new Set,ae,de):ae;return de.call({"":ve},"",ve)},stringify=(e,Z,ie)=>{const ae=Z&&typeof Z===Cc?(e,ie)=>""===e||-1<Z.indexOf(e)?ie:void 0:Z||noop,de=new Map,ve=[],be=[];let Ce=+set(de,ve,ae.call({"":e},"",e)),ke=!Ce;for(;Ce<ve.length;)ke=!0,be[Ce]=mc(ve[Ce++],replace,ie);return"["+be.join(",")+"]";function replace(e,Z){if(ke)return ke=!ke,Z;const ie=ae.call(this,e,Z);switch(typeof ie){case Cc:if(null===ie)return ie;case bc:return de.get(ie)||set(de,ve,ie)}return ie}};var Ac=Object.freeze({__proto__:null,parse:parse$1,stringify:stringify,toJSON:e=>fc(stringify(e)),fromJSON:e=>parse$1(mc(e))}),Tc={tryParse:function(e,Z){var ie;try{ie=this.readJSON(e)}catch(e){ie=Z}return ie},readJSON:function(e){return Ac.parse(St.default.readFileSync(e,{encoding:"utf8"}))},writeJSON:function(e,Z){St.default.mkdirSync(yt.default.dirname(e),{recursive:!0}),St.default.writeFileSync(e,Ac.stringify(Z))}};let Sc;try{Sc=Xt.default}catch(e){}const Dc={nosort:!0,silent:!0};let Pc=0;const kc="win32"===process.platform,defaults=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(Z=>{e[Z]=e[Z]||St.default[Z],e[Z+="Sync"]=e[Z]||St.default[Z]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===Sc)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||Dc},rimraf$1=(e,Z,ie)=>{"function"==typeof Z&&(ie=Z,Z={}),Vt.default(e,"rimraf: missing path"),Vt.default.equal(typeof e,"string","rimraf: path should be a string"),Vt.default.equal(typeof ie,"function","rimraf: callback function required"),Vt.default(Z,"rimraf: invalid options argument provided"),Vt.default.equal(typeof Z,"object","rimraf: options should be object"),defaults(Z);let ae=0,de=null,ve=0;const afterGlob=(e,be)=>e?ie(e):(ve=be.length,0===ve?ie():void be.forEach(e=>{const CB=be=>{if(be){if(("EBUSY"===be.code||"ENOTEMPTY"===be.code||"EPERM"===be.code)&&ae<Z.maxBusyTries)return ae++,setTimeout(()=>rimraf_(e,Z,CB),100*ae);if("EMFILE"===be.code&&Pc<Z.emfileWait)return setTimeout(()=>rimraf_(e,Z,CB),Pc++);"ENOENT"===be.code&&(be=null)}Pc=0,(e=>{de=de||e,0===--ve&&ie(de)})(be)};rimraf_(e,Z,CB)}));if(Z.disableGlob||!Sc.hasMagic(e))return afterGlob(null,[e]);Z.lstat(e,(ie,ae)=>{if(!ie)return afterGlob(null,[e]);Sc(e,Z.glob,afterGlob)})},rimraf_=(e,Z,ie)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ie),Z.lstat(e,(ae,de)=>ae&&"ENOENT"===ae.code?ie(null):(ae&&"EPERM"===ae.code&&kc&&fixWinEPERM(e,Z,ae,ie),de&&de.isDirectory()?rmdir(e,Z,ae,ie):void Z.unlink(e,ae=>{if(ae){if("ENOENT"===ae.code)return ie(null);if("EPERM"===ae.code)return kc?fixWinEPERM(e,Z,ae,ie):rmdir(e,Z,ae,ie);if("EISDIR"===ae.code)return rmdir(e,Z,ae,ie)}return ie(ae)})))},fixWinEPERM=(e,Z,ie,ae)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ae),Z.chmod(e,438,de=>{de?ae("ENOENT"===de.code?null:ie):Z.stat(e,(de,ve)=>{de?ae("ENOENT"===de.code?null:ie):ve.isDirectory()?rmdir(e,Z,ie,ae):Z.unlink(e,ae)})})},fixWinEPERMSync=(e,Z,ie)=>{Vt.default(e),Vt.default(Z);try{Z.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw ie}let ae;try{ae=Z.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw ie}ae.isDirectory()?rmdirSync(e,Z,ie):Z.unlinkSync(e)},rmdir=(e,Z,ie,ae)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ae),Z.rmdir(e,de=>{!de||"ENOTEMPTY"!==de.code&&"EEXIST"!==de.code&&"EPERM"!==de.code?de&&"ENOTDIR"===de.code?ae(ie):ae(de):rmkids(e,Z,ae)})},rmkids=(e,Z,ie)=>{Vt.default(e),Vt.default(Z),Vt.default("function"==typeof ie),Z.readdir(e,(ae,de)=>{if(ae)return ie(ae);let ve,be=de.length;if(0===be)return Z.rmdir(e,ie);de.forEach(ae=>{rimraf$1(yt.default.join(e,ae),Z,ae=>{if(!ve)return ae?ie(ve=ae):void(0===--be&&Z.rmdir(e,ie))})})})},rimrafSync=(e,Z)=>{let ie;if(defaults(Z=Z||{}),Vt.default(e,"rimraf: missing path"),Vt.default.equal(typeof e,"string","rimraf: path should be a string"),Vt.default(Z,"rimraf: missing options"),Vt.default.equal(typeof Z,"object","rimraf: options should be object"),Z.disableGlob||!Sc.hasMagic(e))ie=[e];else try{Z.lstatSync(e),ie=[e]}catch(ae){ie=Sc.sync(e,Z.glob)}if(ie.length)for(let e=0;e<ie.length;e++){const ae=ie[e];let de;try{de=Z.lstatSync(ae)}catch(e){if("ENOENT"===e.code)return;"EPERM"===e.code&&kc&&fixWinEPERMSync(ae,Z,e)}try{de&&de.isDirectory()?rmdirSync(ae,Z,null):Z.unlinkSync(ae)}catch(e){if("ENOENT"===e.code)return;if("EPERM"===e.code)return kc?fixWinEPERMSync(ae,Z,e):rmdirSync(ae,Z,e);if("EISDIR"!==e.code)throw e;rmdirSync(ae,Z,e)}}},rmdirSync=(e,Z,ie)=>{Vt.default(e),Vt.default(Z);try{Z.rmdirSync(e)}catch(ae){if("ENOENT"===ae.code)return;if("ENOTDIR"===ae.code)throw ie;"ENOTEMPTY"!==ae.code&&"EEXIST"!==ae.code&&"EPERM"!==ae.code||rmkidsSync(e,Z)}},rmkidsSync=(e,Z)=>{Vt.default(e),Vt.default(Z),Z.readdirSync(e).forEach(ie=>rimrafSync(yt.default.join(e,ie),Z));const ie=kc?100:1;let ae=0;for(;;){let de=!0;try{const ie=Z.rmdirSync(e,Z);return de=!1,ie}finally{if(++ae<ie&&de)continue}}};var Nc=rimraf$1;rimraf$1.sync=rimrafSync;var _c=Nc.sync,Fc=function del(e){return!!St.default.existsSync(e)&&(_c(e,{glob:!1}),!0)},Oc=Tc.writeJSON,Lc={load:function(e,Z){var ie=this;ie._visited={},ie._persisted={},ie._pathToFile=Z?yt.default.resolve(Z,e):yt.default.resolve(__dirname,"../.cache/",e),St.default.existsSync(ie._pathToFile)&&(ie._persisted=Tc.tryParse(ie._pathToFile,{}))},loadFile:function(e){var Z=yt.default.dirname(e),ie=yt.default.basename(e);this.load(ie,Z)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(e,Z){this._visited[e]=!0,this._persisted[e]=Z},removeKey:function(e){delete this._visited[e],delete this._persisted[e]},getKey:function(e){return this._visited[e]=!0,this._persisted[e]},_prune:function(){var e=this,Z={},ie=Object.keys(e._visited);0!==ie.length&&(ie.forEach(function(ie){Z[ie]=e._persisted[ie]}),e._visited={},e._persisted=Z)},save:function(e){var Z=this;!e&&Z._prune(),Oc(Z._pathToFile,Z._persisted)},removeCacheFile:function(){return Fc(this._pathToFile)},destroy:function(){var e=this;e._visited={},e._persisted={},e.removeCacheFile()}},Bc={load:function(e,Z){return this.create(e,Z)},create:function(e,Z){var ie=Object.create(Lc);return ie.load(e,Z),ie},createFromFile:function(e){var Z=Object.create(Lc);return Z.loadFile(e),Z},clearCacheById:function(e,Z){var ie=Z?yt.default.resolve(Z,e):yt.default.resolve(__dirname,"../.cache/",e);return Fc(ie)},clearAll:function(e){var Z=e?yt.default.resolve(e):yt.default.resolve(__dirname,"../.cache/");return Fc(Z)}},Mc="";function updateAuthToken(e){Mc=e}var request=function(e,Z,ie){var ae=(void 0===ie?{method:"POST"}:ie).method;return __awaiter(this,void 0,void 0,function(){var ie,de,ve,be;return __generator(this,function(Ce){switch(Ce.label){case 0:return ie=__read((Mc||"").split("##"),2),de=ie[0],ve=ie[1],be={"Content-Type":"application/json",Authorization:"Bearer ".concat(de),client:ve||""},[4,hc({method:ae,url:(process.env.DEV?"http://127.0.0.1:1626":"https://editor.appthen.com")+e,data:Z,headers:be})];case 1:return[2,Ce.sent()]}})})};require("getpinyin").getFirstPY;var jc,Rc,Uc,$c,qc,zc=getCachePath("mengti_translate"),Hc=Bc.load("default",zc),Vc=function(){function OrderedSet(e){this._set=new Set,this._arr=[],e&&(this._set=new Set(e),this._arr=e.slice(0))}return OrderedSet.prototype.add=function(e){this._set.has(e)||(this._set.add(e),this._arr.push(e))},OrderedSet.prototype.delete=function(e){this._set.has(e)&&(this._set.delete(e),this._arr.splice(this._arr.indexOf(e),1))},OrderedSet.prototype.has=function(e){return this._set.has(e)},OrderedSet.prototype.toArray=function(){return this._arr.slice(0)},OrderedSet}(),Gc=function(){function ScopeBindings(e){void 0===e&&(e=null),this._bindings=new Vc,this.parent=e}return ScopeBindings.prototype.hasBinding=function(e){var Z;return this._bindings.has(e)||!!(null===(Z=this.parent)||void 0===Z?void 0:Z.hasBinding(e))},ScopeBindings.prototype.hasOwnBinding=function(e){return this._bindings.has(e)},ScopeBindings.prototype.addBinding=function(e){this._bindings.add(e)},ScopeBindings.prototype.removeBinding=function(e){this._bindings.delete(e)},ScopeBindings.prototype.getAllBindings=function(){for(var e=new Vc(this._bindings.toArray()),Z=this.parent;Z;Z=null==Z?void 0:Z.parent)Z.getAllOwnedBindings().forEach(function(Z){e.add(Z)});return e.toArray()},ScopeBindings.prototype.getAllOwnedBindings=function(){return this._bindings.toArray()},ScopeBindings}(),Wc=function(){function Scope(e){void 0===e&&(e=null),this.parent=e,this.bindings=void 0}return Scope.createRootScope=function(){return new Scope},Scope.prototype.createSubScope=function(e){var Z=this.bindings,ie=new Gc(Z);e.forEach(function(e){ie.addBinding(e)});var ae=new Scope(this);return ae.bindings=ie,ae},Scope}();!function(e){e.CSS="css",e.SCSS="scss",e.LESS="less",e.HTML="html",e.JS="js",e.JSX="jsx",e.TS="ts",e.TSX="tsx",e.JSON="json"}(jc||(jc={})),function(e){e.AST="ast",e.STRING="string",e.JSON="json"}(Rc||(Rc={})),function(e){e.COMPONENT="component",e.UTILS="utils",e.I18N="i18n"}(Uc||(Uc={})),function(e){e.PAGE="pages",e.BLOCK="components",e.COMPONENT="components",e.UTILS="utils"}($c||($c={})),function(e){e.External="External",e.Internal="Internal"}(qc||(qc={}));var Jc,Kc=function(e){function CodeGeneratorError(Z,ie){var ae=this.constructor,de=e.call(this,Z)||this;return de.name=de.constructor.name,de.detail=ie,Object.setPrototypeOf(de,ae.prototype),de}return __extends(CodeGeneratorError,e),CodeGeneratorError}(Error);!function(e){function ComponentValidationError(){return null!==e&&e.apply(this,arguments)||this}__extends(ComponentValidationError,e)}(Kc),function(e){function CompatibilityError(){return null!==e&&e.apply(this,arguments)||this}__extends(CompatibilityError,e)}(Kc),function(e){function PublisherError(){return null!==e&&e.apply(this,arguments)||this}__extends(PublisherError,e)}(Kc),function(e){e.BEFORE="NodeCodePieceBefore",e.TAG="NodeCodePieceTag",e.ATTR="NodeCodePieceAttr",e.CHILDREN="NodeCodePieceChildren",e.AFTER="NodeCodePieceAfter"}(Jc||(Jc={}));var Xc=function(e){function ParseError(Z,ie){var ae=this.constructor,de=e.call(this,'Failed to parse expression "'.concat("string"==typeof Z?Z:Bn(Z),'"'))||this;return de.expr=Z,de.detail=ie,Object.setPrototypeOf(de,ae.prototype),de}return __extends(ParseError,e),ParseError}(Error),Yc={ArrayExpression:{fields:["elements"]},AssignmentExpression:{fields:["left","right"]},BinaryExpression:{fields:["left","right"]},CallExpression:{fields:["arguments","callee"]},ConditionalExpression:{fields:["test","consequent","alternate"]},DoWhileStatement:{fields:["test"]},ExpressionStatement:{fields:["expression"]},ForInStatement:{fields:["right"]},ForStatement:{fields:["init","test","update"]},IfStatement:{fields:["test"]},LogicalExpression:{fields:["left","right"]},MemberExpression:{fields:function(e){return"MemberExpression"===e.type&&e.computed?["object","property"]:["object"]}},NewExpression:{fields:["callee","arguments"]},ObjectMethod:{fields:function(e){return"ObjectMethod"===e.type&&e.computed?["key"]:[]}},ObjectProperty:{fields:function(e){return"ObjectProperty"===e.type&&e.computed?["key","value"]:["value"]}},ReturnStatement:{fields:["argument"]},SequenceExpression:{fields:["expressions"]},ParenthesizedExpression:{fields:["expression"]},SwitchCase:{fields:["test"]},SwitchStatement:{fields:["discriminant"]},ThrowStatement:{fields:["argument"]},UnaryExpression:{fields:["argument"]},UpdateExpression:{fields:["argument"]},VariableDeclarator:{fields:["init"]},WhileStatement:{fields:["test"]},WithStatement:{fields:["object"]},AssignmentPattern:{fields:["right"]},ArrowFunctionExpression:{fields:["body"]},ClassExpression:{fields:["superClass"]},ClassDeclaration:{fields:["superClass"]},ExportDefaultDeclaration:{fields:["declaration"]},ForOfStatement:{fields:["right"]},ClassMethod:{fields:function(e){return"ClassMethod"===e.type&&e.computed?["key"]:[]}},SpreadElement:{fields:["argument"]},TaggedTemplateExpression:{fields:["tag"]},TemplateLiteral:{fields:["expressions"]},YieldExpression:{fields:["argument"]},AwaitExpression:{fields:["argument"]},OptionalMemberExpression:{fields:function(e){return"OptionalMemberExpression"===e.type&&e.computed?["object","property"]:["object"]}},OptionalCallExpression:{fields:["callee","arguments"]},JSXSpreadAttribute:{fields:["argument"]},BindExpression:{fields:["object","callee"]},ClassProperty:{fields:function(e){return"ClassProperty"===e.type&&e.computed?["key","value"]:["value"]}},PipelineTopicExpression:{fields:["expression"]},PipelineBareFunction:{fields:["callee"]},ClassPrivateProperty:{fields:["value"]},Decorator:{fields:["expression"]},TupleExpression:{fields:["elements"]},TSDeclareMethod:{fields:function(e){return"TSDeclareMethod"===e.type&&e.computed?["key"]:[]}},TSPropertySignature:{fields:function(e){return"TSPropertySignature"===e.type&&e.computed?["key","initializer"]:["initializer"]}},TSMethodSignature:{fields:function(e){return"TSMethodSignature"===e.type&&e.computed?["key"]:[]}},TSAsExpression:{fields:["expression"]},TSTypeAssertion:{fields:["expression"]},TSEnumDeclaration:{fields:["initializer"]},TSEnumMember:{fields:["initializer"]},TSNonNullExpression:{fields:["expression"]},TSExportAssignment:{fields:["expression"]}},Zc={ArrowFunctionExpression:!1,FunctionExpression:!0,FunctionDeclaration:!0,ClassDeclaration:!0,ClassExpression:!0,ClassBody:!0,ClassImplements:!0,ClassMethod:!0,ClassPrivateMethod:!0,ClassProperty:!0,ClassPrivateProperty:!0,DeclareClass:!0},Qc=["arguments","this","super"];function parseExpressionConvertThis2Context(e,Z,ie){if(void 0===Z&&(Z="_this"),void 0===ie&&(ie=[]),!e)return e;try{var ae="string"==typeof e?pr(e):e,de=kt.expressionStatement(ae),ve=kt.file(kt.program([de])),be=new Set(ie),Ce=Zc[ae.type]?-1:0;return It.default(ve,{enter:function(e){Zc[e.node.type]&&Ce++},exit:function(e){Zc[e.node.type]&&Ce--},MemberExpression:function(e){if(e.isMemberExpression()){var ie=e.get("object");if(ie.isThisExpression()){if(!e.node.computed){var ae=e.get("property");if(ae.isIdentifier()&&be.has(ae.node.name))return void e.replaceWith(kt.identifier(ae.node.name))}Ce<=0&&ie.replaceWith(kt.identifier(Z))}}},ThisExpression:function(e){e.isThisExpression()&&"MemberExpression"!==e.parent.type&&Ce<=0&&e.replaceWith(kt.identifier(Z))}}),Bn(de.expression,{sourceMaps:!1}).code}catch(Z){throw new Xc(e,Z)}}function parseFunction(e){try{var Z=lr("(".concat(e,");")),ie=null;return It.default(Z,{FunctionExpression:function(e){ie=e.node,e.stop()}}),ie}catch(Z){throw new Xc(e,Z)}}function generateExpression(e,Z){if(et.isJSExpression(e)){var ie=e.value.trim();if(!ie)return"null";var ae=function transformExpressionLocalRef(e,Z){if(!e)return e;if(!Z)throw new Error("transform expression without scope");try{var ie="string"==typeof e?pr(e):e,ae=kt.expressionStatement(ie),de=kt.file(kt.program([ae]));return It.default(de,{MemberExpression:function(e){if(e.isMemberExpression()&&e.get("object").isThisExpression()){var ie=e.get("property"),ae="";!e.node.computed&&ie.isIdentifier()?ae=ie.node.name:e.node.computed&&ie.isStringLiteral()&&(ae=ie.node.value),ae&&Z.bindings&&Z.bindings.hasBinding(ae)&&e.replaceWith(kt.identifier(ae))}}}),Bn(ae.expression,{sourceMaps:!1}).code}catch(Z){throw new Xc(e,Z)}}(ie,Z);return ae}throw new Kc("Not a IPublicTypeJSExpression")}function generateFunction(e,Z){if(void 0===Z&&(Z={name:void 0,isMember:!1,isBlock:!1,isArrow:!1,isBindExpr:!1}),function isJsCode(e){return et.isJSExpression(e)||et.isJSFunction(e)}(e)){var ie=e;return Z.isMember?function transformFuncExpr2MethodMember(e,Z){var ie=parseFunction(Z);if(ie){var ae=kt.classMethod("method",e&&kt.identifier(e)||ie.id||kt.identifier("notDefineName"),ie.params,ie.body,void 0,void 0,void 0,ie.async||void 0);return Bn(ae,{sourceMaps:!1}).code}throw new Error("Can not find Function Statement")}(Z.name||"",ie.value):Z.isBlock?function getBodyStatements(e){var Z=parseFunction(e);if(Z){var ie=Z.body.body,ae=kt.program(ie,void 0,"module",void 0);return Bn(ae,{sourceMaps:!1}).code}throw new Error("Can not find Function Statement")}(ie.value):Z.isArrow?function getArrowFunction(e){var Z=parseFunction(e);if(Z){var ie=kt.arrowFunctionExpression(Z.params,Z.body,Z.async||void 0);return Bn(ie,{sourceMaps:!1}).code}throw new Error("Can not find Function Statement")}(ie.value):Z.isBindExpr?"(".concat(ie.value,").bind(this)"):ie.value}throw new Kc("Not a IPublicTypeJSFunction or IPublicTypeJSExpression")}function unwrapJsExprQuoteInJsx(e){return e.length>=2&&"{"===e[0]&&"}"===e[e.length-1]?e.slice(1,e.length-1):e}function generateJSSlot(e,Z,ie){if(et.isJSSlot(e)){var ae=e,de=ae.title,ve=ae.params,be=ae.value,Ce=ve?Z.createSubScope(ve||[]):Z,ke=be?function generateNodeDataOrArrayForJSSlot(e,Z,ie){if(Array.isArray(e))return 0===e.length?"[]":1===e.length?unwrapJsExprQuoteInJsx(Z(e,ie))||"null":"[\n".concat(e.map(function(e){return"string"==typeof e?JSON.stringify(e):unwrapJsExprQuoteInJsx(Z(e,ie))||"null"}).join(",\n")||"null","\n]");return unwrapJsExprQuoteInJsx(Z(e,ie))||"null"}(be,ie,Ce):"null";return ve?[de&&(Ie=de,"/* ".concat(Ie.split("\n").join(" ").replace(/\*\//g,"*-/"),"*/")),"(",(ve||[]).join(", "),") => (",ke,")"].filter(Boolean).join(""):ke||"[]"}var Ie;throw new Kc("Not a JSSlot")}function executeFunctionStack(e,Z,ie,ae,de){var ve=[];Array.isArray(ie)?ve.push.apply(ve,__spreadArray([],__read(ie),!1)):ve.push(ie);for(var be=ae,_loop_1=function(){var e,Z=ve.pop();if(Z){var ie=(e=be,function(ie,ae,de){return Z(ie,ae,de,e)});be=ie}};ve.length>0;)_loop_1();return be(e,Z,de)}function generateArray(e,Z,ie){void 0===ie&&(ie={});var ae=e.map(function(e){return generateUnknownType(e,Z,ie)}).join(",");return"[".concat(ae,"]")}function generateObject(e,Z,ie){if(void 0===ie&&(ie={}),"i18n"===e.type)return e.params&&"object"==typeof e.params?"this._i18nText(".concat(generateUnknownType(Yt.default.omit(e,"type"),Z,ie),")"):"this._i18nText(".concat(JSON.stringify(Yt.default.omit(e,"type")),")");var ae=Object.keys(e).map(function(ae){var de=JSON.stringify(ae),ve=generateUnknownType(e[ae],Z,ie);return"".concat(de,": ").concat(ve)}).join(",\n");return"{".concat(ae,"}")}function generateString(e){return JSON.stringify(e)}function generateNumber(e){return String(e)}function generateBool(e){return e?"true":"false"}function genFunction(e){var Z=function parseExpressionGetKeywords(e){if(!e)return[];try{var Z=new Vc,ie=lr("!(".concat(e,");")),addIdentifierIfNeeded_1=function(e){"object"==typeof e&&be.isIdentifier(e)&&Qc.includes(e.name)&&Z.add(e.name)};return It.default(ie,{enter:function(e){var Z,ie=e.node,ae=null===(Z=Yc[ie.type])||void 0===Z?void 0:Z.fields;ae&&("function"==typeof ae?ae(ie):ae).forEach(function(e){var Z=ie[e];"object"==typeof Z&&(Array.isArray(Z)?Z.forEach(function(e){addIdentifierIfNeeded_1(e)}):addIdentifierIfNeeded_1(Z))})}}),Z.toArray().filter(Boolean)}catch(Z){throw new Xc(e,Z)}}(e.value);return Z.includes("arguments")?generateFunction(e,{isBindExpr:!0}):generateFunction(e,{isArrow:!0})}function genJSSlot(e,Z,ie){return void 0===ie&&(ie={}),ie.nodeGenerator?generateJSSlot(e,Z,ie.nodeGenerator):""}function generateUnknownType(e,Z,ie){var ae,de,ve,be,Ce,ke,Ie,_e,Fe;if(void 0===ie&&(ie={}),Yt.default.isUndefined(e))return"undefined";if(Yt.default.isNull(e))return"null";if(Yt.default.isArray(e))return(null===(ae=ie.handlers)||void 0===ae?void 0:ae.array)?executeFunctionStack(e,Z,ie.handlers.array,generateArray,ie):generateArray(e,Z,ie);if(function isVariable(e){return!(!Yt.default.isObject(e)||"variable"!==e.type)}(e)){var Oe={type:"JSExpression",value:e.variable};return(null===(de=ie.handlers)||void 0===de?void 0:de.expression)?executeFunctionStack(Oe,Z,ie.handlers.expression,generateExpression,ie):generateExpression(Oe,Z)}if(et.isJSExpression(e))return(null===(ve=ie.handlers)||void 0===ve?void 0:ve.expression)?executeFunctionStack(e,Z,ie.handlers.expression,generateExpression,ie):generateExpression(e,Z);if(et.isJSFunction(e))return(null===(be=ie.handlers)||void 0===be?void 0:be.function)?executeFunctionStack(e,Z,ie.handlers.function,genFunction,ie):genFunction(e);if(et.isJSSlot(e))return(null===(Ce=ie.handlers)||void 0===Ce?void 0:Ce.slot)?executeFunctionStack(e,Z,ie.handlers.slot,genJSSlot,ie):genJSSlot(e,Z,ie);if(function isDataSource(e){return"object"==typeof e&&null!=e&&"DataSource"===e.type}(e))return generateUnknownType({type:"JSExpression",value:"this.dataSourceMap[".concat(JSON.stringify(e.id),"]")},Z,ie);if(Yt.default.isObject(e))return(null===(ke=ie.handlers)||void 0===ke?void 0:ke.object)?executeFunctionStack(e,Z,ie.handlers.object,generateObject,ie):generateObject(e,Z,ie);if(Yt.default.isString(e))return(null===(Ie=ie.handlers)||void 0===Ie?void 0:Ie.string)?executeFunctionStack(e,Z,ie.handlers.string,generateString,ie):generateString(e);if(Yt.default.isNumber(e))return(null===(_e=ie.handlers)||void 0===_e?void 0:_e.number)?executeFunctionStack(e,Z,ie.handlers.number,generateNumber,ie):generateNumber(e);if(Yt.default.isBoolean(e))return(null===(Fe=ie.handlers)||void 0===Fe?void 0:Fe.boolean)?executeFunctionStack(e,Z,ie.handlers.boolean,generateBool,ie):generateBool(e);throw new Kc("Meet unknown composite value type")}function generateCompositeType(e,Z,ie){return void 0===ie&&(ie={}),generateUnknownType(e,Z,ie)}function wrapAsFunction$1(e,Z){return et.isJSExpression(e)||et.isJSFunction(e)?{type:"JSExpression",value:"() => { return ((".concat(e.value,"))}")}:{type:"JSExpression",value:"() => {return((".concat(generateCompositeType(e,Z),"))}")}}var transformUtils=function(e,Z,ie,ae,de){var ve,be,Ce,ke,Ie,_e=Et.readFileSync(e.path+"/"+e.fileName,"utf-8");(_e=_e+"\n"+(be=Z.dataSource,Ce=Wc.createRootScope(),ke=be&&be.list||[],Ie="",ke.length>0&&(Ie="\n// 数据源配置\nexport const dataSourceConfig = ".concat(generateCompositeType(__assign(__assign({},be),{list:__spreadArray([],__read(ke.map(function(e){return __assign(__assign({},e),{isInit:wrapAsFunction$1(e.isInit,Ce),options:wrapAsFunction$1(e.options,Ce)})})),!1)}),Ce,{handlers:{function:function(e){return parseExpressionConvertThis2Context(e.value,"this")},expression:function(e){return parseExpressionConvertThis2Context(e.value,"this")}}}),";\n")),"\n// 兼容性:保留旧的全局数据 API,但使用新的全局数据存储\nimport { globalDataStore } from './globalData';\n".concat(Ie,"\n// 兼容旧版本的 API\nexport const setGlobalData = (key, value) => globalDataStore.set(key, value);\nexport const getGlobalData = (key) => globalDataStore.get(key);\nexport const reloadGlobalData = (key, options) => globalDataStore.load(key, options);\nexport const globalDataSourceMap = globalDataStore.dataSourceMap;\n "))).includes("this.history")&&(_e=_e.replace(/this\.history/g,"this.utils.history"));var Fe=lr("".concat(_e),{sourceType:"module",plugins:["typescript","decorators-legacy"]}),Oe=new Set,Be=new Set,Me=new Set(["Laf"]),qe={};"vite"===ae&&(qe["@/utils/router"]=[{name:"redirectTo"},{name:"navigateTo"},{name:"navigateBack"},{name:"history"}]);var Ve=function(e,Z){return null==e?void 0:e.filter(function(e){var ie,ae,de,ve;return!!(null==e?void 0:e.package)&&!1!==e.enable&&(!(null===(ie=e.advanced)||void 0===ie?void 0:ie.frames)||0===(null===(ae=e.advanced)||void 0===ae?void 0:ae.frames.length)||(null===(ve=null===(de=e.advanced)||void 0===de?void 0:de.frames)||void 0===ve?void 0:ve.includes(Z)))})}(ie.assets,"taro"===ae?"app":"web"),Ze=[];null==Ve||Ve.forEach(function(e){var Z,ie,ae;(null===(Z=e.utils)||void 0===Z?void 0:Z.length)>0&&(qe[e.package.package]=e.utils),(null===(ie=e.advanced)||void 0===ie?void 0:ie.extendCode)&&Ze.push(null===(ae=e.advanced)||void 0===ae?void 0:ae.extendCode)});var et=Object.values(qe).map(function(e){return e.map(function(e){return e.name})}).flat();It.default(Fe,{MemberExpression:function(e){e.node.object&&"ThisExpression"===e.node.object.type&&e.node.property&&"constants"===e.node.property.name&&e.replaceWith(kt.identifier("constants"));var Z=e.node,ie=Z.object,ae=Z.property;if(ie&&"MemberExpression"===ie.type&&"ThisExpression"===ie.object.type&&"utils"===ie.property.name){var de=ae.name;de&&(e.replaceWith(kt.identifier(de)),Oe.add(de))}},FunctionExpression:function(e){var Z,ie,ae,de,ve;e.parent&&(null===(ie=null===(Z=e.parent)||void 0===Z?void 0:Z.id)||void 0===ie?void 0:ie.name)===(null===(de=null===(ae=e.node)||void 0===ae?void 0:ae.id)||void 0===de?void 0:de.name)&&(null===(ve=e.node)||void 0===ve?void 0:ve.id)&&(e.node.id.name="")},ExportNamedDeclaration:function(e){var Z,ie,ae;if(e.node.declaration&&"VariableDeclaration"===e.node.declaration.type&&e.node.declaration.declarations&&e.node.declaration.declarations.length>0&&"VariableDeclarator"===e.node.declaration.declarations[0].type){var de=null===(ae=null===(ie=null===(Z=e.node.declaration.declarations)||void 0===Z?void 0:Z[0])||void 0===ie?void 0:ie.id)||void 0===ae?void 0:ae.name;Be.add(de)}}}),It.default(Fe,{Program:function(e){var Z=e.node.body;Be.add("setGlobalData"),Be.add("getGlobalData"),Be.add("reloadGlobalData"),Be.add("globalDataSourceMap"),Oe.add("dataSource"),Z.splice(1,0,kt.importDeclaration(Array.from(Oe).filter(function(e){return!Be.has(e)&&!Me.has(e)&&!et.includes(e)}).map(function(e){return kt.importSpecifier(kt.identifier(e),kt.identifier(e))}),kt.stringLiteral("vite"===ae?"@appthen/utils":"cross-ui/utils"))),Z.splice(2,0,kt.importDeclaration(["requestHandle"].map(function(e){return kt.importSpecifier(kt.identifier(e),kt.identifier(e))}),kt.stringLiteral("./dataSource"))),Z.splice(3,0,kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier("constants"))],kt.stringLiteral("./constants")));var ie=-1;Object.keys(qe).forEach(function(e){var ae,de,ve,be,Ce=Ve.find(function(Z){return Z.package.package===e}),ke=((null==Ce?void 0:Ce.package)||{}).destructuring,Ie=function packageNameToCamelCase(e){var Z=e.replace(/[@/]/g,"-"),ie=Z.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});/^\d/.test(ie)&&(ie="pkg".concat(ie));return ie}(e),_e=qe[e];!1===ke?(ie+=1,Z.splice(4+ie,0,kt.importDeclaration([kt.importDefaultSpecifier(kt.identifier(Ie))],kt.stringLiteral(e))),_e.forEach(function(e){ie+=1;var ae=kt.memberExpression(kt.identifier(Ie),kt.identifier(e.name)),de=kt.variableDeclarator(kt.identifier(e.name),ae),ve=kt.variableDeclaration("const",[de]),be=kt.exportNamedDeclaration(ve);Z.splice(4+ie,0,be)})):be=kt.exportNamedDeclaration(null,"*"===(null===(de=null===(ae=_e[0])||void 0===ae?void 0:ae.npm)||void 0===de?void 0:de.exportName)?[kt.exportNamespaceSpecifier(kt.identifier(null===(ve=_e[0])||void 0===ve?void 0:ve.name))]:_e.map(function(e){var Z;return kt.exportSpecifier(kt.identifier((null===(Z=e.npm)||void 0===Z?void 0:Z.exportName)||e.name),kt.identifier(e.name))}),kt.stringLiteral(e)),!e.includes("@/utils")&&be&&(ie+=1,Z.splice(4+ie,0,be));var Fe=_e.filter(function(e){return Oe.has(e.name)});Fe.length>0&&(ie+=1,Z.splice(4+ie,0,kt.importDeclaration(Fe.map(function(e){return kt.importSpecifier(kt.identifier(e.name),kt.identifier(e.name))}),kt.stringLiteral(e))))})}});var tt=Bn(Fe).code;if((null===(ve=ie.plugins)||void 0===ve?void 0:ve.length)>0)for(var ct=0;ct<ie.plugins.length;ct++){"laf"===ie.plugins[ct].pluginName&&(tt="".concat(tt,'\nimport { Cloud } from "laf-client-sdk";\nexport const Laf = Cloud;'))}return tt=tt.replace('export * as _ from "lodash";','export { default as _ } from "lodash";'),Ze.length>0&&(tt=Ze.join("\n")+"\n"+tt),tt+="\n\nexport {\n addPortal,\n removePortal,\n registerPartalComponent,\n showComponentModal,\n renderComponentPortal,\n renderComponent,\n} from '@appthen/react';\n",Et.writeFileSync(e.path+"/"+e.fileName,tt),{code:tt}};var objectToObjectExpression=function(e){if("string"==typeof e)return kt.stringLiteral(e);if("number"==typeof e)return kt.numericLiteral(e);if("boolean"==typeof e)return kt.booleanLiteral(e);if(Array.isArray(e))return kt.arrayExpression(e.map(function(e){return objectToObjectExpression(e)}));if("object"==typeof e&&null!==e)return kt.objectExpression(Object.entries(e).map(function(e){var Z=__read(e,2),ie=Z[0],ae=Z[1];return kt.objectProperty(kt.identifier(ie),objectToObjectExpression(ae))}));throw new Error("Unsupported value type: ".concat(typeof e))},eu={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7};eu.ROOT,eu.GROUP,eu.POSITION,eu.SET,eu.RANGE,eu.REPETITION,eu.REFERENCE,eu.CHAR;var INTS=function(){return[{type:eu.RANGE,from:48,to:57}]},WORDS=function(){return[{type:eu.CHAR,value:95},{type:eu.RANGE,from:97,to:122},{type:eu.RANGE,from:65,to:90}].concat(INTS())},WHITESPACE=function(){return[{type:eu.CHAR,value:9},{type:eu.CHAR,value:10},{type:eu.CHAR,value:11},{type:eu.CHAR,value:12},{type:eu.CHAR,value:13},{type:eu.CHAR,value:32},{type:eu.CHAR,value:160},{type:eu.CHAR,value:5760},{type:eu.CHAR,value:6158},{type:eu.CHAR,value:8192},{type:eu.CHAR,value:8193},{type:eu.CHAR,value:8194},{type:eu.CHAR,value:8195},{type:eu.CHAR,value:8196},{type:eu.CHAR,value:8197},{type:eu.CHAR,value:8198},{type:eu.CHAR,value:8199},{type:eu.CHAR,value:8200},{type:eu.CHAR,value:8201},{type:eu.CHAR,value:8202},{type:eu.CHAR,value:8232},{type:eu.CHAR,value:8233},{type:eu.CHAR,value:8239},{type:eu.CHAR,value:8287},{type:eu.CHAR,value:12288},{type:eu.CHAR,value:65279}]},sets_words=function(){return{type:eu.SET,set:WORDS(),not:!1}},sets_notWords=function(){return{type:eu.SET,set:WORDS(),not:!0}},sets_ints=function(){return{type:eu.SET,set:INTS(),not:!1}},sets_notInts=function(){return{type:eu.SET,set:INTS(),not:!0}},sets_whitespace=function(){return{type:eu.SET,set:WHITESPACE(),not:!1}},sets_notWhitespace=function(){return{type:eu.SET,set:WHITESPACE(),not:!0}},sets_anyChar=function(){return{type:eu.SET,set:[{type:eu.CHAR,value:10},{type:eu.CHAR,value:13},{type:eu.CHAR,value:8232},{type:eu.CHAR,value:8233}],not:!0}},tu=createCommonjsModule(function(e,Z){var ie={0:0,t:9,n:10,v:11,f:12,r:13};Z.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g,function(e,Z,ae,de,ve,be,Ce,ke){if(ae)return e;var Ie=Z?8:de?parseInt(de,16):ve?parseInt(ve,16):be?parseInt(be,8):Ce?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(Ce):ie[ke],_e=String.fromCharCode(Ie);return/[\[\]{}\^$.|?*+()]/.test(_e)&&(_e="\\"+_e),_e}),e},Z.tokenizeClass=function(e,ie){for(var ae,de,ve=[],be=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;null!=(ae=be.exec(e));)if(ae[1])ve.push(sets_words());else if(ae[2])ve.push(sets_ints());else if(ae[3])ve.push(sets_whitespace());else if(ae[4])ve.push(sets_notWords());else if(ae[5])ve.push(sets_notInts());else if(ae[6])ve.push(sets_notWhitespace());else if(ae[7])ve.push({type:eu.RANGE,from:(ae[8]||ae[9]).charCodeAt(0),to:ae[10].charCodeAt(0)});else{if(!(de=ae[12]))return[ve,be.lastIndex];ve.push({type:eu.CHAR,value:de.charCodeAt(0)})}Z.error(ie,"Unterminated character class")},Z.error=function(e,Z){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+Z)}});tu.strToChars,tu.tokenizeClass,tu.error;var positions_wordBoundary=function(){return{type:eu.POSITION,value:"b"}},positions_nonWordBoundary=function(){return{type:eu.POSITION,value:"B"}},positions_begin=function(){return{type:eu.POSITION,value:"^"}},positions_end=function(){return{type:eu.POSITION,value:"$"}},lib=function(e){var Z,ie,ae=0,de={type:eu.ROOT,stack:[]},ve=de,be=de.stack,Ce=[],repeatErr=function(Z){tu.error(e,"Nothing to repeat at column "+(Z-1))},ke=tu.strToChars(e);for(Z=ke.length;ae<Z;)switch(ie=ke[ae++]){case"\\":switch(ie=ke[ae++]){case"b":be.push(positions_wordBoundary());break;case"B":be.push(positions_nonWordBoundary());break;case"w":be.push(sets_words());break;case"W":be.push(sets_notWords());break;case"d":be.push(sets_ints());break;case"D":be.push(sets_notInts());break;case"s":be.push(sets_whitespace());break;case"S":be.push(sets_notWhitespace());break;default:/\d/.test(ie)?be.push({type:eu.REFERENCE,value:parseInt(ie,10)}):be.push({type:eu.CHAR,value:ie.charCodeAt(0)})}break;case"^":be.push(positions_begin());break;case"$":be.push(positions_end());break;case"[":var Ie;"^"===ke[ae]?(Ie=!0,ae++):Ie=!1;var _e=tu.tokenizeClass(ke.slice(ae),e);ae+=_e[1],be.push({type:eu.SET,set:_e[0],not:Ie});break;case".":be.push(sets_anyChar());break;case"(":var Fe={type:eu.GROUP,stack:[],remember:!0};"?"===(ie=ke[ae])&&(ie=ke[ae+1],ae+=2,"="===ie?Fe.followedBy=!0:"!"===ie?Fe.notFollowedBy=!0:":"!==ie&&tu.error(e,"Invalid group, character '"+ie+"' after '?' at column "+(ae-1)),Fe.remember=!1),be.push(Fe),Ce.push(ve),ve=Fe,be=Fe.stack;break;case")":0===Ce.length&&tu.error(e,"Unmatched ) at column "+(ae-1)),be=(ve=Ce.pop()).options?ve.options[ve.options.length-1]:ve.stack;break;case"|":ve.options||(ve.options=[ve.stack],delete ve.stack);var Oe=[];ve.options.push(Oe),be=Oe;break;case"{":var Be,Me,qe=/^(\d+)(,(\d+)?)?\}/.exec(ke.slice(ae));null!==qe?(0===be.length&&repeatErr(ae),Be=parseInt(qe[1],10),Me=qe[2]?qe[3]?parseInt(qe[3],10):1/0:Be,ae+=qe[0].length,be.push({type:eu.REPETITION,min:Be,max:Me,value:be.pop()})):be.push({type:eu.CHAR,value:123});break;case"?":0===be.length&&repeatErr(ae),be.push({type:eu.REPETITION,min:0,max:1,value:be.pop()});break;case"+":0===be.length&&repeatErr(ae),be.push({type:eu.REPETITION,min:1,max:1/0,value:be.pop()});break;case"*":0===be.length&&repeatErr(ae),be.push({type:eu.REPETITION,min:0,max:1/0,value:be.pop()});break;default:be.push({type:eu.CHAR,value:ie.charCodeAt(0)})}return 0!==Ce.length&&tu.error(e,"Unterminated group"),de},ru=lib.types=eu,safeRegex=function(e,Z){Z||(Z={});var ie=void 0===Z.limit?25:Z.limit;!function isRegExp(e){return"[object RegExp]"==={}.toString.call(e)}
|
|
2
2
|
/*!
|
|
3
3
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
4
4
|
*
|