File: D:/HostingSpaces/SBogers10/analytics.komma.nl/wwwroot/js/vendor.js
(self.webpackChunk=self.webpackChunk||[]).push([[898],{834:(e,t)=>{"use strict";const s=!0,r=!0,i=!0,n=!0;class a{constructor(e,t={}){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.updateContext=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const o=new Map;function c(e,t={}){t.keyword=e;const s=new a(e,t);return o.set(e,s),s}function l(e,t){return new a(e,{beforeExpr:s,binop:t})}const h={num:new a("num",{startsExpr:r}),bigint:new a("bigint",{startsExpr:r}),decimal:new a("decimal",{startsExpr:r}),regexp:new a("regexp",{startsExpr:r}),string:new a("string",{startsExpr:r}),name:new a("name",{startsExpr:r}),eof:new a("eof"),bracketL:new a("[",{beforeExpr:s,startsExpr:r}),bracketHashL:new a("#[",{beforeExpr:s,startsExpr:r}),bracketBarL:new a("[|",{beforeExpr:s,startsExpr:r}),bracketR:new a("]"),bracketBarR:new a("|]"),braceL:new a("{",{beforeExpr:s,startsExpr:r}),braceBarL:new a("{|",{beforeExpr:s,startsExpr:r}),braceHashL:new a("#{",{beforeExpr:s,startsExpr:r}),braceR:new a("}"),braceBarR:new a("|}"),parenL:new a("(",{beforeExpr:s,startsExpr:r}),parenR:new a(")"),comma:new a(",",{beforeExpr:s}),semi:new a(";",{beforeExpr:s}),colon:new a(":",{beforeExpr:s}),doubleColon:new a("::",{beforeExpr:s}),dot:new a("."),question:new a("?",{beforeExpr:s}),questionDot:new a("?."),arrow:new a("=>",{beforeExpr:s}),template:new a("template"),ellipsis:new a("...",{beforeExpr:s}),backQuote:new a("`",{startsExpr:r}),dollarBraceL:new a("${",{beforeExpr:s,startsExpr:r}),at:new a("@"),hash:new a("#",{startsExpr:r}),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:s,isAssign:true}),assign:new a("_=",{beforeExpr:s,isAssign:true}),incDec:new a("++/--",{prefix:n,postfix:!0,startsExpr:r}),bang:new a("!",{beforeExpr:s,prefix:n,startsExpr:r}),tilde:new a("~",{beforeExpr:s,prefix:n,startsExpr:r}),pipeline:l("|>",0),nullishCoalescing:l("??",1),logicalOR:l("||",1),logicalAND:l("&&",2),bitwiseOR:l("|",3),bitwiseXOR:l("^",4),bitwiseAND:l("&",5),equality:l("==/!=/===/!==",6),relational:l("</>/<=/>=",7),bitShift:l("<</>>/>>>",8),plusMin:new a("+/-",{beforeExpr:s,binop:9,prefix:n,startsExpr:r}),modulo:new a("%",{beforeExpr:s,binop:10,startsExpr:r}),star:new a("*",{binop:10}),slash:l("/",10),exponent:new a("**",{beforeExpr:s,binop:11,rightAssociative:!0}),_break:c("break"),_case:c("case",{beforeExpr:s}),_catch:c("catch"),_continue:c("continue"),_debugger:c("debugger"),_default:c("default",{beforeExpr:s}),_do:c("do",{isLoop:i,beforeExpr:s}),_else:c("else",{beforeExpr:s}),_finally:c("finally"),_for:c("for",{isLoop:i}),_function:c("function",{startsExpr:r}),_if:c("if"),_return:c("return",{beforeExpr:s}),_switch:c("switch"),_throw:c("throw",{beforeExpr:s,prefix:n,startsExpr:r}),_try:c("try"),_var:c("var"),_const:c("const"),_while:c("while",{isLoop:i}),_with:c("with"),_new:c("new",{beforeExpr:s,startsExpr:r}),_this:c("this",{startsExpr:r}),_super:c("super",{startsExpr:r}),_class:c("class",{startsExpr:r}),_extends:c("extends",{beforeExpr:s}),_export:c("export"),_import:c("import",{startsExpr:r}),_null:c("null",{startsExpr:r}),_true:c("true",{startsExpr:r}),_false:c("false",{startsExpr:r}),_in:c("in",{beforeExpr:s,binop:7}),_instanceof:c("instanceof",{beforeExpr:s,binop:7}),_typeof:c("typeof",{beforeExpr:s,prefix:n,startsExpr:r}),_void:c("void",{beforeExpr:s,prefix:n,startsExpr:r}),_delete:c("delete",{beforeExpr:s,prefix:n,startsExpr:r})},p=/\r\n?|[\n\u2028\u2029]/,u=new RegExp(p.source,"g");function d(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const m=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function f(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}}class y{constructor(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t}}class x{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function g(e){return e[e.length-1]}const b=Object.freeze({AccessorIsGenerator:"A %0ter 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",AwaitExpressionFormalParameter:"await is not allowed in async function parameters",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules",AwaitNotInAsyncFunction:"'await' is only allowed within async functions",BadGetterArity:"getter must not have any formal parameters",BadSetterArity:"setter must have exactly one formal parameter",BadSetterRestParameter:"setter 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:"%0 require an initialization value",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon",DecoratorStaticBlock:"Decorators can't be used with a static block",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:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property",DuplicateRegExpFlags:"Duplicate regular expression flag",DuplicateStaticBlock:"Duplicate static block in the same class",ElementAfterRest:"Rest element must be last element",EscapedCharNotAnIdentifier:"Invalid Unicode escape",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { %0 as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block",IllegalBreakContinue:"Unsyntactic %0",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"'return' outside of function",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments",ImportCallArity:"import() requires exactly %0",ImportCallNotNewExpression:"Cannot use new with import(...)",ImportCallSpreadArgument:"... is not allowed in import()",ImportMetaOutsideModule:"import.meta may appear only with 'sourceType: \"module\"'",ImportOutsideModule:"'import' and 'export' may appear only with 'sourceType: \"module\"'",InvalidBigIntLiteral:"Invalid BigIntLiteral",InvalidCodePoint:"Code point out of bounds",InvalidDecimal:"Invalid decimal",InvalidDigit:"Expected number in radix %0",InvalidEscapeSequence:"Bad character escape sequence",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template",InvalidEscapedReservedWord:"Escape sequence in keyword %0",InvalidIdentifier:"Invalid identifier %0",InvalidLhs:"Invalid left-hand side in %0",InvalidLhsBinding:"Binding invalid left-hand side in %0",InvalidNumber:"Invalid number",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'",InvalidOrUnexpectedToken:"Unexpected character '%0'",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern",InvalidPrivateFieldResolution:"Private name #%0 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:"Label '%0' is already declared",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",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.",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:'Duplicate key "%0" is not allowed in module attributes',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'",ModuleExportUndefined:"Export '%0' 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",ParamDupe:"Argument name clash",PatternHasAccessor:"Object pattern can't contain getter or setter",PatternHasMethod:"Object pattern can't contain methods",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:"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`)",PrivateNameRedeclaration:"Duplicate private name #%0",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, inside a block, or as the body of an if statement",StaticPrototype:"Classes may not have static property named prototype",StrictDelete:"Deleting local variable in strict mode",StrictEvalArguments:"Assigning to '%0' in strict mode",StrictEvalArgumentsBinding:"Binding '%0' 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",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:"Unexpected keyword '%0'",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",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits",UnexpectedPrivateField:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word '%0'",UnexpectedSuper:"super is only allowed in object methods and classes",UnexpectedToken:"Unexpected token '%0'",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1",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",VarRedeclaration:"Identifier '%0' has already been declared",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator",YieldInParameter:"Yield expression is not allowed in formal parameters",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0"});function P(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}class T{constructor(e,t,s,r){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!t,this.preserveSpace=!!s,this.override=r}}const v={braceStatement:new T("{",!1),braceExpression:new T("{",!0),recordExpression:new T("#{",!0),templateQuasi:new T("${",!1),parenStatement:new T("(",!1),parenExpression:new T("(",!0),template:new T("`",!0,!0,(e=>e.readTmplToken())),functionExpression:new T("function",!0),functionStatement:new T("function",!1)};h.parenR.updateContext=h.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===v.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},h.name.updateContext=function(e){let t=!1;e!==h.dot&&("of"!==this.state.value||this.state.exprAllowed||e===h._function||e===h._class||(t=!0)),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},h.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?v.braceStatement:v.braceExpression),this.state.exprAllowed=!0},h.dollarBraceL.updateContext=function(){this.state.context.push(v.templateQuasi),this.state.exprAllowed=!0},h.parenL.updateContext=function(e){const t=e===h._if||e===h._for||e===h._with||e===h._while;this.state.context.push(t?v.parenStatement:v.parenExpression),this.state.exprAllowed=!0},h.incDec.updateContext=function(){},h._function.updateContext=h._class.updateContext=function(e){!e.beforeExpr||e===h.semi||e===h._else||e===h._return&&this.hasPrecedingLineBreak()||(e===h.colon||e===h.braceL)&&this.curContext()===v.b_stat?this.state.context.push(v.functionStatement):this.state.context.push(v.functionExpression),this.state.exprAllowed=!1},h.backQuote.updateContext=function(){this.curContext()===v.template?this.state.context.pop():this.state.context.push(v.template),this.state.exprAllowed=!1},h.braceHashL.updateContext=function(){this.state.context.push(v.recordExpression),this.state.exprAllowed=!0};let w="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",A="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const E=new RegExp("["+w+"]"),S=new RegExp("["+w+A+"]");w=A=null;const C=[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,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,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,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,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,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],k=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function N(e,t){let s=65536;for(let r=0,i=t.length;r<i;r+=2){if(s+=t[r],s>e)return!1;if(s+=t[r+1],s>=e)return!0}return!1}function I(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&E.test(String.fromCharCode(e)):N(e,C)))}function _(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&S.test(String.fromCharCode(e)):N(e,C)||N(e,k))))}const L=["implements","interface","let","package","private","protected","public","static","yield"],D=["eval","arguments"],M=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"]),R=new Set(L),O=new Set(D);function F(e,t){return t&&"await"===e||"enum"===e}function B(e,t){return F(e,t)||R.has(e)}function U(e){return O.has(e)}function j(e,t){return B(e,t)||U(e)}function V(e){return M.has(e)}const q=/^in(stanceof)?$/;const H=128,$=128,z=1024,K=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),J=Object.freeze({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:"Cannot overwrite reserved type %0",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:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",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",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SpreadVariance:"Spread properties cannot have variance",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:"Unexpected reserved type %0",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:"`declare export %0` is not supported. Use `%1` instead",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module",UnterminatedFlowComment:"Unterminated flow-comment"});function W(e){return"type"===e.importKind||"typeof"===e.importKind}function G(e){return(e.type===h.name||!!e.type.keyword)&&"from"!==e.value}const X={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const Y=/\*?\s*@((?:no)?flow)\b/;const Q={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:"♦"},Z=/^[\da-fA-F]+$/,ee=/^\d+$/,te=Object.freeze({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>",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 se(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function re(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return re(e.object)+"."+re(e.property);throw new Error("Node had unexpected type: "+e.type)}v.j_oTag=new T("<tag",!1),v.j_cTag=new T("</tag",!1),v.j_expr=new T("<tag>...</tag>",!0,!0),h.jsxName=new a("jsxName"),h.jsxText=new a("jsxText",{beforeExpr:!0}),h.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),h.jsxTagEnd=new a("jsxTagEnd"),h.jsxTagStart.updateContext=function(){this.state.context.push(v.j_expr),this.state.context.push(v.j_oTag),this.state.exprAllowed=!1},h.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===v.j_oTag&&e===h.slash||t===v.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===v.j_expr):this.state.exprAllowed=!0};class ie{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class ne{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ie(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}declareName(e,t,s){let r=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(r,e,t,s),16&t?r.functions.push(e):r.lexical.push(e),8&t&&this.maybeExportDefined(r,e);else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,s),r.var.push(e),this.maybeExportDefined(r,e),!(131&r.flags));--i);this.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,s,r){this.isRedeclaredInScope(e,t,s)&&this.raise(r,b.VarRedeclaration,t)}isRedeclaredInScope(e,t,s){return!!(1&s)&&(8&s?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&s?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(8&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}checkLocalExport(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if(131&t.flags)return t}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if((131&t.flags||64&t.flags)&&!(4&t.flags))return t}}}class ae extends ie{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class oe extends ne{createScope(e){return new ae(e)}declareName(e,t,s){const r=this.currentScope();if(t&z)return this.maybeExportDefined(r,e),void r.exportOnlyBindings.push(e);super.declareName(...arguments),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,s),this.maybeExportDefined(r,e)),r.types.push(e)),256&t&&r.enums.push(e),512&t&&r.constEnums.push(e),t&$&&r.classes.push(e)}isRedeclaredInScope(e,t,s){if(e.enums.indexOf(t)>-1){if(256&s){return!!(512&s)!==e.constEnums.indexOf(t)>-1}return!0}return s&$&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(1&s):!!(2&s&&e.types.indexOf(t)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&super.checkLocalExport(e)}}class ce{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 le(e,t){return(e?2:0)|(t?1:0)}function he(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function pe(e){if(!e)throw new Error("Assert fail")}const ue=Object.freeze({ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateModifier:"Duplicate modifier: '%0'",EmptyHeritageClauseType:"'%0' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0')",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier",IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier ('%0')",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`",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:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0"});h.placeholder=new a("%%",{startsExpr:!0});function de(e,t){return e.some((e=>Array.isArray(e)?e[0]===t:e===t))}function me(e,t,s){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return r&&Array.isArray(r)?r[1][s]:null}const fe=["minimal","smart","fsharp"],ye=["hash","bar"];const xe={estree:e=>class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let s=null;try{s=new RegExp(e,t)}catch(e){}const r=this.estreeParseLiteral(s);return r.regex={pattern:e,flags:t},r}estreeParseBigIntLiteral(e){const t="undefined"!=typeof BigInt?BigInt(e):null,s=this.estreeParseLiteral(t);return s.bigint=String(s.value||e),s}estreeParseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const t=e.value,s=this.startNodeAt(e.start,e.loc.start),r=this.startNodeAt(t.start,t.loc.start);return r.value=t.value,r.raw=t.extra.raw,s.expression=this.finishNodeAt(r,"Literal",t.end,t.loc.end),s.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(s,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){P(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}checkLVal(e,t,...s){switch(e.type){case"ObjectPattern":e.properties.forEach((e=>{this.checkLVal("Property"===e.type?e.value:e,"object destructuring pattern",...s)}));break;default:super.checkLVal(e,t,...s)}}checkProto(e,t,s,r){e.method||super.checkProto(e,t,s,r)}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null==(t=e.expression.extra)?void 0:t.parenthesized)}stmtToDirective(e){const t=super.stmtToDirective(e),s=e.expression.value;return t.value.value=s,t}parseBlockBody(e,t,s,r){super.parseBlockBody(e,t,s,r);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,s,r,i,n){this.parseMethod(t,s,r,i,n,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case h.num:case h.string:return this.estreeParseLiteral(this.state.value);case h.regexp:return this.estreeParseRegExpLiteral(this.state.value);case h.bigint:return this.estreeParseBigIntLiteral(this.state.value);case h.decimal:return this.estreeParseDecimalLiteral(this.state.value);case h._null:return this.estreeParseLiteral(null);case h._true:return this.estreeParseLiteral(!0);case h._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseLiteral(e,t,s,r){const i=super.parseLiteral(e,t,s,r);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,t,s=!1){super.parseFunctionBody(e,t,s),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,s,r,i,n,a=!1){let o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,s,r,i,n,a),o.type="FunctionExpression",delete o.kind,e.value=o,n="ClassMethod"===n?"MethodDefinition":n,this.finishNode(e,n)}parseObjectMethod(e,t,s,r,i){const n=super.parseObjectMethod(e,t,s,r,i);return n&&(n.type="Property","method"===n.kind&&(n.kind="init"),n.shorthand=!1),n}parseObjectProperty(e,t,s,r,i){const n=super.parseObjectProperty(e,t,s,r,i);return n&&(n.kind="init",n.type="Property"),n}toAssignable(e,t=!1){return P(e)?(this.toAssignable(e.value),e):super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,...t){if("get"===e.kind||"set"===e.kind)throw this.raise(e.key.start,b.PatternHasAccessor);if(e.method)throw this.raise(e.key.start,b.PatternHasMethod);super.toAssignableObjectExpressionProp(e,...t)}finishCallExpression(e,t){return super.finishCallExpression(e,t),"Import"===e.callee.type&&(e.type="ImportExpression",e.source=e.arguments[0],delete e.arguments,delete e.callee),e}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":1===e.specifiers.length&&"ExportNamespaceSpecifier"===e.specifiers[0].type&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers)}return e}parseSubscript(e,t,s,r,i){const n=super.parseSubscript(e,t,s,r,i);if(i.optionalChainMember){if("OptionalMemberExpression"!==n.type&&"OptionalCallExpression"!==n.type||(n.type=n.type.substring(8)),i.stop){const e=this.startNodeAtNode(n);return e.expression=n,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==n.type&&"CallExpression"!==n.type||(n.optional=!1);return n}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,te.UnterminatedJsxContent);const s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?60===s&&this.state.exprAllowed?(++this.state.pos,this.finishToken(h.jsxTagStart)):super.getTokenFromCode(s):(e+=this.input.slice(t,this.state.pos),this.finishToken(h.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:d(s)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let s;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,s=e?"\n":"\r\n"):s=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(e){let t="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedString);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(s,this.state.pos),t+=this.jsxReadEntity(),s=this.state.pos):d(r)?(t+=this.input.slice(s,this.state.pos),t+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}return t+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,t)}jsxReadEntity(){let e,t="",s=0,r=this.input[this.state.pos];const i=++this.state.pos;for(;this.state.pos<this.length&&s++<10;){if(r=this.input[this.state.pos++],";"===r){"#"===t[0]?"x"===t[1]?(t=t.substr(2),Z.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),ee.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=Q[t];break}t+=r}return e||(this.state.pos=i,"&")}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(_(e)||45===e);return this.finishToken(h.jsxName,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(h.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.start,t=this.state.startLoc,s=this.jsxParseIdentifier();if(!this.eat(h.colon))return s;const r=this.startNodeAt(e,t);return r.namespace=s,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,t=this.state.startLoc;let s=this.jsxParseNamespacedName();if("JSXNamespacedName"===s.type)return s;for(;this.eat(h.dot);){const r=this.startNodeAt(e,t);r.object=s,r.property=this.jsxParseIdentifier(),s=this.finishNode(r,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let e;switch(this.state.type){case h.braceL:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,te.AttributeIsEmpty),e;case h.jsxTagStart:case h.string:return this.parseExprAtom();default:throw this.raise(this.state.start,te.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.expect(h.braceR),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){return this.match(h.braceR)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.expect(h.braceR),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(h.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(h.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,t){const s=this.startNodeAt(e,t);return this.match(h.jsxTagEnd)?(this.expect(h.jsxTagEnd),this.finishNode(s,"JSXOpeningFragment")):(s.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(s))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(h.slash)&&!this.match(h.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(h.slash),this.expect(h.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,t){const s=this.startNodeAt(e,t);return this.match(h.jsxTagEnd)?(this.expect(h.jsxTagEnd),this.finishNode(s,"JSXClosingFragment")):(s.name=this.jsxParseElementName(),this.expect(h.jsxTagEnd),this.finishNode(s,"JSXClosingElement"))}jsxParseElementAt(e,t){const s=this.startNodeAt(e,t),r=[],i=this.jsxParseOpeningElementAt(e,t);let n=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case h.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(h.slash)){n=this.jsxParseClosingElementAt(e,t);break e}r.push(this.jsxParseElementAt(e,t));break;case h.jsxText:r.push(this.parseExprAtom());break;case h.braceL:{const e=this.startNode();this.next(),this.match(h.ellipsis)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e));break}default:throw this.unexpected()}se(i)&&!se(n)?this.raise(n.start,te.MissingClosingTagFragment):!se(i)&&se(n)?this.raise(n.start,te.MissingClosingTagElement,re(i.name)):se(i)||se(n)||re(n.name)!==re(i.name)&&this.raise(n.start,te.MissingClosingTagElement,re(i.name))}if(se(i)?(s.openingFragment=i,s.closingFragment=n):(s.openingElement=i,s.closingElement=n),s.children=r,this.isRelational("<"))throw this.raise(this.state.start,te.UnwrappedAdjacentJSXElements);return se(i)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(h.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(h.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(h.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const t=this.curContext();if(t===v.j_expr)return this.jsxReadToken();if(t===v.j_oTag||t===v.j_cTag){if(I(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(h.jsxTagEnd);if((34===e||39===e)&&t===v.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(h.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(h.braceL)){const t=this.curContext();t===v.j_oTag?this.state.context.push(v.braceExpression):t===v.j_expr?this.state.context.push(v.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else{if(!this.match(h.slash)||e!==h.jsxTagStart)return super.updateContext(e);this.state.context.length-=2,this.state.context.push(v.j_cTag),this.state.exprAllowed=!1}}},flow:e=>class extends e{constructor(e,t){super(e,t),this.flowPragma=void 0,this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){return e!==h.string&&e!==h.semi&&e!==h.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=Y.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||h.colon);const s=this.flowParseType();return this.state.inType=t,s}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc,s=this.state.start;this.expect(h.modulo);const r=this.state.startLoc;return this.expectContextual("checks"),t.line===r.line&&t.column===r.column-1||this.raise(s,J.UnexpectedSpaceBetweenModuloChecks),this.eat(h.parenL)?(e.value=this.parseExpression(),this.expect(h.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(h.colon);let t=null,s=null;return this.match(h.modulo)?(this.state.inType=e,s=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(h.modulo)&&(s=this.flowParsePredicate())),[t,s]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),s=this.startNode(),r=this.startNode();this.isRelational("<")?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(h.parenL);const i=this.flowParseFunctionTypeParams();return s.params=i.params,s.rest=i.rest,this.expect(h.parenR),[s.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(h._class))return this.flowParseDeclareClass(e);if(this.match(h._function))return this.flowParseDeclareFunction(e);if(this.match(h._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(h.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,J.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(h._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(h.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),s=t.body=[];for(this.expect(h.braceL);!this.match(h.braceR);){let e=this.startNode();this.match(h._import)?(this.next(),this.isContextual("type")||this.match(h._typeof)||this.raise(this.state.lastTokStart,J.InvalidNonTypeImportInDeclareModule),this.parseImport(e)):(this.expectContextual("declare",J.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),s.push(e)}this.scope.exit(),this.expect(h.braceR),this.finishNode(t,"BlockStatement");let r=null,i=!1;return s.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(e.start,J.DuplicateDeclareModuleExports),"ES"===r&&this.raise(e.start,J.AmbiguousDeclareModuleKind),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(e.start,J.AmbiguousDeclareModuleKind),r="ES")})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(h._export),this.eat(h._default))return this.match(h._function)||this.match(h._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(h._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value,t=X[e];throw this.raise(this.state.start,J.UnsupportedDeclareExportKind,e,t)}if(this.match(h._var)||this.match(h._function)||this.match(h._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(h.star)||this.match(h.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(h._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(h.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(this.state.start,J.UnexpectedReservedUnderscore)}checkReservedType(e,t,s){K.has(e)&&this.raise(t,s?J.AssignReservedType:J.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(h.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(h.colon)&&(e.supertype=this.flowParseTypeInitialiser(h.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(h.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,s=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return s.name=i.name,s.variance=r,s.bound=i.typeAnnotation,this.match(h.eq)?(this.eat(h.eq),s.default=this.flowParseType()):e&&this.raise(t,J.MissingTypeParamDefault),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected();let s=!1;do{const e=this.flowParseTypeParameter(s);t.params.push(e),e.default&&(s=!0),this.isRelational(">")||this.expect(h.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");const s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(h.comma);return this.state.noAnonFunctionType=s,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(h.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(h._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,s){return e.static=t,this.lookahead().type===h.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(h.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=s,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(h.bracketR),this.expect(h.bracketR),this.isRelational("<")||this.match(h.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(h.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(h.parenL);!this.match(h.parenR)&&!this.match(h.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(h.parenR)||this.expect(h.comma);return this.eat(h.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(h.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const s=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(s),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:s,allowProto:r,allowInexact:i}){const n=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let l=!1;for(t&&this.match(h.braceBarL)?(this.expect(h.braceBarL),o=h.braceBarR,c=!0):(this.expect(h.braceL),o=h.braceR,c=!1),a.exact=c;!this.match(o);){let t=!1,n=null,o=null;const p=this.startNode();if(r&&this.isContextual("proto")){const t=this.lookahead();t.type!==h.colon&&t.type!==h.question&&(this.next(),n=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==h.colon&&e.type!==h.question&&(this.next(),t=!0)}const u=this.flowParseVariance();if(this.eat(h.bracketL))null!=n&&this.unexpected(n),this.eat(h.bracketL)?(u&&this.unexpected(u.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,u));else if(this.match(h.parenL)||this.isRelational("<"))null!=n&&this.unexpected(n),u&&this.unexpected(u.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==h.name&&t.type!==h.string&&t.type!==h.num||(e=this.state.value,this.next())}const r=this.flowParseObjectTypeProperty(p,t,n,u,e,s,null!=i?i:!c);null===r?(l=!0,o=this.state.lastTokStart):a.properties.push(r)}this.flowObjectTypeSemicolon(),!o||this.match(h.braceR)||this.match(h.braceBarR)||this.raise(o,J.UnexpectedExplicitInexactInObject)}this.expect(o),s&&(a.inexact=l);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=n,p}flowParseObjectTypeProperty(e,t,s,r,i,n,a){if(this.eat(h.ellipsis)){return this.match(h.comma)||this.match(h.semi)||this.match(h.braceR)||this.match(h.braceBarR)?(n?a||this.raise(this.state.lastTokStart,J.InexactInsideExact):this.raise(this.state.lastTokStart,J.InexactInsideNonObject),r&&this.raise(r.start,J.InexactVariance),null):(n||this.raise(this.state.lastTokStart,J.UnexpectedSpreadType),null!=s&&this.unexpected(s),r&&this.raise(r.start,J.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=s,e.kind=i;let n=!1;return this.isRelational("<")||this.match(h.parenL)?(e.method=!0,null!=s&&this.unexpected(s),r&&this.unexpected(r.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(h.question)&&(n=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=n,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,s=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(s,b.BadGetterArity):this.raise(s,b.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(s,b.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(h.semi)||this.eat(h.comma)||this.match(h.braceR)||this.match(h.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,s){e=e||this.state.start,t=t||this.state.startLoc;let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(h.dot);){const s=this.startNodeAt(e,t);s.qualification=r,s.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(s,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t,s){const r=this.startNodeAt(e,t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t,s),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(h._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(h.bracketL);this.state.pos<this.length&&!this.match(h.bracketR)&&(e.types.push(this.flowParseType()),!this.match(h.bracketR));)this.expect(h.comma);return this.expect(h.bracketR),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(){let e=null,t=!1,s=null;const r=this.startNode(),i=this.lookahead();return i.type===h.colon||i.type===h.question?(e=this.parseIdentifier(),this.eat(h.question)&&(t=!0),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),r.name=e,r.optional=t,r.typeAnnotation=s,this.finishNode(r,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.start,e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;for(;!this.match(h.parenR)&&!this.match(h.ellipsis);)e.push(this.flowParseFunctionTypeParam()),this.match(h.parenR)||this.expect(h.comma);return this.eat(h.ellipsis)&&(t=this.flowParseFunctionTypeParam()),{params:e,rest:t}}flowIdentToTypeAnnotation(e,t,s,r){switch(r.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,t,r)}}flowParsePrimaryType(){const e=this.state.start,t=this.state.startLoc,s=this.startNode();let r,i,n=!1;const a=this.state.noAnonFunctionType;switch(this.state.type){case h.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,s,this.parseIdentifier());case h.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case h.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case h.bracketL:return this.state.noAnonFunctionType=!1,i=this.flowParseTupleType(),this.state.noAnonFunctionType=a,i;case h.relational:if("<"===this.state.value)return s.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(h.parenL),r=this.flowParseFunctionTypeParams(),s.params=r.params,s.rest=r.rest,this.expect(h.parenR),this.expect(h.arrow),s.returnType=this.flowParseType(),this.finishNode(s,"FunctionTypeAnnotation");break;case h.parenL:if(this.next(),!this.match(h.parenR)&&!this.match(h.ellipsis))if(this.match(h.name)){const e=this.lookahead().type;n=e!==h.question&&e!==h.colon}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(h.comma)||this.match(h.parenR)&&this.lookahead().type===h.arrow))return this.expect(h.parenR),i;this.eat(h.comma)}return r=i?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):this.flowParseFunctionTypeParams(),s.params=r.params,s.rest=r.rest,this.expect(h.parenR),this.expect(h.arrow),s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation");case h.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case h._true:case h._false:return s.value=this.match(h._true),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case h.plusMin:if("-"===this.state.value){if(this.next(),this.match(h.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",s.start,s.loc.start);if(this.match(h.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",s.start,s.loc.start);throw this.raise(this.state.start,J.UnexpectedSubtractionOperand)}throw this.unexpected();case h.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case h.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case h._void:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case h._null:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case h._this:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case h.star:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){const e=this.state.type.label;return this.next(),super.createIdentifier(s,e)}}throw this.unexpected()}flowParsePostfixType(){const e=this.state.start,t=this.state.startLoc;let s=this.flowParsePrimaryType();for(;this.match(h.bracketL)&&!this.canInsertSemicolon();){const r=this.startNodeAt(e,t);r.elementType=s,this.expect(h.bracketL),this.expect(h.bracketR),s=this.finishNode(r,"ArrayTypeAnnotation")}return s}flowParsePrefixType(){const e=this.startNode();return this.eat(h.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(h.arrow)){const t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(h.bitwiseAND);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(h.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(h.bitwiseOR);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(h.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===h.name&&"_"===this.state.value){const e=this.state.start,t=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(e,t,s)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(h.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(h.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}parseFunctionBody(e,t,s=!1){return t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,s))):super.parseFunctionBody(e,!1,s)}parseFunctionBodyAndFinish(e,t,s=!1){if(this.match(h.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,s)}parseStatement(e,t){if(this.state.strict&&this.match(h.name)&&"interface"===this.state.value){const e=this.lookahead();if(e.type===h.name||V(e.value)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const s=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(s)||(this.flowPragma=null),s}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(h._class)||this.match(h.name)||this.match(h._function)||this.match(h._var)||this.match(h._export))return this.flowParseDeclare(e)}else if(this.match(h.name)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(h.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,s,r){if(!this.match(h.question))return e;if(r){const i=this.tryParse((()=>super.parseConditional(e,t,s)));return i.node?(i.error&&(this.state=i.failState),i.node):(r.start=i.error.pos||this.state.start,e)}this.expect(h.question);const i=this.state.clone(),n=this.state.noArrowAt,a=this.startNodeAt(t,s);let{consequent:o,failed:c}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(o);if(c||p.length>0){const e=[...n];if(p.length>0){this.state=i,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:o,failed:c}=this.tryParseConditionalConsequent()),[l,p]=this.getArrowLikeExpressions(o)}c&&l.length>1&&this.raise(i.start,J.AmbiguousConditionalArrow),c&&1===l.length&&(this.state=i,this.state.noArrowAt=e.concat(l[0].start),({consequent:o,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=n,this.expect(h.colon),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(h.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const s=[e],r=[];for(;0!==s.length;){const e=s.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),s.push(e.body)):"ConditionalExpression"===e.type&&(s.push(e.consequent),s.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const s=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?s:r).push(e[i]);return[s,r]}(r,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingComma,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let s;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),s=t(),this.state.noArrowParamsConversionAt.pop()):s=t(),s}parseParenItem(e,t,s){if(e=super.parseParenItem(e,t,s),this.eat(h.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(h.colon)){const r=this.startNodeAt(t,s);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return e}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)}parseExport(e){const t=super.parseExport(e);return"ExportNamedDeclaration"!==t.type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();return this.next(),this.match(h.braceL)?(e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual("enum")){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==h.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,s=super.maybeParseExportNamespaceSpecifier(e);return s&&"type"===e.exportKind&&this.unexpected(t),s}parseClassId(e,t,s){super.parseClassId(e,t,s),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,s){const r=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,s),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type?this.raise(r,J.DeclareClassElement):t.value&&this.raise(t.value.start,J.DeclareClassFieldInitializer))}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return 123===e&&124===t?this.finishOp(h.braceBarL,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?this.finishOp(h.question,1):function(e,t){return 64===e&&64===t}(e,t)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(e):this.finishOp(h.relational,1)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,s)=>"ObjectMethod"!==e.type&&(s===t||"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=>this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toAssignable(e,t=!1){return"TypeCastExpression"===e.type?super.toAssignable(this.typeCastToParameter(e),t):super.toAssignable(e,t)}toAssignableList(e,t,s){for(let t=0;t<e.length;t++){const s=e[t];"TypeCastExpression"===(null==s?void 0:s.type)&&(e[t]=this.typeCastToParameter(s))}return super.toAssignableList(e,t,s)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var s;const i=e[r];i&&"TypeCastExpression"===i.type&&!(null==(s=i.extra)?void 0:s.parenthesized)&&(e.length>1||!t)&&this.raise(i.typeAnnotation.start,J.TypeCastInPattern)}return e}parseArrayLike(e,t,s,r){const i=super.parseArrayLike(e,t,s,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}checkLVal(e,...t){if("TypeCastExpression"!==e.type)return super.checkLVal(e,...t)}parseClassProperty(e){return this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(h.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(h.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,s,r,i,n){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,s,r,i,n)}pushClassPrivateMethod(e,t,s,r){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,s,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(h.comma))}}parsePropertyName(e,t){const s=this.flowParseVariance(),r=super.parsePropertyName(e,t);return e.variance=s,r}parseObjPropValue(e,t,s,r,i,n,a,o){let c;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(h.parenL)||this.unexpected()),super.parseObjPropValue(e,t,s,r,i,n,a,o),c&&((e.value||e).typeParameters=c)}parseAssignableListItemTypes(e){return this.eat(h.question)&&("Identifier"!==e.type&&this.raise(e.start,J.OptionalBindingPattern),e.optional=!0),this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}parseMaybeDefault(e,t,s){const r=super.parseMaybeDefault(e,t,s);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(r.typeAnnotation.start,J.TypeBeforeInitializer),r}shouldParseDefaultImport(e){return W(e)?G(this.state):super.shouldParseDefaultImport(e)}parseImportSpecifierLocal(e,t,s,r){t.local=W(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,r,9),e.specifiers.push(this.finishNode(t,s))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(h._typeof)?t="typeof":this.isContextual("type")&&(t="type"),t){const s=this.lookahead();"type"===t&&s.type===h.star&&this.unexpected(s.start),(G(s)||s.type===h.braceL||s.type===h.star)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e){const t=this.startNode(),s=this.state.start,r=this.parseModuleExportName();let i=null;"Identifier"===r.type&&("type"===r.name?i="type":"typeof"===r.name&&(i="typeof"));let n=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===i||this.match(h.name)||this.state.type.keyword?(t.imported=r,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=i,t.local=e.__clone())}else if(null!==i&&(this.match(h.name)||this.state.type.keyword))t.imported=this.parseIdentifier(!0),t.importKind=i,this.eatContextual("as")?t.local=this.parseIdentifier():(n=!0,t.local=t.imported.__clone());else{if("StringLiteral"===r.type)throw this.raise(t.start,b.ImportBindingIsString,r.value);n=!0,t.imported=r,t.importKind=null,t.local=t.imported.__clone()}const a=W(e),o=W(t);a&&o&&this.raise(s,J.ImportTypeShorthandOnlyInPureImport),(a||o)&&this.checkReservedType(t.local.name,t.local.start,!0),!n||a||o||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}parseFunctionParams(e,t){const s=e.kind;"get"!==s&&"set"!==s&&this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(h.colon)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(h.colon)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(h.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t,s){var r;let i,n=null;if(this.hasPlugin("jsx")&&(this.match(h.jsxTagStart)||this.isRelational("<"))){if(n=this.state.clone(),i=this.tryParse((()=>super.parseMaybeAssign(e,t,s)),n),!i.error)return i.node;const{context:r}=this.state;r[r.length-1]===v.j_oTag?r.length-=2:r[r.length-1]===v.j_expr&&(r.length-=1)}if((null==(r=i)?void 0:r.error)||this.isRelational("<")){var a,o;let r;n=n||this.state.clone();const c=this.tryParse((i=>{var n;r=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(r,(()=>{const i=super.parseMaybeAssign(e,t,s);return this.resetStartLocationFromNode(i,r),i}));"ArrowFunctionExpression"!==a.type&&(null==(n=a.extra)?void 0:n.parenthesized)&&i();const o=this.maybeUnwrapTypeCastExpression(a);return o.typeParameters=r,this.resetStartLocationFromNode(o,r),a}),n);let l=null;if(c.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(c.node).type){if(!c.error&&!c.aborted)return c.node.async&&this.raise(r.start,J.UnexpectedTypeParameterBeforeAsyncArrowFunction),c.node;l=c.node}if(null==(a=i)?void 0:a.node)return this.state=i.failState,i.node;if(l)return this.state=c.failState,l;if(null==(o=i)?void 0:o.thrown)throw i.error;if(c.thrown)throw c.error;throw this.raise(r.start,J.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t,s)}parseArrow(e){if(this.match(h.colon)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(h.arrow)||this.unexpected(),s}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(){return this.match(h.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,s){if(!s||-1===this.state.noArrowParamsConversionAt.indexOf(e.start))return super.checkParams(...arguments)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,s,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const r=this.startNodeAt(t,s);r.callee=e,r.arguments=this.parseCallExpressionArguments(h.parenR,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const i=this.state.clone(),n=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t,s)||e()),i);if(!n.error&&!n.aborted)return n.node;const a=this.tryParse((()=>super.parseSubscripts(e,t,s,r)),i);if(a.node&&!a.error)return a.node;if(n.node)return this.state=n.failState,n.node;if(a.node)return this.state=a.failState,a.node;throw n.error||a.error}return super.parseSubscripts(e,t,s,r)}parseSubscript(e,t,s,r,i){if(this.match(h.questionDot)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,r)return i.stop=!0,e;this.next();const n=this.startNodeAt(t,s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(h.parenL),n.arguments=this.parseCallExpressionArguments(h.parenR,!1),n.optional=!0,this.finishCallExpression(n,!0)}if(!r&&this.shouldParseTypes()&&this.isRelational("<")){const r=this.startNodeAt(t,s);r.callee=e;const n=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(h.parenL),r.arguments=this.parseCallExpressionArguments(h.parenR,!1),i.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,i.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(e,t,s,r,i)}parseNewArguments(e){let t=null;this.shouldParseTypes()&&this.isRelational("<")&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const s=this.startNodeAt(e,t);if(this.parseFunctionParams(s),this.parseArrow(s))return this.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&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 t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(h.braceBarR,2)}parseTopLevel(e,t){const s=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,J.UnterminatedFlowComment),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,J.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(-1===e)throw this.raise(this.state.pos-2,b.UnterminatedComment);this.state.pos=e+3}else super.skipBlockComment()}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const s=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===s&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===s&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,b.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:s}){this.raise(e,J.EnumBooleanMemberNotInitialized,s,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:s}){const r=s[0].toUpperCase()+s.slice(1);this.raise(e,J.EnumInvalidMemberName,s,r,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:s}){this.raise(e,J.EnumDuplicateMemberName,s,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,J.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:s}){return this.raise(e,null===s?J.EnumInvalidExplicitTypeUnknownSupplied:J.EnumInvalidExplicitType,t,s)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:s,memberName:r}){let i=null;switch(s){case"boolean":case"number":case"string":i=J.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":i=J.EnumInvalidMemberInitializerSymbolType;break;default:i=J.EnumInvalidMemberInitializerUnknownType}return this.raise(e,i,t,r,s)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:s}){this.raise(e,J.EnumNumberMemberNotInitialized,t,s)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,J.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,t=()=>this.match(h.comma)||this.match(h.braceR);switch(this.state.type){case h.num:{const s=this.parseLiteral(this.state.value,"NumericLiteral");return t()?{type:"number",pos:s.start,value:s}:{type:"invalid",pos:e}}case h.string:{const s=this.parseLiteral(this.state.value,"StringLiteral");return t()?{type:"string",pos:s.start,value:s}:{type:"invalid",pos:e}}case h._true:case h._false:{const s=this.parseBooleanLiteral();return t()?{type:"boolean",pos:s.start,value:s}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(h.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}flowEnumCheckExplicitTypeMismatch(e,t,s){const{explicitType:r}=t;null!==r&&r!==s&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const s=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(h.braceR);){const i=this.startNode(),{id:n,init:a}=this.flowEnumMemberRaw(),o=n.name;if(""===o)continue;/^[a-z]/.test(o)&&this.flowEnumErrorInvalidMemberName(n.start,{enumName:e,memberName:o}),s.has(o)&&this.flowEnumErrorDuplicateMemberName(n.start,{enumName:e,memberName:o}),s.add(o);const c={enumName:e,explicitType:t,memberName:o};switch(i.id=n,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"boolean"),i.init=a.value,r.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"number"),i.init=a.value,r.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"string"),i.init=a.value,r.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.pos,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.pos,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.pos,c);break;default:r.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(h.braceR)||this.expect(h.comma)}return r}flowEnumStringMembers(e,t,{enumName:s}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t=0;t<e.length;t++){const r=e[t];this.flowEnumErrorStringMemberInconsistentlyInitailized(r.start,{enumName:s})}return t}for(let e=0;e<t.length;e++){const r=t[e];this.flowEnumErrorStringMemberInconsistentlyInitailized(r.start,{enumName:s})}return e}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual("of")){if(!this.match(h.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(e,{enumName:t,nameLoc:s}){const r=this.flowEnumParseExplicitType({enumName:t});this.expect(h.braceL);const i=this.flowEnumMembers({enumName:t,explicitType:r});switch(r){case"boolean":return e.explicitType=!0,e.members=i.booleanMembers,this.expect(h.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=i.numberMembers,this.expect(h.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:t}),this.expect(h.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=i.defaultedMembers,this.expect(h.braceR),this.finishNode(e,"EnumSymbolBody");default:{const r=()=>(e.members=[],this.expect(h.braceR),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const n=i.booleanMembers.length,a=i.numberMembers.length,o=i.stringMembers.length,c=i.defaultedMembers.length;if(n||a||o||c){if(n||a){if(!a&&!o&&n>=c){for(let e=0,s=i.defaultedMembers;e<s.length;e++){const r=s[e];this.flowEnumErrorBooleanMemberNotInitialized(r.start,{enumName:t,memberName:r.id.name})}return e.members=i.booleanMembers,this.expect(h.braceR),this.finishNode(e,"EnumBooleanBody")}if(!n&&!o&&a>=c){for(let e=0,s=i.defaultedMembers;e<s.length;e++){const r=s[e];this.flowEnumErrorNumberMemberNotInitialized(r.start,{enumName:t,memberName:r.id.name})}return e.members=i.numberMembers,this.expect(h.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(s,{enumName:t}),r()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:t}),this.expect(h.braceR),this.finishNode(e,"EnumStringBody")}return r()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}updateContext(e){this.match(h.name)&&"of"===this.state.value&&e===h.name&&"interface"===this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)?this.state.exprAllowed=!1:super.updateContext(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{getScopeHandler(){return oe}tsIsIdentifier(){return this.match(h.name)}tsNextTokenCanFollowModifier(){return this.next(),(this.match(h.bracketL)||this.match(h.braceL)||this.match(h.star)||this.match(h.ellipsis)||this.match(h.hash)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsParseModifier(e){if(!this.match(h.name))return;const t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}tsParseModifiers(e,t){for(;;){const s=this.state.start,r=this.tsParseModifier(t);if(!r)break;Object.hasOwnProperty.call(e,r)&&this.raise(s,ue.DuplicateModifier,r),e[r]=!0}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(h.braceR);case"HeritageClauseElement":return this.match(h.braceL);case"TupleElementTypes":return this.match(h.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const s=[];for(;!this.tsIsListTerminator(e);)s.push(t());return s}tsParseDelimitedList(e,t){return he(this.tsParseDelimitedListWorker(e,t,!0))}tsParseDelimitedListWorker(e,t,s){const r=[];for(;!this.tsIsListTerminator(e);){const i=t();if(null==i)return;if(r.push(i),!this.eat(h.comma)){if(this.tsIsListTerminator(e))break;return void(s&&this.expect(h.comma))}}return r}tsParseBracketedList(e,t,s,r){r||(s?this.expect(h.bracketL):this.expectRelational("<"));const i=this.tsParseDelimitedList(e,t);return s?this.expect(h.bracketR):this.expectRelational(">"),i}tsParseImportType(){const e=this.startNode();return this.expect(h._import),this.expect(h.parenL),this.match(h.string)||this.raise(this.state.start,ue.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(h.parenR),this.eat(h.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(h.dot);){const s=this.startNodeAtNode(t);s.left=t,s.right=this.parseIdentifier(e),t=this.finishNode(s,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(h._typeof),this.match(h._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(h._extends),e.default=this.tsEatThenParseType(h.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,ue.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===h._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const s=e===h.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),t.parameters=this.tsParseBindingListForSignature(),(s||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(h.parenR,41).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,ue.UnsupportedSignatureParameterKind,e.type),e)))}tsParseTypeMemberSemicolon(){this.eat(h.comma)||this.semicolon()}tsParseSignatureMember(e,t){return this.tsFillSignature(h.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(h.name)&&this.match(h.colon)}tsTryParseIndexSignature(e){if(!this.match(h.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(h.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(h.bracketR),e.parameters=[t];const s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(h.question)&&(e.optional=!0);const s=e;if(t||!this.match(h.parenL)&&!this.isRelational("<")){const e=s;t&&(e.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}{const e=s;return this.tsFillSignature(h.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSMethodSignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(h.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(h._new)){const t=this.startNode();return this.next(),this.match(h.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}const t=!!this.tsParseModifier(["readonly"]),s=this.tsTryParseIndexSignature(e);return s?(t&&(e.readonly=!0),s):(this.parsePropertyName(e,!1),this.tsParsePropertyOrMethodSignature(e,t))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(h.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(h.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(h.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(h._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(h._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(h.braceL),this.match(h.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(h.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(h.bracketR),this.match(h.plusMin)?(e.optional=this.state.value,this.next(),this.expect(h.question)):this.eat(h.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,s=null;return e.elementTypes.forEach((e=>{var r;let{type:i}=e;!t||"TSRestType"===i||"TSOptionalType"===i||"TSNamedTupleMember"===i&&e.optional||this.raise(e.start,ue.OptionalTypeBeforeRequired),t=t||"TSNamedTupleMember"===i&&e.optional||"TSOptionalType"===i,"TSRestType"===i&&(i=(e=e.typeAnnotation).type);const n="TSNamedTupleMember"===i;s=null!=(r=s)?r:n,s!==n&&this.raise(e.start,ue.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,s=this.eat(h.ellipsis);let r=this.tsParseType();const i=this.eat(h.question);if(this.eat(h.colon)){const e=this.startNodeAtNode(r);e.optional=i,"TSTypeReference"!==r.type||r.typeParameters||"Identifier"!==r.typeName.type?(this.raise(r.start,ue.InvalidTupleMemberLabel),e.label=r):e.label=r.typeName,e.elementType=this.tsParseType(),r=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(r);e.typeAnnotation=r,r=this.finishNode(e,"TSOptionalType")}if(s){const s=this.startNodeAt(e,t);s.typeAnnotation=r,r=this.finishNode(s,"TSRestType")}return r}tsParseParenthesizedType(){const e=this.startNode();return this.expect(h.parenL),e.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e){const t=this.startNode();return"TSConstructorType"===e&&this.expect(h._new),this.tsFillSignature(h.arrow,t),this.finishNode(t,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case h.num:case h.bigint:case h.string:case h._true:case h._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case h.name:case h._void:case h._null:{const e=this.match(h._void)?"TSVoidKeyword":this.match(h._null)?"TSNullKeyword":function(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!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}case h.string:case h.num:case h.bigint:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();if(t.type!==h.num&&t.type!==h.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case h._this:return this.tsParseThisTypeOrThisTypePredicate();case h._typeof:return this.tsParseTypeQuery();case h._import:return this.tsParseImportType();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType();case h.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(h.bracketL);)if(this.match(h.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(h.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(h.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,ue.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find((e=>this.isContextual(e)));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,s){this.eat(s);let r=t();if(this.match(s)){const i=[r];for(;this.eat(s);)i.push(t());const n=this.startNodeAtNode(r);n.types=i,r=this.finishNode(n,e)}return r}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(h.name)||this.match(h._this))return this.next(),!0;if(this.match(h.braceL)){let e=1;for(this.next();e>0;)this.match(h.braceL)?++e:this.match(h.braceR)&&--e,this.next();return!0}if(this.match(h.bracketL)){let e=1;for(this.next();e>0;)this.match(h.bracketL)?++e:this.match(h.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)&&(this.next(),this.match(h.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(h._this)){let e=this.tsParseThisTypeOrThisTypePredicate();if("TSThisType"===e.type){const s=this.startNodeAtNode(t);s.parameterName=e,s.asserts=!0,e=this.finishNode(s,"TSTypePredicate")}else e.asserts=!0;return t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const r=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!r){if(!s)return this.tsParseTypeAnnotation(!1,t);const e=this.startNodeAtNode(t);return e.parameterName=this.parseIdentifier(),e.asserts=s,t.typeAnnotation=this.finishNode(e,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}const i=this.tsParseTypeAnnotation(!1),n=this.startNodeAtNode(t);return n.parameterName=r,n.typeAnnotation=i,n.asserts=s,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0}tsTryParseTypeAnnotation(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(h.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(h.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!(!this.match(h.name)&&!this.match(h._this))&&(e&&this.raise(this.state.lastTokStart,b.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(h.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){pe(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(h._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(h.question),t.trueType=this.tsParseType(),this.expect(h.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(h._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,s=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return s.length||this.raise(t,ue.EmptyHeritageClauseType,e),s}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript interface declaration",130),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(h._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",2),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((()=>{if(this.expect(h.eq),this.isContextual("intrinsic")&&this.lookahead().type!==h.dot){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(h.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",t?779:267),this.expect(h.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(h.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,h.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,"module or namespace declaration",1024),this.eat(h.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(H),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(h.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(h.braceL)?(this.scope.enter(H),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",9),this.expect(h.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(h.parenR),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),s=e();return this.state=t,s}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),s=e();return void 0!==s&&!1!==s?s:void(this.state=t)}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,s=this.state.type;return this.isContextual("let")&&(s=h._var,t="let"),this.tsInDeclareContext((()=>{switch(s){case h._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case h._class:return e.declare=!0,this.parseClass(e,!0,!1);case h._const:if(this.match(h._const)&&this.isLookaheadContextual("enum"))return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case h._var:return t=t||this.state.value,this.parseVarStatement(e,t);case h.name:{const t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(h.braceL)){this.scope.enter(H),this.prodParam.enter(0);const s=e;return s.global=!0,s.id=t,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}tsParseDeclaration(e,t,s){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(h._class,s)){const t=e;return t.abstract=!0,s&&(this.next(),this.match(h._class)||this.unexpected(null,h._class)),this.parseClass(t,!0,!1)}break;case"enum":if(s||this.match(h.name))return s&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(h.name,s))return s&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(s&&this.next(),this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(h.name,s))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(h.name,s))return s&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(h.name,s))return s&&this.next(),this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminatorAndMatch(e,t){return(t||this.match(e))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const s=this.startNodeAt(e,t);return s.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(h.arrow),s}));return this.state.maybeInArrowParameters=s,r?this.parseArrowExpression(r,null,!0):void 0}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(e.start,ue.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(h.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const s=this.state.start,r=this.state.startLoc;let i,n=!1;void 0!==e&&(i=this.parseAccessModifier(),n=!!this.tsParseModifier(["readonly"]),!1===e&&(i||n)&&this.raise(s,ue.UnexpectedParameterModifier));const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);const o=this.parseMaybeDefault(a.start,a.loc.start,a);if(i||n){const e=this.startNodeAt(s,r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),n&&(e.readonly=n),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(e.start,ue.UnsupportedParameterPropertyKind),e.parameter=o,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),o}parseFunctionBodyAndFinish(e,t,s=!1){this.match(h.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;r&&!this.match(h.braceL)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isDeclareContext&&(this.raise(e.start,ue.DeclareFunctionHasImplementation),e.declare)?super.parseFunctionBodyAndFinish(e,r,s):super.parseFunctionBodyAndFinish(e,t,s)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,"function name",1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(e.typeAnnotation.start,ue.UnexpectedTypeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const t=super.parseArrayLike(...e);return"ArrayExpression"===t.type&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(e,t,s,r,i){if(!this.hasPrecedingLineBreak()&&this.match(h.bang)){this.state.exprAllowed=!1,this.next();const r=this.startNodeAt(t,s);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}if(this.isRelational("<")){const n=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,s);if(e)return e}const n=this.startNodeAt(t,s);n.callee=e;const a=this.tsParseTypeArguments();if(a){if(!r&&this.eat(h.parenL))return n.arguments=this.parseCallExpressionArguments(h.parenR,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=a,this.finishCallExpression(n,i.optionalChainMember);if(this.match(h.backQuote)){const r=this.parseTaggedTemplateExpression(e,t,s,i);return r.typeParameters=a,r}}this.unexpected()}));if(n)return n}return super.parseSubscript(e,t,s,r,i)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>{const e=this.tsParseTypeArguments();return this.match(h.parenL)||this.unexpected(),e}));t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,s,r){if(he(h._in.binop)>r&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const i=this.startNodeAt(t,s);i.expression=e;const n=this.tsTryNextParseConstantContext();return i.typeAnnotation=n||this.tsNextThenParseType(),this.finishNode(i,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,s,r)}return super.parseExprOp(e,t,s,r)}checkReservedWord(e,t,s,r){}checkDuplicateExports(){}parseImport(e){if(this.match(h.name)||this.match(h.star)||this.match(h.braceL)){const t=this.lookahead();if(this.match(h.name)&&t.type===h.eq)return this.tsParseImportEqualsDeclaration(e);!this.isContextual("type")||t.type===h.comma||t.type===h.name&&"from"===t.value||(e.importKind="type",this.next())}e.importKind||(e.importKind="value");const t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(t.start,"A type-only import can specify a default import or named bindings, but not both."),t}parseExport(e){if(this.match(h._import))return this.expect(h._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(h.eq)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===h.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===h._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===h._const){const e=this.lookahead();if(e.type===h.name&&"enum"===e.value){const e=this.startNode();return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(e,t,s){this.tsParseModifiers(t,["declare"]);const r=this.parseAccessModifier();r&&(t.accessibility=r),this.tsParseModifiers(t,["declare"]);const i=()=>{super.parseClassMember(e,t,s)};t.declare?this.tsInDeclareContext(i):i()}parseClassMemberWithIsStatic(e,t,s,r){this.tsParseModifiers(t,["abstract","readonly","declare"]);const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(t.start,ue.IndexSignatureHasAbstract),r&&this.raise(t.start,ue.IndexSignatureHasStatic),t.accessibility&&this.raise(t.start,ue.IndexSignatureHasAccessibility,t.accessibility),void(t.declare&&this.raise(t.start,ue.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(e,t,s,r)}parsePostMemberNameModifiers(e){this.eat(h.question)&&(e.optional=!0),e.readonly&&this.match(h.parenL)&&this.raise(e.start,ue.ClassMethodHasReadonly),e.declare&&this.match(h.parenL)&&this.raise(e.start,ue.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,s,r){if(!r||!this.match(h.question))return super.parseConditional(e,t,s,r);const i=this.tryParse((()=>super.parseConditional(e,t,s)));return i.node?(i.error&&(this.state=i.failState),i.node):(r.start=i.error.pos||this.state.start,e)}parseParenItem(e,t,s){if(e=super.parseParenItem(e,t,s),this.eat(h.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(h.colon)){const r=this.startNodeAt(t,s);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,s=this.state.startLoc,r=this.eatContextual("declare");let i;return this.match(h.name)&&(i=this.tsTryParseExportDeclaration()),i||(i=super.parseExportDeclaration(e)),i&&("TSInterfaceDeclaration"===i.type||"TSTypeAliasDeclaration"===i.type||r)&&(e.exportKind="type"),i&&r&&(this.resetStartLocation(i,t,s),i.declare=!0),i}parseClassId(e,t,s){if((!t||s)&&this.isContextual("implements"))return;super.parseClassId(e,t,s,e.declare?1024:139);const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(h.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isDeclareContext&&this.match(h.eq)&&this.raise(this.state.start,ue.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,ue.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,ue.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,s,r,i,n){const a=this.tsTryParseTypeParameters();a&&i&&this.raise(a.start,ue.ConstructorHasTypeParameters),a&&(t.typeParameters=a),super.pushClassMethod(e,t,s,r,i,n)}pushClassPrivateMethod(e,t,s,r){const i=this.tsTryParseTypeParameters();i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,s,r)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const s=this.tsTryParseTypeParameters();s&&(e.typeParameters=s),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const s=this.tsTryParseTypeParameters();s&&(e.typeParameters=s),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(h.bang)&&(e.definite=!0);const s=this.tsTryParseTypeAnnotation();s&&(e.id.typeAnnotation=s,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(h.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,s,r,i,n,a,o;let c,l,p,u;if(this.match(h.jsxTagStart)){if(c=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!l.error)return l.node;const{context:t}=this.state;t[t.length-1]===v.j_oTag?t.length-=2:t[t.length-1]===v.j_expr&&(t.length-=1)}if(!(null==(t=l)?void 0:t.error)&&!this.isRelational("<"))return super.parseMaybeAssign(...e);c=c||this.state.clone();const d=this.tryParse((t=>{var s;u=this.tsParseTypeParameters();const r=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==r.type||r.extra&&r.extra.parenthesized)&&t(),0!==(null==(s=u)?void 0:s.params.length)&&this.resetStartLocationFromNode(r,u),r.typeParameters=u,r}),c);if(!d.error&&!d.aborted)return d.node;if(!l&&(pe(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!p.error))return p.node;if(null==(s=l)?void 0:s.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,d.node;if(null==(r=p)?void 0:r.node)return this.state=p.failState,p.node;if(null==(i=l)?void 0:i.thrown)throw l.error;if(d.thrown)throw d.error;if(null==(n=p)?void 0:n.thrown)throw p.error;throw(null==(a=l)?void 0:a.error)||d.error||(null==(o=p)?void 0:o.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(h.colon)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(h.colon);return!this.canInsertSemicolon()&&this.match(h.arrow)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(h.question)&&("Identifier"===e.type||this.state.isDeclareContext||this.state.inType||this.raise(e.start,ue.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}toAssignable(e,t=!1){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),t);case"TSParameterProperty":return super.toAssignable(e,t);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,t),e;default:return super.toAssignable(e,t)}}checkLVal(e,t,...s){switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,"parameter property",...s);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,t,...s);default:return void super.checkLVal(e,t,...s)}}parseBindingAtom(){switch(this.state.type){case h._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(h.parenL)){const s=super.parseMaybeDecoratorArguments(e);return s.typeParameters=t,s}this.unexpected(this.state.start,h.parenL)}return super.parseMaybeDecoratorArguments(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(h.bang)||this.match(h.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,ue.TypeAnnotationAfterAssign),t}getTokenFromCode(e){return!this.state.inType||62!==e&&60!==e?super.getTokenFromCode(e):this.finishOp(h.relational,1)}reScan_lt_gt(){if(this.match(h.relational)){const e=this.input.charCodeAt(this.state.start);60!==e&&62!==e||(this.state.pos-=1,this.readToken_lt_gt(e))}}toAssignableList(e){for(let t=0;t<e.length;t++){const s=e[t];if(s)switch(s.type){case"TSTypeCastExpression":e[t]=this.typeCastToParameter(s);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(s.start,ue.UnexpectedTypeCastInParameter):e[t]=this.typeCastToParameter(s)}}return super.toAssignableList(...arguments)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(){return this.match(h.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(h.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e)[0];return s&&"Identifier"===s.type&&"this"===s.name?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInDeclareContext(e){const t=this.state.isDeclareContext;this.state.isDeclareContext=!0;try{return e()}finally{this.state.isDeclareContext=t}}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(h.modulo)){const e=this.state.start,t=this.startNode();if(this.eat(h.modulo),this.match(h.name)){const e=this.parseIdentifierName(this.state.start),s=this.createIdentifier(t,e);if(s.type="V8IntrinsicIdentifier",this.match(h.parenL))return s}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(h.placeholder)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(h.placeholder),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const s=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,s?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){void 0!==e&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){"Placeholder"!==e.type&&super.checkLVal(...arguments)}toAssignable(e){return e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}verifyBreakContinue(e){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(h.colon)){const s=e;return s.label=this.finishPlaceholder(t,"Identifier"),this.next(),s.body=this.parseStatement("label"),this.finishNode(s,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,s){const r=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const i=this.state.strict,n=this.parsePlaceholder("Identifier");if(n)if(this.match(h._extends)||this.match(h.placeholder)||this.match(h.braceL))e.id=n;else{if(s||!t)return e.id=null,e.body=this.finishPlaceholder(n,"ClassBody"),this.finishNode(e,r);this.unexpected(null,"A class name is required")}else this.parseClassId(e,t,s);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(h.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const s=this.startNode();return s.exported=t,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(h._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(h.placeholder.label,this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:t}=e;(null==t?void 0:t.length)&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(h.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const s=this.startNodeAtNode(t);if(s.local=t,this.finishNode(s,"ImportDefaultSpecifier"),e.specifiers.push(s),this.eat(h.comma)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},ge=Object.keys(xe),be={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class Pe{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isIterator=!1,this.isDeclareContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=h.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[v.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.octalPositions=[],this.exportedIdentifiers=[],this.tokensLength=0}init(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new y(this.curLine,this.pos-this.lineStart)}clone(e){const t=new Pe,s=Object.keys(this);for(let r=0,i=s.length;r<i;r++){const i=s[r];let n=this[i];!e&&Array.isArray(n)&&(n=n.slice()),t[i]=n}return t}}var Te=function(e){return e>=48&&e<=57};const ve=new Set(["g","m","s","i","y","u"]),we={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},Ae={bin:[48,49]};Ae.oct=[...Ae.bin,50,51,52,53,54,55],Ae.dec=[...Ae.oct,56,57],Ae.hex=[...Ae.dec,65,66,67,68,69,70,97,98,99,100,101,102];class Ee{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new x(e.startLoc,e.endLoc)}}class Se{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class Ce{constructor(e,t,s){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=t,this.end=0,this.loc=new x(s),(null==e?void 0:e.options.ranges)&&(this.range=[t,0]),(null==e?void 0:e.filename)&&(this.loc.filename=e.filename)}__clone(){const e=new Ce,t=Object.keys(this);for(let s=0,r=t.length;s<r;s++){const r=t[s];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e}}const ke=e=>"ParenthesizedExpression"===e.type?ke(e.expression):e;class Ne{constructor(e=0){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Ie extends Ne{constructor(e){super(e),this.errors=new Map}recordDeclarationError(e,t){this.errors.set(e,t)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class _e{constructor(e){this.stack=[new Ne],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:s}=this;let r=s.length-1,i=s[r];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,t),i=s[--r]}this.raise(e,t)}recordParenthesizedIdentifierError(e,t){const{stack:s}=this,r=s[s.length-1];if(r.isCertainlyParameterDeclaration())this.raise(e,t);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,t)}}recordAsyncArrowParametersError(e,t){const{stack:s}=this;let r=s.length-1,i=s[r];for(;i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(e,t),i=s[--r]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(((t,s)=>{this.raise(s,t);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(s),i=e[--r]}))}}function Le(){return new Ne}const De={kind:"loop"},Me={kind:"switch"},Re=/[\uD800-\uDFFF]/u;class Oe{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Fe{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Oe)}exit(){const e=this.stack.pop(),t=this.current();for(let s=0,r=Array.from(e.undefinedPrivateNames);s<r.length;s++){const[e,i]=r[s];t?t.undefinedPrivateNames.has(e)||t.undefinedPrivateNames.set(e,i):this.raise(i,b.InvalidPrivateFieldResolution,e)}}declarePrivateName(e,t,s){const r=this.current();let i=r.privateNames.has(e);if(3&t){const s=i&&r.loneAccessors.get(e);if(s){const n=4&s,a=4&t;i=(3&s)===(3&t)||n!==a,i||r.loneAccessors.delete(e)}else i||r.loneAccessors.set(e,t)}i&&this.raise(s,b.PrivateNameRedeclaration,e),r.privateNames.add(e),r.undefinedPrivateNames.delete(e)}usePrivateName(e,t){let s;for(let t=0,r=this.stack;t<r.length;t++)if(s=r[t],s.privateNames.has(e))return;s?s.undefinedPrivateNames.set(e,t):this.raise(t,b.InvalidPrivateFieldResolution,e)}}class Be extends class extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}adjustCommentsAfterTrailingComma(e,t,s){if(0===this.state.leadingComments.length)return;let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];if(null===r)return;for(let e=0;e<this.state.leadingComments.length;e++)this.state.leadingComments[e].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(e,1),e--);const n=[];for(let t=0;t<this.state.leadingComments.length;t++){const r=this.state.leadingComments[t];r.end<e.end?(n.push(r),s||(this.state.leadingComments.splice(t,1),t--)):(void 0===e.trailingComments&&(e.trailingComments=[]),e.trailingComments.push(r))}s&&(this.state.leadingComments=[]),n.length>0?r.trailingComments=n:void 0!==r.trailingComments&&(r.trailingComments=[])}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let s,r,i,n,a;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const s=g(t);s.trailingComments&&s.trailingComments[0].start>=e.end&&(i=s.trailingComments,delete s.trailingComments)}for(t.length>0&&g(t).start>=e.start&&(s=t.pop());t.length>0&&g(t).start>=e.start;)r=t.pop();if(!r&&s&&(r=s),s)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(r){if(r.leadingComments)if(r!==e&&r.leadingComments.length>0&&g(r.leadingComments).end<=e.start)e.leadingComments=r.leadingComments,delete r.leadingComments;else for(n=r.leadingComments.length-2;n>=0;--n)if(r.leadingComments[n].end<=e.start){e.leadingComments=r.leadingComments.splice(0,n+1);break}}else if(this.state.leadingComments.length>0)if(g(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(n=0;n<this.state.leadingComments.length&&!(this.state.leadingComments[n].end>e.start);n++);const t=this.state.leadingComments.slice(0,n);t.length&&(e.leadingComments=t),i=this.state.leadingComments.slice(n),0===i.length&&(i=null)}if(this.state.commentPreviousNode=e,i)if(i.length&&i[0].start>=e.start&&g(i).end<=e.end)e.innerComments=i;else{const t=i.findIndex((t=>t.end>=e.end));t>0?(e.innerComments=i.slice(0,t),e.trailingComments=i.slice(t)):e.trailingComments=i}t.push(e)}}{getLocationForPosition(e){let t;return t=e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){let s,r=1,i=0;for(u.lastIndex=0;(s=u.exec(e))&&s.index<t;)r++,i=u.lastIndex;return new y(r,t-i)}(this.input,e),t}raise(e,t,...s){return this.raiseWithData(e,void 0,t,...s)}raiseWithData(e,t,s,...r){const i=this.getLocationForPosition(e),n=s.replace(/%(\d+)/g,((e,t)=>r[t]))+` (${i.line}:${i.column})`;return this._raise(Object.assign({loc:i,pos:e},t),n)}_raise(e,t){const s=new SyntaxError(t);if(Object.assign(s,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(s),s;throw s}}{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new Pe,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ee(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}lookahead(){const e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){m.lastIndex=e;return e+m.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(e){if(this.state.strict=e,this.match(h.num)||this.match(h.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf("\n",this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if((null==e?void 0:e.preserveSpace)||this.skipSpace(),this.state.octalPositions=[],this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(h.eof);const t=null==e?void 0:e.override;t?t(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(e,t,s,r,i,n){const a={type:e?"CommentBlock":"CommentLine",value:t,start:s,end:r,loc:new x(i,n)};this.options.tokens&&this.pushToken(a),this.state.comments.push(a),this.addComment(a)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,s=this.input.indexOf("*/",this.state.pos+2);if(-1===s)throw this.raise(t,b.UnterminatedComment);let r;for(this.state.pos=s+2,u.lastIndex=t;(r=u.exec(this.input))&&r.index<this.state.pos;)++this.state.curLine,this.state.lineStart=r.index+r[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(t+2,s),t,this.state.pos,e,this.state.curPosition())}skipLineComment(e){const t=this.state.pos,s=this.state.curPosition();let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!d(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(t+e,this.state.pos),t,this.state.pos,s,this.state.curPosition())}skipSpace(){e:for(;this.state.pos<this.length;){const e=this.input.charCodeAt(this.state.pos);switch(e){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:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!f(e))break e;++this.state.pos}}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const s=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(s)}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.input.charCodeAt(e);if(t>=48&&t<=57)throw this.raise(this.state.pos,b.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType);123===t?this.finishToken(h.braceHashL):this.finishToken(h.bracketHashL),this.state.pos+=2}else this.finishOp(h.hash,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(h.ellipsis)):(++this.state.pos,this.finishToken(h.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.assign,2):this.finishOp(h.slash,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 t=this.state.pos;for(this.state.pos+=1;!d(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const s=this.input.slice(t+2,this.state.pos);return this.finishToken(h.interpreterDirective,s),!0}readToken_mult_modulo(e){let t=42===e?h.star:h.modulo,s=1,r=this.input.charCodeAt(this.state.pos+1);const i=this.state.exprAllowed;42===e&&42===r&&(s++,r=this.input.charCodeAt(this.state.pos+2),t=h.exponent),61!==r||i||(s++,t=h.assign),this.finishOp(t,s)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(h.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,b.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(h.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,b.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(h.bracketBarR,2)}}61!==t?this.finishOp(124===e?h.bitwiseOR:h.bitwiseAND,1):this.finishOp(h.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(h.assign,3):this.finishOp(124===e?h.logicalOR:h.logicalAND,2)}readToken_caret(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.assign,2):this.finishOp(h.bitwiseXOR,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45!==t||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(h.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===t?this.finishOp(h.assign,2):this.finishOp(h.plusMin,1)}readToken_lt_gt(e){const t=this.input.charCodeAt(this.state.pos+1);let s=1;return t===e?(s=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+s)?void this.finishOp(h.assign,s+1):void this.finishOp(h.bitShift,s)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(s=2),void this.finishOp(h.relational,s)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(h.arrow)):void this.finishOp(61===e?h.eq:h.bang,1);this.finishOp(h.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(h.assign,3):this.finishOp(h.nullishCoalescing,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(h.question)):(this.state.pos+=2,this.finishToken(h.questionDot))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(h.parenL);case 41:return++this.state.pos,void this.finishToken(h.parenR);case 59:return++this.state.pos,void this.finishToken(h.semi);case 44:return++this.state.pos,void this.finishToken(h.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,b.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(h.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(h.bracketL);return;case 93:return++this.state.pos,void this.finishToken(h.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,b.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(h.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(h.braceL);return;case 125:return++this.state.pos,void this.finishToken(h.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.doubleColon,2):(++this.state.pos,this.finishToken(h.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(h.backQuote);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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(h.tilde,1);case 64:return++this.state.pos,void this.finishToken(h.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(I(e))return void this.readWord()}throw this.raise(this.state.pos,b.InvalidOrUnexpectedToken,String.fromCodePoint(e))}finishOp(e,t){const s=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,s)}readRegexp(){const e=this.state.pos;let t,s;for(;;){if(this.state.pos>=this.length)throw this.raise(e,b.UnterminatedRegExp);const r=this.input.charAt(this.state.pos);if(p.test(r))throw this.raise(e,b.UnterminatedRegExp);if(t)t=!1;else{if("["===r)s=!0;else if("]"===r&&s)s=!1;else if("/"===r&&!s)break;t="\\"===r}++this.state.pos}const r=this.input.slice(e,this.state.pos);++this.state.pos;let i="";for(;this.state.pos<this.length;){const e=this.input[this.state.pos],t=this.input.codePointAt(this.state.pos);if(ve.has(e))i.indexOf(e)>-1&&this.raise(this.state.pos+1,b.DuplicateRegExpFlags);else{if(!_(t)&&92!==t)break;this.raise(this.state.pos+1,b.MalformedRegExpFlags)}++this.state.pos,i+=e}this.finishToken(h.regexp,{pattern:r,flags:i})}readInt(e,t,s,r=!0){const i=this.state.pos,n=16===e?we.hex:we.decBinOct,a=16===e?Ae.hex:10===e?Ae.dec:8===e?Ae.oct:Ae.bin;let o=!1,c=0;for(let i=0,l=null==t?1/0:t;i<l;++i){const t=this.input.charCodeAt(this.state.pos);let l;if(95!==t){if(l=t>=97?t-97+10:t>=65?t-65+10:Te(t)?t-48:1/0,l>=e)if(this.options.errorRecovery&&l<=9)l=0,this.raise(this.state.start+i+2,b.InvalidDigit,e);else{if(!s)break;l=0,o=!0}++this.state.pos,c=c*e+l}else{const e=this.input.charCodeAt(this.state.pos-1),t=this.input.charCodeAt(this.state.pos+1);(-1===a.indexOf(t)||n.indexOf(e)>-1||n.indexOf(t)>-1||Number.isNaN(t))&&this.raise(this.state.pos,b.UnexpectedNumericSeparator),r||this.raise(this.state.pos,b.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===i||null!=t&&this.state.pos-i!==t||o?null:c}readRadixNumber(e){const t=this.state.pos;let s=!1;this.state.pos+=2;const r=this.readInt(e);null==r&&this.raise(this.state.start+2,b.InvalidDigit,e);const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,s=!0;else if(109===i)throw this.raise(t,b.InvalidDecimal);if(I(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,b.NumberIdentifier);if(s){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(h.bigint,e)}else this.finishToken(h.num,r)}readNumber(e){const t=this.state.pos;let s=!1,r=!1,i=!1,n=!1,a=!1;e||null!==this.readInt(10)||this.raise(t,b.InvalidNumber);const o=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(o){const e=this.input.slice(t,this.state.pos);if(this.state.strict)this.raise(t,b.StrictOctalLiteral);else{const s=e.indexOf("_");s>0&&this.raise(s+t,b.ZeroDigitNumericSeparator)}a=o&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||a||(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||a||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,b.InvalidOrMissingExponent),s=!0,n=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((s||o)&&this.raise(t,b.InvalidBigIntLiteral),++this.state.pos,r=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(n||o)&&this.raise(t,b.InvalidDecimal),++this.state.pos,i=!0),I(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,b.NumberIdentifier);const l=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(r)return void this.finishToken(h.bigint,l);if(i)return void this.finishToken(h.decimal,l);const p=a?parseInt(l,8):parseFloat(l);this.finishToken(h.num,p)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const s=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(s,b.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}readString(e){let t="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedString);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;if(92===r)t+=this.input.slice(s,this.state.pos),t+=this.readEscapedChar(!1),s=this.state.pos;else if(8232===r||8233===r)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(d(r))throw this.raise(this.state.start,b.UnterminatedString);++this.state.pos}}t+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,t)}readTmplToken(){let e="",t=this.state.pos,s=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedTemplate);const r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(h.template)?36===r?(this.state.pos+=2,void this.finishToken(h.dollarBraceL)):(++this.state.pos,void this.finishToken(h.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(h.template,s?null:e));if(92===r){e+=this.input.slice(t,this.state.pos);const r=this.readEscapedChar(!0);null===r?s=!0:e+=r,t=this.state.pos}else if(d(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}readEscapedChar(e){const t=!e,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return"\n";case 114:return"\r";case 120:{const e=this.readHexChar(2,!1,t);return null===e?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return null===e?null:String.fromCodePoint(e)}case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.state.strict&&this.raise(this.state.pos-1,b.StrictNumericEscape);default:if(s>=48&&s<=55){const t=this.state.pos-1;let s=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.state.pos+=s.length-1;const i=this.input.charCodeAt(this.state.pos);if("0"!==s||56===i||57===i){if(e)return null;this.state.strict?this.raise(t,b.StrictNumericEscape):this.state.octalPositions.push(t)}return String.fromCharCode(r)}return String.fromCharCode(s)}}readHexChar(e,t,s){const r=this.state.pos,i=this.readInt(16,e,t,!1);return null===i&&(s?this.raise(r,b.InvalidEscapeSequence):this.state.pos=r-1),i}readWord1(){let e="";this.state.containsEsc=!1;const t=this.state.pos;let s=this.state.pos;for(;this.state.pos<this.length;){const r=this.input.codePointAt(this.state.pos);if(_(r))this.state.pos+=r<=65535?1:2;else if(this.state.isIterator&&64===r)++this.state.pos;else{if(92!==r)break;{this.state.containsEsc=!0,e+=this.input.slice(s,this.state.pos);const r=this.state.pos,i=this.state.pos===t?I:_;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,b.MissingUnicodeEscape);continue}++this.state.pos;const n=this.readCodePoint(!0);null!==n&&(i(n)||this.raise(r,b.EscapedCharNotAnIdentifier),e+=String.fromCodePoint(n)),s=this.state.pos}}}return e+this.input.slice(s,this.state.pos)}isIterator(e){return"@@iterator"===e||"@@asyncIterator"===e}readWord(){const e=this.readWord1(),t=o.get(e)||h.name;!this.state.isIterator||this.isIterator(e)&&this.state.inType||this.raise(this.state.pos,b.InvalidIdentifier,e),this.finishToken(t,e)}checkKeywordEscapes(){const e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,b.InvalidEscapedReservedWord,e)}braceIsBlock(e){const t=this.curContext();return t===v.functionExpression||t===v.functionStatement||(e!==h.colon||t!==v.braceStatement&&t!==v.braceExpression?e===h._return||e===h.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():e===h._else||e===h.semi||e===h.eof||e===h.parenR||e===h.arrow||(e===h.braceL?t===v.braceStatement:e!==h._var&&e!==h._const&&e!==h.name&&(e===h.relational||!this.state.exprAllowed)):!t.isExpr)}updateContext(e){const t=this.state.type;let s;!t.keyword||e!==h.dot&&e!==h.questionDot?(s=t.updateContext)?s.call(this,e):this.state.exprAllowed=t.beforeExpr:this.state.exprAllowed=!1}}{addExtra(e,t,s){if(!e)return;(e.extra=e.extra||{})[t]=s}isRelational(e){return this.match(h.relational)&&this.state.value===e}expectRelational(e){this.isRelational(e)?this.next():this.unexpected(null,h.relational)}isContextual(e){return this.match(h.name)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const s=e+t.length;return this.input.slice(e,s)===t&&(s===this.input.length||!_(this.input.charCodeAt(s)))}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)&&this.eat(h.name)}expectContextual(e,t){this.eatContextual(e)||this.unexpected(null,t)}canInsertSemicolon(){return this.match(h.eof)||this.match(h.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return p.test(this.input.slice(this.state.lastTokEnd,this.state.start))}isLineTerminator(){return this.eat(h.semi)||this.canInsertSemicolon()}semicolon(){this.isLineTerminator()||this.unexpected(null,h.semi)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}unexpected(e,t="Unexpected token"){throw"string"!=typeof t&&(t=`Unexpected token, expected "${t.label}"`),this.raise(null!=e?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: '${e}'`);return!0}expectOnePlugin(e,t){if(!e.some((e=>this.hasPlugin(e))))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): '${e.join(", ")}'`)}tryParse(e,t=this.state.clone()){const s={node:null};try{const r=e(((e=null)=>{throw s.node=e,s}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:s,doubleProto:r}=e;if(!t)return s>=0||r>=0;s>=0&&this.unexpected(s),r>=0&&this.raise(r,b.DuplicateProto)}isLiteralPropertyName(){return this.match(h.name)||!!this.state.type.keyword||this.match(h.string)||this.match(h.num)||this.match(h.bigint)||this.match(h.decimal)}}{startNode(){return new Ce(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new Ce(this,e,t)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,t,s,r){return e.type=t,e.end=s,e.loc.end=r,this.options.ranges&&(e.range[1]=s),this.processComment(e),e}resetStartLocation(e,t,s){e.start=t,e.loc.start=s,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,s=this.state.lastTokEndLoc){e.end=t,e.loc.end=s,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}{toAssignable(e,t=!1){var s,r;let i;switch(("ParenthesizedExpression"===e.type||(null==(s=e.extra)?void 0:s.parenthesized))&&(i=ke(e),t?"Identifier"===i.type?this.expressionScope.recordParenthesizedIdentifierError(e.start,b.InvalidParenthesizedAssignment):"MemberExpression"!==i.type&&this.raise(e.start,b.InvalidParenthesizedAssignment):this.raise(e.start,b.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(let s=0,r=e.properties.length,i=r-1;s<r;s++){var n;const r=e.properties[s],a=s===i;this.toAssignableObjectExpressionProp(r,a,t),a&&"RestElement"===r.type&&(null==(n=e.extra)?void 0:n.trailingComma)&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value,t);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const s=e.argument;this.toAssignable(s,t);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingComma,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,b.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}return e}toAssignableObjectExpressionProp(e,t,s){if("ObjectMethod"===e.type){const t="get"===e.kind||"set"===e.kind?b.PatternHasAccessor:b.PatternHasMethod;this.raise(e.key.start,t)}else"SpreadElement"!==e.type||t?this.toAssignable(e,s):this.raiseRestNotLast(e.start)}toAssignableList(e,t,s){let r=e.length;if(r){const i=e[r-1];if("RestElement"===(null==i?void 0:i.type))--r;else if("SpreadElement"===(null==i?void 0:i.type)){i.type="RestElement";let e=i.argument;this.toAssignable(e,s),e=ke(e),"Identifier"!==e.type&&"MemberExpression"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&this.unexpected(e.start),t&&this.raiseTrailingCommaAfterRest(t),--r}}for(let t=0;t<r;t++){const r=e[t];r&&(this.toAssignable(r,s),"RestElement"===r.type&&this.raiseRestNotLast(r.start))}return e}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t=0;t<e.length;t++){const s=e[t];"ArrayExpression"===(null==s?void 0:s.type)&&this.toReferencedListDeep(s.elements)}}parseSpread(e,t){const s=this.startNode();return this.next(),s.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(s,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case h.bracketL:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(h.bracketR,93,!0),this.finishNode(e,"ArrayPattern")}case h.braceL:return this.parseObjectLike(h.braceR,!0)}return this.parseIdentifier()}parseBindingList(e,t,s,r){const i=[];let n=!0;for(;!this.eat(e);)if(n?n=!1:this.expect(h.comma),s&&this.match(h.comma))i.push(null);else{if(this.eat(e))break;if(this.match(h.ellipsis)){i.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}{const e=[];for(this.match(h.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,b.UnsupportedParameterDecorator);this.match(h.at);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,e))}}return i}parseAssignableListItem(e,t){const s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s);const r=this.parseMaybeDefault(s.start,s.loc.start,s);return t.length&&(s.decorators=t),r}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,s){var r,i,n;if(t=null!=(r=t)?r:this.state.startLoc,e=null!=(i=e)?i:this.state.start,s=null!=(n=s)?n:this.parseBindingAtom(),!this.eat(h.eq))return s;const a=this.startNodeAt(e,t);return a.left=s,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}checkLVal(e,t,s=64,r,i,n=!1){switch(e.type){case"Identifier":{const{name:t}=e;this.state.strict&&(n?j(t,this.inModule):U(t))&&this.raise(e.start,64===s?b.StrictEvalArguments:b.StrictEvalArgumentsBinding,t),r&&(r.has(t)?this.raise(e.start,b.ParamDupe):r.add(t)),i&&"let"===t&&this.raise(e.start,b.LetInLexicalBinding),64&s||this.scope.declareName(t,s,e.start);break}case"MemberExpression":64!==s&&this.raise(e.start,b.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let t=0,n=e.properties;t<n.length;t++){let e=n[t];if("ObjectProperty"===e.type)e=e.value;else if("ObjectMethod"===e.type)continue;this.checkLVal(e,"object destructuring pattern",s,r,i)}break;case"ArrayPattern":for(let t=0,n=e.elements;t<n.length;t++){const e=n[t];e&&this.checkLVal(e,"array destructuring pattern",s,r,i)}break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",s,r);break;case"RestElement":this.checkLVal(e.argument,"rest element",s,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",s,r);break;default:this.raise(e.start,64===s?b.InvalidLhs:b.InvalidLhsBinding,t)}}checkToRestConversion(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,b.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(h.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,b.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,b.RestTrailingComma)}}{checkProto(e,t,s,r){if("SpreadElement"===e.type||"ObjectMethod"===e.type||e.computed||e.shorthand)return;const i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(i.start,b.RecordNoProto);s.used&&(r?-1===r.doubleProto&&(r.doubleProto=i.start):this.raise(i.start,b.DuplicateProto)),s.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e),this.nextToken();const t=this.parseExpression();return this.match(h.eof)||this.unexpected(),t.comments=this.state.comments,t.errors=this.state.errors,t}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.start,s=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(h.comma)){const i=this.startNodeAt(t,s);for(i.expressions=[r];this.eat(h.comma);)i.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t,s){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t,s)))}parseMaybeAssignAllowIn(e,t,s){return this.allowInAnd((()=>this.parseMaybeAssign(e,t,s)))}parseMaybeAssign(e,t,s){const r=this.state.start,i=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let e=this.parseYield();return t&&(e=t.call(this,e,r,i)),e}let n;e?n=!1:(e=new Se,n=!0),(this.match(h.parenL)||this.match(h.name))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e,s);if(t&&(a=t.call(this,a,r,i)),this.state.type.isAssign){const t=this.startNodeAt(r,i),s=this.state.value;return t.operator=s,this.match(h.eq)?(t.left=this.toAssignable(a,!0),e.doubleProto=-1):t.left=a,e.shorthandAssign>=t.left.start&&(e.shorthandAssign=-1),this.checkLVal(a,"assignment expression"),this.next(),t.right=this.parseMaybeAssign(),this.finishNode(t,"AssignmentExpression")}return n&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e,t){const s=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,i)?n:this.parseConditional(n,s,r,t)}parseConditional(e,t,s,r){if(this.eat(h.question)){const r=this.startNodeAt(t,s);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(h.colon),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseExprOps(e){const t=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseMaybeUnary(e);return this.shouldExitDescending(i,r)?i:this.parseExprOp(i,t,s,-1)}parseExprOp(e,t,s,r){let i=this.state.type.binop;if(null!=i&&(this.prodParam.hasIn||!this.match(h._in))&&i>r){const n=this.state.type;if(n===h.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}const a=this.startNodeAt(t,s);a.left=e,a.operator=this.state.value,n!==h.exponent||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,b.UnexpectedTokenUnaryExponentiation);const o=n===h.logicalOR||n===h.logicalAND,c=n===h.nullishCoalescing;if(c&&(i=h.logicalAND.binop),this.next(),n===h.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(h.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,b.UnexpectedAwaitAfterPipelineBody);a.right=this.parseExprOpRightExpr(n,i),this.finishNode(a,o||c?"LogicalExpression":"BinaryExpression");const l=this.state.type;if(c&&(l===h.logicalOR||l===h.logicalAND)||o&&l===h.nullishCoalescing)throw this.raise(this.state.start,b.MixingCoalesceWithLogical);return this.parseExprOp(a,t,s,r)}return e}parseExprOpRightExpr(e,t){const s=this.state.start,r=this.state.startLoc;switch(e){case h.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t),s,r)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const s=this.state.start,r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),s,r,e.rightAssociative?t-1:t)}parseMaybeUnary(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const t=this.match(h.incDec),s=this.startNode();if(this.state.type.prefix){s.operator=this.state.value,s.prefix=!0,this.match(h._throw)&&this.expectPlugin("throwExpressions");const r=this.match(h._delete);if(this.next(),s.argument=this.parseMaybeUnary(),this.checkExpressionErrors(e,!0),this.state.strict&&r){const e=s.argument;"Identifier"===e.type?this.raise(s.start,b.StrictDelete):"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||"PrivateName"!==e.property.type||this.raise(s.start,b.DeletePrivateField)}if(!t)return this.finishNode(s,"UnaryExpression")}return this.parseUpdate(s,t,e)}parseUpdate(e,t,s){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");const r=this.state.start,i=this.state.startLoc;let n=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return n;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(r,i);e.operator=this.state.value,e.prefix=!1,e.argument=n,this.checkLVal(n,"postfix operation"),this.next(),n=this.finishNode(e,"UpdateExpression")}return n}parseExprSubscripts(e){const t=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(e);return this.shouldExitDescending(i,r)?i:this.parseSubscripts(i,t,s)}parseSubscripts(e,t,s,r){const i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,s,r,i),i.maybeAsyncArrow=!1}while(!i.stop);return e}parseSubscript(e,t,s,r,i){if(!r&&this.eat(h.doubleColon))return this.parseBind(e,t,s,r,i);if(this.match(h.backQuote))return this.parseTaggedTemplateExpression(e,t,s,i);let n=!1;if(this.match(h.questionDot)){if(i.optionalChainMember=n=!0,r&&40===this.lookaheadCharCode())return i.stop=!0,e;this.next()}return!r&&this.match(h.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,s,i,n):n||this.match(h.bracketL)||this.eat(h.dot)?this.parseMember(e,t,s,i,n):(i.stop=!0,e)}parseMember(e,t,s,r,i){const n=this.startNodeAt(t,s),a=this.eat(h.bracketL);n.object=e,n.computed=a;const o=a?this.parseExpression():this.parseMaybePrivateName(!0);return"PrivateName"===o.type&&("Super"===n.object.type&&this.raise(t,b.SuperPrivateField),this.classScope.usePrivateName(o.id.name,o.start)),n.property=o,a&&this.expect(h.bracketR),r.optionalChainMember?(n.optional=i,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(e,t,s,r,i){const n=this.startNodeAt(t,s);return n.object=e,n.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,s,r)}parseCoverCallAndAsyncArrowHead(e,t,s,r,i){const n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t,s);return a.callee=e,r.maybeAsyncArrow&&this.expressionScope.enter(new Ie(2)),r.optionalChainMember&&(a.optional=i),a.arguments=i?this.parseCallExpressionArguments(h.parenR,!1):this.parseCallExpressionArguments(h.parenR,r.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,a),this.finishCallExpression(a,r.optionalChainMember),r.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!i?(r.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),a=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,s),a)):(r.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(a)),this.state.maybeInArrowParameters=n,a}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,s,r){const i=this.startNodeAt(t,s);return i.tag=e,i.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(t,b.OptionalChainingNoTemplate),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,b.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let t=0,s=e.arguments;t<s.length;t++){const e=s[t];"SpreadElement"===e.type&&this.raise(e.start,b.ImportCallSpreadArgument)}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,s,r,i){const n=[];let a=!0;const o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(h.comma),this.match(e)){!s||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,b.ImportCallArgumentTrailingComma),i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(!1,t?new Se:void 0,t?{start:0}:void 0,r))}return this.state.inFSharpPipelineDirectBody=o,n}shouldParseAsyncArrow(){return this.match(h.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var s;return this.expect(h.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(s=t.extra)?void 0:s.trailingComma),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){this.state.type===h.slash&&this.readRegexp();const t=this.state.potentialArrowAt===this.state.start;let s;switch(this.state.type){case h._super:return this.parseSuper();case h._import:return s=this.startNode(),this.next(),this.match(h.dot)?this.parseImportMetaProperty(s):(this.match(h.parenL)||this.raise(this.state.lastTokStart,b.UnsupportedImport),this.finishNode(s,"Import"));case h._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case h.name:{const e=this.state.containsEsc,s=this.parseIdentifier();if(!e&&"async"===s.name&&!this.canInsertSemicolon()){if(this.match(h._function)){const e=this.state.context.length-1;if(this.state.context[e]!==v.functionStatement)throw new Error("Internal error");return this.state.context[e]=v.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(s),void 0,!0)}if(this.match(h.name))return this.parseAsyncArrowUnaryFunction(s)}return t&&this.match(h.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(s),[s],!1)):s}case h._do:return this.parseDo();case h.regexp:{const e=this.state.value;return s=this.parseLiteral(e.value,"RegExpLiteral"),s.pattern=e.pattern,s.flags=e.flags,s}case h.num:return this.parseLiteral(this.state.value,"NumericLiteral");case h.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case h.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case h.string:return this.parseLiteral(this.state.value,"StringLiteral");case h._null:return s=this.startNode(),this.next(),this.finishNode(s,"NullLiteral");case h._true:case h._false:return this.parseBooleanLiteral();case h.parenL:return this.parseParenAndDistinguishExpression(t);case h.bracketBarL:case h.bracketHashL:return this.parseArrayLike(this.state.type===h.bracketBarL?h.bracketBarR:h.bracketR,!1,!0,e);case h.bracketL:return this.parseArrayLike(h.bracketR,!0,!1,e);case h.braceBarL:case h.braceHashL:return this.parseObjectLike(this.state.type===h.braceBarL?h.braceBarR:h.braceR,!1,!0,e);case h.braceL:return this.parseObjectLike(h.braceR,!1,!1,e);case h._function:return this.parseFunctionOrFunctionSent();case h.at:this.parseDecorators();case h._class:return s=this.startNode(),this.takeDecorators(s),this.parseClass(s,!1);case h._new:return this.parseNewOrNewTarget();case h.backQuote:return this.parseTemplate(!1);case h.doubleColon:{s=this.startNode(),this.next(),s.object=null;const e=s.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(s,"BindExpression");throw this.raise(e.start,b.UnsupportedBind)}case h.hash:{if(this.state.inPipeline)return s=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(s.start,b.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(s.start,b.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(s,"PipelinePrimaryTopicReference");const e=this.input.codePointAt(this.state.end);if(I(e)||92===e){const e=this.state.start;if(s=this.parseMaybePrivateName(!0),this.match(h._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(s.id.name,s.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(e);this.raise(this.state.start,b.PrivateInExpectedIn,s.id.name)}return s}}case h.relational:if("<"===this.state.value){const e=this.input.codePointAt(this.nextTokenStart());(I(e)||62===e)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(e){const t=this.startNodeAtNode(e);this.prodParam.enter(le(!0,this.prodParam.hasYield));const s=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,b.LineTerminatorBeforeArrow),this.expect(h.arrow),this.parseArrowExpression(t,s,!0),t}parseDo(){this.expectPlugin("doExpressions");const e=this.startNode();this.next();const t=this.state.labels;return this.state.labels=[],e.body=this.parseBlock(),this.state.labels=t,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(h.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,b.UnexpectedSuper):this.raise(e.start,b.SuperNotAllowed),this.match(h.parenL)||this.match(h.bracketL)||this.match(h.dot)||this.raise(e.start,b.UnsupportedSuper),this.finishNode(e,"Super")}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(h._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(e){if(this.match(h.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]),e||this.raise(this.state.pos,b.UnexpectedPrivateField);const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),t.id=this.parseIdentifier(!0),this.finishNode(t,"PrivateName")}return this.parseIdentifier(!0)}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(h.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,s){e.meta=t,"function"===t.name&&"sent"===s&&(this.isContextual(s)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==s||r)&&this.raise(e.property.start,b.UnsupportedMetaProperty,t.name,s),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raiseWithData(t.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},b.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteral(e,t,s,r){s=s||this.state.start,r=r||this.state.startLoc;const i=this.startNodeAt(s,r);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(s,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}parseParenAndDistinguishExpression(e){const t=this.state.start,s=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new Ie(1));const i=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.start,o=this.state.startLoc,c=[],l=new Se,p={start:0};let u,d,m=!0;for(;!this.match(h.parenR);){if(m)m=!1;else if(this.expect(h.comma,p.start||null),this.match(h.parenR)){d=this.state.start;break}if(this.match(h.ellipsis)){const e=this.state.start,t=this.state.startLoc;u=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),e,t)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem,p))}const f=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(h.parenR),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=n;let x=this.startNodeAt(t,s);if(e&&this.shouldParseArrow()&&(x=this.parseArrow(x)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(x,c,!1),x;if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),d&&this.unexpected(d),u&&this.unexpected(u),this.checkExpressionErrors(l,!0),p.start&&this.unexpected(p.start),this.toReferencedListDeep(c,!0),c.length>1?(r=this.startNodeAt(a,o),r.expressions=c,this.finishNodeAt(r,"SequenceExpression",f,y)):r=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t),r;const g=this.startNodeAt(t,s);return g.expression=r,this.finishNode(g,"ParenthesizedExpression"),g}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(h.arrow))return e}parseParenItem(e,t,s){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(h.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const s=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let e=b.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(e+=" or class properties"),this.raise(s.start,e)}return s}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,b.ImportCallNotNewExpression):"OptionalMemberExpression"===e.callee.type||"OptionalCallExpression"===e.callee.type?this.raise(this.state.lastTokEnd,b.OptionalChainingNoNew):this.eat(h.questionDot)&&this.raise(this.state.start,b.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(h.parenL)){const t=this.parseExprList(h.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,b.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(h.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let s=this.parseTemplateElement(e);for(t.quasis=[s];!s.tail;)this.expect(h.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(h.braceR),t.quasis.push(s=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=Object.create(null);let a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(h.comma),this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}const i=this.parsePropertyDefinition(t,r);t||this.checkProto(i,s,n,r),s&&"ObjectProperty"!==i.type&&"SpreadElement"!==i.type&&this.raise(i.start,b.InvalidRecordProperty),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return t?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(o,c)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(h.bracketL)||this.match(h.star))}parsePropertyDefinition(e,t){let s=[];if(this.match(h.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,b.UnsupportedPropertyDecorator);this.match(h.at);)s.push(this.parseDecorator());const r=this.startNode();let i,n,a=!1,o=!1,c=!1;if(this.match(h.ellipsis))return s.length&&this.unexpected(),e?(this.next(),r.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(r,"RestElement")):this.parseSpread();s.length&&(r.decorators=s,s=[]),r.method=!1,(e||t)&&(i=this.state.start,n=this.state.startLoc),e||(a=this.eat(h.star));const l=this.state.containsEsc,p=this.parsePropertyName(r,!1);if(!e&&!a&&!l&&this.maybeAsyncOrAccessorProp(r)){const e=p.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,a=this.eat(h.star),this.parsePropertyName(r,!1)),"get"!==e&&"set"!==e||(c=!0,r.kind=e,this.match(h.star)&&(a=!0,this.raise(this.state.pos,b.AccessorIsGenerator,e),this.next()),this.parsePropertyName(r,!1))}return this.parseObjPropValue(r,i,n,a,o,e,c,t),r}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const s=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e),i=e.start;r.length!==s&&("get"===e.kind?this.raise(i,b.BadGetterArity):this.raise(i,b.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(i,b.BadSetterRestParameter)}parseObjectMethod(e,t,s,r,i){return i?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):s||t||this.match(h.parenL)?(r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,s,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(e,t,s,r,i){return e.shorthand=!1,this.eat(h.colon)?(e.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),r?e.value=this.parseMaybeDefault(t,s,e.key.__clone()):this.match(h.eq)&&i?(-1===i.shorthandAssign&&(i.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,s,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,s,r,i,n,a,o){const c=this.parseObjectMethod(e,r,i,n,a)||this.parseObjectProperty(e,t,s,n,o);return c||this.unexpected(),c}parsePropertyName(e,t){if(this.eat(h.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(h.bracketR);else{const s=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(h.num)||this.match(h.string)||this.match(h.bigint)||this.match(h.decimal)?this.parseExprAtom():this.parseMaybePrivateName(t),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=s}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,s,r,i,n,a=!1){this.initFunction(e,s),e.generator=!!t;const o=r;return this.scope.enter(18|(a?64:0)|(i?32:0)),this.prodParam.enter(le(s,e.generator)),this.parseFunctionParams(e,o),this.parseFunctionBodyAndFinish(e,n,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!s,r,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,s,r){this.scope.enter(6);let i=le(s,!1);!this.match(h.bracketL)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,s);const n=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,s){e.params=this.toAssignableList(t,s,!1)}parseFunctionBodyAndFinish(e,t,s=!1){this.parseFunctionBody(e,!1,s),this.finishNode(e,t)}parseFunctionBody(e,t,s=!1){const r=t&&!this.match(h.braceL);if(this.expressionScope.enter(Le()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const n=!this.isSimpleParamList(e.params);if(i&&n){const t="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(t,b.IllegalLanguageModeDirective)}const a=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||s||n),t,a),this.state.strict&&e.id&&this.checkLVal(e.id,"function name",65,void 0,void 0,a)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=i}}isSimpleParamList(e){for(let t=0,s=e.length;t<s;t++)if("Identifier"!==e[t].type)return!1;return!0}checkParams(e,t,s,r=!0){const i=new Set;for(let s=0,n=e.params;s<n.length;s++){const e=n[s];this.checkLVal(e,"function parameter list",5,t?null:i,void 0,r)}}parseExprList(e,t,s,r){const i=[];let n=!0;for(;!this.eat(e);){if(n)n=!1;else if(this.expect(h.comma),this.match(e)){r&&this.addExtra(r,"trailingComma",this.state.lastTokStart),this.next();break}i.push(this.parseExprListItem(t,s))}return i}parseExprListItem(e,t,s,r){let i;if(this.match(h.comma))e||this.raise(this.state.pos,b.UnexpectedToken,","),i=null;else if(this.match(h.ellipsis)){const e=this.state.start,r=this.state.startLoc;i=this.parseParenItem(this.parseSpread(t,s),e,r)}else if(this.match(h.question)){this.expectPlugin("partialApplication"),r||this.raise(this.state.start,b.UnexpectedArgumentPlaceholder);const e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowIn(t,this.parseParenItem,s);return i}parseIdentifier(e){const t=this.startNode(),s=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,s)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e,t){let s;const{start:r,type:i}=this.state;if(i===h.name)s=this.state.value;else{if(!i.keyword)throw this.unexpected();{s=i.keyword;const e=this.curContext();i!==h._class&&i!==h._function||e!==v.functionStatement&&e!==v.functionExpression||this.state.context.pop()}}return t?this.state.type=h.name:this.checkReservedWord(s,r,!!i.keyword,!1),this.next(),s}checkReservedWord(e,t,s,r){if(this.prodParam.hasYield&&"yield"===e)return void this.raise(t,b.YieldBindingIdentifier);if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,b.AwaitBindingIdentifier);this.expressionScope.recordAsyncArrowParametersError(t,b.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&"arguments"===e)return void this.raise(t,b.ArgumentsInClass);if(s&&V(e))return void this.raise(t,b.UnexpectedKeyword,e);(this.state.strict?r?j:B:F)(e,this.inModule)&&(this.prodParam.hasAwait||"await"!==e?this.raise(t,b.UnexpectedReservedWord,e):this.raise(t,this.hasPlugin("topLevelAwait")?b.AwaitNotInAsyncContext:b.AwaitNotInAsyncFunction))}isAwaitAllowed(){return this.scope.inFunction?this.prodParam.hasAwait:!!this.options.allowAwaitOutsideFunction||!!this.hasPlugin("topLevelAwait")&&(this.inModule&&this.prodParam.hasAwait)}parseAwait(){const e=this.startNode();return this.next(),this.expressionScope.recordParameterInitializerError(e.start,b.AwaitExpressionFormalParameter),this.eat(h.star)&&this.raise(e.start,b.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.hasPrecedingLineBreak()||this.match(h.plusMin)||this.match(h.parenL)||this.match(h.bracketL)||this.match(h.backQuote)||this.match(h.regexp)||this.match(h.slash)||this.hasPlugin("v8intrinsic")&&this.match(h.modulo)?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary()),this.finishNode(e,"AwaitExpression")}parseYield(){const e=this.startNode();return this.expressionScope.recordParameterInitializerError(e.start,b.YieldInParameter),this.next(),this.match(h.semi)||!this.match(h.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(h.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,b.PipelineHeadSequenceExpression)}parseSmartPipelineBody(e,t,s){return this.checkSmartPipelineBodyEarlyErrors(e,t),this.parseSmartPipelineBodyInStyle(e,t,s)}checkSmartPipelineBodyEarlyErrors(e,t){if(this.match(h.arrow))throw this.raise(this.state.start,b.PipelineBodyNoArrow);"SequenceExpression"===e.type&&this.raise(t,b.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(e,t,s){const r=this.startNodeAt(t,s),i=this.isSimpleReference(e);return i?r.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(t,b.PipelineTopicUnused),r.expression=e),this.finishNode(r,i?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withTopicForbiddingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,s=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const i=this.parseExprOp(this.parseMaybeUnary(),t,s,e);return this.state.inFSharpPipelineDirectBody=r,i}}{parseTopLevel(e,t){if(t.sourceType=this.options.sourceType,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,h.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let e=0,t=Array.from(this.scope.undefinedExports);e<t.length;e++){const[s]=t[e],r=this.scope.undefinedExports.get(s);this.raise(r,b.ModuleExportUndefined,s)}return e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,this.options.tokens&&(e.tokens=this.tokens),this.finishNode(e,"File")}stmtToDirective(e){const t=e.expression,s=this.startNodeAt(t.start,t.loc.start),r=this.startNodeAt(e.start,e.loc.start),i=this.input.slice(t.start,t.end),n=s.value=i.slice(1,-1);return this.addExtra(s,"raw",i),this.addExtra(s,"rawValue",n),r.value=this.finishNodeAt(s,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(r,"Directive",e.end,e.loc.end)}parseInterpreterDirective(){if(!this.match(h.interpreterDirective))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(e){if(!this.isContextual("let"))return!1;const t=this.nextTokenStart(),s=this.input.charCodeAt(t);if(91===s)return!0;if(e)return!1;if(123===s)return!0;if(I(s)){let e=t+1;for(;_(this.input.charCodeAt(e));)++e;const s=this.input.slice(t,e);if(!q.test(s))return!0}return!1}parseStatement(e,t){return this.match(h.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)}parseStatementContent(e,t){let s=this.state.type;const r=this.startNode();let i;switch(this.isLet(e)&&(s=h._var,i="let"),s){case h._break:case h._continue:return this.parseBreakContinueStatement(r,s.keyword);case h._debugger:return this.parseDebuggerStatement(r);case h._do:return this.parseDoStatement(r);case h._for:return this.parseForStatement(r);case h._function:if(46===this.lookaheadCharCode())break;return e&&(this.state.strict?this.raise(this.state.start,b.StrictFunction):"if"!==e&&"label"!==e&&this.raise(this.state.start,b.SloppyFunction)),this.parseFunctionStatement(r,!1,!e);case h._class:return e&&this.unexpected(),this.parseClass(r,!0);case h._if:return this.parseIfStatement(r);case h._return:return this.parseReturnStatement(r);case h._switch:return this.parseSwitchStatement(r);case h._throw:return this.parseThrowStatement(r);case h._try:return this.parseTryStatement(r);case h._const:case h._var:return i=i||this.state.value,e&&"var"!==i&&this.raise(this.state.start,b.UnexpectedLexicalDeclaration),this.parseVarStatement(r,i);case h._while:return this.parseWhileStatement(r);case h._with:return this.parseWithStatement(r);case h.braceL:return this.parseBlock();case h.semi:return this.parseEmptyStatement(r);case h._import:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case h._export:{let e;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,b.UnexpectedImportExport),this.next(),s===h._import?(e=this.parseImport(r),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(r),e}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,b.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(r,!0,!e)}const n=this.state.value,a=this.parseExpression();return s===h.name&&"Identifier"===a.type&&this.eat(h.colon)?this.parseLabeledStatement(r,n,a,e):this.parseExpressionStatement(r,a)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raiseWithData(e.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},b.ImportOutsideModule)}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(h._class)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(h.at);){const e=this.parseDecorator();t.push(e)}if(this.match(h._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,b.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,b.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start,s=this.state.startLoc;let r;if(this.eat(h.parenL))r=this.parseExpression(),this.expect(h.parenR);else for(r=this.parseIdentifier(!1);this.eat(h.dot);){const e=this.startNodeAt(t,s);e.object=r,e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(h.parenL)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(h.parenR,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){const s="break"===t;return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){const s="break"===t;let r;for(r=0;r<this.state.labels.length;++r){const t=this.state.labels[r];if(null==e.label||t.name===e.label.name){if(null!=t.kind&&(s||"loop"===t.kind))break;if(e.label&&s)break}}r===this.state.labels.length&&this.raise(e.start,b.IllegalBreakContinue,t)}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(h.parenL);const e=this.parseExpression();return this.expect(h.parenR),e}parseDoStatement(e){return this.next(),this.state.labels.push(De),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(h._while),e.test=this.parseHeaderExpression(),this.eat(h.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(De);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(0),this.expect(h.parenL),this.match(h.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const s=this.isLet();if(this.match(h._var)||this.match(h._const)||s){const r=this.startNode(),i=s?"let":this.state.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.match(h._in)||this.isContextual("of"))&&1===r.declarations.length?this.parseForIn(e,r,t):(t>-1&&this.unexpected(t),this.parseFor(e,r))}const r=new Se,i=this.parseExpression(!0,r);if(this.match(h._in)||this.isContextual("of")){this.toAssignable(i,!0);const s=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(i,s),this.parseForIn(e,i,t)}return this.checkExpressionErrors(r,!0),t>-1&&this.unexpected(t),this.parseFor(e,i)}parseFunctionStatement(e,t,s){return this.next(),this.parseFunction(e,1|(s?0:2),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,b.IllegalReturn),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 t=e.cases=[];let s,r;for(this.expect(h.braceL),this.state.labels.push(Me),this.scope.enter(0);!this.match(h.braceR);)if(this.match(h._case)||this.match(h._default)){const e=this.match(h._case);s&&this.finishNode(s,"SwitchCase"),t.push(s=this.startNode()),s.consequent=[],this.next(),e?s.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,b.MultipleDefaultsInSwitch),r=!0,s.test=null),this.expect(h.colon)}else s?s.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,b.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,"catch clause",9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(h._catch)){const t=this.startNode();this.next(),this.match(h.parenL)?(this.expect(h.parenL),t.param=this.parseCatchClauseParam(),this.expect(h.parenR)):(t.param=null,this.scope.enter(0)),t.body=this.withTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(h._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,b.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(De),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,b.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,s,r){for(let e=0,r=this.state.labels;e<r.length;e++){r[e].name===t&&this.raise(s.start,b.LabelRedeclaration,t)}const i=this.state.type.isLoop?"loop":this.match(h._switch)?"switch":null;for(let t=this.state.labels.length-1;t>=0;t--){const s=this.state.labels[t];if(s.statementStart!==e.start)break;s.statementStart=this.state.start,s.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.state.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,s){const r=this.startNode();return this.expect(h.braceL),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,h.braceR,s),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,s,r,i){const n=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?a:void 0,s,r,i)}parseBlockOrModuleBlockBody(e,t,s,r,i){const n=[],a=this.state.strict;let o=!1,c=!1;for(;!this.match(r);){!c&&this.state.octalPositions.length&&n.push(...this.state.octalPositions);const r=this.parseStatement(null,s);if(t&&!c&&this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0))}else c=!0,e.push(r)}if(this.state.strict&&n.length)for(let e=0;e<n.length;e++){const t=n[e];this.raise(t,b.StrictOctalLiteral)}i&&i.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.expect(h.semi),e.test=this.match(h.semi)?null:this.parseExpression(),this.expect(h.semi),e.update=this.match(h.parenR)?null:this.parseExpression(),this.expect(h.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,s){const r=this.match(h._in);return this.next(),r?s>-1&&this.unexpected(s):e.await=s>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,b.InvalidLhs,"for-loop"):this.raise(t.start,b.ForInOfLoopInitializer,r?"for-in":"for-of"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(h.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,s){const r=e.declarations=[],i=this.hasPlugin("typescript");for(e.kind=s;;){const e=this.startNode();if(this.parseVarId(e,s),this.eat(h.eq)?e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==s||this.match(h._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(h._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,b.DeclarationMissingInitializer,"Complex binding patterns"):i||this.raise(this.state.lastTokEnd,b.DeclarationMissingInitializer,"Const declarations"),e.init=null),r.push(this.finishNode(e,"VariableDeclarator")),!this.eat(h.comma))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration","var"===t?5:9,void 0,"var"!==t)}parseFunction(e,t=0,s=!1){const r=1&t,i=2&t,n=!(!r||4&t);this.initFunction(e,s),this.match(h.star)&&i&&this.raise(this.state.start,b.GeneratorInSingleStatementContext),e.generator=this.eat(h.star),r&&(e.id=this.parseFunctionId(n));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(le(s,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||this.match(h.name)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(h.parenL),this.expressionScope.enter(new Ne(3)),e.params=this.parseBindingList(h.parenR,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}parseClass(e,t,s){this.next(),this.takeDecorators(e);const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,s),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(h.eq)||this.match(h.semi)||this.match(h.braceR)}isClassMethod(){return this.match(h.parenL)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const s={constructorAllowsSuper:e,hadConstructor:!1,hadStaticBlock:!1};let r=[];const i=this.startNode();if(i.body=[],this.expect(h.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(h.braceR);){if(this.eat(h.semi)){if(r.length>0)throw this.raise(this.state.lastTokEnd,b.DecoratorSemicolon);continue}if(this.match(h.at)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,s),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(e.start,b.DecoratorConstructor)}})),this.state.strict=t,this.next(),r.length)throw this.raise(this.state.start,b.TrailingDecorator);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const s=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=s,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return!1}parseClassMember(e,t,s){const r=this.isContextual("static");if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(h.braceL))return void this.parseClassStaticBlock(e,t,s)}this.parseClassMemberWithIsStatic(e,t,s,r)}parseClassMemberWithIsStatic(e,t,s,r){const i=t,n=t,a=t,o=t,c=i,l=i;if(t.static=r,this.eat(h.star))return c.kind="method",this.parseClassElementName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(e,n,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,b.ConstructorIsGenerator),void this.pushClassMethod(e,i,!0,!1,!1,!1));const p=this.state.containsEsc,u=this.parseClassElementName(t),d="PrivateName"===u.type,m="Identifier"===u.type,f=this.state.start;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,n,!1,!1);const t=this.isNonstaticConstructor(i);let r=!1;t&&(i.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(u.start,b.DuplicateConstructor),s.hadConstructor=!0,r=s.constructorAllowsSuper),this.pushClassMethod(e,i,!1,!1,t,r)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(!m||"async"!==u.name||p||this.isLineTerminator())!m||"get"!==u.name&&"set"!==u.name||p||this.match(h.star)&&this.isLineTerminator()?this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected():(c.kind=u.name,this.parseClassElementName(i),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,n,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,b.ConstructorIsAccessor),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i));else{const t=this.eat(h.star);l.optional&&this.unexpected(f),c.kind="method",this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,n,t,!0):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,b.ConstructorIsAsync),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){const t=this.parsePropertyName(e,!0);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,b.StaticPrototype),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,b.ConstructorClassPrivateField),t}parseClassStaticBlock(e,t,s){var r;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(80),this.expressionScope.enter(Le());const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,h.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=i,e.body.push(this.finishNode(t,"StaticBlock")),s.hadStaticBlock&&this.raise(t.start,b.DuplicateStaticBlock),(null==(r=t.decorators)?void 0:r.length)&&this.raise(t.start,b.DecoratorStaticBlock),s.hadStaticBlock=!0}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,b.ConstructorClassField),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){this.expectPlugin("classPrivateProperties",t.key.start);const s=this.parseClassPrivateProperty(t);e.body.push(s),this.classScope.declarePrivateName(s.key.id.name,0,s.key.start)}pushClassMethod(e,t,s,r,i,n){e.body.push(this.parseMethod(t,s,r,i,n,"ClassMethod",!0))}pushClassPrivateMethod(e,t,s,r){this.expectPlugin("classPrivateMethods",t.key.start);const i=this.parseMethod(t,s,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const n="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.classScope.declarePrivateName(i.key.id.name,n,i.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return e.typeAnnotation&&!this.match(h.eq)||this.expectPlugin("classProperties"),this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Le()),this.prodParam.enter(0),e.value=this.eat(h.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,s,r=139){this.match(h.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",r)):s||!t?e.id=null:this.unexpected(null,b.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(h._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),s=!t||this.eat(h.comma),r=s&&this.eatExportStar(e),i=r&&this.maybeParseExportNamespaceSpecifier(e),n=s&&(!i||this.eat(h.comma)),a=t||r;if(r&&!i)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const o=this.maybeParseExportNamedSpecifiers(e);if(t&&s&&!r&&!o||i&&n&&!o)throw this.unexpected(null,h.braceL);let c;if(a||o?(c=!1,this.parseExportFrom(e,a)):c=this.maybeParseExportDeclaration(e),a||o||c)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(h._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,h.braceL)}eatExportStar(e){return this.eat(h.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return!!this.match(h.braceL)&&(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;const e=this.nextTokenStart();return!p.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(h._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(h._class))return this.parseClass(e,!0,!0);if(this.match(h.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,b.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(h._const)||this.match(h._var)||this.isLet())throw this.raise(this.state.start,b.UnsupportedDefaultExport);{const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(h.name)){const e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){const e=this.lookahead();if(e.type===h.name&&"from"!==e.value||e.type===h.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(h._default))return!1;const e=this.nextTokenStart(),t=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||this.match(h.name)&&t)return!0;if(this.match(h._default)&&t){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);const t=this.maybeParseImportAssertions();t&&(e.assertions=t)}else t?this.unexpected():e.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(h.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,b.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}checkExport(e,t,s,r){if(t)if(s){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||(null==(i=t.extra)?void 0:i.parenthesized)||this.raise(t.start,b.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(let t=0,s=e.specifiers;t<s.length;t++){const e=s[t],{exported:i}=e,n="Identifier"===i.type?i.name:i.value;if(this.checkDuplicateExports(e,n),!r&&e.local){const{local:t}=e;"StringLiteral"===t.type?this.raise(e.start,b.ExportBindingIsString,t.extra.raw,n):(this.checkReservedWord(t.name,t.start,!0,!1),this.scope.checkLocalExport(t))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(let t=0,s=e.declaration.declarations;t<s.length;t++){const e=s[t];this.checkDeclaration(e.id)}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,b.UnsupportedDecoratorExport)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t=0,s=e.properties;t<s.length;t++){const e=s[t];this.checkDeclaration(e)}else if("ArrayPattern"===e.type)for(let t=0,s=e.elements;t<s.length;t++){const e=s[t];e&&this.checkDeclaration(e)}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.state.exportedIdentifiers.indexOf(t)>-1&&this.raise(e.start,"default"===t?b.DuplicateDefaultExport:b.DuplicateExport,t),this.state.exportedIdentifiers.push(t)}parseExportSpecifiers(){const e=[];let t=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(t)t=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;const s=this.startNode();s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local.__clone(),e.push(this.finishNode(s,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(h.string)){this.expectPlugin("moduleStringNames");const e=this.parseLiteral(this.state.value,"StringLiteral"),t=e.value.match(Re);return t&&this.raise(e.start,b.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(h.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(h.comma),s=t&&this.maybeParseStarImportSpecifier(e);t&&!s&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{const t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(h.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(h.name)}parseImportSpecifierLocal(e,t,s,r){t.local=this.parseIdentifier(),this.checkLVal(t.local,r,9),e.specifiers.push(this.finishNode(t,s))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(h.braceR))break;const s=this.startNode(),r=this.state.value;if(this.match(h.string)?s.key=this.parseLiteral(r,"StringLiteral"):s.key=this.parseIdentifier(!0),this.expect(h.colon),"type"!==r&&this.raise(s.key.start,b.ModuleAttributeDifferentFromType,r),t.has(r)&&this.raise(s.key.start,b.ModuleAttributesWithDuplicateKeys,r),t.add(r),!this.match(h.string))throw this.unexpected(this.state.start,b.ModuleAttributeInvalidValue);s.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(s,"ImportAttribute"),e.push(s)}while(this.eat(h.comma));return e}maybeParseModuleAttributes(){if(!this.match(h._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const e=[],t=new Set;do{const s=this.startNode();if(s.key=this.parseIdentifier(!0),"type"!==s.key.name&&this.raise(s.key.start,b.ModuleAttributeDifferentFromType,s.key.name),t.has(s.key.name)&&this.raise(s.key.start,b.ModuleAttributesWithDuplicateKeys,s.key.name),t.add(s.key.name),this.expect(h.colon),!this.match(h.string))throw this.unexpected(this.state.start,b.ModuleAttributeInvalidValue);s.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(s,"ImportAttribute"),e.push(s)}while(this.eat(h.comma));return e}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(h.braceL);const e=this.parseAssertEntries();return this.eat(h.braceR),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(h.star)){const t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(t)t=!1;else{if(this.eat(h.colon))throw this.raise(this.state.start,b.DestructureNamedImport);if(this.expect(h.comma),this.eat(h.braceR))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{const{imported:e}=t;if("StringLiteral"===e.type)throw this.raise(t.start,b.ImportBindingIsString,e.value);this.checkReservedWord(e.name,t.start,!0,!0),t.local=e.__clone()}this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}}{constructor(e,t){super(e=function(e){const t={};for(let s=0,r=Object.keys(be);s<r.length;s++){const i=r[s];t[i]=e&&null!=e[i]?e[i]:be[i]}return t}(e),t);const s=this.getScopeHandler();this.options=e,this.inModule="module"===this.options.sourceType,this.scope=new s(this.raise.bind(this),this.inModule),this.prodParam=new ce,this.classScope=new Fe(this.raise.bind(this)),this.expressionScope=new _e(this.raise.bind(this)),this.plugins=function(e){const t=new Map;for(let s=0;s<e.length;s++){const r=e[s],[i,n]=Array.isArray(r)?r:[r,{}];t.has(i)||t.set(i,n||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return ne}parse(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e);const t=this.startNode(),s=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,s),t.errors=this.state.errors,t}}function Ue(e,t){let s=Be;return(null==e?void 0:e.plugins)&&(!function(e){if(de(e,"decorators")){if(de(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=me(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(de(e,"flow")&&de(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(de(e,"placeholders")&&de(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(de(e,"pipelineOperator")&&!fe.includes(me(e,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+fe.map((e=>`'${e}'`)).join(", "));if(de(e,"moduleAttributes")){if(de(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==me(e,"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(de(e,"recordAndTuple")&&!ye.includes(me(e,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+ye.map((e=>`'${e}'`)).join(", "))}(e.plugins),s=function(e){const t=ge.filter((t=>de(e,t))),s=t.join("/");let r=je[s];if(!r){r=Be;for(let e=0;e<t.length;e++){const s=t[e];r=xe[s](r)}je[s]=r}return r}(e.plugins)),new s(e,t)}const je={}},3:(e,t,s)=>{"use strict";s.d(t,{MY:()=>cs});var r=s(577);s(834);function i(e){throw e}function n(e,t,s,r){const i=new SyntaxError(String(e));return i.code=e,i.loc=t,i}const a=Symbol(""),o=Symbol(""),c=Symbol(""),l=Symbol(""),h=Symbol(""),p=Symbol(""),u=Symbol(""),d=Symbol(""),m=Symbol(""),f=Symbol(""),y=Symbol(""),x=Symbol(""),g=Symbol(""),b=Symbol(""),P=Symbol(""),T=Symbol(""),v=Symbol(""),w=Symbol(""),A=Symbol(""),E=Symbol(""),S=Symbol(""),C=Symbol(""),k=Symbol(""),N=Symbol(""),I=Symbol(""),_=Symbol(""),L=Symbol(""),D=Symbol(""),M=Symbol(""),R=Symbol(""),O=Symbol(""),F={[a]:"Fragment",[o]:"Teleport",[c]:"Suspense",[l]:"KeepAlive",[h]:"BaseTransition",[p]:"openBlock",[u]:"createBlock",[d]:"createVNode",[m]:"createCommentVNode",[f]:"createTextVNode",[y]:"createStaticVNode",[x]:"resolveComponent",[g]:"resolveDynamicComponent",[b]:"resolveDirective",[P]:"withDirectives",[T]:"renderList",[v]:"renderSlot",[w]:"createSlots",[A]:"toDisplayString",[E]:"mergeProps",[S]:"toHandlers",[C]:"camelize",[k]:"capitalize",[N]:"toHandlerKey",[I]:"setBlockTracking",[_]:"pushScopeId",[L]:"popScopeId",[D]:"withScopeId",[M]:"withCtx",[R]:"unref",[O]:"isRef"};const B={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function U(e,t,s,r,i,n,a,o=!1,c=!1,l=B){return e&&(o?(e.helper(p),e.helper(u)):e.helper(d),a&&e.helper(P)),{type:13,tag:t,props:s,children:r,patchFlag:i,dynamicProps:n,directives:a,isBlock:o,disableTracking:c,loc:l}}function j(e,t=B){return{type:17,loc:t,elements:e}}function V(e,t=B){return{type:15,loc:t,properties:e}}function q(e,t){return{type:16,loc:B,key:(0,r.HD)(e)?H(e,!0):e,value:t}}function H(e,t,s=B,r=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:r}}function $(e,t=B){return{type:8,loc:t,children:e}}function z(e,t=[],s=B){return{type:14,loc:s,callee:e,arguments:t}}function K(e,t,s=!1,r=!1,i=B){return{type:18,params:e,returns:t,newline:s,isSlot:r,loc:i}}function J(e,t,s,r=!0){return{type:19,test:e,consequent:t,alternate:s,newline:r,loc:B}}const W=e=>4===e.type&&e.isStatic,G=(e,t)=>e===t||e===(0,r.rs)(t);function X(e){return G(e,"Teleport")?o:G(e,"Suspense")?c:G(e,"KeepAlive")?l:G(e,"BaseTransition")?h:void 0}const Y=/^\d|[^\$\w]/,Q=e=>!Y.test(e),Z=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,ee=e=>!!e&&Z.test(e.trim());function te(e,t,s){const r={source:e.source.substr(t,s),start:se(e.start,e.source,t),end:e.end};return null!=s&&(r.end=se(e.start,e.source,t+s)),r}function se(e,t,s=t.length){return re((0,r.l7)({},e),t,s)}function re(e,t,s=t.length){let r=0,i=-1;for(let e=0;e<s;e++)10===t.charCodeAt(e)&&(r++,i=e);return e.offset+=s,e.line+=r,e.column=-1===i?e.column+s:s-i,e}function ie(e,t,s=!1){for(let i=0;i<e.props.length;i++){const n=e.props[i];if(7===n.type&&(s||n.exp)&&((0,r.HD)(t)?n.name===t:t.test(n.name)))return n}}function ne(e,t,s=!1,r=!1){for(let i=0;i<e.props.length;i++){const n=e.props[i];if(6===n.type){if(s)continue;if(n.name===t&&(n.value||r))return n}else if("bind"===n.name&&(n.exp||r)&&ae(n.arg,t))return n}}function ae(e,t){return!(!e||!W(e)||e.content!==t)}function oe(e){return 5===e.type||2===e.type}function ce(e){return 7===e.type&&"slot"===e.name}function le(e){return 1===e.type&&3===e.tagType}function he(e){return 1===e.type&&2===e.tagType}function pe(e,t,s){let i;const n=13===e.type?e.props:e.arguments[2];if(null==n||(0,r.HD)(n))i=V([t]);else if(14===n.type){const e=n.arguments[0];(0,r.HD)(e)||15!==e.type?n.callee===S?i=z(s.helper(E),[V([t]),n]):n.arguments.unshift(V([t])):e.properties.unshift(t),!i&&(i=n)}else if(15===n.type){let e=!1;if(4===t.key.type){const s=t.key.content;e=n.properties.some((e=>4===e.key.type&&e.key.content===s))}e||n.properties.unshift(t),i=n}else i=z(s.helper(E),[V([t]),n]);13===e.type?e.props=i:e.arguments[2]=i}function ue(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}const de=/&(gt|lt|amp|apos|quot);/g,me={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},fe={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:r.NO,isPreTag:r.NO,isCustomElement:r.NO,decodeEntities:e=>e.replace(de,((e,t)=>me[t])),onError:i,comments:!1};function ye(e,t={}){const s=function(e,t){const s=(0,r.l7)({},fe);for(const e in t)s[e]=t[e]||fe[e];return{options:s,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),i=Ie(s);return function(e,t=B){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(xe(s,0,[]),_e(s,i))}function xe(e,t,s){const i=Le(s),n=i?i.ns:0,a=[];for(;!Be(e,t,s);){const o=e.source;let c;if(0===t||1===t)if(!e.inVPre&&De(o,e.options.delimiters[0]))c=Ce(e,t);else if(0===t&&"<"===o[0])if(1===o.length)Fe(e,5,1);else if("!"===o[1])De(o,"\x3c!--")?c=Pe(e):De(o,"<!DOCTYPE")?c=Te(e):De(o,"<![CDATA[")?0!==n?c=be(e,s):(Fe(e,1),c=Te(e)):(Fe(e,11),c=Te(e));else if("/"===o[1])if(2===o.length)Fe(e,5,2);else{if(">"===o[2]){Fe(e,14,2),Me(e,3);continue}if(/[a-z]/i.test(o[2])){Fe(e,23),Ae(e,1,i);continue}Fe(e,12,2),c=Te(e)}else/[a-z]/i.test(o[1])?c=ve(e,s):"?"===o[1]?(Fe(e,21,1),c=Te(e)):Fe(e,12,1);if(c||(c=ke(e,t)),(0,r.kJ)(c))for(let e=0;e<c.length;e++)ge(a,c[e]);else ge(a,c)}let o=!1;if(2!==t){for(let t=0;t<a.length;t++){const s=a[t];if(!e.inPre&&2===s.type)if(/[^\t\r\n\f ]/.test(s.content))s.content=s.content.replace(/[\t\r\n\f ]+/g," ");else{const e=a[t-1],r=a[t+1];!e||!r||3===e.type||3===r.type||1===e.type&&1===r.type&&/[\r\n]/.test(s.content)?(o=!0,a[t]=null):s.content=" "}3!==s.type||e.options.comments||(o=!0,a[t]=null)}if(e.inPre&&i&&e.options.isPreTag(i.tag)){const e=a[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return o?a.filter(Boolean):a}function ge(e,t){if(2===t.type){const s=Le(e);if(s&&2===s.type&&s.loc.end.offset===t.loc.start.offset)return s.content+=t.content,s.loc.end=t.loc.end,void(s.loc.source+=t.loc.source)}e.push(t)}function be(e,t){Me(e,9);const s=xe(e,3,t);return 0===e.source.length?Fe(e,6):Me(e,3),s}function Pe(e){const t=Ie(e);let s;const r=/--(\!)?>/.exec(e.source);if(r){r.index<=3&&Fe(e,0),r[1]&&Fe(e,10),s=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let i=1,n=0;for(;-1!==(n=t.indexOf("\x3c!--",i));)Me(e,n-i+1),n+4<t.length&&Fe(e,16),i=n+1;Me(e,r.index+r[0].length-i+1)}else s=e.source.slice(4),Me(e,e.source.length),Fe(e,7);return{type:3,content:s,loc:_e(e,t)}}function Te(e){const t=Ie(e),s="?"===e.source[1]?1:2;let r;const i=e.source.indexOf(">");return-1===i?(r=e.source.slice(s),Me(e,e.source.length)):(r=e.source.slice(s,i),Me(e,i+1)),{type:3,content:r,loc:_e(e,t)}}function ve(e,t){const s=e.inPre,r=e.inVPre,i=Le(t),n=Ae(e,0,i),a=e.inPre&&!s,o=e.inVPre&&!r;if(n.isSelfClosing||e.options.isVoidTag(n.tag))return n;t.push(n);const c=e.options.getTextMode(n,i),l=xe(e,c,t);if(t.pop(),n.children=l,Ue(e.source,n.tag))Ae(e,1,i);else if(Fe(e,24,0,n.loc.start),0===e.source.length&&"script"===n.tag.toLowerCase()){const t=l[0];t&&De(t.loc.source,"\x3c!--")&&Fe(e,8)}return n.loc=_e(e,n.loc.start),a&&(e.inPre=!1),o&&(e.inVPre=!1),n}const we=(0,r.fY)("if,else,else-if,for,slot");function Ae(e,t,s){const i=Ie(e),n=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),a=n[1],o=e.options.getNamespace(a,s);Me(e,n[0].length),Re(e);const c=Ie(e),l=e.source;let h=Ee(e,t);e.options.isPreTag(a)&&(e.inPre=!0),!e.inVPre&&h.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,(0,r.l7)(e,c),e.source=l,h=Ee(e,t).filter((e=>"v-pre"!==e.name)));let p=!1;0===e.source.length?Fe(e,9):(p=De(e.source,"/>"),1===t&&p&&Fe(e,4),Me(e,p?2:1));let u=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(a)){const e=h.some((e=>7===e.type&&"is"===e.name));d.isNativeTag&&!e?d.isNativeTag(a)||(u=1):(e||X(a)||d.isBuiltInComponent&&d.isBuiltInComponent(a)||/^[A-Z]/.test(a)||"component"===a)&&(u=1),"slot"===a?u=2:"template"===a&&h.some((e=>7===e.type&&we(e.name)))&&(u=3)}return{type:1,ns:o,tag:a,tagType:u,props:h,isSelfClosing:p,children:[],loc:_e(e,i),codegenNode:void 0}}function Ee(e,t){const s=[],r=new Set;for(;e.source.length>0&&!De(e.source,">")&&!De(e.source,"/>");){if(De(e.source,"/")){Fe(e,22),Me(e,1),Re(e);continue}1===t&&Fe(e,3);const i=Se(e,r);0===t&&s.push(i),/^[^\t\r\n\f />]/.test(e.source)&&Fe(e,15),Re(e)}return s}function Se(e,t){const s=Ie(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r)&&Fe(e,2),t.add(r),"="===r[0]&&Fe(e,19);{const t=/["'<]/g;let s;for(;s=t.exec(r);)Fe(e,17,s.index)}let i;Me(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(Re(e),Me(e,1),Re(e),i=function(e){const t=Ie(e);let s;const r=e.source[0],i='"'===r||"'"===r;if(i){Me(e,1);const t=e.source.indexOf(r);-1===t?s=Ne(e,e.source.length,4):(s=Ne(e,t,4),Me(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let i;for(;i=r.exec(t[0]);)Fe(e,18,i.index);s=Ne(e,t[0].length,4)}return{content:s,isQuoted:i,loc:_e(e,t)}}(e),i||Fe(e,13));const n=_e(e,s);if(!e.inVPre&&/^(v-|:|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r),a=t[1]||(De(r,":")?"bind":De(r,"@")?"on":"slot");let o;if(t[2]){const i="slot"===a,n=r.indexOf(t[2]),c=_e(e,Oe(e,s,n),Oe(e,s,n+t[2].length+(i&&t[3]||"").length));let l=t[2],h=!0;l.startsWith("[")?(h=!1,l.endsWith("]")||Fe(e,26),l=l.substr(1,l.length-2)):i&&(l+=t[3]||""),o={type:4,content:l,isStatic:h,constType:h?3:0,loc:c}}if(i&&i.isQuoted){const e=i.loc;e.start.offset++,e.start.column++,e.end=se(e.start,i.content),e.source=e.source.slice(1,-1)}return{type:7,name:a,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:o,modifiers:t[3]?t[3].substr(1).split("."):[],loc:n}}return{type:6,name:r,value:i&&{type:2,content:i.content,loc:i.loc},loc:n}}function Ce(e,t){const[s,r]=e.options.delimiters,i=e.source.indexOf(r,s.length);if(-1===i)return void Fe(e,25);const n=Ie(e);Me(e,s.length);const a=Ie(e),o=Ie(e),c=i-s.length,l=e.source.slice(0,c),h=Ne(e,c,t),p=h.trim(),u=h.indexOf(p);u>0&&re(a,l,u);return re(o,l,c-(h.length-p.length-u)),Me(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:p,loc:_e(e,a,o)},loc:_e(e,n)}}function ke(e,t){const s=["<",e.options.delimiters[0]];3===t&&s.push("]]>");let r=e.source.length;for(let t=0;t<s.length;t++){const i=e.source.indexOf(s[t],1);-1!==i&&r>i&&(r=i)}const i=Ie(e);return{type:2,content:Ne(e,r,t),loc:_e(e,i)}}function Ne(e,t,s){const r=e.source.slice(0,t);return Me(e,t),2===s||3===s||-1===r.indexOf("&")?r:e.options.decodeEntities(r,4===s)}function Ie(e){const{column:t,line:s,offset:r}=e;return{column:t,line:s,offset:r}}function _e(e,t,s){return{start:t,end:s=s||Ie(e),source:e.originalSource.slice(t.offset,s.offset)}}function Le(e){return e[e.length-1]}function De(e,t){return e.startsWith(t)}function Me(e,t){const{source:s}=e;re(e,s,t),e.source=s.slice(t)}function Re(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Me(e,t[0].length)}function Oe(e,t,s){return se(t,e.originalSource.slice(t.offset,s),s)}function Fe(e,t,s,r=Ie(e)){s&&(r.offset+=s,r.column+=s),e.options.onError(n(t,{start:r,end:r,source:""}))}function Be(e,t,s){const r=e.source;switch(t){case 0:if(De(r,"</"))for(let e=s.length-1;e>=0;--e)if(Ue(r,s[e].tag))return!0;break;case 1:case 2:{const e=Le(s);if(e&&Ue(r,e.tag))return!0;break}case 3:if(De(r,"]]>"))return!0}return!r}function Ue(e,t){return De(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function je(e,t){qe(e,t,new Map,Ve(e,e.children[0]))}function Ve(e,t){const{children:s}=e;return 1===s.length&&1===t.type&&!he(t)}function qe(e,t,s,r=!1){let i=!1,n=!0;const{children:a}=e;for(let e=0;e<a.length;e++){const o=a[e];if(1===o.type&&0===o.tagType){const e=r?0:He(o,s);if(e>0){if(e<3&&(n=!1),e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),i=!0;continue}}else{const e=o.codegenNode;if(13===e.type){const r=Ke(e);if((!r||512===r||1===r)&&$e(o,s)>=2){const s=ze(o);s&&(e.props=t.hoist(s))}}}}else if(12===o.type){const e=He(o.content,s);e>0&&(e<3&&(n=!1),e>=2&&(o.codegenNode=t.hoist(o.codegenNode),i=!0))}if(1===o.type)qe(o,t,s);else if(11===o.type)qe(o,t,s,1===o.children.length);else if(9===o.type)for(let e=0;e<o.branches.length;e++)qe(o.branches[e],t,s,1===o.branches[e].children.length)}n&&i&&t.transformHoist&&t.transformHoist(a,t,e)}function He(e,t=new Map){switch(e.type){case 1:if(0!==e.tagType)return 0;const s=t.get(e);if(void 0!==s)return s;const i=e.codegenNode;if(13!==i.type)return 0;if(Ke(i))return t.set(e,0),0;{let s=3;const r=$e(e,t);if(0===r)return t.set(e,0),0;r<s&&(s=r);for(let r=0;r<e.children.length;r++){const i=He(e.children[r],t);if(0===i)return t.set(e,0),0;i<s&&(s=i)}if(s>1)for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&"bind"===i.name&&i.exp){const r=He(i.exp,t);if(0===r)return t.set(e,0),0;r<s&&(s=r)}}return i.isBlock&&(i.isBlock=!1),t.set(e,s),s}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return He(e.content,t);case 4:return e.constType;case 8:let n=3;for(let s=0;s<e.children.length;s++){const i=e.children[s];if((0,r.HD)(i)||(0,r.yk)(i))continue;const a=He(i,t);if(0===a)return 0;a<n&&(n=a)}return n;default:return 0}}function $e(e,t){let s=3;const r=ze(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:n}=e[r],a=He(i,t);if(0===a)return a;if(a<s&&(s=a),4!==n.type)return 0;const o=He(n,t);if(0===o)return o;o<s&&(s=o)}}return s}function ze(e){const t=e.codegenNode;if(13===t.type)return t.props}function Ke(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Je(e,{prefixIdentifiers:t=!1,hoistStatic:s=!1,cacheHandlers:n=!1,nodeTransforms:a=[],directiveTransforms:o={},transformHoist:c=null,isBuiltInComponent:l=r.dG,isCustomElement:h=r.dG,expressionPlugins:p=[],scopeId:u=null,ssr:d=!1,ssrCssVars:m="",bindingMetadata:f=r.kT,inline:y=!1,isTS:x=!1,onError:g=i}){const b={prefixIdentifiers:t,hoistStatic:s,cacheHandlers:n,nodeTransforms:a,directiveTransforms:o,transformHoist:c,isBuiltInComponent:l,isCustomElement:h,expressionPlugins:p,scopeId:u,ssr:d,ssrCssVars:m,bindingMetadata:f,inline:y,isTS:x,onError:g,root:e,helpers:new Set,components:new Set,directives:new Set,hoists:[],imports:new Set,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,helper:e=>(b.helpers.add(e),e),helperString:e=>`_${F[b.helper(e)]}`,replaceNode(e){b.parent.children[b.childIndex]=b.currentNode=e},removeNode(e){const t=b.parent.children,s=e?t.indexOf(e):b.currentNode?b.childIndex:-1;e&&e!==b.currentNode?b.childIndex>s&&(b.childIndex--,b.onNodeRemoved()):(b.currentNode=null,b.onNodeRemoved()),b.parent.children.splice(s,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){b.hoists.push(e);const t=H(`_hoisted_${b.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,s=!1){return{type:20,index:e,value:t,isVNode:s,loc:B}}(++b.cached,e,t)};return b}function We(e,t){const s=Je(e,t);Ge(e,s),t.hoistStatic&&je(e,s),t.ssr||function(e,t){const{helper:s}=t,{children:i}=e;if(1===i.length){const t=i[0];if(Ve(e,t)&&t.codegenNode){const r=t.codegenNode;13===r.type&&(r.isBlock=!0,s(p),s(u)),e.codegenNode=r}else e.codegenNode=t}else i.length>1&&(e.codegenNode=U(t,s(a),void 0,e.children,`64 /* ${r.m[64]} */`,void 0,void 0,!0))}(e,s),e.helpers=[...s.helpers],e.components=[...s.components],e.directives=[...s.directives],e.imports=[...s.imports],e.hoists=s.hoists,e.temps=s.temps,e.cached=s.cached}function Ge(e,t){t.currentNode=e;const{nodeTransforms:s}=t,i=[];for(let n=0;n<s.length;n++){const a=s[n](e,t);if(a&&((0,r.kJ)(a)?i.push(...a):i.push(a)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(m);break;case 5:t.ssr||t.helper(A);break;case 9:for(let s=0;s<e.branches.length;s++)Ge(e.branches[s],t);break;case 10:case 11:case 1:case 0:!function(e,t){let s=0;const i=()=>{s--};for(;s<e.children.length;s++){const n=e.children[s];(0,r.HD)(n)||(t.parent=e,t.childIndex=s,t.onNodeRemoved=i,Ge(n,t))}}(e,t)}t.currentNode=e;let n=i.length;for(;n--;)i[n]()}function Xe(e,t){const s=(0,r.HD)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(ce))return;const n=[];for(let a=0;a<i.length;a++){const o=i[a];if(7===o.type&&s(o.name)){i.splice(a,1),a--;const s=t(e,o,r);s&&n.push(s)}}return n}}}const Ye="/*#__PURE__*/";function Qe(e,t={}){const s=function(e,{mode:t="function",prefixIdentifiers:s="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:n=null,optimizeImports:a=!1,runtimeGlobalName:o="Vue",runtimeModuleName:c="vue",ssr:l=!1}){const h={mode:t,prefixIdentifiers:s,sourceMap:r,filename:i,scopeId:n,optimizeImports:a,runtimeGlobalName:o,runtimeModuleName:c,ssr:l,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${F[e]}`,push(e,t){h.code+=e},indent(){p(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(e){h.push("\n"+" ".repeat(e))}return h}(e,t);t.onContextCreated&&t.onContextCreated(s);const{mode:r,push:i,prefixIdentifiers:n,indent:a,deindent:o,newline:c,scopeId:l,ssr:h}=s,p=e.helpers.length>0,u=!n&&"module"!==r;!function(e,t){const{ssr:s,prefixIdentifiers:r,push:i,newline:n,runtimeModuleName:a,runtimeGlobalName:o}=t,c=o,l=e=>`${F[e]}: _${F[e]}`;if(e.helpers.length>0&&(i(`const _Vue = ${c}\n`),e.hoists.length)){i(`const { ${[d,m,f,y].filter((t=>e.helpers.includes(t))).map(l).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:r,helper:i,scopeId:n,mode:a}=t;r(),e.forEach(((e,i)=>{e&&(s(`const _hoisted_${i+1} = `),st(e,t),r())})),t.pure=!1})(e.hoists,t),n(),i("return ")}(e,s);if(i(`function ${h?"ssrRender":"render"}(${(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),u&&(i("with (_ctx) {"),a(),p&&(i(`const { ${e.helpers.map((e=>`${F[e]}: _${F[e]}`)).join(", ")} } = _Vue`),i("\n"),c())),e.components.length&&(Ze(e.components,"component",s),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Ze(e.directives,"directive",s),e.temps>0&&c()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n"),c()),h||i("return "),e.codegenNode?st(e.codegenNode,s):i("null"),u&&(o(),i("}")),o(),i("}"),{ast:e,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function Ze(e,t,{helper:s,push:r,newline:i}){const n=s("component"===t?x:b);for(let s=0;s<e.length;s++){const a=e[s];r(`const ${ue(a,t)} = ${n}(${JSON.stringify(a)})`),s<e.length-1&&i()}}function et(e,t){const s=e.length>3||!1;t.push("["),s&&t.indent(),tt(e,t,s),s&&t.deindent(),t.push("]")}function tt(e,t,s=!1,i=!0){const{push:n,newline:a}=t;for(let o=0;o<e.length;o++){const c=e[o];(0,r.HD)(c)?n(c):(0,r.kJ)(c)?et(c,t):st(c,t),o<e.length-1&&(s?(i&&n(","),a()):i&&n(", "))}}function st(e,t){if((0,r.HD)(e))t.push(e);else if((0,r.yk)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:st(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:rt(e,t);break;case 5:!function(e,t){const{push:s,helper:r,pure:i}=t;i&&s(Ye);s(`${r(A)}(`),st(e.content,t),s(")")}(e,t);break;case 12:st(e.codegenNode,t);break;case 8:it(e,t);break;case 3:break;case 13:!function(e,t){const{push:s,helper:r,pure:i}=t,{tag:n,props:a,children:o,patchFlag:c,dynamicProps:l,directives:h,isBlock:m,disableTracking:f}=e;h&&s(r(P)+"(");m&&s(`(${r(p)}(${f?"true":""}), `);i&&s(Ye);s(r(m?u:d)+"(",e),tt(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([n,a,o,c,l]),t),s(")"),m&&s(")");h&&(s(", "),st(h,t),s(")"))}(e,t);break;case 14:!function(e,t){const{push:s,helper:i,pure:n}=t,a=(0,r.HD)(e.callee)?e.callee:i(e.callee);n&&s(Ye);s(a+"(",e),tt(e.arguments,t),s(")")}(e,t);break;case 15:!function(e,t){const{push:s,indent:r,deindent:i,newline:n}=t,{properties:a}=e;if(!a.length)return void s("{}",e);const o=a.length>1||!1;s(o?"{":"{ "),o&&r();for(let e=0;e<a.length;e++){const{key:r,value:i}=a[e];nt(r,t),s(": "),st(i,t),e<a.length-1&&(s(","),n())}o&&i(),s(o?"}":" }")}(e,t);break;case 17:!function(e,t){et(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:s,indent:i,deindent:n,scopeId:a,mode:o}=t,{params:c,returns:l,body:h,newline:p,isSlot:u}=e;u&&s(`_${F[M]}(`);s("(",e),(0,r.kJ)(c)?tt(c,t):c&&st(c,t);s(") => "),(p||h)&&(s("{"),i());l?(p&&s("return "),(0,r.kJ)(l)?et(l,t):st(l,t)):h&&st(h,t);(p||h)&&(n(),s("}"));u&&s(")")}(e,t);break;case 19:!function(e,t){const{test:s,consequent:r,alternate:i,newline:n}=e,{push:a,indent:o,deindent:c,newline:l}=t;if(4===s.type){const e=!Q(s.content);e&&a("("),rt(s,t),e&&a(")")}else a("("),st(s,t),a(")");n&&o(),t.indentLevel++,n||a(" "),a("? "),st(r,t),t.indentLevel--,n&&l(),n||a(" "),a(": ");const h=19===i.type;h||t.indentLevel++;st(i,t),h||t.indentLevel--;n&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:s,helper:r,indent:i,deindent:n,newline:a}=t;s(`_cache[${e.index}] || (`),e.isVNode&&(i(),s(`${r(I)}(-1),`),a());s(`_cache[${e.index}] = `),st(e.value,t),e.isVNode&&(s(","),a(),s(`${r(I)}(1),`),a(),s(`_cache[${e.index}]`),n());s(")")}(e,t);break;case 21:case 22:case 23:case 24:case 25:case 26:case 10:break;default:0}}function rt(e,t){const{content:s,isStatic:r}=e;t.push(r?JSON.stringify(s):s,e)}function it(e,t){for(let s=0;s<e.children.length;s++){const i=e.children[s];(0,r.HD)(i)?t.push(i):st(i,t)}}function nt(e,t){const{push:s}=t;if(8===e.type)s("["),it(e,t),s("]");else if(e.isStatic){s(Q(e.content)?e.content:JSON.stringify(e.content),e)}else s(`[${e.content}]`,e)}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const at=Xe(/^(if|else|else-if)$/,((e,t,s)=>function(e,t,s,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;s.onError(n(27,t.loc)),t.exp=H("true",!1,r)}0;if("if"===t.name){const i=ot(e,t),n={type:9,loc:e.loc,branches:[i]};if(s.replaceNode(n),r)return r(n,i,!0)}else{const i=s.parent.children;let a=i.indexOf(e);for(;a-- >=-1;){const o=i[a];if(!o||2!==o.type||o.content.trim().length){if(o&&9===o.type){s.removeNode();const i=ot(e,t);0,o.branches.push(i);const n=r&&r(o,i,!1);Ge(i,s),n&&n(),s.currentNode=null}else s.onError(n(29,e.loc));break}s.removeNode(o)}}}(e,t,s,((e,t,r)=>{const i=s.parent.children;let n=i.indexOf(e),a=0;for(;n-- >=0;){const e=i[n];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(r)e.codegenNode=ct(t,a,s);else{(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=ct(t,a+e.branches.length-1,s)}}}))));function ot(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||ie(e,"for")?[e]:e.children,userKey:ne(e,"key")}}function ct(e,t,s){return e.condition?J(e.condition,lt(e,t,s),z(s.helper(m),['""',"true"])):lt(e,t,s)}function lt(e,t,s){const{helper:i}=s,n=q("key",H(`${t}`,!1,B,2)),{children:o}=e,c=o[0];if(1!==o.length||1!==c.type){if(1===o.length&&11===c.type){const e=c.codegenNode;return pe(e,n,s),e}return U(s,i(a),V([n]),o,`64 /* ${r.m[64]} */`,void 0,void 0,!0,!1,e.loc)}{const e=c.codegenNode;return 13===e.type&&(e.isBlock=!0,i(p),i(u)),pe(e,n,s),e}}const ht=Xe("for",((e,t,s)=>{const{helper:i}=s;return function(e,t,s,r){if(!t.exp)return void s.onError(n(30,t.loc));const i=mt(t.exp,s);if(!i)return void s.onError(n(31,t.loc));const{addIdentifiers:a,removeIdentifiers:o,scopes:c}=s,{source:l,value:h,key:p,index:u}=i,d={type:11,loc:t.loc,source:l,valueAlias:h,keyAlias:p,objectIndexAlias:u,parseResult:i,children:le(e)?e.children:[e]};s.replaceNode(d),c.vFor++;const m=r&&r(d);return()=>{c.vFor--,m&&m()}}(e,t,s,(t=>{const n=z(i(T),[t.source]),o=ne(e,"key"),c=o?q("key",6===o.type?H(o.value.content,!0):o.exp):null,l=4===t.source.type&&t.source.constType>0,h=l?64:o?128:256;return t.codegenNode=U(s,i(a),void 0,n,`${h} /* ${r.m[h]} */`,void 0,void 0,!0,!l,e.loc),()=>{let o;const h=le(e),{children:d}=t;const m=1!==d.length||1!==d[0].type,f=he(e)?e:h&&1===e.children.length&&he(e.children[0])?e.children[0]:null;f?(o=f.codegenNode,h&&c&&pe(o,c,s)):m?o=U(s,i(a),c?V([c]):void 0,e.children,`64 /* ${r.m[64]} */`,void 0,void 0,!0):(o=d[0].codegenNode,h&&c&&pe(o,c,s),o.isBlock=!l,o.isBlock&&(i(p),i(u))),n.arguments.push(K(yt(t.parseResult),o,!0))}}))}));const pt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ut=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,dt=/^\(|\)$/g;function mt(e,t){const s=e.loc,r=e.content,i=r.match(pt);if(!i)return;const[,n,a]=i,o={source:ft(s,a.trim(),r.indexOf(a,n.length)),value:void 0,key:void 0,index:void 0};let c=n.trim().replace(dt,"").trim();const l=n.indexOf(c),h=c.match(ut);if(h){c=c.replace(ut,"").trim();const e=h[1].trim();let t;if(e&&(t=r.indexOf(e,l+c.length),o.key=ft(s,e,t)),h[2]){const i=h[2].trim();i&&(o.index=ft(s,i,r.indexOf(i,o.key?t+e.length:l+c.length)))}}return c&&(o.value=ft(s,c,l)),o}function ft(e,t,s){return H(t,!1,te(e,s,t.length))}function yt({value:e,key:t,index:s}){const r=[];return e&&r.push(e),t&&(e||r.push(H("_",!1)),r.push(t)),s&&(t||(e||r.push(H("_",!1)),r.push(H("__",!1))),r.push(s)),r}const xt=H("undefined",!1),gt=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const s=ie(e,"slot");if(s){s.exp;return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}}},bt=(e,t,s)=>K(e,t,!1,!0,t.length?t[0].loc:s);function Pt(e,t,s=bt){t.helper(M);const{children:r,loc:i}=e,a=[],o=[],c=(e,t)=>q("default",s(e,t,i));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const h=ie(e,"slot",!0);if(h){const{arg:e,exp:t}=h;e&&!W(e)&&(l=!0),a.push(q(e||H("default",!0),s(t,r,i)))}let p=!1,u=!1;const d=[],m=new Set;for(let e=0;e<r.length;e++){const i=r[e];let c;if(!le(i)||!(c=ie(i,"slot",!0))){3!==i.type&&d.push(i);continue}if(h){t.onError(n(36,c.loc));break}p=!0;const{children:f,loc:y}=i,{arg:x=H("default",!0),exp:g,loc:b}=c;let P;W(x)?P=x?x.content:"default":l=!0;const v=s(g,f,y);let w,A,E;if(w=ie(i,"if"))l=!0,o.push(J(w.exp,Tt(x,v),xt));else if(A=ie(i,/^else(-if)?$/,!0)){let s,i=e;for(;i--&&(s=r[i],3===s.type););if(s&&le(s)&&ie(s,"if")){r.splice(e,1),e--;let t=o[o.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=A.exp?J(A.exp,Tt(x,v),xt):Tt(x,v)}else t.onError(n(29,A.loc))}else if(E=ie(i,"for")){l=!0;const e=E.parseResult||mt(E.exp);e?o.push(z(t.helper(T),[e.source,K(yt(e),Tt(x,v),!0)])):t.onError(n(31,E.loc))}else{if(P){if(m.has(P)){t.onError(n(37,b));continue}m.add(P),"default"===P&&(u=!0)}a.push(q(x,v))}}h||(p?d.length&&(u?t.onError(n(38,d[0].loc)):a.push(c(void 0,d))):a.push(c(void 0,r)));const f=l?2:vt(e.children)?3:1;let y=V(a.concat(q("_",H(""+f,!1))),i);return o.length&&(y=z(t.helper(w),[y,j(o)])),{slots:y,hasDynamicSlots:l}}function Tt(e,t){return V([q("name",e),q("fn",t)])}function vt(e){for(let t=0;t<e.length;t++){const s=e[t];if(1===s.type&&(2===s.tagType||0===s.tagType&&vt(s.children)))return!0}return!1}const wt=new WeakMap,At=(e,t)=>{if(1===e.type&&(0===e.tagType||1===e.tagType))return function(){const{tag:s,props:i}=e,n=1===e.tagType,a=n?function(e,t,s=!1){const{tag:r}=e,i="component"===e.tag?ne(e,"is"):ie(e,"is");if(i){const e=6===i.type?i.value&&H(i.value.content,!0):i.exp;if(e)return z(t.helper(g),[e])}const n=X(r)||t.isBuiltInComponent(r);if(n)return s||t.helper(n),n;return t.helper(x),t.components.add(r),ue(r,"component")}(e,t):`"${s}"`;let h,p,u,d,m,f,y=0,P=(0,r.Kn)(a)&&a.callee===g||a===o||a===c||!n&&("svg"===s||"foreignObject"===s||ne(e,"key",!0));if(i.length>0){const s=Et(e,t);h=s.props,y=s.patchFlag,m=s.dynamicPropNames;const r=s.directives;f=r&&r.length?j(r.map((e=>function(e,t){const s=[],r=wt.get(e);r?s.push(t.helperString(r)):(t.helper(b),t.directives.add(e.name),s.push(ue(e.name,"directive")));const{loc:i}=e;e.exp&&s.push(e.exp);e.arg&&(e.exp||s.push("void 0"),s.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const t=H("true",!1,i);s.push(V(e.modifiers.map((e=>q(e,t))),i))}return j(s,e.loc)}(e,t)))):void 0}if(e.children.length>0){a===l&&(P=!0,y|=1024);if(n&&a!==o&&a!==l){const{slots:s,hasDynamicSlots:r}=Pt(e,t);p=s,r&&(y|=1024)}else if(1===e.children.length&&a!==o){const t=e.children[0],s=t.type,r=5===s||8===s;r&&0===He(t)&&(y|=1),p=r||2===s?t:e.children}else p=e.children}0!==y&&(u=String(y),m&&m.length&&(d=function(e){let t="[";for(let s=0,r=e.length;s<r;s++)t+=JSON.stringify(e[s]),s<r-1&&(t+=", ");return t+"]"}(m))),e.codegenNode=U(t,a,h,p,u,d,f,!!P,!1,e.loc)}};function Et(e,t,s=e.props,i=!1){const{tag:a,loc:o}=e,c=1===e.tagType;let l=[];const h=[],p=[];let u=0,d=!1,m=!1,f=!1,y=!1,x=!1,g=!1;const b=[],P=({key:e,value:t})=>{if(W(e)){const s=e.content,i=(0,r.F7)(s);if(c||!i||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||(0,r.Gg)(s)||(y=!0),i&&(0,r.Gg)(s)&&(g=!0),20===t.type||(4===t.type||8===t.type)&&He(t)>0)return;"ref"===s?d=!0:"class"!==s||c?"style"!==s||c?"key"===s||b.includes(s)||b.push(s):f=!0:m=!0}else x=!0};for(let u=0;u<s.length;u++){const m=s[u];if(6===m.type){const{loc:e,name:t,value:s}=m;let r=!0;if("ref"===t&&(d=!0),"is"===t&&"component"===a)continue;l.push(q(H(t,!0,te(e,0,t.length)),H(s?s.content:"",r,s?s.loc:e)))}else{const{name:s,arg:u,exp:d,loc:f}=m,y="bind"===s,g="on"===s;if("slot"===s){c||t.onError(n(39,f));continue}if("once"===s)continue;if("is"===s||y&&"component"===a&&ae(u,"is"))continue;if(g&&i)continue;if(!u&&(y||g)){x=!0,d?(l.length&&(h.push(V(St(l),o)),l=[]),y?h.push(d):h.push({type:14,loc:f,callee:t.helper(S),arguments:[d]})):t.onError(n(y?33:34,f));continue}const b=t.directiveTransforms[s];if(b){const{props:s,needRuntime:n}=b(m,e,t);!i&&s.forEach(P),l.push(...s),n&&(p.push(m),(0,r.yk)(n)&&wt.set(m,n))}else p.push(m)}}let T;return h.length?(l.length&&h.push(V(St(l),o)),T=h.length>1?z(t.helper(E),h,o):h[0]):l.length&&(T=V(St(l),o)),x?u|=16:(m&&(u|=2),f&&(u|=4),b.length&&(u|=8),y&&(u|=32)),0!==u&&32!==u||!(d||g||p.length>0)||(u|=512),{props:T,directives:p,patchFlag:u,dynamicPropNames:b}}function St(e){const t=new Map,s=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){s.push(i);continue}const n=i.key.content,a=t.get(n);a?("style"===n||"class"===n||n.startsWith("on"))&&Ct(a,i):(t.set(n,i),s.push(i))}return s}function Ct(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=j([e.value,t.value],e.loc)}const kt=(e,t)=>{if(he(e)){const{children:s,loc:r}=e,{slotName:i,slotProps:a}=function(e,t){let s,r='"default"';const i=ne(e,"name");i&&(6===i.type&&i.value?r=JSON.stringify(i.value.content):7===i.type&&i.exp&&(r=i.exp));const a=i?e.props.filter((e=>e!==i)):e.props;if(a.length>0){const{props:r,directives:i}=Et(e,t,a);s=r,i.length&&t.onError(n(35,i[0].loc))}return{slotName:r,slotProps:s}}(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i];a&&o.push(a),s.length&&(a||o.push("{}"),o.push(K([],s,!1,!1,r))),e.codegenNode=z(t.helper(v),o,r)}};const Nt=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,It=(e,t,s,i)=>{const{loc:a,modifiers:o,arg:c}=e;let l;if(e.exp||o.length||s.onError(n(34,a)),4===c.type)if(c.isStatic){const e=c.content;l=H((0,r.hR)((0,r._A)(e)),!0,c.loc)}else l=$([`${s.helperString(N)}(`,c,")"]);else l=c,l.children.unshift(`${s.helperString(N)}(`),l.children.push(")");let h=e.exp;h&&!h.content.trim()&&(h=void 0);let p=s.cacheHandlers&&!h;if(h){const e=ee(h.content),t=!(e||Nt.test(h.content)),s=h.content.includes(";");0,(t||p&&e)&&(h=$([`${t?"$event":"(...args)"} => ${s?"{":"("}`,h,s?"}":")"]))}let u={props:[q(l,h||H("() => {}",!1,a))]};return i&&(u=i(u)),p&&(u.props[0].value=s.cache(u.props[0].value)),u},_t=(e,t,s)=>{const{exp:i,modifiers:a,loc:o}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=`${c.content} || ""`),a.includes("camel")&&(4===c.type?c.isStatic?c.content=(0,r._A)(c.content):c.content=`${s.helperString(C)}(${c.content})`:(c.children.unshift(`${s.helperString(C)}(`),c.children.push(")"))),!i||4===i.type&&!i.content.trim()?(s.onError(n(33,o)),{props:[q(c,H("",!0,o))]}):{props:[q(c,i)]}},Lt=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const s=e.children;let i,n=!1;for(let e=0;e<s.length;e++){const t=s[e];if(oe(t)){n=!0;for(let r=e+1;r<s.length;r++){const n=s[r];if(!oe(n)){i=void 0;break}i||(i=s[e]={type:8,loc:t.loc,children:[t]}),i.children.push(" + ",n),s.splice(r,1),r--}}}if(n&&(1!==s.length||0!==e.type&&(1!==e.type||0!==e.tagType)))for(let e=0;e<s.length;e++){const i=s[e];if(oe(i)||8===i.type){const n=[];2===i.type&&" "===i.content||n.push(i),t.ssr||0!==He(i)||n.push(`1 /* ${r.m[1]} */`),s[e]={type:12,content:i,loc:i.loc,codegenNode:z(t.helper(f),n)}}}}},Dt=new WeakSet,Mt=(e,t)=>{if(1===e.type&&ie(e,"once",!0)){if(Dt.has(e))return;return Dt.add(e),t.helper(I),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Rt=(e,t,s)=>{const{exp:r,arg:i}=e;if(!r)return s.onError(n(40,e.loc)),Ot();const a=r.loc.source,o=4===r.type?r.content:a;s.bindingMetadata[a];if(!ee(o))return s.onError(n(41,r.loc)),Ot();const c=i||H("modelValue",!0),l=i?W(i)?`onUpdate:${i.content}`:$(['"onUpdate:" + ',i]):"onUpdate:modelValue";let h;h=$([`${s.isTS?"($event: any)":"$event"} => (`,r," = $event)"]);const p=[q(c,e.exp),q(l,h)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Q(e)?e:JSON.stringify(e))+": true")).join(", "),s=i?W(i)?`${i.content}Modifiers`:$([i,' + "Modifiers"']):"modelModifiers";p.push(q(s,H(`{ ${t} }`,!1,e.loc,2)))}return Ot(p)};function Ot(e=[]){return{props:e}}function Ft(e,t={}){const s=t.onError||i,a="module"===t.mode;!0===t.prefixIdentifiers?s(n(45)):a&&s(n(46));t.cacheHandlers&&s(n(47)),t.scopeId&&!a&&s(n(48));const o=(0,r.HD)(e)?ye(e,t):e,[c,l]=[[Mt,at,ht,kt,At,gt,Lt],{on:It,bind:_t,model:Rt}];return We(o,(0,r.l7)({},t,{prefixIdentifiers:false,nodeTransforms:[...c,...t.nodeTransforms||[]],directiveTransforms:(0,r.l7)({},l,t.directiveTransforms||{})})),Qe(o,(0,r.l7)({},t,{prefixIdentifiers:false}))}const Bt=Symbol(""),Ut=Symbol(""),jt=Symbol(""),Vt=Symbol(""),qt=Symbol(""),Ht=Symbol(""),$t=Symbol(""),zt=Symbol(""),Kt=Symbol(""),Jt=Symbol("");var Wt;let Gt;Wt={[Bt]:"vModelRadio",[Ut]:"vModelCheckbox",[jt]:"vModelText",[Vt]:"vModelSelect",[qt]:"vModelDynamic",[Ht]:"withModifiers",[$t]:"withKeys",[zt]:"vShow",[Kt]:"Transition",[Jt]:"TransitionGroup"},Object.getOwnPropertySymbols(Wt).forEach((e=>{F[e]=Wt[e]}));const Xt=(0,r.fY)("style,iframe,script,noscript",!0),Yt={isVoidTag:r.WB,isNativeTag:e=>(0,r.eS)(e)||(0,r.aN)(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(Gt||(Gt=document.createElement("div"))).innerHTML=e,Gt.textContent},isBuiltInComponent:e=>G(e,"Transition")?Kt:G(e,"TransitionGroup")?Jt:void 0,getNamespace(e,t){let s=t?t.ns:0;if(t&&2===s)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(s=0);else t&&1===s&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(s=0));if(0===s){if("svg"===e)return 1;if("math"===e)return 2}return s},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Xt(e))return 2}return 0}},Qt=(e,t)=>{const s=(0,r.yL)(e);return H(JSON.stringify(s),!1,t,3)};function Zt(e,t){return n(e,t)}const es=(0,r.fY)("passive,once,capture"),ts=(0,r.fY)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ss=(0,r.fY)("left,right"),rs=(0,r.fY)("onkeyup,onkeydown,onkeypress",!0),is=(e,t)=>W(e)&&"onclick"===e.content.toLowerCase()?H(t,!0):4!==e.type?$(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const ns=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(Zt(59,e.loc)),t.removeNode())},as=[e=>{1===e.type&&e.props.forEach(((t,s)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[s]={type:7,name:"bind",arg:H("style",!0,t.loc),exp:Qt(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],os={cloak:()=>({props:[]}),html:(e,t,s)=>{const{exp:r,loc:i}=e;return r||s.onError(Zt(49,i)),t.children.length&&(s.onError(Zt(50,i)),t.children.length=0),{props:[q(H("innerHTML",!0,i),r||H("",!0))]}},text:(e,t,s)=>{const{exp:r,loc:i}=e;return r||s.onError(Zt(51,i)),t.children.length&&(s.onError(Zt(52,i)),t.children.length=0),{props:[q(H("textContent",!0),r?z(s.helperString(A),[r],i):H("",!0))]}},model:(e,t,s)=>{const r=Rt(e,t,s);if(!r.props.length||1===t.tagType)return r;e.arg&&s.onError(Zt(54,e.arg.loc));const{tag:i}=t,n=s.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||n){let a=jt,o=!1;if("input"===i||n){const r=ne(t,"type");if(r){if(7===r.type)a=qt;else if(r.value)switch(r.value.content){case"radio":a=Bt;break;case"checkbox":a=Ut;break;case"file":o=!0,s.onError(Zt(55,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(a=qt)}else"select"===i&&(a=Vt);o||(r.needRuntime=s.helper(a))}else s.onError(Zt(53,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,s)=>It(e,0,s,(t=>{const{modifiers:i}=e;if(!i.length)return t;let{key:n,value:a}=t.props[0];const{keyModifiers:o,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t)=>{const s=[],r=[],i=[];for(let n=0;n<t.length;n++){const a=t[n];es(a)?i.push(a):ss(a)?W(e)?rs(e.content)?s.push(a):r.push(a):(s.push(a),r.push(a)):ts(a)?r.push(a):s.push(a)}return{keyModifiers:s,nonKeyModifiers:r,eventOptionModifiers:i}})(n,i);if(c.includes("right")&&(n=is(n,"onContextmenu")),c.includes("middle")&&(n=is(n,"onMouseup")),c.length&&(a=z(s.helper(Ht),[a,JSON.stringify(c)])),!o.length||W(n)&&!rs(n.content)||(a=z(s.helper($t),[a,JSON.stringify(o)])),l.length){const e=l.map(r.kC).join("");n=W(n)?H(`${n.content}${e}`,!0):$(["(",n,`) + "${e}"`])}return{props:[q(n,a)]}})),show:(e,t,s)=>{const{exp:r,loc:i}=e;return r||s.onError(Zt(57,i)),{props:[],needRuntime:s.helper(zt)}}};function cs(e,t={}){return Ft(e,(0,r.l7)({},Yt,t,{nodeTransforms:[ns,...as,...t.nodeTransforms||[]],directiveTransforms:(0,r.l7)({},os,t.directiveTransforms||{}),transformHoist:null}))}},262:(e,t,s)=>{"use strict";s.d(t,{Fl:()=>ke,ZM:()=>we,cE:()=>l,X3:()=>le,PG:()=>oe,$y:()=>ce,dq:()=>de,Xl:()=>pe,Jd:()=>f,WL:()=>Te,qj:()=>se,OT:()=>ie,iH:()=>me,lk:()=>y,Um:()=>re,YS:()=>ne,XI:()=>fe,sT:()=>h,IU:()=>he,Vh:()=>Se,BK:()=>Ae,j:()=>x,X$:()=>g,oR:()=>ge,SU:()=>be});var r=s(577);const i=new WeakMap,n=[];let a;const o=Symbol(""),c=Symbol("");function l(e,t=r.kT){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const s=function(e,t){const s=function(){if(!s.active)return t.scheduler?void 0:e();if(!n.includes(s)){u(s);try{return m.push(d),d=!0,n.push(s),a=s,e()}finally{n.pop(),y(),a=n[n.length-1]}}};return s.id=p++,s.allowRecurse=!!t.allowRecurse,s._isEffect=!0,s.active=!0,s.raw=e,s.deps=[],s.options=t,s}(e,t);return t.lazy||s(),s}function h(e){e.active&&(u(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let p=0;function u(e){const{deps:t}=e;if(t.length){for(let s=0;s<t.length;s++)t[s].delete(e);t.length=0}}let d=!0;const m=[];function f(){m.push(d),d=!1}function y(){const e=m.pop();d=void 0===e||e}function x(e,t,s){if(!d||void 0===a)return;let r=i.get(e);r||i.set(e,r=new Map);let n=r.get(s);n||r.set(s,n=new Set),n.has(a)||(n.add(a),a.deps.push(n))}function g(e,t,s,n,l,h){const p=i.get(e);if(!p)return;const u=new Set,d=e=>{e&&e.forEach((e=>{(e!==a||e.allowRecurse)&&u.add(e)}))};if("clear"===t)p.forEach(d);else if("length"===s&&(0,r.kJ)(e))p.forEach(((e,t)=>{("length"===t||t>=n)&&d(e)}));else switch(void 0!==s&&d(p.get(s)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(s)&&d(p.get("length")):(d(p.get(o)),(0,r._N)(e)&&d(p.get(c)));break;case"delete":(0,r.kJ)(e)||(d(p.get(o)),(0,r._N)(e)&&d(p.get(c)));break;case"set":(0,r._N)(e)&&d(p.get(o))}u.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const b=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(r.yk)),P=E(),T=E(!1,!0),v=E(!0),w=E(!0,!0),A={};function E(e=!1,t=!1){return function(s,i,n){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&n===(e?te:ee).get(s))return s;const a=(0,r.kJ)(s);if(a&&(0,r.RI)(A,i))return Reflect.get(A,i,n);const o=Reflect.get(s,i,n);if((0,r.yk)(i)?b.has(i):"__proto__"===i||"__v_isRef"===i)return o;if(e||x(s,0,i),t)return o;if(de(o)){return!a||!(0,r.S0)(i)?o.value:o}return(0,r.Kn)(o)?e?ie(o):se(o):o}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];A[e]=function(...e){const s=he(this);for(let e=0,t=this.length;e<t;e++)x(s,0,e+"");const r=t.apply(s,e);return-1===r||!1===r?t.apply(s,e.map(he)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];A[e]=function(...e){f();const s=t.apply(this,e);return y(),s}}));const S=k(),C=k(!0);function k(e=!1){return function(t,s,i,n){const a=t[s];if(!e&&(i=he(i),!(0,r.kJ)(t)&&de(a)&&!de(i)))return a.value=i,!0;const o=(0,r.kJ)(t)&&(0,r.S0)(s)?Number(s)<t.length:(0,r.RI)(t,s),c=Reflect.set(t,s,i,n);return t===he(n)&&(o?(0,r.aU)(i,a)&&g(t,"set",s,i):g(t,"add",s,i)),c}}const N={get:P,set:S,deleteProperty:function(e,t){const s=(0,r.RI)(e,t),i=(e[t],Reflect.deleteProperty(e,t));return i&&s&&g(e,"delete",t,void 0),i},has:function(e,t){const s=Reflect.has(e,t);return(0,r.yk)(t)&&b.has(t)||x(e,0,t),s},ownKeys:function(e){return x(e,0,(0,r.kJ)(e)?"length":o),Reflect.ownKeys(e)}},I={get:v,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},_=(0,r.l7)({},N,{get:T,set:C}),L=(0,r.l7)({},I,{get:w}),D=e=>(0,r.Kn)(e)?se(e):e,M=e=>(0,r.Kn)(e)?ie(e):e,R=e=>e,O=e=>Reflect.getPrototypeOf(e);function F(e,t,s=!1,r=!1){const i=he(e=e.__v_raw),n=he(t);t!==n&&!s&&x(i,0,t),!s&&x(i,0,n);const{has:a}=O(i),o=s?M:r?R:D;return a.call(i,t)?o(e.get(t)):a.call(i,n)?o(e.get(n)):void 0}function B(e,t=!1){const s=this.__v_raw,r=he(s),i=he(e);return e!==i&&!t&&x(r,0,e),!t&&x(r,0,i),e===i?s.has(e):s.has(e)||s.has(i)}function U(e,t=!1){return e=e.__v_raw,!t&&x(he(e),0,o),Reflect.get(e,"size",e)}function j(e){e=he(e);const t=he(this),s=O(t).has.call(t,e),r=t.add(e);return s||g(t,"add",e,e),r}function V(e,t){t=he(t);const s=he(this),{has:i,get:n}=O(s);let a=i.call(s,e);a||(e=he(e),a=i.call(s,e));const o=n.call(s,e),c=s.set(e,t);return a?(0,r.aU)(t,o)&&g(s,"set",e,t):g(s,"add",e,t),c}function q(e){const t=he(this),{has:s,get:r}=O(t);let i=s.call(t,e);i||(e=he(e),i=s.call(t,e));r&&r.call(t,e);const n=t.delete(e);return i&&g(t,"delete",e,void 0),n}function H(){const e=he(this),t=0!==e.size,s=e.clear();return t&&g(e,"clear",void 0,void 0),s}function $(e,t){return function(s,r){const i=this,n=i.__v_raw,a=he(n),c=e?M:t?R:D;return!e&&x(a,0,o),n.forEach(((e,t)=>s.call(r,c(e),c(t),i)))}}function z(e,t,s){return function(...i){const n=this.__v_raw,a=he(n),l=(0,r._N)(a),h="entries"===e||e===Symbol.iterator&&l,p="keys"===e&&l,u=n[e](...i),d=t?M:s?R:D;return!t&&x(a,0,p?c:o),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:h?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function K(e){return function(...t){return"delete"!==e&&this}}const J={get(e){return F(this,e)},get size(){return U(this)},has:B,add:j,set:V,delete:q,clear:H,forEach:$(!1,!1)},W={get(e){return F(this,e,!1,!0)},get size(){return U(this)},has:B,add:j,set:V,delete:q,clear:H,forEach:$(!1,!0)},G={get(e){return F(this,e,!0)},get size(){return U(this,!0)},has(e){return B.call(this,e,!0)},add:K("add"),set:K("set"),delete:K("delete"),clear:K("clear"),forEach:$(!0,!1)};function X(e,t){const s=t?W:e?G:J;return(t,i,n)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get((0,r.RI)(s,i)&&i in t?s:t,i,n)}["keys","values","entries",Symbol.iterator].forEach((e=>{J[e]=z(e,!1,!1),G[e]=z(e,!0,!1),W[e]=z(e,!1,!0)}));const Y={get:X(!1,!1)},Q={get:X(!1,!0)},Z={get:X(!0,!1)};const ee=new WeakMap,te=new WeakMap;function se(e){return e&&e.__v_isReadonly?e:ae(e,!1,N,Y)}function re(e){return ae(e,!1,_,Q)}function ie(e){return ae(e,!0,I,Z)}function ne(e){return ae(e,!0,L,Z)}function ae(e,t,s,i){if(!(0,r.Kn)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const n=t?te:ee,a=n.get(e);if(a)return a;const o=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.W7)(c));var c;if(0===o)return e;const l=new Proxy(e,2===o?i:s);return n.set(e,l),l}function oe(e){return ce(e)?oe(e.__v_raw):!(!e||!e.__v_isReactive)}function ce(e){return!(!e||!e.__v_isReadonly)}function le(e){return oe(e)||ce(e)}function he(e){return e&&he(e.__v_raw)||e}function pe(e){return(0,r.Nj)(e,"__v_skip",!0),e}const ue=e=>(0,r.Kn)(e)?se(e):e;function de(e){return Boolean(e&&!0===e.__v_isRef)}function me(e){return xe(e)}function fe(e){return xe(e,!0)}class ye{constructor(e,t=!1){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:ue(e)}get value(){return x(he(this),0,"value"),this._value}set value(e){(0,r.aU)(he(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:ue(e),g(he(this),"set","value",e))}}function xe(e,t=!1){return de(e)?e:new ye(e,t)}function ge(e){g(he(e),"set","value",void 0)}function be(e){return de(e)?e.value:e}const Pe={get:(e,t,s)=>be(Reflect.get(e,t,s)),set:(e,t,s,r)=>{const i=e[t];return de(i)&&!de(s)?(i.value=s,!0):Reflect.set(e,t,s,r)}};function Te(e){return oe(e)?e:new Proxy(e,Pe)}class ve{constructor(e){this.__v_isRef=!0;const{get:t,set:s}=e((()=>x(this,0,"value")),(()=>g(this,"set","value")));this._get=t,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function we(e){return new ve(e)}function Ae(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const s in e)t[s]=Se(e,s);return t}class Ee{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function Se(e,t){return de(e[t])?e[t]:new Ee(e,t)}class Ce{constructor(e,t,s){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=l(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,g(he(this),"set","value"))}}),this.__v_isReadonly=s}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),x(he(this),0,"value"),this._value}set value(e){this._setter(e)}}function ke(e){let t,s;return(0,r.mf)(e)?(t=e,s=r.dG):(t=e.get,s=e.set),new Ce(t,s,(0,r.mf)(e)||!e.set)}},252:(e,t,s)=>{"use strict";s.d(t,{ZM:()=>r.ZM,X3:()=>r.X3,PG:()=>r.PG,$y:()=>r.$y,dq:()=>r.dq,Xl:()=>r.Xl,WL:()=>r.WL,qj:()=>r.qj,OT:()=>r.OT,iH:()=>r.iH,Um:()=>r.Um,YS:()=>r.YS,XI:()=>r.XI,IU:()=>r.IU,Vh:()=>r.Vh,BK:()=>r.BK,oR:()=>r.oR,SU:()=>r.SU,_A:()=>i._A,kC:()=>i.kC,zw:()=>i.zw,hR:()=>i.hR,P$:()=>Fe,sv:()=>Rt,HY:()=>Dt,Ob:()=>ze,qG:()=>Ot,n4:()=>Y,lR:()=>Et,xv:()=>Mt,$d:()=>h,KU:()=>l,Ho:()=>Zt,Fl:()=>Rs,j4:()=>$t,ry:()=>ss,Eo:()=>gt,Us:()=>xt,Nv:()=>Ws,uE:()=>ts,Uk:()=>es,Wm:()=>Yt,RC:()=>Fs,aZ:()=>Os,zX:()=>js,MW:()=>Us,mW:()=>M,FN:()=>As,Q6:()=>He,h:()=>qs,S3:()=>p,Mr:()=>zs,f3:()=>cs,lA:()=>zt,dG:()=>as,Y3:()=>E,dl:()=>We,wF:()=>Pe,Jd:()=>Ae,Xn:()=>ve,se:()=>Ge,d1:()=>ke,bv:()=>Te,bT:()=>Ce,Yq:()=>Se,Ah:()=>Ee,ic:()=>we,wg:()=>Ut,Cn:()=>le,JJ:()=>os,dD:()=>ce,qb:()=>N,Y1:()=>Ns,Ko:()=>Ks,WI:()=>ie,up:()=>Ct,Q2:()=>It,LL:()=>Nt,U2:()=>Ue,qZ:()=>Ht,ec:()=>R,nK:()=>qe,Uc:()=>Hs,G:()=>Xs,mx:()=>Js,C3:()=>Jt,qp:()=>Vs,Zq:()=>$s,Y8:()=>Re,i8:()=>Gs,ZK:()=>a,YP:()=>_e,m0:()=>Ne,w5:()=>ne,wy:()=>nt,HX:()=>he});var r=s(262),i=s(577);const n=[];function a(e,...t){(0,r.Jd)();const s=n.length?n[n.length-1].component:null,i=s&&s.appContext.config.warnHandler,a=function(){let e=n[n.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(i)l(i,s,11,[e+t.join(""),s&&s.proxy,a.map((({vnode:e})=>`at <${Ds(s,e.type)}>`)).join("\n"),a]);else{const s=[`[Vue warn]: ${e}`,...t];a.length&&s.push("\n",...function(e){const t=[];return e.forEach(((e,s)=>{t.push(...0===s?[]:["\n"],...function({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,i=` at <${Ds(e.component,e.type,r)}`,n=">"+s;return e.props?[i,...o(e.props),n]:[i+n]}(e))})),t}(a)),console.warn(...s)}(0,r.lk)()}function o(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach((s=>{t.push(...c(s,e[s]))})),s.length>3&&t.push(" ..."),t}function c(e,t,s){return(0,i.HD)(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?s?t:[`${e}=${t}`]:(0,r.dq)(t)?(t=c(e,(0,r.IU)(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):(0,i.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.IU)(t),s?t:[`${e}=`,t])}function l(e,t,s,r){let i;try{i=r?e(...r):e()}catch(e){p(e,t,s)}return i}function h(e,t,s,r){if((0,i.mf)(e)){const n=l(e,t,s,r);return n&&(0,i.tI)(n)&&n.catch((e=>{p(e,t,s)})),n}const n=[];for(let i=0;i<e.length;i++)n.push(h(e[i],t,s,r));return n}function p(e,t,s,r=!0){t&&t.vnode;if(t){let r=t.parent;const i=t.proxy,n=s;for(;r;){const t=r.ec;if(t)for(let s=0;s<t.length;s++)if(!1===t[s](e,i,n))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void l(a,null,10,[e,i,n])}!function(e,t,s,r=!0){console.error(e)}(e,0,0,r)}let u=!1,d=!1;const m=[];let f=0;const y=[];let x=null,g=0;const b=[];let P=null,T=0;const v=Promise.resolve();let w=null,A=null;function E(e){const t=w||v;return e?t.then(this?e.bind(this):e):t}function S(e){m.length&&m.includes(e,u&&e.allowRecurse?f+1:f)||e===A||(m.push(e),C())}function C(){u||d||(d=!0,w=v.then(D))}function k(e,t,s,r){(0,i.kJ)(e)?s.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||s.push(e),C()}function N(e){k(e,P,b,T)}function I(e,t=null){if(y.length){for(A=t,x=[...new Set(y)],y.length=0,g=0;g<x.length;g++)x[g]();x=null,g=0,A=null,I(e,t)}}function _(e){if(b.length){const e=[...new Set(b)];if(b.length=0,P)return void P.push(...e);for(P=e,P.sort(((e,t)=>L(e)-L(t))),T=0;T<P.length;T++)P[T]();P=null,T=0}}const L=e=>null==e.id?1/0:e.id;function D(e){d=!1,u=!0,I(e),m.sort(((e,t)=>L(e)-L(t)));try{for(f=0;f<m.length;f++){const e=m[f];e&&l(e,null,14)}}finally{f=0,m.length=0,_(),u=!1,w=null,(m.length||b.length)&&D(e)}}new Set;new Map;let M;function R(e){M=e}const O=U("component:added"),F=U("component:updated"),B=U("component:removed");function U(e){return t=>{M&&M.emit(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0)}}function j(e,t,...s){const r=e.vnode.props||i.kT;let n=s;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in r){const e=`${"modelValue"===o?"model":o}Modifiers`,{number:t,trim:a}=r[e]||i.kT;a?n=s.map((e=>e.trim())):t&&(n=s.map(i.He))}__VUE_PROD_DEVTOOLS__&&function(e,t,s){M&&M.emit("component:emit",e.appContext.app,e,t,s)}(e,t,n);let c=(0,i.hR)((0,i._A)(t)),l=r[c];!l&&a&&(c=(0,i.hR)((0,i.rs)(t)),l=r[c]),l&&h(l,e,6,n);const p=r[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else(e.emitted={})[c]=!0;h(p,e,6,n)}}function V(e,t,s=!1){if(!t.deopt&&void 0!==e.__emits)return e.__emits;const r=e.emits;let n={},a=!1;if(__VUE_OPTIONS_API__&&!(0,i.mf)(e)){const r=e=>{a=!0,(0,i.l7)(n,V(e,t,!0))};!s&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return r||a?((0,i.kJ)(r)?r.forEach((e=>n[e]=null)):(0,i.l7)(n,r),e.__emits=n):e.__emits=null}function q(e,t){return!(!e||!(0,i.F7)(t))&&(t=t.replace(/Once$/,""),(0,i.RI)(e,t[2].toLowerCase()+t.slice(3))||(0,i.RI)(e,t.slice(2)))}let H=null;function $(e){H=e}function z(e){const{type:t,vnode:s,proxy:r,withProxy:n,props:a,propsOptions:[o],slots:c,attrs:l,emit:h,render:u,renderCache:d,data:m,setupState:f,ctx:y}=e;let x;H=e;try{let e;if(4&s.shapeFlag){const t=n||r;x=rs(u.call(t,t,d,a,f,m,y)),e=l}else{const s=t;0,x=rs(s.length>1?s(a,{attrs:l,slots:c,emit:h}):s(a,null)),e=t.props?l:J(l)}let p=x;if(!1!==t.inheritAttrs&&e){const t=Object.keys(e),{shapeFlag:s}=p;t.length&&(1&s||6&s)&&(o&&t.some(i.tR)&&(e=W(e,o)),p=Zt(p,e))}s.dirs&&(p.dirs=p.dirs?p.dirs.concat(s.dirs):s.dirs),s.transition&&(p.transition=s.transition),x=p}catch(t){p(t,e,1),x=Yt(Rt)}return H=null,x}function K(e){const t=e.filter((e=>!(zt(e)&&e.type===Rt&&"v-if"!==e.children)));return 1===t.length&&zt(t[0])?t[0]:null}const J=e=>{let t;for(const s in e)("class"===s||"style"===s||(0,i.F7)(s))&&((t||(t={}))[s]=e[s]);return t},W=(e,t)=>{const s={};for(const r in e)(0,i.tR)(r)&&r.slice(9)in t||(s[r]=e[r]);return s};function G(e,t,s){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const n=r[i];if(t[n]!==e[n]&&!q(s,n))return!0}return!1}function X({vnode:e,parent:t},s){for(;t&&t.subTree===e;)(e=t.vnode).el=s,t=t.parent}const Y={__isSuspense:!0,process(e,t,s,r,n,a,o,c,l){null==e?function(e,t,s,r,i,n,a,o){const{p:c,o:{createElement:l}}=o,h=l("div"),p=e.suspense=Q(e,i,r,t,h,s,n,a,o);c(null,p.pendingBranch=e.ssContent,h,null,r,p,n),p.deps>0?(c(null,e.ssFallback,t,s,r,null,n),te(p,e.ssFallback)):p.resolve()}(t,s,r,n,a,o,c,l):function(e,t,s,r,n,a,{p:o,um:c,o:{createElement:l}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const p=t.ssContent,u=t.ssFallback,{activeBranch:d,pendingBranch:m,isInFallback:f,isHydrating:y}=h;if(m)h.pendingBranch=p,Kt(p,m)?(o(m,p,h.hiddenContainer,null,n,h,a),h.deps<=0?h.resolve():f&&(o(d,u,s,r,n,null,a),te(h,u))):(h.pendingId++,y?(h.isHydrating=!1,h.activeBranch=m):c(m,n,h),h.deps=0,h.effects.length=0,h.hiddenContainer=l("div"),f?(o(null,p,h.hiddenContainer,null,n,h,a),h.deps<=0?h.resolve():(o(d,u,s,r,n,null,a),te(h,u))):d&&Kt(p,d)?(o(d,p,s,r,n,h,a),h.resolve(!0)):(o(null,p,h.hiddenContainer,null,n,h,a),h.deps<=0&&h.resolve()));else if(d&&Kt(p,d))o(d,p,s,r,n,h,a),te(h,p);else{const e=t.props&&t.props.onPending;if((0,i.mf)(e)&&e(),h.pendingBranch=p,h.pendingId++,o(null,p,h.hiddenContainer,null,n,h,a),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout((()=>{h.pendingId===t&&h.fallback(u)}),e):0===e&&h.fallback(u)}}}(e,t,s,r,n,o,l)},hydrate:function(e,t,s,r,i,n,a,o){const c=t.suspense=Q(t,r,s,e.parentNode,document.createElement("div"),null,i,n,a,!0),l=o(e,c.pendingBranch=t.ssContent,s,c,n);0===c.deps&&c.resolve();return l},create:Q};function Q(e,t,s,r,n,a,o,c,l,h=!1){const{p:u,m:d,um:m,n:f,o:{parentNode:y,remove:x}}=l,g=(0,i.He)(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:s,isSVG:o,container:r,hiddenContainer:n,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof g?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:s,pendingBranch:r,pendingId:n,effects:a,parentComponent:o,container:c}=b;if(b.isHydrating)b.isHydrating=!1;else if(!e){const e=s&&r.transition&&"out-in"===r.transition.mode;e&&(s.transition.afterLeave=()=>{n===b.pendingId&&d(r,c,t,0)});let{anchor:t}=b;s&&(t=f(s),m(s,o,b,!0)),e||d(r,c,t,0)}te(b,r),b.pendingBranch=null,b.isInFallback=!1;let l=b.parent,h=!1;for(;l;){if(l.pendingBranch){l.effects.push(...a),h=!0;break}l=l.parent}h||N(a),b.effects=[];const p=t.props&&t.props.onResolve;(0,i.mf)(p)&&p()},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:s,parentComponent:r,container:n,isSVG:a}=b,o=t.props&&t.props.onFallback;(0,i.mf)(o)&&o();const c=f(s),l=()=>{b.isInFallback&&(u(null,e,n,c,r,null,a),te(b,e))},h=e.transition&&"out-in"===e.transition.mode;h&&(s.transition.afterLeave=l),m(s,r,null,!0),b.isInFallback=!0,h||l()},move(e,t,s){b.activeBranch&&d(b.activeBranch,e,t,s),b.container=e},next:()=>b.activeBranch&&f(b.activeBranch),registerDep(e,t){if(!b.pendingBranch)return;const s=e.vnode.el;b.deps++,e.asyncDep.catch((t=>{p(t,e,0)})).then((r=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;b.deps--,e.asyncResolved=!0;const{vnode:i}=e;ks(e,r),s&&(i.el=s);const n=!s&&e.subTree.el;t(e,i,y(s||e.subTree.el),s?null:f(e.subTree),b,o,c),n&&x(n),X(e,i.el),0===b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&m(b.activeBranch,s,e,t),b.pendingBranch&&m(b.pendingBranch,s,e,t)}};return b}function Z(e){if((0,i.mf)(e)&&(e=e()),(0,i.kJ)(e)){0,e=K(e)}return rs(e)}function ee(e,t){t&&t.pendingBranch?(0,i.kJ)(e)?t.effects.push(...e):t.effects.push(e):N(e)}function te(e,t){e.activeBranch=t;const{vnode:s,parentComponent:r}=e,i=s.el=t.el;r&&r.subTree===s&&(r.vnode.el=i,X(r,i))}let se=0;const re=e=>se+=e;function ie(e,t,s={},r){let i=e[t];se++;const n=(Ut(),$t(Dt,{key:s.key},i?i(s):r?r():[],1===e._?64:-2));return se--,n}function ne(e,t=H){if(!t)return e;const s=(...s)=>{se||Ut(!0);const r=H;$(t);const i=e(...s);return $(r),se||jt(),i};return s._c=!0,s}let ae=null;const oe=[];function ce(e){oe.push(ae=e)}function le(){oe.pop(),ae=oe[oe.length-1]||null}function he(e){return t=>ne((function(){ce(e);const s=t.apply(this,arguments);return le(),s}))}function pe(e,t,s,n){const[a,o]=e.propsOptions;if(t)for(const r in t){const o=t[r];if((0,i.Gg)(r))continue;let c;a&&(0,i.RI)(a,c=(0,i._A)(r))?s[c]=o:q(e.emitsOptions,r)||(n[r]=o)}if(o){const t=(0,r.IU)(s);for(let r=0;r<o.length;r++){const i=o[r];s[i]=ue(a,t,i,t[i],e)}}}function ue(e,t,s,r,n){const a=e[s];if(null!=a){const e=(0,i.RI)(a,"default");if(e&&void 0===r){const e=a.default;a.type!==Function&&(0,i.mf)(e)?(Es(n),r=e(t),Es(null)):r=e}a[0]&&((0,i.RI)(t,s)||e?!a[1]||""!==r&&r!==(0,i.rs)(s)||(r=!0):r=!1)}return r}function de(e,t,s=!1){if(!t.deopt&&e.__props)return e.__props;const r=e.props,n={},a=[];let o=!1;if(__VUE_OPTIONS_API__&&!(0,i.mf)(e)){const r=e=>{o=!0;const[s,r]=de(e,t,!0);(0,i.l7)(n,s),r&&a.push(...r)};!s&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!r&&!o)return e.__props=i.Z6;if((0,i.kJ)(r))for(let e=0;e<r.length;e++){0;const t=(0,i._A)(r[e]);me(t)&&(n[t]=i.kT)}else if(r){0;for(const e in r){const t=(0,i._A)(e);if(me(t)){const s=r[e],o=n[t]=(0,i.kJ)(s)||(0,i.mf)(s)?{type:s}:s;if(o){const e=xe(Boolean,o.type),s=xe(String,o.type);o[0]=e>-1,o[1]=s<0||e<s,(e>-1||(0,i.RI)(o,"default"))&&a.push(t)}}}}return e.__props=[n,a]}function me(e){return"$"!==e[0]}function fe(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function ye(e,t){return fe(e)===fe(t)}function xe(e,t){if((0,i.kJ)(t)){for(let s=0,r=t.length;s<r;s++)if(ye(t[s],e))return s}else if((0,i.mf)(t))return ye(t,e)?0:-1;return-1}function ge(e,t,s=ws,i=!1){if(s){const n=s[e]||(s[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(s.isUnmounted)return;(0,r.Jd)(),Es(s);const n=h(t,s,e,i);return Es(null),(0,r.lk)(),n});return i?n.unshift(a):n.push(a),a}}const be=e=>(t,s=ws)=>!Cs&&ge(e,t,s),Pe=be("bm"),Te=be("m"),ve=be("bu"),we=be("u"),Ae=be("bum"),Ee=be("um"),Se=be("rtg"),Ce=be("rtc"),ke=(e,t=ws)=>{ge("ec",e,t)};function Ne(e,t){return Le(e,null,t)}const Ie={};function _e(e,t,s){return Le(e,t,s)}function Le(e,t,{immediate:s,deep:n,flush:a,onTrack:o,onTrigger:c}=i.kT,p=ws){let u,d,m=!1;if((0,r.dq)(e)?(u=()=>e.value,m=!!e._shallow):(0,r.PG)(e)?(u=()=>e,n=!0):u=(0,i.kJ)(e)?()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?Me(e):(0,i.mf)(e)?l(e,p,2):void 0)):(0,i.mf)(e)?t?()=>l(e,p,2):()=>{if(!p||!p.isUnmounted)return d&&d(),l(e,p,3,[f])}:i.dG,t&&n){const e=u;u=()=>Me(e())}const f=e=>{d=v.options.onStop=()=>{l(e,p,4)}};let b=(0,i.kJ)(e)?[]:Ie;const P=()=>{if(v.active)if(t){const e=v();(n||m||(0,i.aU)(e,b))&&(d&&d(),h(t,p,3,[e,b===Ie?void 0:b,f]),b=e)}else v()};let T;P.allowRecurse=!!t,T="sync"===a?P:"post"===a?()=>ft(P,p&&p.suspense):()=>{!p||p.isMounted?function(e){k(e,x,y,g)}(P):P()};const v=(0,r.cE)(u,{lazy:!0,onTrack:o,onTrigger:c,scheduler:T});return _s(v),t?s?P():b=v():"post"===a?ft(v,p&&p.suspense):v(),()=>{(0,r.sT)(v),p&&(0,i.Od)(p.effects,v)}}function De(e,t,s){const r=this.proxy;return Le((0,i.HD)(e)?()=>r[e]:e.bind(r),t.bind(r),s,this)}function Me(e,t=new Set){if(!(0,i.Kn)(e)||t.has(e))return e;if(t.add(e),(0,r.dq)(e))Me(e.value,t);else if((0,i.kJ)(e))for(let s=0;s<e.length;s++)Me(e[s],t);else if((0,i.DM)(e)||(0,i._N)(e))e.forEach((e=>{Me(e,t)}));else for(const s in e)Me(e[s],t);return e}function Re(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Te((()=>{e.isMounted=!0})),Ae((()=>{e.isUnmounting=!0})),e}const Oe=[Function,Array],Fe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oe,onEnter:Oe,onAfterEnter:Oe,onEnterCancelled:Oe,onBeforeLeave:Oe,onLeave:Oe,onAfterLeave:Oe,onLeaveCancelled:Oe,onBeforeAppear:Oe,onAppear:Oe,onAfterAppear:Oe,onAppearCancelled:Oe},setup(e,{slots:t}){const s=As(),i=Re();let n;return()=>{const a=t.default&&He(t.default(),!0);if(!a||!a.length)return;const o=(0,r.IU)(e),{mode:c}=o;const l=a[0];if(i.isLeaving)return je(l);const h=Ve(l);if(!h)return je(l);const p=Ue(h,o,i,s);qe(h,p);const u=s.subTree,d=u&&Ve(u);let m=!1;const{getTransitionKey:f}=h.type;if(f){const e=f();void 0===n?n=e:e!==n&&(n=e,m=!0)}if(d&&d.type!==Rt&&(!Kt(h,d)||m)){const e=Ue(d,o,i,s);if(qe(d,e),"out-in"===c)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,s.update()},je(l);"in-out"===c&&(e.delayLeave=(e,t,s)=>{Be(i,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=s})}return l}}};function Be(e,t){const{leavingVNodes:s}=e;let r=s.get(t.type);return r||(r=Object.create(null),s.set(t.type,r)),r}function Ue(e,t,s,r){const{appear:i,mode:n,persisted:a=!1,onBeforeEnter:o,onEnter:c,onAfterEnter:l,onEnterCancelled:p,onBeforeLeave:u,onLeave:d,onAfterLeave:m,onLeaveCancelled:f,onBeforeAppear:y,onAppear:x,onAfterAppear:g,onAppearCancelled:b}=t,P=String(e.key),T=Be(s,e),v=(e,t)=>{e&&h(e,r,9,t)},w={mode:n,persisted:a,beforeEnter(t){let r=o;if(!s.isMounted){if(!i)return;r=y||o}t._leaveCb&&t._leaveCb(!0);const n=T[P];n&&Kt(e,n)&&n.el._leaveCb&&n.el._leaveCb(),v(r,[t])},enter(e){let t=c,r=l,n=p;if(!s.isMounted){if(!i)return;t=x||c,r=g||l,n=b||p}let a=!1;const o=e._enterCb=t=>{a||(a=!0,v(t?n:r,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,o),t.length<=1&&o()):o()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),s.isUnmounting)return r();v(u,[t]);let n=!1;const a=t._leaveCb=s=>{n||(n=!0,r(),v(s?f:m,[t]),t._leaveCb=void 0,T[i]===e&&delete T[i])};T[i]=e,d?(d(t,a),d.length<=1&&a()):a()},clone:e=>Ue(e,t,s,r)};return w}function je(e){if($e(e))return(e=Zt(e)).children=null,e}function Ve(e){return $e(e)?e.children?e.children[0]:void 0:e}function qe(e,t){6&e.shapeFlag&&e.component?qe(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function He(e,t=!1){let s=[],r=0;for(let i=0;i<e.length;i++){const n=e[i];n.type===Dt?(128&n.patchFlag&&r++,s=s.concat(He(n.children,t))):(t||n.type!==Rt)&&s.push(n)}if(r>1)for(let e=0;e<s.length;e++)s[e].patchFlag=-2;return s}const $e=e=>e.type.__isKeepAlive,ze={name:"KeepAlive",__isKeepAlive:!0,inheritRef:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=new Map,r=new Set;let n=null;const a=As(),o=a.suspense,c=a.ctx,{renderer:{p:l,m:h,um:p,o:{createElement:u}}}=c,d=u("div");function m(e){Qe(e),p(e,a,o)}function f(e){s.forEach(((t,s)=>{const r=Ke(t.type);!r||e&&e(r)||y(s)}))}function y(e){const t=s.get(e);n&&t.type===n.type?n&&Qe(n):m(t),s.delete(e),r.delete(e)}c.activate=(e,t,s,r,n)=>{const a=e.component;h(e,t,s,0,o),l(a.vnode,e,t,s,a,o,r,n),ft((()=>{a.isDeactivated=!1,a.a&&(0,i.ir)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&Pt(t,a.parent,e)}),o)},c.deactivate=e=>{const t=e.component;h(e,d,null,1,o),ft((()=>{t.da&&(0,i.ir)(t.da);const s=e.props&&e.props.onVnodeUnmounted;s&&Pt(s,t.parent,e),t.isDeactivated=!0}),o)},_e((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>Je(e,t))),t&&f((e=>!Je(t,e)))}),{flush:"post"});let x=null;const g=()=>{null!=x&&s.set(x,Ze(a.subTree))};return Te(g),we(g),Ae((()=>{s.forEach((e=>{const{subTree:t,suspense:s}=a,r=Ze(t);if(e.type!==r.type)m(e);else{Qe(r);const e=r.component.da;e&&ft(e,s)}}))})),()=>{if(x=null,!t.default)return null;const i=t.default(),a=i[0];if(i.length>1)return n=null,i;if(!(zt(a)&&(4&a.shapeFlag||128&a.shapeFlag)))return n=null,a;let o=Ze(a);const c=o.type,l=Ke(c),{include:h,exclude:p,max:u}=e;if(h&&(!l||!Je(h,l))||p&&l&&Je(p,l))return n=o,a;const d=null==o.key?c:o.key,m=s.get(d);return o.el&&(o=Zt(o),128&a.shapeFlag&&(a.ssContent=o)),x=d,m?(o.el=m.el,o.component=m.component,o.transition&&qe(o,o.transition),o.shapeFlag|=512,r.delete(d),r.add(d)):(r.add(d),u&&r.size>parseInt(u,10)&&y(r.values().next().value)),o.shapeFlag|=256,n=o,a}}};function Ke(e){return e.displayName||e.name}function Je(e,t){return(0,i.kJ)(e)?e.some((e=>Je(e,t))):(0,i.HD)(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function We(e,t){Xe(e,"a",t)}function Ge(e,t){Xe(e,"da",t)}function Xe(e,t,s=ws){const r=e.__wdc||(e.__wdc=()=>{let t=s;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(ge(t,r,s),s){let e=s.parent;for(;e&&e.parent;)$e(e.parent.vnode)&&Ye(r,t,s,e),e=e.parent}}function Ye(e,t,s,r){const n=ge(t,e,r,!0);Ee((()=>{(0,i.Od)(r[t],n)}),s)}function Qe(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Ze(e){return 128&e.shapeFlag?e.ssContent:e}const et=e=>"_"===e[0]||"$stable"===e,tt=e=>(0,i.kJ)(e)?e.map(rs):[rs(e)],st=(e,t,s)=>ne((e=>tt(t(e))),s),rt=(e,t)=>{const s=e._ctx;for(const r in e){if(et(r))continue;const n=e[r];if((0,i.mf)(n))t[r]=st(0,n,s);else if(null!=n){0;const e=tt(n);t[r]=()=>e}}},it=(e,t)=>{const s=tt(t);e.slots.default=()=>s};function nt(e,t){if(null===H)return e;const s=H.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,a,o,c=i.kT]=t[e];(0,i.mf)(n)&&(n={mounted:n,updated:n}),r.push({dir:n,instance:s,value:a,oldValue:void 0,arg:o,modifiers:c})}return e}function at(e,t,s,r){const i=e.dirs,n=t&&t.dirs;for(let a=0;a<i.length;a++){const o=i[a];n&&(o.oldValue=n[a].value);const c=o.dir[r];c&&h(c,s,8,[e.el,o,e,t])}}function ot(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},isCustomElement:i.NO,errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}let ct=0;function lt(e,t){return function(s,r=null){null==r||(0,i.Kn)(r)||(r=null);const n=ot(),a=new Set;let o=!1;const c=n.app={_uid:ct++,_component:s,_props:r,_container:null,_context:n,version:Gs,get config(){return n.config},set config(e){0},use:(e,...t)=>(a.has(e)||(e&&(0,i.mf)(e.install)?(a.add(e),e.install(c,...t)):(0,i.mf)(e)&&(a.add(e),e(c,...t))),c),mixin:e=>(__VUE_OPTIONS_API__&&(n.mixins.includes(e)||(n.mixins.push(e),(e.props||e.emits)&&(n.deopt=!0))),c),component:(e,t)=>t?(n.components[e]=t,c):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,c):n.directives[e],mount(i,a){if(!o){const l=Yt(s,r);return l.appContext=n,a&&t?t(l,i):e(l,i),o=!0,c._container=i,i.__vue_app__=c,__VUE_PROD_DEVTOOLS__&&function(e,t){M&&M.emit("app:init",e,t,{Fragment:Dt,Text:Mt,Comment:Rt,Static:Ot})}(c,Gs),l.component.proxy}},unmount(){o&&(e(null,c._container),__VUE_PROD_DEVTOOLS__&&function(e){M&&M.emit("app:unmount",e)}(c))},provide:(e,t)=>(n.provides[e]=t,c)};return c}}let ht=!1;const pt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,ut=e=>8===e.nodeType;function dt(e){const{mt:t,p:s,o:{patchProp:r,nextSibling:n,parentNode:a,remove:o,insert:c,createComment:l}}=e,h=(s,r,i,o,c=!1)=>{const l=ut(s)&&"["===s.data,y=()=>m(s,r,i,o,l),{type:x,ref:g,shapeFlag:b}=r,P=s.nodeType;r.el=s;let T=null;switch(x){case Mt:3!==P?T=y():(s.data!==r.children&&(ht=!0,s.data=r.children),T=n(s));break;case Rt:T=8!==P||l?y():n(s);break;case Ot:if(1===P){T=s;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=T.outerHTML),t===r.staticCount-1&&(r.anchor=T),T=n(T);return T}T=y();break;case Dt:T=l?d(s,r,i,o,c):y();break;default:if(1&b)T=1!==P||r.type!==s.tagName.toLowerCase()?y():p(s,r,i,o,c);else if(6&b){const e=a(s),h=()=>{t(r,e,null,i,o,pt(e),c)},p=r.type.__asyncLoader;p?p().then(h):h(),T=l?f(s):n(s)}else 64&b?T=8!==P?y():r.type.hydrate(s,r,i,o,c,e,u):128&b&&(T=r.type.hydrate(s,r,i,o,pt(a(s)),c,e,h))}return null!=g&&i&&yt(g,null,i,o,r),T},p=(e,t,s,n,a)=>{a=a||!!t.dynamicChildren;const{props:c,patchFlag:l,shapeFlag:h,dirs:p}=t;if(-1!==l){if(p&&at(t,null,s,"created"),c)if(!a||16&l||32&l)for(const t in c)!(0,i.Gg)(t)&&(0,i.F7)(t)&&r(e,t,null,c[t]);else c.onClick&&r(e,"onClick",null,c.onClick);let d;if((d=c&&c.onVnodeBeforeMount)&&Pt(d,s,t),p&&at(t,null,s,"beforeMount"),((d=c&&c.onVnodeMounted)||p)&&ee((()=>{d&&Pt(d,s,t),p&&at(t,null,s,"mounted")}),n),16&h&&(!c||!c.innerHTML&&!c.textContent)){let r=u(e.firstChild,t,e,s,n,a);for(;r;){ht=!0;const e=r;r=r.nextSibling,o(e)}}else 8&h&&e.textContent!==t.children&&(ht=!0,e.textContent=t.children)}return e.nextSibling},u=(e,t,r,i,n,a)=>{a=a||!!t.dynamicChildren;const o=t.children,c=o.length;for(let t=0;t<c;t++){const c=a?o[t]:o[t]=rs(o[t]);e?e=h(e,c,i,n,a):(ht=!0,s(null,c,r,null,i,n,pt(r)))}return e},d=(e,t,s,r,i)=>{const o=a(e),h=u(n(e),t,o,s,r,i);return h&&ut(h)&&"]"===h.data?n(t.anchor=h):(ht=!0,c(t.anchor=l("]"),o,h),h)},m=(e,t,r,i,c)=>{if(ht=!0,t.el=null,c){const t=f(e);for(;;){const s=n(e);if(!s||s===t)break;o(s)}}const l=n(e),h=a(e);return o(e),s(null,t,h,l,r,i,pt(h)),l},f=e=>{let t=0;for(;e;)if((e=n(e))&&ut(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return n(e);t--}return e};return[(e,t)=>{ht=!1,h(t.firstChild,e,null,null),_(),ht&&console.error("Hydration completed but contains mismatches.")},h]}const mt={scheduler:S,allowRecurse:!0};const ft=ee,yt=(e,t,s,n,a)=>{if((0,i.kJ)(e))return void e.forEach(((e,r)=>yt(e,t&&((0,i.kJ)(t)?t[r]:t),s,n,a)));let o;o=a?4&a.shapeFlag?a.component.exposed||a.component.proxy:a.el:null;const{i:c,r:h}=e;const p=t&&t.r,u=c.refs===i.kT?c.refs={}:c.refs,d=c.setupState;if(null!=p&&p!==h&&((0,i.HD)(p)?(u[p]=null,(0,i.RI)(d,p)&&(d[p]=null)):(0,r.dq)(p)&&(p.value=null)),(0,i.HD)(h)){const e=()=>{u[h]=o,(0,i.RI)(d,h)&&(d[h]=o)};o?(e.id=-1,ft(e,n)):e()}else if((0,r.dq)(h)){const e=()=>{h.value=o};o?(e.id=-1,ft(e,n)):e()}else(0,i.mf)(h)&&l(h,s,12,[o,u])};function xt(e){return bt(e)}function gt(e){return bt(e,dt)}function bt(e,t){!function(){let e=!1;"boolean"!=typeof __VUE_OPTIONS_API__&&(e=!0,(0,i.E9)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(e=!0,(0,i.E9)().__VUE_PROD_DEVTOOLS__=!1)}();const{insert:s,remove:n,patchProp:a,forcePatchProp:o,createElement:c,createText:h,createComment:p,setText:u,setElementText:d,parentNode:f,nextSibling:y,setScopeId:x=i.dG,cloneNode:g,insertStaticContent:b}=e,P=(e,t,s,r=null,i=null,n=null,a=!1,o=!1)=>{e&&!Kt(e,t)&&(r=re(e),Q(e,i,n,!0),e=null),-2===t.patchFlag&&(o=!1,t.dynamicChildren=null);const{type:c,ref:l,shapeFlag:h}=t;switch(c){case Mt:T(e,t,s,r);break;case Rt:v(e,t,s,r);break;case Ot:null==e&&w(t,s,r,a);break;case Dt:D(e,t,s,r,i,n,a,o);break;default:1&h?A(e,t,s,r,i,n,a,o):6&h?M(e,t,s,r,i,n,a,o):(64&h||128&h)&&c.process(e,t,s,r,i,n,a,o,ne)}null!=l&&i&&yt(l,e&&e.ref,i,n,t)},T=(e,t,r,i)=>{if(null==e)s(t.el=h(t.children),r,i);else{const s=t.el=e.el;t.children!==e.children&&u(s,t.children)}},v=(e,t,r,i)=>{null==e?s(t.el=p(t.children||""),r,i):t.el=e.el},w=(e,t,s,r)=>{[e.el,e.anchor]=b(e.children,t,s,r)},A=(e,t,s,r,i,n,a,o)=>{a=a||"svg"===t.type,null==e?E(t,s,r,i,n,a,o):k(e,t,i,n,a,o)},E=(e,t,r,n,o,l,h)=>{let p,u;const{type:m,props:f,shapeFlag:y,transition:x,scopeId:b,patchFlag:P,dirs:T}=e;if(e.el&&void 0!==g&&-1===P)p=e.el=g(e.el);else{if(p=e.el=c(e.type,l,f&&f.is),8&y?d(p,e.children):16&y&&C(e.children,p,null,n,o,l&&"foreignObject"!==m,h||!!e.dynamicChildren),T&&at(e,null,n,"created"),f){for(const t in f)(0,i.Gg)(t)||a(p,t,null,f[t],l,e.children,n,o,se);(u=f.onVnodeBeforeMount)&&Pt(u,n,e)}S(p,b,e,n)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:n,enumerable:!1})),T&&at(e,null,n,"beforeMount");const v=(!o||o&&!o.pendingBranch)&&x&&!x.persisted;v&&x.beforeEnter(p),s(p,t,r),((u=f&&f.onVnodeMounted)||v||T)&&ft((()=>{u&&Pt(u,n,e),v&&x.enter(p),T&&at(e,null,n,"mounted")}),o)},S=(e,t,s,r)=>{if(t&&x(e,t),r){const i=r.type.__scopeId;i&&i!==t&&x(e,i+"-s"),0,s===r.subTree&&S(e,r.vnode.scopeId,r.vnode,r.parent)}},C=(e,t,s,r,i,n,a,o=0)=>{for(let c=o;c<e.length;c++){const o=e[c]=a?is(e[c]):rs(e[c]);P(null,o,t,s,r,i,n,a)}},k=(e,t,s,r,n,c)=>{const l=t.el=e.el;let{patchFlag:h,dynamicChildren:p,dirs:u}=t;h|=16&e.patchFlag;const m=e.props||i.kT,f=t.props||i.kT;let y;if((y=f.onVnodeBeforeUpdate)&&Pt(y,s,t,e),u&&at(t,e,s,"beforeUpdate"),h>0){if(16&h)L(l,t,m,f,s,r,n);else if(2&h&&m.class!==f.class&&a(l,"class",null,f.class,n),4&h&&a(l,"style",m.style,f.style,n),8&h){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const c=i[t],h=m[c],p=f[c];(p!==h||o&&o(l,c))&&a(l,c,h,p,n,e.children,s,r,se)}}1&h&&e.children!==t.children&&d(l,t.children)}else c||null!=p||L(l,t,m,f,s,r,n);const x=n&&"foreignObject"!==t.type;p?N(e.dynamicChildren,p,l,s,r,x):c||K(e,t,l,null,s,r,x),((y=f.onVnodeUpdated)||u)&&ft((()=>{y&&Pt(y,s,t,e),u&&at(t,e,s,"updated")}),r)},N=(e,t,s,r,i,n)=>{for(let a=0;a<t.length;a++){const o=e[a],c=t[a],l=o.type===Dt||!Kt(o,c)||6&o.shapeFlag||64&o.shapeFlag?f(o.el):s;P(o,c,l,null,r,i,n,!0)}},L=(e,t,s,r,n,c,l)=>{if(s!==r){for(const h in r){if((0,i.Gg)(h))continue;const p=r[h],u=s[h];(p!==u||o&&o(e,h))&&a(e,h,u,p,l,t.children,n,c,se)}if(s!==i.kT)for(const o in s)(0,i.Gg)(o)||o in r||a(e,o,s[o],null,l,t.children,n,c,se)}},D=(e,t,r,i,n,a,o,c)=>{const l=t.el=e?e.el:h(""),p=t.anchor=e?e.anchor:h("");let{patchFlag:u,dynamicChildren:d}=t;u>0&&(c=!0),null==e?(s(l,r,i),s(p,r,i),C(t.children,r,p,n,a,o,c)):u>0&&64&u&&d?(N(e.dynamicChildren,d,r,n,a,o),(null!=t.key||n&&t===n.subTree)&&Tt(e,t,!0)):K(e,t,r,p,n,a,o,c)},M=(e,t,s,r,i,n,a,o)=>{null==e?512&t.shapeFlag?i.ctx.activate(t,s,r,a,o):R(t,s,r,i,n,a,o):U(e,t,o)},R=(e,t,s,n,a,o,c)=>{const h=e.component=function(e,t,s){const r=e.type,n=(t?t.appContext:e.appContext)||Ts,a={uid:vs++,vnode:e,type:r,parent:t,appContext:n,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:de(r,n),emitsOptions:V(r,n),emit:null,emitted:null,ctx:i.kT,data:i.kT,props:i.kT,attrs:i.kT,slots:i.kT,refs:i.kT,setupState:i.kT,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null};a.ctx={_:a};a.root=t?t.root:a,a.emit=j.bind(null,a),__VUE_PROD_DEVTOOLS__&&O(a);return a}(e,n,a);if($e(e)&&(h.ctx.renderer=ne),function(e,t=!1){Cs=t;const{props:s,children:n,shapeFlag:a}=e.vnode,o=4&a;(function(e,t,s,n=!1){const a={},o={};(0,i.Nj)(o,Wt,1),pe(e,t,a,o),s?e.props=n?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=o,e.attrs=o})(e,s,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const s=t._;s?(e.slots=t,(0,i.Nj)(t,"_",s)):rt(t,e.slots={})}else e.slots={},t&&it(e,t);(0,i.Nj)(e.slots,Wt,1)})(e,n);const c=o?function(e,t){const s=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bs),!1;const{setup:n}=s;if(n){const s=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=(0,r.WL)(t)};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}(e):null;ws=e,(0,r.Jd)();const a=l(n,e,0,[e.props,s]);if((0,r.lk)(),ws=null,(0,i.tI)(a)){if(t)return a.then((t=>{ks(e,t)}));e.asyncDep=a}else ks(e,a)}else Is(e)}(e,t):void 0;Cs=!1}(h),h.asyncDep){if(a&&a.registerDep(h,H),!e.el){const e=h.subTree=Yt(Rt);v(null,e,t,s)}}else H(h,e,t,s,a,o,c)},U=(e,t,s)=>{const r=t.component=e.component;if(function(e,t,s){const{props:r,children:i,component:n}=e,{props:a,children:o,patchFlag:c}=t,l=n.emitsOptions;if(t.dirs||t.transition)return!0;if(!(s&&c>=0))return!(!i&&!o||o&&o.$stable)||r!==a&&(r?!a||G(r,a,l):!!a);if(1024&c)return!0;if(16&c)return r?G(r,a,l):!!a;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t];if(a[s]!==r[s]&&!q(l,s))return!0}}return!1}(e,t,s)){if(r.asyncDep&&!r.asyncResolved)return void $(r,t,s);r.next=t,function(e){const t=m.indexOf(e);t>-1&&m.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},H=(e,t,s,n,a,o,c)=>{e.update=(0,r.cE)((function(){if(e.isMounted){let t,{next:s,bu:r,u:n,parent:l,vnode:h}=e,p=s;0,s?(s.el=h.el,$(e,s,c)):s=h,r&&(0,i.ir)(r),(t=s.props&&s.props.onVnodeBeforeUpdate)&&Pt(t,l,s,h);const u=z(e);0;const d=e.subTree;e.subTree=u,P(d,u,f(d.el),re(d),e,a,o),s.el=u.el,null===p&&X(e,u.el),n&&ft(n,a),(t=s.props&&s.props.onVnodeUpdated)&&ft((()=>{Pt(t,l,s,h)}),a),__VUE_PROD_DEVTOOLS__&&F(e)}else{let r;const{el:c,props:l}=t,{bm:h,m:p,parent:u}=e;h&&(0,i.ir)(h),(r=l&&l.onVnodeBeforeMount)&&Pt(r,u,t);const d=e.subTree=z(e);0,c&&oe?oe(t.el,d,e,a):(P(null,d,s,n,e,a,o),t.el=d.el),p&&ft(p,a),(r=l&&l.onVnodeMounted)&&ft((()=>{Pt(r,u,t)}),a);const{a:m}=e;m&&256&t.shapeFlag&&ft(m,a),e.isMounted=!0}}),mt)},$=(e,t,s)=>{t.component=e;const n=e.vnode.props;e.vnode=t,e.next=null,function(e,t,s,n){const{props:a,attrs:o,vnode:{patchFlag:c}}=e,l=(0,r.IU)(a),[h]=e.propsOptions;if(!(n||c>0)||16&c){let r;pe(e,t,a,o);for(const n in l)t&&((0,i.RI)(t,n)||(r=(0,i.rs)(n))!==n&&(0,i.RI)(t,r))||(h?!s||void 0===s[n]&&void 0===s[r]||(a[n]=ue(h,t||i.kT,n,void 0,e)):delete a[n]);if(o!==l)for(const e in o)t&&(0,i.RI)(t,e)||delete o[e]}else if(8&c){const s=e.vnode.dynamicProps;for(let r=0;r<s.length;r++){const n=s[r],c=t[n];if(h)if((0,i.RI)(o,n))o[n]=c;else{const t=(0,i._A)(n);a[t]=ue(h,l,t,c,e)}else o[n]=c}}(0,r.X$)(e,"set","$attrs")}(e,t.props,n,s),((e,t)=>{const{vnode:s,slots:r}=e;let n=!0,a=i.kT;if(32&s.shapeFlag){const e=t._;e?1===e?n=!1:(0,i.l7)(r,t):(n=!t.$stable,rt(t,r)),a=t}else t&&(it(e,t),a={default:1});if(n)for(const e in r)et(e)||e in a||delete r[e]})(e,t.children),I(void 0,e.update)},K=(e,t,s,r,i,n,a,o=!1)=>{const c=e&&e.children,l=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:u}=t;if(p>0){if(128&p)return void W(c,h,s,r,i,n,a,o);if(256&p)return void J(c,h,s,r,i,n,a,o)}8&u?(16&l&&se(c,i,n),h!==c&&d(s,h)):16&l?16&u?W(c,h,s,r,i,n,a,o):se(c,i,n,!0):(8&l&&d(s,""),16&u&&C(h,s,r,i,n,a,o))},J=(e,t,s,r,n,a,o,c)=>{e=e||i.Z6,t=t||i.Z6;const l=e.length,h=t.length,p=Math.min(l,h);let u;for(u=0;u<p;u++){const r=t[u]=c?is(t[u]):rs(t[u]);P(e[u],r,s,null,n,a,o,c)}l>h?se(e,n,a,!0,!1,p):C(t,s,r,n,a,o,c,p)},W=(e,t,s,r,n,a,o,c)=>{let l=0;const h=t.length;let p=e.length-1,u=h-1;for(;l<=p&&l<=u;){const r=e[l],i=t[l]=c?is(t[l]):rs(t[l]);if(!Kt(r,i))break;P(r,i,s,null,n,a,o,c),l++}for(;l<=p&&l<=u;){const r=e[p],i=t[u]=c?is(t[u]):rs(t[u]);if(!Kt(r,i))break;P(r,i,s,null,n,a,o,c),p--,u--}if(l>p){if(l<=u){const e=u+1,i=e<h?t[e].el:r;for(;l<=u;)P(null,t[l]=c?is(t[l]):rs(t[l]),s,i,n,a,o),l++}}else if(l>u)for(;l<=p;)Q(e[l],n,a,!0),l++;else{const d=l,m=l,f=new Map;for(l=m;l<=u;l++){const e=t[l]=c?is(t[l]):rs(t[l]);null!=e.key&&f.set(e.key,l)}let y,x=0;const g=u-m+1;let b=!1,T=0;const v=new Array(g);for(l=0;l<g;l++)v[l]=0;for(l=d;l<=p;l++){const r=e[l];if(x>=g){Q(r,n,a,!0);continue}let i;if(null!=r.key)i=f.get(r.key);else for(y=m;y<=u;y++)if(0===v[y-m]&&Kt(r,t[y])){i=y;break}void 0===i?Q(r,n,a,!0):(v[i-m]=l+1,i>=T?T=i:b=!0,P(r,t[i],s,null,n,a,o,c),x++)}const w=b?function(e){const t=e.slice(),s=[0];let r,i,n,a,o;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(i=s[s.length-1],e[i]<c){t[r]=i,s.push(r);continue}for(n=0,a=s.length-1;n<a;)o=(n+a)/2|0,e[s[o]]<c?n=o+1:a=o;c<e[s[n]]&&(n>0&&(t[r]=s[n-1]),s[n]=r)}}n=s.length,a=s[n-1];for(;n-- >0;)s[n]=a,a=t[a];return s}(v):i.Z6;for(y=w.length-1,l=g-1;l>=0;l--){const e=m+l,i=t[e],c=e+1<h?t[e+1].el:r;0===v[l]?P(null,i,s,c,n,a,o):b&&(y<0||l!==w[y]?Y(i,s,c,2):y--)}}},Y=(e,t,r,i,n=null)=>{const{el:a,type:o,transition:c,children:l,shapeFlag:h}=e;if(6&h)return void Y(e.component.subTree,t,r,i);if(128&h)return void e.suspense.move(t,r,i);if(64&h)return void o.move(e,t,r,ne);if(o===Dt){s(a,t,r);for(let e=0;e<l.length;e++)Y(l[e],t,r,i);return void s(e.anchor,t,r)}if(2!==i&&1&h&&c)if(0===i)c.beforeEnter(a),s(a,t,r),ft((()=>c.enter(a)),n);else{const{leave:e,delayLeave:i,afterLeave:n}=c,o=()=>s(a,t,r),l=()=>{e(a,(()=>{o(),n&&n()}))};i?i(a,o,l):l()}else s(a,t,r)},Q=(e,t,s,r=!1,i=!1)=>{const{type:n,props:a,ref:o,children:c,dynamicChildren:l,shapeFlag:h,patchFlag:p,dirs:u}=e;if(null!=o&&t&&yt(o,null,t,s,null),256&h)return void t.ctx.deactivate(e);const d=1&h&&u;let m;if((m=a&&a.onVnodeBeforeUnmount)&&Pt(m,t,e),6&h)te(e.component,s,r);else{if(128&h)return void e.suspense.unmount(s,r);d&&at(e,null,t,"beforeUnmount"),l&&(n!==Dt||p>0&&64&p)?se(l,t,s,!1,!0):(n===Dt&&(128&p||256&p)||!i&&16&h)&&se(c,t,s),64&h&&(r||!vt(e.props))&&e.type.remove(e,ne),r&&Z(e)}((m=a&&a.onVnodeUnmounted)||d)&&ft((()=>{m&&Pt(m,t,e),d&&at(e,null,t,"unmounted")}),s)},Z=e=>{const{type:t,el:s,anchor:r,transition:i}=e;if(t===Dt)return void ee(s,r);const a=()=>{n(s),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,n=()=>t(s,a);r?r(e.el,a,n):n()}else a()},ee=(e,t)=>{let s;for(;e!==t;)s=y(e),n(e),e=s;n(t)},te=(e,t,s)=>{const{bum:n,effects:a,update:o,subTree:c,um:l}=e;if(n&&(0,i.ir)(n),a)for(let e=0;e<a.length;e++)(0,r.sT)(a[e]);o&&((0,r.sT)(o),Q(c,e,t,s)),l&&ft(l,t),ft((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&B(e)},se=(e,t,s,r=!1,i=!1,n=0)=>{for(let a=n;a<e.length;a++)Q(e[a],t,s,r,i)},re=e=>6&e.shapeFlag?re(e.component.subTree):128&e.shapeFlag?e.suspense.next():y(e.anchor||e.el),ie=(e,t)=>{null==e?t._vnode&&Q(t._vnode,null,null,!0):P(t._vnode||null,e,t),_(),t._vnode=e},ne={p:P,um:Q,m:Y,r:Z,mt:R,mc:C,pc:K,pbc:N,n:re,o:e};let ae,oe;return t&&([ae,oe]=t(ne)),{render:ie,hydrate:ae,createApp:lt(ie,ae)}}function Pt(e,t,s,r=null){h(e,t,7,[s,r])}function Tt(e,t,s=!1){const r=e.children,n=t.children;if((0,i.kJ)(r)&&(0,i.kJ)(n))for(let e=0;e<r.length;e++){const t=r[e];let i=n[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=n[e]=is(n[e]),i.el=t.el),s||Tt(t,i))}}const vt=e=>e&&(e.disabled||""===e.disabled),wt=(e,t)=>{const s=e&&e.to;if((0,i.HD)(s)){if(t){const e=t(s);return e}return null}return s};function At(e,t,s,{o:{insert:r},m:i},n=2){0===n&&r(e.targetAnchor,t,s);const{el:a,anchor:o,shapeFlag:c,children:l,props:h}=e,p=2===n;if(p&&r(a,t,s),(!p||vt(h))&&16&c)for(let e=0;e<l.length;e++)i(l[e],t,s,2);p&&r(o,t,s)}const Et={__isTeleport:!0,process(e,t,s,r,i,n,a,o,c){const{mc:l,pc:h,pbc:p,o:{insert:u,querySelector:d,createText:m,createComment:f}}=c,y=vt(t.props),{shapeFlag:x,children:g}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");u(e,s,r),u(c,s,r);const h=t.target=wt(t.props,d),p=t.targetAnchor=m("");h&&u(p,h);const f=(e,t)=>{16&x&&l(g,e,t,i,n,a,o)};y?f(s,c):h&&f(h,p)}else{t.el=e.el;const r=t.anchor=e.anchor,l=t.target=e.target,u=t.targetAnchor=e.targetAnchor,m=vt(e.props),f=m?s:l,x=m?r:u;if(t.dynamicChildren?(p(e.dynamicChildren,t.dynamicChildren,f,i,n,a),Tt(e,t,!0)):o||h(e,t,f,x,i,n,a),y)m||At(t,s,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=wt(t.props,d);e&&At(t,e,null,c,0)}else m&&At(t,l,u,c,1)}},remove(e,{r:t,o:{remove:s}}){const{shapeFlag:r,children:i,anchor:n}=e;if(s(n),16&r)for(let e=0;e<i.length;e++)t(i[e])},move:At,hydrate:function(e,t,s,r,i,{o:{nextSibling:n,parentNode:a,querySelector:o}},c){const l=t.target=wt(t.props,o);if(l){const o=l._lpa||l.firstChild;16&t.shapeFlag&&(vt(t.props)?(t.anchor=c(n(e),t,a(e),s,r,i),t.targetAnchor=o):(t.anchor=n(e),t.targetAnchor=c(o,t,l,s,r,i)),l._lpa=t.targetAnchor&&n(t.targetAnchor))}return t.anchor&&n(t.anchor)}},St="components";function Ct(e){return _t(St,e)||e}const kt=Symbol();function Nt(e){return(0,i.HD)(e)?_t(St,e,!1)||e:e||kt}function It(e){return _t("directives",e)}function _t(e,t,s=!0){const r=H||ws;if(r){const s=r.type;if(e===St){const e=s.displayName||s.name;if(e&&(e===t||e===(0,i._A)(t)||e===(0,i.kC)((0,i._A)(t))))return s}return Lt(r[e]||s[e],t)||Lt(r.appContext[e],t)}}function Lt(e,t){return e&&(e[t]||e[(0,i._A)(t)]||e[(0,i.kC)((0,i._A)(t))])}const Dt=Symbol(void 0),Mt=Symbol(void 0),Rt=Symbol(void 0),Ot=Symbol(void 0),Ft=[];let Bt=null;function Ut(e=!1){Ft.push(Bt=e?null:[])}function jt(){Ft.pop(),Bt=Ft[Ft.length-1]||null}let Vt,qt=1;function Ht(e){qt+=e}function $t(e,t,s,r,n){const a=Yt(e,t,s,r,n,!0);return a.dynamicChildren=Bt||i.Z6,jt(),qt>0&&Bt&&Bt.push(a),a}function zt(e){return!!e&&!0===e.__v_isVNode}function Kt(e,t){return e.type===t.type&&e.key===t.key}function Jt(e){Vt=e}const Wt="__vInternal",Gt=({key:e})=>null!=e?e:null,Xt=({ref:e})=>null!=e?(0,i.kJ)(e)?e:{i:H,r:e}:null,Yt=Qt;function Qt(e,t=null,s=null,n=0,a=null,o=!1){if(e&&e!==kt||(e=Rt),zt(e)){const r=Zt(e,t,!0);return s&&ns(r,s),r}if(Ms(e)&&(e=e.__vccOpts),t){((0,r.X3)(t)||Wt in t)&&(t=(0,i.l7)({},t));let{class:e,style:s}=t;e&&!(0,i.HD)(e)&&(t.class=(0,i.C_)(e)),(0,i.Kn)(s)&&((0,r.X3)(s)&&!(0,i.kJ)(s)&&(s=(0,i.l7)({},s)),t.style=(0,i.j5)(s))}const c=(0,i.HD)(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:(0,i.Kn)(e)?4:(0,i.mf)(e)?2:0;const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gt(t),ref:t&&Xt(t),scopeId:ae,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null};if(ns(l,s),128&c){const{content:e,fallback:t}=function(e){const{shapeFlag:t,children:s}=e;let r,i;return 32&t?(r=Z(s.default),i=Z(s.fallback)):(r=Z(s),i=rs(null)),{content:r,fallback:i}}(l);l.ssContent=e,l.ssFallback=t}return qt>0&&!o&&Bt&&(n>0||6&c)&&32!==n&&Bt.push(l),l}function Zt(e,t,s=!1){const{props:r,ref:n,patchFlag:a}=e,o=t?as(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Gt(o),ref:t&&t.ref?s&&n?(0,i.kJ)(n)?n.concat(Xt(t)):[n,Xt(t)]:Xt(t):n,scopeId:e.scopeId,children:e.children,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Dt?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor}}function es(e=" ",t=0){return Yt(Mt,null,e,t)}function ts(e,t){const s=Yt(Ot,null,e);return s.staticCount=t,s}function ss(e="",t=!1){return t?(Ut(),$t(Rt,null,e)):Yt(Rt,null,e)}function rs(e){return null==e||"boolean"==typeof e?Yt(Rt):(0,i.kJ)(e)?Yt(Dt,null,e):"object"==typeof e?null===e.el?e:Zt(e):Yt(Mt,null,String(e))}function is(e){return null===e.el?e:Zt(e)}function ns(e,t){let s=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,i.kJ)(t))s=16;else if("object"==typeof t){if(1&r||64&r){const s=t.default;return void(s&&(s._c&&re(1),ns(e,s()),s._c&&re(-1)))}{s=32;const r=t._;r||Wt in t?3===r&&H&&(1024&H.vnode.patchFlag?(t._=2,e.patchFlag|=1024):t._=1):t._ctx=H}}else(0,i.mf)(t)?(t={default:t,_ctx:H},s=32):(t=String(t),64&r?(s=16,t=[es(t)]):s=8);e.children=t,e.shapeFlag|=s}function as(...e){const t=(0,i.l7)({},e[0]);for(let s=1;s<e.length;s++){const r=e[s];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,i.C_)([t.class,r.class]));else if("style"===e)t.style=(0,i.j5)([t.style,r.style]);else if((0,i.F7)(e)){const s=t[e],i=r[e];s!==i&&(t[e]=s?[].concat(s,r[e]):i)}else""!==e&&(t[e]=r[e])}return t}function os(e,t){if(ws){let s=ws.provides;const r=ws.parent&&ws.parent.provides;r===s&&(s=ws.provides=Object.create(r)),s[e]=t}else 0}function cs(e,t,s=!1){const r=ws||H;if(r){const n=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return s&&(0,i.mf)(t)?t():t}else 0}let ls=!1;function hs(e,t,s=[],n=[],a=[],o=!1){const{mixins:c,extends:l,data:h,computed:p,methods:u,watch:d,provide:m,inject:f,components:y,directives:x,beforeMount:g,mounted:b,beforeUpdate:P,updated:T,activated:v,deactivated:w,beforeDestroy:A,beforeUnmount:E,destroyed:S,unmounted:C,render:k,renderTracked:N,renderTriggered:I,errorCaptured:_,expose:L}=t,D=e.proxy,M=e.ctx,R=e.appContext.mixins;o&&k&&e.render===i.dG&&(e.render=k),o||(ls=!0,ps("beforeCreate","bc",t,e,R),ls=!1,ms(e,R,s,n,a)),l&&hs(e,l,s,n,a,!0),c&&ms(e,c,s,n,a);if(f)if((0,i.kJ)(f))for(let e=0;e<f.length;e++){const t=f[e];M[t]=cs(t)}else for(const e in f){const t=f[e];(0,i.Kn)(t)?M[e]=cs(t.from||e,t.default,!0):M[e]=cs(t)}if(u)for(const e in u){const t=u[e];(0,i.mf)(t)&&(M[e]=t.bind(D))}if(o?h&&s.push(h):(s.length&&s.forEach((t=>fs(e,t,D))),h&&fs(e,h,D)),p)for(const e in p){const t=p[e];0;const s=Rs({get:(0,i.mf)(t)?t.bind(D,D):(0,i.mf)(t.get)?t.get.bind(D,D):i.dG,set:!(0,i.mf)(t)&&(0,i.mf)(t.set)?t.set.bind(D):i.dG});Object.defineProperty(M,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(d&&n.push(d),!o&&n.length&&n.forEach((e=>{for(const t in e)ys(e[t],M,D,t)})),m&&a.push(m),!o&&a.length&&a.forEach((e=>{const t=(0,i.mf)(e)?e.call(D):e;for(const e in t)os(e,t[e])})),o&&(y&&(0,i.l7)(e.components||(e.components=(0,i.l7)({},e.type.components)),y),x&&(0,i.l7)(e.directives||(e.directives=(0,i.l7)({},e.type.directives)),x)),o||ps("created","c",t,e,R),g&&Pe(g.bind(D)),b&&Te(b.bind(D)),P&&ve(P.bind(D)),T&&we(T.bind(D)),v&&We(v.bind(D)),w&&Ge(w.bind(D)),_&&ke(_.bind(D)),N&&Ce(N.bind(D)),I&&Se(I.bind(D)),E&&Ae(E.bind(D)),C&&Ee(C.bind(D)),(0,i.kJ)(L))if(o)0;else if(L.length){const t=e.exposed||(e.exposed=(0,r.WL)({}));L.forEach((e=>{t[e]=(0,r.Vh)(D,e)}))}else e.exposed||(e.exposed=i.kT)}function ps(e,t,s,r,i){ds(e,t,i,r);const{extends:n,mixins:a}=s;n&&us(e,t,n,r),a&&ds(e,t,a,r);const o=s[e];o&&h(o.bind(r.proxy),r,t)}function us(e,t,s,r){s.extends&&us(e,t,s.extends,r);const i=s[e];i&&h(i.bind(r.proxy),r,t)}function ds(e,t,s,r){for(let i=0;i<s.length;i++){const n=s[i].mixins;n&&ds(e,t,n,r);const a=s[i][e];a&&h(a.bind(r.proxy),r,t)}}function ms(e,t,s,r,i){for(let n=0;n<t.length;n++)hs(e,t[n],s,r,i,!0)}function fs(e,t,s){const n=t.call(s,s);(0,i.Kn)(n)&&(e.data===i.kT?e.data=(0,r.qj)(n):(0,i.l7)(e.data,n))}function ys(e,t,s,r){const n=r.includes(".")?function(e,t){const s=t.split(".");return()=>{let t=e;for(let e=0;e<s.length&&t;e++)t=t[s[e]];return t}}(s,r):()=>s[r];if((0,i.HD)(e)){const s=t[e];(0,i.mf)(s)&&_e(n,s)}else if((0,i.mf)(e))_e(n,e.bind(s));else if((0,i.Kn)(e))if((0,i.kJ)(e))e.forEach((e=>ys(e,t,s,r)));else{const r=(0,i.mf)(e.handler)?e.handler.bind(s):t[e.handler];(0,i.mf)(r)&&_e(n,r,e)}else 0}function xs(e,t,s){const r=s.appContext.config.optionMergeStrategies,{mixins:n,extends:a}=t;a&&xs(e,a,s),n&&n.forEach((t=>xs(e,t,s)));for(const n in t)r&&(0,i.RI)(r,n)?e[n]=r[n](e[n],t[n],s.proxy,n):e[n]=t[n]}const gs=(0,i.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>e.parent&&e.parent.proxy,$root:e=>e.root&&e.root.proxy,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{__merged:s,mixins:r,extends:i}=t;if(s)return s;const n=e.appContext.mixins;if(!n.length&&!r&&!i)return t;const a={};return n.forEach((t=>xs(a,t,e))),xs(a,t,e),t.__merged=a}(e):e.type,$forceUpdate:e=>()=>S(e.update),$nextTick:e=>E.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?De.bind(e):i.dG}),bs={get({_:e},t){const{ctx:s,setupState:n,data:a,props:o,accessCache:c,type:l,appContext:h}=e;if("__v_skip"===t)return!0;let p;if("$"!==t[0]){const r=c[t];if(void 0!==r)switch(r){case 0:return n[t];case 1:return a[t];case 3:return s[t];case 2:return o[t]}else{if(n!==i.kT&&(0,i.RI)(n,t))return c[t]=0,n[t];if(a!==i.kT&&(0,i.RI)(a,t))return c[t]=1,a[t];if((p=e.propsOptions[0])&&(0,i.RI)(p,t))return c[t]=2,o[t];if(s!==i.kT&&(0,i.RI)(s,t))return c[t]=3,s[t];__VUE_OPTIONS_API__&&ls||(c[t]=4)}}const u=gs[t];let d,m;return u?("$attrs"===t&&(0,r.j)(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:s!==i.kT&&(0,i.RI)(s,t)?(c[t]=3,s[t]):(m=h.config.globalProperties,(0,i.RI)(m,t)?m[t]:void 0)},set({_:e},t,s){const{data:r,setupState:n,ctx:a}=e;if(n!==i.kT&&(0,i.RI)(n,t))n[t]=s;else if(r!==i.kT&&(0,i.RI)(r,t))r[t]=s;else if(t in e.props)return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:n,propsOptions:a}},o){let c;return void 0!==s[o]||e!==i.kT&&(0,i.RI)(e,o)||t!==i.kT&&(0,i.RI)(t,o)||(c=a[0])&&(0,i.RI)(c,o)||(0,i.RI)(r,o)||(0,i.RI)(gs,o)||(0,i.RI)(n.config.globalProperties,o)}};const Ps=(0,i.l7)({},bs,{get(e,t){if(t!==Symbol.unscopables)return bs.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,i.e1)(t)});const Ts=ot();let vs=0;let ws=null;const As=()=>ws||H,Es=e=>{ws=e};let Ss,Cs=!1;function ks(e,t,s){(0,i.mf)(t)?e.render=t:(0,i.Kn)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=(0,r.WL)(t)),Is(e)}function Ns(e){Ss=e}function Is(e,t){const s=e.type;e.render||(Ss&&s.template&&!s.render&&(s.render=Ss(s.template,{isCustomElement:e.appContext.config.isCustomElement,delimiters:s.delimiters})),e.render=s.render||i.dG,e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ps))),__VUE_OPTIONS_API__&&(ws=e,hs(e,s),ws=null)}function _s(e){ws&&(ws.effects||(ws.effects=[])).push(e)}const Ls=/(?:^|[-_])(\w)/g;function Ds(e,t,s=!1){let r=(0,i.mf)(t)&&t.displayName||t.name;if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}if(!r&&e&&e.parent){const s=e=>{for(const s in e)if(e[s]===t)return s};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?r.replace(Ls,(e=>e.toUpperCase())).replace(/[-_]/g,""):s?"App":"Anonymous"}function Ms(e){return(0,i.mf)(e)&&"__vccOpts"in e}function Rs(e){const t=(0,r.Fl)(e);return _s(t.effect),t}function Os(e){return(0,i.mf)(e)?{setup:e,name:e.name}:e}function Fs(e){(0,i.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:a=200,timeout:o,suspensible:c=!0,onError:l}=e;let h,u=null,d=0;const m=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,s)=>{l(e,(()=>t((d++,u=null,m()))),(()=>s(e)),d+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),h=t,t))))};return Os({__asyncLoader:m,name:"AsyncComponentWrapper",setup(){const e=ws;if(h)return()=>Bs(h,e);const t=t=>{u=null,p(t,e,13,!n)};if(c&&e.suspense)return m().then((t=>()=>Bs(t,e))).catch((e=>(t(e),()=>n?Yt(n,{error:e}):null)));const i=(0,r.iH)(!1),l=(0,r.iH)(),d=(0,r.iH)(!!a);return a&&setTimeout((()=>{d.value=!1}),a),null!=o&&setTimeout((()=>{if(!i.value&&!l.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),l.value=e}}),o),m().then((()=>{i.value=!0})).catch((e=>{t(e),l.value=e})),()=>i.value&&h?Bs(h,e):l.value&&n?Yt(n,{error:l.value}):s&&!d.value?Yt(s):void 0}})}function Bs(e,{vnode:{props:t,children:s}}){return Yt(e,t,s)}function Us(e){return null}function js(e){return null}function Vs(){return As().setupContext}function qs(e,t,s){const r=arguments.length;return 2===r?(0,i.Kn)(t)&&!(0,i.kJ)(t)?zt(t)?Yt(e,null,[t]):Yt(e,t):Yt(e,null,t):(r>3?s=Array.prototype.slice.call(arguments,2):3===r&&zt(s)&&(s=[s]),Yt(e,t,s))}const Hs=Symbol(""),$s=()=>{{const e=cs(Hs);return e||a("Server rendering context not provided. Make sure to only call useSsrContext() conditionally in the server build."),e}};function zs(){return void 0}function Ks(e,t){let s;if((0,i.kJ)(e)||(0,i.HD)(e)){s=new Array(e.length);for(let r=0,i=e.length;r<i;r++)s[r]=t(e[r],r)}else if("number"==typeof e){0,s=new Array(e);for(let r=0;r<e;r++)s[r]=t(r+1,r)}else if((0,i.Kn)(e))if(e[Symbol.iterator])s=Array.from(e,t);else{const r=Object.keys(e);s=new Array(r.length);for(let i=0,n=r.length;i<n;i++){const n=r[i];s[i]=t(e[n],n,i)}}else s=[];return s}function Js(e){const t={};for(const s in e)t[(0,i.hR)(s)]=e[s];return t}function Ws(e,t){for(let s=0;s<t.length;s++){const r=t[s];if((0,i.kJ)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e}const Gs="3.0.3",Xs=null},963:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BaseTransition:()=>i.P$,Comment:()=>i.sv,Fragment:()=>i.HY,KeepAlive:()=>i.Ob,Static:()=>i.qG,Suspense:()=>i.n4,Teleport:()=>i.lR,Text:()=>i.xv,callWithAsyncErrorHandling:()=>i.$d,callWithErrorHandling:()=>i.KU,camelize:()=>i._A,capitalize:()=>i.kC,cloneVNode:()=>i.Ho,computed:()=>i.Fl,createBlock:()=>i.j4,createCommentVNode:()=>i.ry,createHydrationRenderer:()=>i.Eo,createRenderer:()=>i.Us,createSlots:()=>i.Nv,createStaticVNode:()=>i.uE,createTextVNode:()=>i.Uk,createVNode:()=>i.Wm,customRef:()=>i.ZM,defineAsyncComponent:()=>i.RC,defineComponent:()=>i.aZ,defineEmit:()=>i.zX,defineProps:()=>i.MW,devtools:()=>i.mW,getCurrentInstance:()=>i.FN,getTransitionRawChildren:()=>i.Q6,h:()=>i.h,handleError:()=>i.S3,initCustomFormatter:()=>i.Mr,inject:()=>i.f3,isProxy:()=>i.X3,isReactive:()=>i.PG,isReadonly:()=>i.$y,isRef:()=>i.dq,isVNode:()=>i.lA,markRaw:()=>i.Xl,mergeProps:()=>i.dG,nextTick:()=>i.Y3,onActivated:()=>i.dl,onBeforeMount:()=>i.wF,onBeforeUnmount:()=>i.Jd,onBeforeUpdate:()=>i.Xn,onDeactivated:()=>i.se,onErrorCaptured:()=>i.d1,onMounted:()=>i.bv,onRenderTracked:()=>i.bT,onRenderTriggered:()=>i.Yq,onUnmounted:()=>i.Ah,onUpdated:()=>i.ic,openBlock:()=>i.wg,popScopeId:()=>i.Cn,provide:()=>i.JJ,proxyRefs:()=>i.WL,pushScopeId:()=>i.dD,queuePostFlushCb:()=>i.qb,reactive:()=>i.qj,readonly:()=>i.OT,ref:()=>i.iH,registerRuntimeCompiler:()=>i.Y1,renderList:()=>i.Ko,renderSlot:()=>i.WI,resolveComponent:()=>i.up,resolveDirective:()=>i.Q2,resolveDynamicComponent:()=>i.LL,resolveTransitionHooks:()=>i.U2,setBlockTracking:()=>i.qZ,setDevtoolsHook:()=>i.ec,setTransitionHooks:()=>i.nK,shallowReactive:()=>i.Um,shallowReadonly:()=>i.YS,shallowRef:()=>i.XI,ssrContextKey:()=>i.Uc,ssrUtils:()=>i.G,toDisplayString:()=>i.zw,toHandlerKey:()=>i.hR,toHandlers:()=>i.mx,toRaw:()=>i.IU,toRef:()=>i.Vh,toRefs:()=>i.BK,transformVNodeArgs:()=>i.C3,triggerRef:()=>i.oR,unref:()=>i.SU,useContext:()=>i.qp,useSSRContext:()=>i.Zq,useTransitionState:()=>i.Y8,version:()=>i.i8,warn:()=>i.ZK,watch:()=>i.YP,watchEffect:()=>i.m0,withCtx:()=>i.w5,withDirectives:()=>i.wy,withScopeId:()=>i.HX,Transition:()=>N,TransitionGroup:()=>H,createApp:()=>Pe,createSSRApp:()=>Te,hydrate:()=>be,render:()=>ge,useCssModule:()=>A,useCssVars:()=>E,vModelCheckbox:()=>Y,vModelDynamic:()=>ie,vModelRadio:()=>Z,vModelSelect:()=>ee,vModelText:()=>X,vShow:()=>pe,withKeys:()=>he,withModifiers:()=>ce});var r=s(577),i=s(252),n=s(262);const a="http://www.w3.org/2000/svg",o="undefined"!=typeof document?document:null;let c,l;const h={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s)=>t?o.createElementNS(a,e):o.createElement(e,s?{is:s}:void 0),createText:e=>o.createTextNode(e),createComment:e=>o.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>o.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode:e=>e.cloneNode(!0),insertStaticContent(e,t,s,r){const i=r?l||(l=o.createElementNS(a,"svg")):c||(c=o.createElement("div"));i.innerHTML=e;const n=i.firstChild;let p=n,u=p;for(;p;)u=p,h.insert(p,t,s),p=i.firstChild;return[n,u]}};const p=/\s*!important$/;function u(e,t,s){if((0,r.kJ)(s))s.forEach((s=>u(e,t,s)));else if(t.startsWith("--"))e.setProperty(t,s);else{const i=function(e,t){const s=m[t];if(s)return s;let i=(0,r._A)(t);if("filter"!==i&&i in e)return m[t]=i;i=(0,r.kC)(i);for(let s=0;s<d.length;s++){const r=d[s]+i;if(r in e)return m[t]=r}return t}(e,t);p.test(s)?e.setProperty((0,r.rs)(i),s.replace(p,""),"important"):e[i]=s}}const d=["Webkit","Moz","ms"],m={};const f="http://www.w3.org/1999/xlink";let y=Date.now;"undefined"!=typeof document&&y()>document.createEvent("Event").timeStamp&&(y=()=>performance.now());let x=0;const g=Promise.resolve(),b=()=>{x=0};function P(e,t,s,r){e.addEventListener(t,s,r)}function T(e,t,s,n,a=null){const o=e._vei||(e._vei={}),c=o[t];if(n&&c)c.value=n;else{const[s,l]=function(e){let t;if(v.test(e)){let s;for(t={};s=e.match(v);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e.slice(2).toLowerCase(),t]}(t);if(n){P(e,s,o[t]=function(e,t){const s=e=>{(e.timeStamp||y())>=s.attached-1&&(0,i.$d)(function(e,t){if((0,r.kJ)(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,s.value),t,5,[e])};return s.value=e,s.attached=(()=>x||(g.then(b),x=y()))(),s}(n,a),l)}else c&&(!function(e,t,s,r){e.removeEventListener(t,s,r)}(e,s,c,l),o[t]=void 0)}}const v=/(?:Once|Passive|Capture)$/;const w=/^on[a-z]/;function A(e="$style"){{const t=(0,i.FN)();if(!t)return r.kT;const s=t.type.__cssModules;if(!s)return r.kT;const n=s[e];return n||r.kT}}function E(e){const t=(0,i.FN)();if(!t)return;const s=()=>S(t.subTree,e(t.proxy));(0,i.bv)((()=>(0,i.m0)(s,{flush:"post"}))),(0,i.ic)(s)}function S(e,t){if(128&e.shapeFlag){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push((()=>{S(s.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el){const s=e.el.style;for(const e in t)s.setProperty(`--${e}`,t[e])}else e.type===i.HY&&e.children.forEach((e=>S(e,t)))}const C="transition",k="animation",N=(e,{slots:t})=>(0,i.h)(i.P$,L(e),t);N.displayName="Transition";const I={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_=N.props=(0,r.l7)({},i.P$.props,I);function L(e){let{name:t="v",type:s,css:i=!0,duration:n,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:c=`${t}-enter-to`,appearFromClass:l=a,appearActiveClass:h=o,appearToClass:p=c,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:d=`${t}-leave-active`,leaveToClass:m=`${t}-leave-to`}=e;const f={};for(const t in e)t in I||(f[t]=e[t]);if(!i)return f;const y=function(e){if(null==e)return null;if((0,r.Kn)(e))return[D(e.enter),D(e.leave)];{const t=D(e);return[t,t]}}(n),x=y&&y[0],g=y&&y[1],{onBeforeEnter:b,onEnter:P,onEnterCancelled:T,onLeave:v,onLeaveCancelled:w,onBeforeAppear:A=b,onAppear:E=P,onAppearCancelled:S=T}=f,C=(e,t,s)=>{R(e,t?p:c),R(e,t?h:o),s&&s()},k=(e,t)=>{R(e,m),R(e,d),t&&t()},N=e=>(t,r)=>{const i=e?E:P,n=()=>C(t,e,r);i&&i(t,n),O((()=>{R(t,e?l:a),M(t,e?p:c),i&&i.length>1||(x?setTimeout(n,x):F(t,s,n))}))};return(0,r.l7)(f,{onBeforeEnter(e){b&&b(e),M(e,o),M(e,a)},onBeforeAppear(e){A&&A(e),M(e,h),M(e,l)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){const r=()=>k(e,t);M(e,d),M(e,u),O((()=>{R(e,u),M(e,m),v&&v.length>1||(g?setTimeout(r,g):F(e,s,r))})),v&&v(e,r)},onEnterCancelled(e){C(e,!1),T&&T(e)},onAppearCancelled(e){C(e,!0),S&&S(e)},onLeaveCancelled(e){k(e),w&&w(e)}})}function D(e){return(0,r.He)(e)}function M(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function R(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:s}=e;s&&(s.delete(t),s.size||(e._vtc=void 0))}function O(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}function F(e,t,s){const{type:r,timeout:i,propCount:n}=B(e,t);if(!r)return s();const a=r+"end";let o=0;const c=()=>{e.removeEventListener(a,l),s()},l=t=>{t.target===e&&++o>=n&&c()};setTimeout((()=>{o<n&&c()}),i+1),e.addEventListener(a,l)}function B(e,t){const s=window.getComputedStyle(e),r=e=>(s[e]||"").split(", "),i=r("transitionDelay"),n=r("transitionDuration"),a=U(i,n),o=r("animationDelay"),c=r("animationDuration"),l=U(o,c);let h=null,p=0,u=0;t===C?a>0&&(h=C,p=a,u=n.length):t===k?l>0&&(h=k,p=l,u=c.length):(p=Math.max(a,l),h=p>0?a>l?C:k:null,u=h?h===C?n.length:c.length:0);return{type:h,timeout:p,propCount:u,hasTransform:h===C&&/\b(transform|all)(,|$)/.test(s.transitionProperty)}}function U(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,s)=>j(t)+j(e[s]))))}function j(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const V=new WeakMap,q=new WeakMap,H={name:"TransitionGroup",props:(0,r.l7)({},_,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=(0,i.FN)(),r=(0,i.Y8)();let a,o;return(0,i.ic)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,s){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));s.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:n}=B(r);return i.removeChild(r),n}(a[0].el,s.vnode.el,t))return;a.forEach($),a.forEach(z);const r=a.filter(K);document.body.offsetHeight,r.forEach((e=>{const s=e.el,r=s.style;M(s,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=s._moveCb=e=>{e&&e.target!==s||e&&!/transform$/.test(e.propertyName)||(s.removeEventListener("transitionend",i),s._moveCb=null,R(s,t))};s.addEventListener("transitionend",i)}))})),()=>{const c=(0,n.IU)(e),l=L(c),h=c.tag||i.HY;a=o,o=t.default?(0,i.Q6)(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&(0,i.nK)(t,(0,i.U2)(t,l,r,s))}if(a)for(let e=0;e<a.length;e++){const t=a[e];(0,i.nK)(t,(0,i.U2)(t,l,r,s)),V.set(t,t.el.getBoundingClientRect())}return(0,i.Wm)(h,null,o)}}};function $(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function z(e){q.set(e,e.el.getBoundingClientRect())}function K(e){const t=V.get(e),s=q.get(e),r=t.left-s.left,i=t.top-s.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}const J=e=>{const t=e.props["onUpdate:modelValue"];return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function W(e){e.target.composing=!0}function G(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const s=document.createEvent("HTMLEvents");s.initEvent(t,!0,!0),e.dispatchEvent(s)}(t,"input"))}const X={created(e,{modifiers:{lazy:t,trim:s,number:i}},n){e._assign=J(n);const a=i||"number"===e.type;P(e,t?"change":"input",(t=>{if(t.target.composing)return;let i=e.value;s?i=i.trim():a&&(i=(0,r.He)(i)),e._assign(i)})),s&&P(e,"change",(()=>{e.value=e.value.trim()})),t||(P(e,"compositionstart",W),P(e,"compositionend",G),P(e,"change",G))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{trim:s,number:i}},n){if(e._assign=J(n),e.composing)return;if(document.activeElement===e){if(s&&e.value.trim()===t)return;if((i||"number"===e.type)&&(0,r.He)(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Y={created(e,t,s){Q(e,t,s),e._assign=J(s),P(e,"change",(()=>{const t=e._modelValue,s=se(e),i=e.checked,n=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,s),a=-1!==e;if(i&&!a)n(t.concat(s));else if(!i&&a){const s=[...t];s.splice(e,1),n(s)}}else(0,r.DM)(t)?i?t.add(s):t.delete(s):n(re(e,i))}))},beforeUpdate(e,t,s){e._assign=J(s),Q(e,t,s)}};function Q(e,{value:t,oldValue:s},i){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,i.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(i.props.value):t!==s&&(e.checked=(0,r.WV)(t,re(e,!0)))}const Z={created(e,{value:t},s){e.checked=(0,r.WV)(t,s.props.value),e._assign=J(s),P(e,"change",(()=>{e._assign(se(e))}))},beforeUpdate(e,{value:t,oldValue:s},i){e._assign=J(i),t!==s&&(e.checked=(0,r.WV)(t,i.props.value))}},ee={created(e,{modifiers:{number:t}},s){P(e,"change",(()=>{const s=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>t?(0,r.He)(se(e)):se(e)));e._assign(e.multiple?s:s[0])})),e._assign=J(s)},mounted(e,{value:t}){te(e,t)},beforeUpdate(e,t,s){e._assign=J(s)},updated(e,{value:t}){te(e,t)}};function te(e,t){const s=e.multiple;if(!s||(0,r.kJ)(t)||(0,r.DM)(t)){for(let i=0,n=e.options.length;i<n;i++){const n=e.options[i],a=se(n);if(s)(0,r.kJ)(t)?n.selected=(0,r.hq)(t,a)>-1:n.selected=t.has(a);else if((0,r.WV)(se(n),t))return void(e.selectedIndex=i)}s||(e.selectedIndex=-1)}}function se(e){return"_value"in e?e._value:e.value}function re(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const ie={created(e,t,s){ne(e,t,s,null,"created")},mounted(e,t,s){ne(e,t,s,null,"mounted")},beforeUpdate(e,t,s,r){ne(e,t,s,r,"beforeUpdate")},updated(e,t,s,r){ne(e,t,s,r,"updated")}};function ne(e,t,s,r,i){let n;switch(e.tagName){case"SELECT":n=ee;break;case"TEXTAREA":n=X;break;default:switch(s.props&&s.props.type){case"checkbox":n=Y;break;case"radio":n=Z;break;default:n=X}}const a=n[i];a&&a(e,t,s,r)}const ae=["ctrl","shift","alt","meta"],oe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ae.some((s=>e[`${s}Key`]&&!t.includes(s)))},ce=(e,t)=>(s,...r)=>{for(let e=0;e<t.length;e++){const r=oe[t[e]];if(r&&r(s,t))return}return e(s,...r)},le={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},he=(e,t)=>s=>{if(!("key"in s))return;const i=(0,r.rs)(s.key);return t.some((e=>e===i||le[e]===i))?e(s):void 0},pe={beforeMount(e,{value:t},{transition:s}){e._vod="none"===e.style.display?"":e.style.display,s&&t?s.beforeEnter(e):ue(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:r}){!t!=!s&&(r?t?(r.beforeEnter(e),ue(e,!0),r.enter(e)):r.leave(e,(()=>{ue(e,!1)})):ue(e,t))},beforeUnmount(e,{value:t}){ue(e,t)}};function ue(e,t){e.style.display=t?e._vod:"none"}const de=(0,r.l7)({patchProp:(e,t,s,i,n=!1,a,o,c,l)=>{switch(t){case"class":!function(e,t,s){if(null==t&&(t=""),s)e.setAttribute("class",t);else{const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),e.className=t}}(e,i,n);break;case"style":!function(e,t,s){const i=e.style;if(s)if((0,r.HD)(s))t!==s&&(i.cssText=s);else{for(const e in s)u(i,e,s[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==s[e]&&u(i,e,"")}else e.removeAttribute("style")}(e,s,i);break;default:(0,r.F7)(t)?(0,r.tR)(t)||T(e,t,0,i,o):function(e,t,s,i){if(i)return"innerHTML"===t||!!(t in e&&w.test(t)&&(0,r.mf)(s));if("spellcheck"===t||"draggable"===t)return!1;if("form"===t&&"string"==typeof s)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if(w.test(t)&&(0,r.HD)(s))return!1;return t in e}(e,t,i,n)?function(e,t,s,r,i,n,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,n),void(e[t]=null==s?"":s);if("value"!==t||"PROGRESS"===e.tagName)if(""===s&&"boolean"==typeof e[t])e[t]=!0;else if(null==s&&"string"==typeof e[t])e[t]="",e.removeAttribute(t);else try{e[t]=s}catch(e){}else{e._value=s;const t=null==s?"":s;e.value!==t&&(e.value=t)}}(e,t,i,a,o,c,l):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,s,i){if(i&&t.startsWith("xlink:"))null==s?e.removeAttributeNS(f,t.slice(6,t.length)):e.setAttributeNS(f,t,s);else{const i=(0,r.Pq)(t);null==s||i&&!1===s?e.removeAttribute(t):e.setAttribute(t,i?"":s)}}(e,t,i,n))}},forcePatchProp:(e,t)=>"value"===t},h);let me,fe=!1;function ye(){return me||(me=(0,i.Us)(de))}function xe(){return me=fe?me:(0,i.Eo)(de),fe=!0,me}const ge=(...e)=>{ye().render(...e)},be=(...e)=>{xe().hydrate(...e)},Pe=(...e)=>{const t=ye().createApp(...e);const{mount:s}=t;return t.mount=e=>{const i=ve(e);if(!i)return;const n=t._component;(0,r.mf)(n)||n.render||n.template||(n.template=i.innerHTML),i.innerHTML="";const a=s(i);return i.removeAttribute("v-cloak"),i.setAttribute("data-v-app",""),a},t},Te=(...e)=>{const t=xe().createApp(...e);const{mount:s}=t;return t.mount=e=>{const t=ve(e);if(t)return s(t,!0)},t};function ve(e){if((0,r.HD)(e)){return document.querySelector(e)}return e}},577:(e,t,s)=>{"use strict";function r(e,t){const s=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)s[r[e]]=!0;return t?e=>!!s[e.toLowerCase()]:e=>!!s[e]}s.d(t,{Z6:()=>T,kT:()=>P,NO:()=>w,dG:()=>v,m:()=>i,_A:()=>W,kC:()=>Y,Nj:()=>te,l7:()=>C,E9:()=>ie,aU:()=>Z,RI:()=>I,rs:()=>X,ir:()=>ee,kJ:()=>_,mf:()=>R,e1:()=>n,eS:()=>d,S0:()=>$,_N:()=>L,tR:()=>S,Kn:()=>B,F7:()=>E,tI:()=>U,Gg:()=>z,aN:()=>m,DM:()=>D,Pq:()=>o,HD:()=>O,yk:()=>F,WB:()=>f,WV:()=>y,hq:()=>x,fY:()=>r,C_:()=>u,j5:()=>c,yL:()=>p,Od:()=>k,zw:()=>g,hR:()=>Q,He:()=>se,W7:()=>q});const i={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",1024:"DYNAMIC_SLOTS",512:"NEED_PATCH",[-1]:"HOISTED",[-2]:"BAIL"},n=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o=r(a);function c(e){if(_(e)){const t={};for(let s=0;s<e.length;s++){const r=e[s],i=c(O(r)?p(r):r);if(i)for(const e in i)t[e]=i[e]}return t}if(B(e))return e}const l=/;(?![^(]*\))/g,h=/:(.+)/;function p(e){const t={};return e.split(l).forEach((e=>{if(e){const s=e.split(h);s.length>1&&(t[s[0].trim()]=s[1].trim())}})),t}function u(e){let t="";if(O(e))t=e;else if(_(e))for(let s=0;s<e.length;s++)t+=u(e[s])+" ";else if(B(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const d=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),m=r("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),f=r("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr");function y(e,t){if(e===t)return!0;let s=M(e),r=M(t);if(s||r)return!(!s||!r)&&e.getTime()===t.getTime();if(s=_(e),r=_(t),s||r)return!(!s||!r)&&function(e,t){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=y(e[r],t[r]);return s}(e,t);if(s=B(e),r=B(t),s||r){if(!s||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const r=e.hasOwnProperty(s),i=t.hasOwnProperty(s);if(r&&!i||!r&&i||!y(e[s],t[s]))return!1}}return String(e)===String(t)}function x(e,t){return e.findIndex((e=>y(e,t)))}const g=e=>null==e?"":B(e)?JSON.stringify(e,b,2):String(e),b=(e,t)=>L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,s])=>(e[`${t} =>`]=s,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||_(t)||H(t)?t:String(t),P={},T=[],v=()=>{},w=()=>!1,A=/^on[^a-z]/,E=e=>A.test(e),S=e=>e.startsWith("onUpdate:"),C=Object.assign,k=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},N=Object.prototype.hasOwnProperty,I=(e,t)=>N.call(e,t),_=Array.isArray,L=e=>"[object Map]"===V(e),D=e=>"[object Set]"===V(e),M=e=>e instanceof Date,R=e=>"function"==typeof e,O=e=>"string"==typeof e,F=e=>"symbol"==typeof e,B=e=>null!==e&&"object"==typeof e,U=e=>B(e)&&R(e.then)&&R(e.catch),j=Object.prototype.toString,V=e=>j.call(e),q=e=>V(e).slice(8,-1),H=e=>"[object Object]"===V(e),$=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=r(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),K=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},J=/-(\w)/g,W=K((e=>e.replace(J,((e,t)=>t?t.toUpperCase():"")))),G=/\B([A-Z])/g,X=K((e=>e.replace(G,"-$1").toLowerCase())),Y=K((e=>e.charAt(0).toUpperCase()+e.slice(1))),Q=K((e=>e?`on${Y(e)}`:"")),Z=(e,t)=>e!==t&&(e==e||t==t),ee=(e,t)=>{for(let s=0;s<e.length;s++)e[s](t)},te=(e,t,s)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})},se=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let re;const ie=()=>re||(re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==s.g?s.g:{})},669:(e,t,s)=>{e.exports=s(609)},448:(e,t,s)=>{"use strict";var r=s(867),i=s(26),n=s(327),a=s(97),o=s(109),c=s(985),l=s(61);e.exports=function(e){return new Promise((function(t,h){var p=e.data,u=e.headers;r.isFormData(p)&&delete u["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",f=e.auth.password||"";u.Authorization="Basic "+btoa(m+":"+f)}var y=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),n(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var s="getAllResponseHeaders"in d?o(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:s,config:e,request:d};i(t,h,r),d=null}},d.onabort=function(){d&&(h(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){h(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),h(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var x=s(372),g=(e.withCredentials||c(y))&&e.xsrfCookieName?x.read(e.xsrfCookieName):void 0;g&&(u[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(u,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete u[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),h(e),d=null)})),void 0===p&&(p=null),d.send(p)}))}},609:(e,t,s)=>{"use strict";var r=s(867),i=s(849),n=s(321),a=s(185);function o(e){var t=new n(e),s=i(n.prototype.request,t);return r.extend(s,n.prototype,t),r.extend(s,t),s}var c=o(s(655));c.Axios=n,c.create=function(e){return o(a(c.defaults,e))},c.Cancel=s(263),c.CancelToken=s(972),c.isCancel=s(502),c.all=function(e){return Promise.all(e)},c.spread=s(713),e.exports=c,e.exports.default=c},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,s)=>{"use strict";var r=s(263);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var s=this;e((function(e){s.reason||(s.reason=new r(e),t(s.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,s)=>{"use strict";var r=s(867),i=s(327),n=s(782),a=s(572),o=s(185);function c(e){this.defaults=e,this.interceptors={request:new n,response:new n}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],s=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)s=s.then(t.shift(),t.shift());return s},c.prototype.getUri=function(e){return e=o(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,s){return this.request(r.merge(s||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,s,i){return this.request(r.merge(i||{},{method:e,url:t,data:s}))}})),e.exports=c},782:(e,t,s)=>{"use strict";var r=s(867);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},97:(e,t,s)=>{"use strict";var r=s(793),i=s(303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},61:(e,t,s)=>{"use strict";var r=s(481);e.exports=function(e,t,s,i,n){var a=new Error(e);return r(a,t,s,i,n)}},572:(e,t,s)=>{"use strict";var r=s(867),i=s(527),n=s(502),a=s(655);function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return o(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return n(t)||(o(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,s,r,i){return e.config=t,s&&(e.code=s),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){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}},e}},185:(e,t,s)=>{"use strict";var r=s(867);e.exports=function(e,t){t=t||{};var s={},i=["url","method","params","data"],n=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(s[e]=t[e])})),r.forEach(n,(function(i){r.isObject(t[i])?s[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?s[i]=t[i]:r.isObject(e[i])?s[i]=r.deepMerge(e[i]):void 0!==e[i]&&(s[i]=e[i])})),r.forEach(a,(function(r){void 0!==t[r]?s[r]=t[r]:void 0!==e[r]&&(s[r]=e[r])}));var o=i.concat(n).concat(a),c=Object.keys(t).filter((function(e){return-1===o.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?s[r]=t[r]:void 0!==e[r]&&(s[r]=e[r])})),s}},26:(e,t,s)=>{"use strict";var r=s(61);e.exports=function(e,t,s){var i=s.config.validateStatus;!i||i(s.status)?e(s):t(r("Request failed with status code "+s.status,s.config,null,s.request,s))}},527:(e,t,s)=>{"use strict";var r=s(867);e.exports=function(e,t,s){return r.forEach(s,(function(s){e=s(e,t)})),e}},655:(e,t,s)=>{"use strict";var r=s(867),i=s(16),n={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(o=s(448)),o),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(n)})),e.exports=c},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var s=new Array(arguments.length),r=0;r<s.length;r++)s[r]=arguments[r];return e.apply(t,s)}}},327:(e,t,s)=>{"use strict";var r=s(867);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,s){if(!t)return e;var n;if(s)n=s(t);else if(r.isURLSearchParams(t))n=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),n=a.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,s)=>{"use strict";var r=s(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,s,i,n,a){var o=[];o.push(e+"="+encodeURIComponent(t)),r.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),r.isString(i)&&o.push("path="+i),r.isString(n)&&o.push("domain="+n),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},985:(e,t,s)=>{"use strict";var r=s(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function i(e){var r=e;return t&&(s.setAttribute("href",r),r=s.href),s.setAttribute("href",r),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return e=i(window.location.href),function(t){var s=r.isString(t)?i(t):t;return s.protocol===e.protocol&&s.host===e.host}}():function(){return!0}},16:(e,t,s)=>{"use strict";var r=s(867);e.exports=function(e,t){r.forEach(e,(function(s,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=s,delete e[r])}))}},109:(e,t,s)=>{"use strict";var r=s(867),i=["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"];e.exports=function(e){var t,s,n,a={};return e?(r.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=r.trim(e.substr(0,n)).toLowerCase(),s=r.trim(e.substr(n+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([s]):a[t]?a[t]+", "+s:s}})),a):a}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},867:(e,t,s)=>{"use strict";var r=s(849),i=Object.prototype.toString;function n(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function o(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),n(e))for(var s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:n,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return o(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function s(s,r){"object"==typeof t[r]&&"object"==typeof s?t[r]=e(t[r],s):t[r]=s}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],s);return t},deepMerge:function e(){var t={};function s(s,r){"object"==typeof t[r]&&"object"==typeof s?t[r]=e(t[r],s):t[r]="object"==typeof s?e({},s):s}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],s);return t},extend:function(e,t,s){return l(t,(function(t,i){e[i]=s&&"function"==typeof t?r(t,s):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}}}]);