/*! For license information please see app.js.LICENSE.txt */ (()=>{var e,t={3834:(e,t)=>{"use strict";const r=!0,n=!0,s=!0,i=!0;class o{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 a=new Map;function c(e,t={}){t.keyword=e;const r=new o(e,t);return a.set(e,r),r}function l(e,t){return new o(e,{beforeExpr:r,binop:t})}const u={num:new o("num",{startsExpr:n}),bigint:new o("bigint",{startsExpr:n}),decimal:new o("decimal",{startsExpr:n}),regexp:new o("regexp",{startsExpr:n}),string:new o("string",{startsExpr:n}),name:new o("name",{startsExpr:n}),eof:new o("eof"),bracketL:new o("[",{beforeExpr:r,startsExpr:n}),bracketHashL:new o("#[",{beforeExpr:r,startsExpr:n}),bracketBarL:new o("[|",{beforeExpr:r,startsExpr:n}),bracketR:new o("]"),bracketBarR:new o("|]"),braceL:new o("{",{beforeExpr:r,startsExpr:n}),braceBarL:new o("{|",{beforeExpr:r,startsExpr:n}),braceHashL:new o("#{",{beforeExpr:r,startsExpr:n}),braceR:new o("}"),braceBarR:new o("|}"),parenL:new o("(",{beforeExpr:r,startsExpr:n}),parenR:new o(")"),comma:new o(",",{beforeExpr:r}),semi:new o(";",{beforeExpr:r}),colon:new o(":",{beforeExpr:r}),doubleColon:new o("::",{beforeExpr:r}),dot:new o("."),question:new o("?",{beforeExpr:r}),questionDot:new o("?."),arrow:new o("=>",{beforeExpr:r}),template:new o("template"),ellipsis:new o("...",{beforeExpr:r}),backQuote:new o("`",{startsExpr:n}),dollarBraceL:new o("${",{beforeExpr:r,startsExpr:n}),at:new o("@"),hash:new o("#",{startsExpr:n}),interpreterDirective:new o("#!..."),eq:new o("=",{beforeExpr:r,isAssign:true}),assign:new o("_=",{beforeExpr:r,isAssign:true}),incDec:new o("++/--",{prefix:i,postfix:!0,startsExpr:n}),bang:new o("!",{beforeExpr:r,prefix:i,startsExpr:n}),tilde:new o("~",{beforeExpr:r,prefix:i,startsExpr:n}),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 o("+/-",{beforeExpr:r,binop:9,prefix:i,startsExpr:n}),modulo:new o("%",{beforeExpr:r,binop:10,startsExpr:n}),star:new o("*",{binop:10}),slash:l("/",10),exponent:new o("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:c("break"),_case:c("case",{beforeExpr:r}),_catch:c("catch"),_continue:c("continue"),_debugger:c("debugger"),_default:c("default",{beforeExpr:r}),_do:c("do",{isLoop:s,beforeExpr:r}),_else:c("else",{beforeExpr:r}),_finally:c("finally"),_for:c("for",{isLoop:s}),_function:c("function",{startsExpr:n}),_if:c("if"),_return:c("return",{beforeExpr:r}),_switch:c("switch"),_throw:c("throw",{beforeExpr:r,prefix:i,startsExpr:n}),_try:c("try"),_var:c("var"),_const:c("const"),_while:c("while",{isLoop:s}),_with:c("with"),_new:c("new",{beforeExpr:r,startsExpr:n}),_this:c("this",{startsExpr:n}),_super:c("super",{startsExpr:n}),_class:c("class",{startsExpr:n}),_extends:c("extends",{beforeExpr:r}),_export:c("export"),_import:c("import",{startsExpr:n}),_null:c("null",{startsExpr:n}),_true:c("true",{startsExpr:n}),_false:c("false",{startsExpr:n}),_in:c("in",{beforeExpr:r,binop:7}),_instanceof:c("instanceof",{beforeExpr:r,binop:7}),_typeof:c("typeof",{beforeExpr:r,prefix:i,startsExpr:n}),_void:c("void",{beforeExpr:r,prefix:i,startsExpr:n}),_delete:c("delete",{beforeExpr:r,prefix:i,startsExpr:n})},h=/\r\n?|[\n\u2028\u2029]/,p=new RegExp(h.source,"g");function d(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const f=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function m(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 g{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 v(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 x(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}class w{constructor(e,t,r,n){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n}}const k={braceStatement:new w("{",!1),braceExpression:new w("{",!0),recordExpression:new w("#{",!0),templateQuasi:new w("${",!1),parenStatement:new w("(",!1),parenExpression:new w("(",!0),template:new w("`",!0,!0,(e=>e.readTmplToken())),functionExpression:new w("function",!0),functionStatement:new w("function",!1)};u.parenR.updateContext=u.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===k.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},u.name.updateContext=function(e){let t=!1;e!==u.dot&&("of"!==this.state.value||this.state.exprAllowed||e===u._function||e===u._class||(t=!0)),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},u.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?k.braceStatement:k.braceExpression),this.state.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.state.context.push(k.templateQuasi),this.state.exprAllowed=!0},u.parenL.updateContext=function(e){const t=e===u._if||e===u._for||e===u._with||e===u._while;this.state.context.push(t?k.parenStatement:k.parenExpression),this.state.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u.semi||e===u._else||e===u._return&&this.hasPrecedingLineBreak()||(e===u.colon||e===u.braceL)&&this.curContext()===k.b_stat?this.state.context.push(k.functionStatement):this.state.context.push(k.functionExpression),this.state.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===k.template?this.state.context.pop():this.state.context.push(k.template),this.state.exprAllowed=!1},u.braceHashL.updateContext=function(){this.state.context.push(k.recordExpression),this.state.exprAllowed=!0};let P="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",T="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const S=new RegExp("["+P+"]"),C=new RegExp("["+P+T+"]");P=T=null;const A=[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],E=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,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 _(e,t){let r=65536;for(let n=0,s=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function N(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&S.test(String.fromCharCode(e)):_(e,A)))}function I(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&C.test(String.fromCharCode(e)):_(e,A)||_(e,E))))}const O=["implements","interface","let","package","private","protected","public","static","yield"],D=["eval","arguments"],L=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"]),M=new Set(O),F=new Set(D);function j(e,t){return t&&"await"===e||"enum"===e}function R(e,t){return j(e,t)||M.has(e)}function B(e){return F.has(e)}function V(e,t){return R(e,t)||B(e)}function U(e){return L.has(e)}const H=/^in(stanceof)?$/;const q=128,$=128,z=1024,G=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 ` async () => {}`, use `async () => {}`",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 K(e){return(e.type===u.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 re(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function ne(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return ne(e.object)+"."+ne(e.property);throw new Error("Node had unexpected type: "+e.type)}k.j_oTag=new w("...",!0,!0),u.jsxName=new o("jsxName"),u.jsxText=new o("jsxText",{beforeExpr:!0}),u.jsxTagStart=new o("jsxTagStart",{startsExpr:!0}),u.jsxTagEnd=new o("jsxTagEnd"),u.jsxTagStart.updateContext=function(){this.state.context.push(k.j_expr),this.state.context.push(k.j_oTag),this.state.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===k.j_oTag&&e===u.slash||t===k.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===k.j_expr):this.state.exprAllowed=!0};class se{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class ie{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 se(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,r){let n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.push(e):n.lexical.push(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(let s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,e,t,r),n.var.push(e),this.maybeExportDefined(n,e),!(131&n.flags));--s);this.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.raise(n,b.VarRedeclaration,t)}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?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 oe extends se{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class ae extends ie{createScope(e){return new oe(e)}declareName(e,t,r){const n=this.currentScope();if(t&z)return this.maybeExportDefined(n,e),void n.exportOnlyBindings.push(e);super.declareName(...arguments),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),n.types.push(e)),256&t&&n.enums.push(e),512&t&&n.constEnums.push(e),t&$&&n.classes.push(e)}isRedeclaredInScope(e,t,r){if(e.enums.indexOf(t)>-1){if(256&r){return!!(512&r)!==e.constEnums.indexOf(t)>-1}return!0}return r&$&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(1&r):!!(2&r&&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 ue(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function he(e){if(!e)throw new Error("Assert fail")}const pe=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"});u.placeholder=new o("%%",{startsExpr:!0});function de(e,t){return e.some((e=>Array.isArray(e)?e[0]===t:e===t))}function fe(e,t,r){const n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)?n[1][r]:null}const me=["minimal","smart","fsharp"],ye=["hash","bar"];const ge={estree:e=>class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const n=this.estreeParseLiteral(r);return n.regex={pattern:e,flags:t},n}estreeParseBigIntLiteral(e){const t="undefined"!=typeof BigInt?BigInt(e):null,r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}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,r=this.startNodeAt(e.start,e.loc.start),n=this.startNodeAt(t.start,t.loc.start);return n.value=t.value,n.raw=t.extra.raw,r.expression=this.finishNodeAt(n,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){x(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}checkLVal(e,t,...r){switch(e.type){case"ObjectPattern":e.properties.forEach((e=>{this.checkLVal("Property"===e.type?e.value:e,"object destructuring pattern",...r)}));break;default:super.checkLVal(e,t,...r)}}checkProto(e,t,r,n){e.method||super.checkProto(e,t,r,n)}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),r=e.expression.value;return t.value.value=r,t}parseBlockBody(e,t,r,n){super.parseBlockBody(e,t,r,n);const s=e.directives.map((e=>this.directiveToStmt(e)));e.body=s.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,s,i){this.parseMethod(t,r,n,s,i,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case u.num:case u.string:return this.estreeParseLiteral(this.state.value);case u.regexp:return this.estreeParseRegExpLiteral(this.state.value);case u.bigint:return this.estreeParseBigIntLiteral(this.state.value);case u.decimal:return this.estreeParseDecimalLiteral(this.state.value);case u._null:return this.estreeParseLiteral(null);case u._true:return this.estreeParseLiteral(!0);case u._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseLiteral(e,t,r,n){const s=super.parseLiteral(e,t,r,n);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,s,i,o=!1){let a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,r,n,s,i,o),a.type="FunctionExpression",delete a.kind,e.value=a,i="ClassMethod"===i?"MethodDefinition":i,this.finishNode(e,i)}parseObjectMethod(e,t,r,n,s){const i=super.parseObjectMethod(e,t,r,n,s);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,r,n,s){const i=super.parseObjectProperty(e,t,r,n,s);return i&&(i.kind="init",i.type="Property"),i}toAssignable(e,t=!1){return x(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,r,n,s){const i=super.parseSubscript(e,t,r,n,s);if(s.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),s.stop){const e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}},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 r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(u.jsxTagStart)):super.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:d(r)?(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 r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedString);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):d(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(u.string,t)}jsxReadEntity(){let e,t="",r=0,n=this.input[this.state.pos];const s=++this.state.pos;for(;this.state.posclass 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!==u.string&&e!==u.semi&&e!==u.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||u.colon);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(u.modulo);const n=this.state.startLoc;return this.expectContextual("checks"),t.line===n.line&&t.column===n.column-1||this.raise(r,J.UnexpectedSpaceBetweenModuloChecks),this.eat(u.parenL)?(e.value=this.parseExpression(),this.expect(u.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(u.colon);let t=null,r=null;return this.match(u.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(u.modulo)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(u.parenL);const s=this.flowParseFunctionTypeParams();return r.params=s.params,r.rest=s.rest,this.expect(u.parenR),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(u._class))return this.flowParseDeclareClass(e);if(this.match(u._function))return this.flowParseDeclareFunction(e);if(this.match(u._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(u.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(u._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(u.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(u.braceL);!this.match(u.braceR);){let e=this.startNode();this.match(u._import)?(this.next(),this.isContextual("type")||this.match(u._typeof)||this.raise(this.state.lastTokStart,J.InvalidNonTypeImportInDeclareModule),this.parseImport(e)):(this.expectContextual("declare",J.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(u.braceR),this.finishNode(t,"BlockStatement");let n=null,s=!1;return r.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&&(s&&this.raise(e.start,J.DuplicateDeclareModuleExports),"ES"===n&&this.raise(e.start,J.AmbiguousDeclareModuleKind),n="CommonJS",s=!0):("CommonJS"===n&&this.raise(e.start,J.AmbiguousDeclareModuleKind),n="ES")})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(u._export),this.eat(u._default))return this.match(u._function)||this.match(u._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u._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(u._var)||this.match(u._function)||this.match(u._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u.star)||this.match(u.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(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(u.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(u.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,r){G.has(e)&&this.raise(t,r?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(u.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(u.colon)&&(e.supertype=this.flowParseTypeInitialiser(u.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(u.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,r=this.startNode(),n=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return r.name=s.name,r.variance=n,r.bound=s.typeAnnotation,this.match(u.eq)?(this.eat(u.eq),r.default=this.flowParseType()):e&&this.raise(t,J.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.isRelational(">")||this.expect(u.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 r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(u.comma);return this.state.noAnonFunctionType=r,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(u.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(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,this.lookahead().type===u.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(u.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(u.bracketR),this.expect(u.bracketR),this.isRelational("<")||this.match(u.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(u.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(u.parenL);!this.match(u.parenR)&&!this.match(u.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(u.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:s}){const i=this.state.inType;this.state.inType=!0;const o=this.startNode();let a,c;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let l=!1;for(t&&this.match(u.braceBarL)?(this.expect(u.braceBarL),a=u.braceBarR,c=!0):(this.expect(u.braceL),a=u.braceR,c=!1),o.exact=c;!this.match(a);){let t=!1,i=null,a=null;const h=this.startNode();if(n&&this.isContextual("proto")){const t=this.lookahead();t.type!==u.colon&&t.type!==u.question&&(this.next(),i=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==u.colon&&e.type!==u.question&&(this.next(),t=!0)}const p=this.flowParseVariance();if(this.eat(u.bracketL))null!=i&&this.unexpected(i),this.eat(u.bracketL)?(p&&this.unexpected(p.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,t))):o.indexers.push(this.flowParseObjectTypeIndexer(h,t,p));else if(this.match(u.parenL)||this.isRelational("<"))null!=i&&this.unexpected(i),p&&this.unexpected(p.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(h,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==u.name&&t.type!==u.string&&t.type!==u.num||(e=this.state.value,this.next())}const n=this.flowParseObjectTypeProperty(h,t,i,p,e,r,null!=s?s:!c);null===n?(l=!0,a=this.state.lastTokStart):o.properties.push(n)}this.flowObjectTypeSemicolon(),!a||this.match(u.braceR)||this.match(u.braceBarR)||this.raise(a,J.UnexpectedExplicitInexactInObject)}this.expect(a),r&&(o.inexact=l);const h=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=i,h}flowParseObjectTypeProperty(e,t,r,n,s,i,o){if(this.eat(u.ellipsis)){return this.match(u.comma)||this.match(u.semi)||this.match(u.braceR)||this.match(u.braceBarR)?(i?o||this.raise(this.state.lastTokStart,J.InexactInsideExact):this.raise(this.state.lastTokStart,J.InexactInsideNonObject),n&&this.raise(n.start,J.InexactVariance),null):(i||this.raise(this.state.lastTokStart,J.UnexpectedSpreadType),null!=r&&this.unexpected(r),n&&this.raise(n.start,J.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=s;let i=!1;return this.isRelational("<")||this.match(u.parenL)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==s&&"set"!==s||this.flowCheckGetterSetterParams(e)):("init"!==s&&this.unexpected(),e.method=!1,this.eat(u.question)&&(i=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=i,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(r,b.BadGetterArity):this.raise(r,b.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,b.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(u.semi)||this.eat(u.comma)||this.match(u.braceR)||this.match(u.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(u.dot);){const r=this.startNodeAt(e,t);r.qualification=n,r.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(r,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t,r){const n=this.startNodeAt(e,t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(u._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(u.bracketL);this.state.possuper.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(u.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,r)}parseStatement(e,t){if(this.state.strict&&this.match(u.name)&&"interface"===this.state.value){const e=this.lookahead();if(e.type===u.name||U(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 r=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(r)||(this.flowPragma=null),r}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(u._class)||this.match(u.name)||this.match(u._function)||this.match(u._var)||this.match(u._export))return this.flowParseDeclare(e)}else if(this.match(u.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(u.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,r,n){if(!this.match(u.question))return e;if(n){const s=this.tryParse((()=>super.parseConditional(e,t,r)));return s.node?(s.error&&(this.state=s.failState),s.node):(n.start=s.error.pos||this.state.start,e)}this.expect(u.question);const s=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(t,r);let{consequent:a,failed:c}=this.tryParseConditionalConsequent(),[l,h]=this.getArrowLikeExpressions(a);if(c||h.length>0){const e=[...i];if(h.length>0){this.state=s,this.state.noArrowAt=e;for(let t=0;t1&&this.raise(s.start,J.AmbiguousConditionalArrow),c&&1===l.length&&(this.state=s,this.state.noArrowAt=e.concat(l[0].start),({consequent:a,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(u.colon),o.test=e,o.consequent=a,o.alternate=this.forwardNoArrowParamsConversionAt(o,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(u.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],n=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):function(e,t){const r=[],n=[];for(let s=0;se.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 r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t,r){if(e=super.parseParenItem(e,t,r),this.eat(u.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(u.colon)){const n=this.startNodeAt(t,r);return n.expression=e,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"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(u.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!==u.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const n=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type?this.raise(n,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(u.braceBarL,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?this.finishOp(u.question,1):function(e,t){return 64===e&&64===t}(e,t)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(e):this.finishOp(u.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,r)=>"ObjectMethod"!==e.type&&(r===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,r){for(let t=0;t1||!t)&&this.raise(s.typeAnnotation.start,J.TypeCastInPattern)}return e}parseArrayLike(e,t,r,n){const s=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}checkLVal(e,...t){if("TypeCastExpression"!==e.type)return super.checkLVal(e,...t)}parseClassProperty(e){return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(u.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(u.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,s,i){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,s,i)}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}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(u.comma))}}parsePropertyName(e,t){const r=this.flowParseVariance(),n=super.parsePropertyName(e,t);return e.variance=r,n}parseObjPropValue(e,t,r,n,s,i,o,a){let c;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(u.parenL)||this.unexpected()),super.parseObjPropValue(e,t,r,n,s,i,o,a),c&&((e.value||e).typeParameters=c)}parseAssignableListItemTypes(e){return this.eat(u.question)&&("Identifier"!==e.type&&this.raise(e.start,J.OptionalBindingPattern),e.optional=!0),this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}parseMaybeDefault(e,t,r){const n=super.parseMaybeDefault(e,t,r);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(e,t,r)),i),!s.error)return s.node;const{context:n}=this.state;n[n.length-1]===k.j_oTag?n.length-=2:n[n.length-1]===k.j_expr&&(n.length-=1)}if((null==(n=s)?void 0:n.error)||this.isRelational("<")){var o,a;let n;i=i||this.state.clone();const c=this.tryParse((s=>{var i;n=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(n,(()=>{const s=super.parseMaybeAssign(e,t,r);return this.resetStartLocationFromNode(s,n),s}));"ArrowFunctionExpression"!==o.type&&(null==(i=o.extra)?void 0:i.parenthesized)&&s();const a=this.maybeUnwrapTypeCastExpression(o);return a.typeParameters=n,this.resetStartLocationFromNode(a,n),o}),i);let l=null;if(c.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(c.node).type){if(!c.error&&!c.aborted)return c.node.async&&this.raise(n.start,J.UnexpectedTypeParameterBeforeAsyncArrowFunction),c.node;l=c.node}if(null==(o=s)?void 0:o.node)return this.state=s.failState,s.node;if(l)return this.state=c.failState,l;if(null==(a=s)?void 0:a.thrown)throw s.error;if(c.thrown)throw c.error;throw this.raise(n.start,J.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t,r)}parseArrow(e){if(this.match(u.colon)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(u.arrow)||this.unexpected(),r}));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(u.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){if(!r||-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,r,n){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const n=this.startNodeAt(t,r);n.callee=e,n.arguments=this.parseCallExpressionArguments(u.parenR,!1),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const s=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t,r)||e()),s);if(!i.error&&!i.aborted)return i.node;const o=this.tryParse((()=>super.parseSubscripts(e,t,r,n)),s);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(e,t,r,n)}parseSubscript(e,t,r,n,s){if(this.match(u.questionDot)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,e;this.next();const i=this.startNodeAt(t,r);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(u.parenL),i.arguments=this.parseCallExpressionArguments(u.parenR,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&this.isRelational("<")){const n=this.startNodeAt(t,r);n.callee=e;const i=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(u.parenL),n.arguments=this.parseCallExpressionArguments(u.parenR,!1),s.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,s.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n,s)}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 r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,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(u.braceBarR,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,J.UnterminatedFlowComment),r}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 r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,b.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,J.EnumBooleanMemberNotInitialized,r,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:r}){const n=r[0].toUpperCase()+r.slice(1);this.raise(e,J.EnumInvalidMemberName,r,n,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:r}){this.raise(e,J.EnumDuplicateMemberName,r,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,J.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:r}){return this.raise(e,null===r?J.EnumInvalidExplicitTypeUnknownSupplied:J.EnumInvalidExplicitType,t,r)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:r,memberName:n}){let s=null;switch(r){case"boolean":case"number":case"string":s=J.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":s=J.EnumInvalidMemberInitializerSymbolType;break;default:s=J.EnumInvalidMemberInitializerUnknownType}return this.raise(e,s,t,n,r)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,J.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,J.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,t=()=>this.match(u.comma)||this.match(u.braceR);switch(this.state.type){case u.num:{const r=this.parseLiteral(this.state.value,"NumericLiteral");return t()?{type:"number",pos:r.start,value:r}:{type:"invalid",pos:e}}case u.string:{const r=this.parseLiteral(this.state.value,"StringLiteral");return t()?{type:"string",pos:r.start,value:r}:{type:"invalid",pos:e}}case u._true:case u._false:{const r=this.parseBooleanLiteral();return t()?{type:"boolean",pos:r.start,value:r}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(u.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(u.braceR);){const s=this.startNode(),{id:i,init:o}=this.flowEnumMemberRaw(),a=i.name;if(""===a)continue;/^[a-z]/.test(a)&&this.flowEnumErrorInvalidMemberName(i.start,{enumName:e,memberName:a}),r.has(a)&&this.flowEnumErrorDuplicateMemberName(i.start,{enumName:e,memberName:a}),r.add(a);const c={enumName:e,explicitType:t,memberName:a};switch(s.id=i,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"boolean"),s.init=o.value,n.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"number"),s.init=o.value,n.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"string"),s.init=o.value,n.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.pos,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.pos,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.pos,c);break;default:n.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(u.braceR)||this.expect(u.comma)}return n}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t=0;t(e.members=[],this.expect(u.braceR),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=s.booleanMembers.length,o=s.numberMembers.length,a=s.stringMembers.length,c=s.defaultedMembers.length;if(i||o||a||c){if(i||o){if(!o&&!a&&i>=c){for(let e=0,r=s.defaultedMembers;e=c){for(let e=0,r=s.defaultedMembers;eclass extends e{getScopeHandler(){return ae}tsIsIdentifier(){return this.match(u.name)}tsNextTokenCanFollowModifier(){return this.next(),(this.match(u.bracketL)||this.match(u.braceL)||this.match(u.star)||this.match(u.ellipsis)||this.match(u.hash)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsParseModifier(e){if(!this.match(u.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 r=this.state.start,n=this.tsParseModifier(t);if(!n)break;Object.hasOwnProperty.call(e,n)&&this.raise(r,pe.DuplicateModifier,n),e[n]=!0}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(u.braceR);case"HeritageClauseElement":return this.match(u.braceL);case"TupleElementTypes":return this.match(u.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t){return ue(this.tsParseDelimitedListWorker(e,t,!0))}tsParseDelimitedListWorker(e,t,r){const n=[];for(;!this.tsIsListTerminator(e);){const s=t();if(null==s)return;if(n.push(s),!this.eat(u.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(u.comma))}}return n}tsParseBracketedList(e,t,r,n){n||(r?this.expect(u.bracketL):this.expectRelational("<"));const s=this.tsParseDelimitedList(e,t);return r?this.expect(u.bracketR):this.expectRelational(">"),s}tsParseImportType(){const e=this.startNode();return this.expect(u._import),this.expect(u.parenL),this.match(u.string)||this.raise(this.state.start,pe.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(u.parenR),this.eat(u.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(u.dot);){const r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"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(u._typeof),this.match(u._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(u._extends),e.default=this.tsEatThenParseType(u.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,pe.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===u._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const r=e===u.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(u.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(u.parenR,41).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,pe.UnsupportedSignatureParameterKind,e.type),e)))}tsParseTypeMemberSemicolon(){this.eat(u.comma)||this.semicolon()}tsParseSignatureMember(e,t){return this.tsFillSignature(u.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(u.name)&&this.match(u.colon)}tsTryParseIndexSignature(e){if(!this.match(u.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(u.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(u.bracketR),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(u.question)&&(e.optional=!0);const r=e;if(t||!this.match(u.parenL)&&!this.isRelational("<")){const e=r;t&&(e.readonly=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}{const e=r;return this.tsFillSignature(u.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSMethodSignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(u.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(u._new)){const t=this.startNode();return this.next(),this.match(u.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}const t=!!this.tsParseModifier(["readonly"]),r=this.tsTryParseIndexSignature(e);return r?(t&&(e.readonly=!0),r):(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(u.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(u.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(u.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(u.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(u._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(u._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(u.braceL),this.match(u.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(u.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(u.bracketR),this.match(u.plusMin)?(e.optional=this.state.value,this.next(),this.expect(u.question)):this.eat(u.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(u.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{var n;let{type:s}=e;!t||"TSRestType"===s||"TSOptionalType"===s||"TSNamedTupleMember"===s&&e.optional||this.raise(e.start,pe.OptionalTypeBeforeRequired),t=t||"TSNamedTupleMember"===s&&e.optional||"TSOptionalType"===s,"TSRestType"===s&&(s=(e=e.typeAnnotation).type);const i="TSNamedTupleMember"===s;r=null!=(n=r)?n:i,r!==i&&this.raise(e.start,pe.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,r=this.eat(u.ellipsis);let n=this.tsParseType();const s=this.eat(u.question);if(this.eat(u.colon)){const e=this.startNodeAtNode(n);e.optional=s,"TSTypeReference"!==n.type||n.typeParameters||"Identifier"!==n.typeName.type?(this.raise(n.start,pe.InvalidTupleMemberLabel),e.label=n):e.label=n.typeName,e.elementType=this.tsParseType(),n=this.finishNode(e,"TSNamedTupleMember")}else if(s){const e=this.startNodeAtNode(n);e.typeAnnotation=n,n=this.finishNode(e,"TSOptionalType")}if(r){const r=this.startNodeAt(e,t);r.typeAnnotation=n,n=this.finishNode(r,"TSRestType")}return n}tsParseParenthesizedType(){const e=this.startNode();return this.expect(u.parenL),e.typeAnnotation=this.tsParseType(),this.expect(u.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e){const t=this.startNode();return"TSConstructorType"===e&&this.expect(u._new),this.tsFillSignature(u.arrow,t),this.finishNode(t,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case u.num:case u.bigint:case u.string:case u._true:case u._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 u.name:case u._void:case u._null:{const e=this.match(u._void)?"TSVoidKeyword":this.match(u._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 u.string:case u.num:case u.bigint:case u._true:case u._false:return this.tsParseLiteralTypeNode();case u.plusMin:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();if(t.type!==u.num&&t.type!==u.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case u._this:return this.tsParseThisTypeOrThisTypePredicate();case u._typeof:return this.tsParseTypeQuery();case u._import:return this.tsParseImportType();case u.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case u.bracketL:return this.tsParseTupleType();case u.parenL:return this.tsParseParenthesizedType();case u.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(u.bracketL);)if(this.match(u.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(u.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(u.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,pe.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,r){this.eat(r);let n=t();if(this.match(r)){const s=[n];for(;this.eat(r);)s.push(t());const i=this.startNodeAtNode(n);i.types=s,n=this.finishNode(i,e)}return n}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),u.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),u.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(u.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(u.name)||this.match(u._this))return this.next(),!0;if(this.match(u.braceL)){let e=1;for(this.next();e>0;)this.match(u.braceL)?++e:this.match(u.braceR)&&--e,this.next();return!0}if(this.match(u.bracketL)){let e=1;for(this.next();e>0;)this.match(u.bracketL)?++e:this.match(u.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(u.parenR)||this.match(u.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(u.colon)||this.match(u.comma)||this.match(u.question)||this.match(u.eq))return!0;if(this.match(u.parenR)&&(this.next(),this.match(u.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(u._this)){let e=this.tsParseThisTypeOrThisTypePredicate();if("TSThisType"===e.type){const r=this.startNodeAtNode(t);r.parameterName=e,r.asserts=!0,e=this.finishNode(r,"TSTypePredicate")}else e.asserts=!0;return t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n){if(!r)return this.tsParseTypeAnnotation(!1,t);const e=this.startNodeAtNode(t);return e.parameterName=this.parseIdentifier(),e.asserts=r,t.typeAnnotation=this.finishNode(e,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}const s=this.tsParseTypeAnnotation(!1),i=this.startNodeAtNode(t);return i.parameterName=n,i.typeAnnotation=s,i.asserts=r,t.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(u.colon)?this.tsParseTypeOrTypePredicateAnnotation(u.colon):void 0}tsTryParseTypeAnnotation(){return this.match(u.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(u.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(u.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!(!this.match(u.name)&&!this.match(u._this))&&(e&&this.raise(this.state.lastTokStart,b.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(u.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){he(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(u._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(u.question),t.trueType=this.tsParseType(),this.expect(u.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(u._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,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,pe.EmptyHeritageClauseType,e),r}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(u._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(u.eq),this.isContextual("intrinsic")&&this.lookahead().type!==u.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(u.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(u.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(u.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(u.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(u.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,u.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(u.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(q),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(u.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(u.braceL)?(this.scope.enter(q),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(u.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(u.parenL),!this.match(u.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(u.parenR),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),r=e();return this.state=t,r}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(),r=e();return void 0!==r&&!1!==r?r:void(this.state=t)}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual("let")&&(r=u._var,t="let"),this.tsInDeclareContext((()=>{switch(r){case u._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case u._class:return e.declare=!0,this.parseClass(e,!0,!1);case u._const:if(this.match(u._const)&&this.isLookaheadContextual("enum"))return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case u._var:return t=t||this.state.value,this.parseVarStatement(e,t);case u.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(u.braceL)){this.scope.enter(q),this.prodParam.enter(0);const r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}tsParseDeclaration(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(u._class,r)){const t=e;return t.abstract=!0,r&&(this.next(),this.match(u._class)||this.unexpected(null,u._class)),this.parseClass(t,!0,!1)}break;case"enum":if(r||this.match(u.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(u.name,r))return r&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(r&&this.next(),this.match(u.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(u.name,r))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(u.name,r))return r&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(u.name,r))return r&&this.next(),this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminatorAndMatch(e,t){return(t||this.match(e))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch((()=>{const r=this.startNodeAt(e,t);return r.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(u.arrow),r}));return this.state.maybeInArrowParameters=r,n?this.parseArrowExpression(n,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,pe.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(u.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 r=this.state.start,n=this.state.startLoc;let s,i=!1;void 0!==e&&(s=this.parseAccessModifier(),i=!!this.tsParseModifier(["readonly"]),!1===e&&(s||i)&&this.raise(r,pe.UnexpectedParameterModifier));const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o);const a=this.parseMaybeDefault(o.start,o.loc.start,o);if(s||i){const e=this.startNodeAt(r,n);return t.length&&(e.decorators=t),s&&(e.accessibility=s),i&&(e.readonly=i),"Identifier"!==a.type&&"AssignmentPattern"!==a.type&&this.raise(e.start,pe.UnsupportedParameterPropertyKind),e.parameter=a,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),a}parseFunctionBodyAndFinish(e,t,r=!1){this.match(u.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(u.colon));const n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;n&&!this.match(u.braceL)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isDeclareContext&&(this.raise(e.start,pe.DeclareFunctionHasImplementation),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):super.parseFunctionBodyAndFinish(e,t,r)}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,pe.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,r,n,s){if(!this.hasPrecedingLineBreak()&&this.match(u.bang)){this.state.exprAllowed=!1,this.next();const n=this.startNodeAt(t,r);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}if(this.isRelational("<")){const i=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,r);if(e)return e}const i=this.startNodeAt(t,r);i.callee=e;const o=this.tsParseTypeArguments();if(o){if(!n&&this.eat(u.parenL))return i.arguments=this.parseCallExpressionArguments(u.parenR,!1),this.tsCheckForInvalidTypeCasts(i.arguments),i.typeParameters=o,this.finishCallExpression(i,s.optionalChainMember);if(this.match(u.backQuote)){const n=this.parseTaggedTemplateExpression(e,t,r,s);return n.typeParameters=o,n}}this.unexpected()}));if(i)return i}return super.parseSubscript(e,t,r,n,s)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>{const e=this.tsParseTypeArguments();return this.match(u.parenL)||this.unexpected(),e}));t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,r,n){if(ue(u._in.binop)>n&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const s=this.startNodeAt(t,r);s.expression=e;const i=this.tsTryNextParseConstantContext();return s.typeAnnotation=i||this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,t,r,n)}return super.parseExprOp(e,t,r,n)}checkReservedWord(e,t,r,n){}checkDuplicateExports(){}parseImport(e){if(this.match(u.name)||this.match(u.star)||this.match(u.braceL)){const t=this.lookahead();if(this.match(u.name)&&t.type===u.eq)return this.tsParseImportEqualsDeclaration(e);!this.isContextual("type")||t.type===u.comma||t.type===u.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(u._import))return this.expect(u._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(u.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===u.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===u._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===u._const){const e=this.lookahead();if(e.type===u.name&&"enum"===e.value){const e=this.startNode();return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(e,t,r){this.tsParseModifiers(t,["declare"]);const n=this.parseAccessModifier();n&&(t.accessibility=n),this.tsParseModifiers(t,["declare"]);const s=()=>{super.parseClassMember(e,t,r)};t.declare?this.tsInDeclareContext(s):s()}parseClassMemberWithIsStatic(e,t,r,n){this.tsParseModifiers(t,["abstract","readonly","declare"]);const s=this.tsTryParseIndexSignature(t);if(s)return e.body.push(s),t.abstract&&this.raise(t.start,pe.IndexSignatureHasAbstract),n&&this.raise(t.start,pe.IndexSignatureHasStatic),t.accessibility&&this.raise(t.start,pe.IndexSignatureHasAccessibility,t.accessibility),void(t.declare&&this.raise(t.start,pe.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(u.question)&&(e.optional=!0),e.readonly&&this.match(u.parenL)&&this.raise(e.start,pe.ClassMethodHasReadonly),e.declare&&this.match(u.parenL)&&this.raise(e.start,pe.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,r,n){if(!n||!this.match(u.question))return super.parseConditional(e,t,r,n);const s=this.tryParse((()=>super.parseConditional(e,t,r)));return s.node?(s.error&&(this.state=s.failState),s.node):(n.start=s.error.pos||this.state.start,e)}parseParenItem(e,t,r){if(e=super.parseParenItem(e,t,r),this.eat(u.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(u.colon)){const n=this.startNodeAt(t,r);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,r=this.state.startLoc,n=this.eatContextual("declare");let s;return this.match(u.name)&&(s=this.tsTryParseExportDeclaration()),s||(s=super.parseExportDeclaration(e)),s&&("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||n)&&(e.exportKind="type"),s&&n&&(this.resetStartLocation(s,t,r),s.declare=!0),s}parseClassId(e,t,r){if((!t||r)&&this.isContextual("implements"))return;super.parseClassId(e,t,r,e.declare?1024:139);const n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(u.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isDeclareContext&&this.match(u.eq)&&this.raise(this.state.start,pe.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,pe.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,pe.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,r,n,s,i){const o=this.tsTryParseTypeParameters();o&&s&&this.raise(o.start,pe.ConstructorHasTypeParameters),o&&(t.typeParameters=o),super.pushClassMethod(e,t,r,n,s,i)}pushClassPrivateMethod(e,t,r,n){const s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s),super.pushClassPrivateMethod(e,t,r,n)}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 r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(u.bang)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(u.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,r,n,s,i,o,a;let c,l,h,p;if(this.match(u.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]===k.j_oTag?t.length-=2:t[t.length-1]===k.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 r;p=this.tsParseTypeParameters();const n=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==n.type||n.extra&&n.extra.parenthesized)&&t(),0!==(null==(r=p)?void 0:r.params.length)&&this.resetStartLocationFromNode(n,p),n.typeParameters=p,n}),c);if(!d.error&&!d.aborted)return d.node;if(!l&&(he(!this.hasPlugin("jsx")),h=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!h.error))return h.node;if(null==(r=l)?void 0:r.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,d.node;if(null==(n=h)?void 0:n.node)return this.state=h.failState,h.node;if(null==(s=l)?void 0:s.thrown)throw l.error;if(d.thrown)throw d.error;if(null==(i=h)?void 0:i.thrown)throw h.error;throw(null==(o=l)?void 0:o.error)||d.error||(null==(a=h)?void 0:a.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(u.colon)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(u.colon);return!this.canInsertSemicolon()&&this.match(u.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(u.question)&&("Identifier"===e.type||this.state.isDeclareContext||this.state.inType||this.raise(e.start,pe.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,...r){switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,"parameter property",...r);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,t,...r);default:return void super.checkLVal(e,t,...r)}}parseBindingAtom(){switch(this.state.type){case u._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(u.parenL)){const r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(this.state.start,u.parenL)}return super.parseMaybeDecoratorArguments(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(u.bang)||this.match(u.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.startthis.tsParseTypeArguments()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&"Identifier"===r.type&&"this"===r.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(u.modulo)){const e=this.state.start,t=this.startNode();if(this.eat(u.modulo),this.match(u.name)){const e=this.parseIdentifierName(this.state.start),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(u.parenL))return r}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(u.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(u.placeholder),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.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(u.colon)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=this.parseStatement("label"),this.finishNode(r,"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,r){const n=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const s=this.state.strict,i=this.parsePlaceholder("Identifier");if(i)if(this.match(u._extends)||this.match(u.placeholder)||this.match(u.braceL))e.id=i;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,n);this.unexpected(null,"A class name is required")}else this.parseClassId(e,t,r);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,s),this.finishNode(e,n)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(u.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=t,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(u._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(u.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(u.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,this.finishNode(r,"ImportDefaultSpecifier"),e.specifiers.push(r),this.eat(u.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)}}},ve=Object.keys(ge),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 xe{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=u.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[k.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 xe,r=Object.keys(this);for(let n=0,s=r.length;n=48&&e<=57};const ke=new Set(["g","m","s","i","y","u"]),Pe={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},Te={bin:[48,49]};Te.oct=[...Te.bin,50,51,52,53,54,55],Te.dec=[...Te.oct,56,57],Te.hex=[...Te.dec,65,66,67,68,69,70,97,98,99,100,101,102];class Se{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new g(e.startLoc,e.endLoc)}}class Ce{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class Ae{constructor(e,t,r){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 g(r),(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 Ae,t=Object.keys(this);for(let r=0,n=t.length;r"ParenthesizedExpression"===e.type?Ee(e.expression):e;class _e{constructor(e=0){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Ne extends _e{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 Ie{constructor(e){this.stack=[new _e],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:r}=this;let n=r.length-1,s=r[n];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,t),s=r[--n]}this.raise(e,t)}recordParenthesizedIdentifierError(e,t){const{stack:r}=this,n=r[r.length-1];if(n.isCertainlyParameterDeclaration())this.raise(e,t);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t)}}recordAsyncArrowParametersError(e,t){const{stack:r}=this;let n=r.length-1,s=r[n];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(e,t),s=r[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(((t,r)=>{this.raise(r,t);let n=e.length-2,s=e[n];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(r),s=e[--n]}))}}function Oe(){return new _e}const De={kind:"loop"},Le={kind:"switch"},Me=/[\uD800-\uDFFF]/u;class Fe{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class je{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Fe)}exit(){const e=this.stack.pop(),t=this.current();for(let r=0,n=Array.from(e.undefinedPrivateNames);r0;)n=t[--s];if(null===n)return;for(let e=0;e0?n.trailingComments=i:void 0!==n.trailingComments&&(n.trailingComments=[])}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let r,n,s,i,o;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(s=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const r=v(t);r.trailingComments&&r.trailingComments[0].start>=e.end&&(s=r.trailingComments,delete r.trailingComments)}for(t.length>0&&v(t).start>=e.start&&(r=t.pop());t.length>0&&v(t).start>=e.start;)n=t.pop();if(!n&&r&&(n=r),r)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(n){if(n.leadingComments)if(n!==e&&n.leadingComments.length>0&&v(n.leadingComments).end<=e.start)e.leadingComments=n.leadingComments,delete n.leadingComments;else for(i=n.leadingComments.length-2;i>=0;--i)if(n.leadingComments[i].end<=e.start){e.leadingComments=n.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(v(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(o=0;o0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(i=0;ie.start);i++);const t=this.state.leadingComments.slice(0,i);t.length&&(e.leadingComments=t),s=this.state.leadingComments.slice(i),0===s.length&&(s=null)}if(this.state.commentPreviousNode=e,s)if(s.length&&s[0].start>=e.start&&v(s).end<=e.end)e.innerComments=s;else{const t=s.findIndex((t=>t.end>=e.end));t>0?(e.innerComments=s.slice(0,t),e.trailingComments=s.slice(t)):e.trailingComments=s}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 r,n=1,s=0;for(p.lastIndex=0;(r=p.exec(e))&&r.indexn[t]))+` (${s.line}:${s.column})`;return this._raise(Object.assign({loc:s,pos:e},t),i)}_raise(e,t){const r=new SyntaxError(t);if(Object.assign(r,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r}}{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new xe,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 Se(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){f.lastIndex=e;return e+f.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(e){if(this.state.strict=e,this.match(u.num)||this.match(u.string)){for(this.state.pos=this.state.start;this.state.pos=this.length)return void this.finishToken(u.eof);const t=null==e?void 0:e.override;t?t(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(e,t,r,n,s,i){const o={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:n,loc:new g(s,i)};this.options.tokens&&this.pushToken(o),this.state.comments.push(o),this.addComment(o)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+2);if(-1===r)throw this.raise(t,b.UnterminatedComment);let n;for(this.state.pos=r+2,p.lastIndex=t;(n=p.exec(this.input))&&n.index=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(u.braceHashL):this.finishToken(u.bracketHashL),this.state.pos+=2}else this.finishOp(u.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(u.ellipsis)):(++this.state.pos,this.finishToken(u.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(u.assign,2):this.finishOp(u.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=48&&t<=57?(++this.state.pos,this.finishToken(u.question)):(this.state.pos+=2,this.finishToken(u.questionDot))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(u.parenL);case 41:return++this.state.pos,void this.finishToken(u.parenR);case 59:return++this.state.pos,void this.finishToken(u.semi);case 44:return++this.state.pos,void this.finishToken(u.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(u.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(u.bracketL);return;case 93:return++this.state.pos,void this.finishToken(u.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(u.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(u.braceL);return;case 125:return++this.state.pos,void this.finishToken(u.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.doubleColon,2):(++this.state.pos,this.finishToken(u.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(u.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(u.tilde,1);case 64:return++this.state.pos,void this.finishToken(u.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(N(e))return void this.readWord()}throw this.raise(this.state.pos,b.InvalidOrUnexpectedToken,String.fromCodePoint(e))}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){const e=this.state.pos;let t,r;for(;;){if(this.state.pos>=this.length)throw this.raise(e,b.UnterminatedRegExp);const n=this.input.charAt(this.state.pos);if(h.test(n))throw this.raise(e,b.UnterminatedRegExp);if(t)t=!1;else{if("["===n)r=!0;else if("]"===n&&r)r=!1;else if("/"===n&&!r)break;t="\\"===n}++this.state.pos}const n=this.input.slice(e,this.state.pos);++this.state.pos;let s="";for(;this.state.pos-1&&this.raise(this.state.pos+1,b.DuplicateRegExpFlags);else{if(!I(t)&&92!==t)break;this.raise(this.state.pos+1,b.MalformedRegExpFlags)}++this.state.pos,s+=e}this.finishToken(u.regexp,{pattern:n,flags:s})}readInt(e,t,r,n=!0){const s=this.state.pos,i=16===e?Pe.hex:Pe.decBinOct,o=16===e?Te.hex:10===e?Te.dec:8===e?Te.oct:Te.bin;let a=!1,c=0;for(let s=0,l=null==t?1/0:t;s=97?t-97+10:t>=65?t-65+10:we(t)?t-48:1/0,l>=e)if(this.options.errorRecovery&&l<=9)l=0,this.raise(this.state.start+s+2,b.InvalidDigit,e);else{if(!r)break;l=0,a=!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===o.indexOf(t)||i.indexOf(e)>-1||i.indexOf(t)>-1||Number.isNaN(t))&&this.raise(this.state.pos,b.UnexpectedNumericSeparator),n||this.raise(this.state.pos,b.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===s||null!=t&&this.state.pos-s!==t||a?null:c}readRadixNumber(e){const t=this.state.pos;let r=!1;this.state.pos+=2;const n=this.readInt(e);null==n&&this.raise(this.state.start+2,b.InvalidDigit,e);const s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,r=!0;else if(109===s)throw this.raise(t,b.InvalidDecimal);if(N(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,b.NumberIdentifier);if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(u.bigint,e)}else this.finishToken(u.num,n)}readNumber(e){const t=this.state.pos;let r=!1,n=!1,s=!1,i=!1,o=!1;e||null!==this.readInt(10)||this.raise(t,b.InvalidNumber);const a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(a){const e=this.input.slice(t,this.state.pos);if(this.state.strict)this.raise(t,b.StrictOctalLiteral);else{const r=e.indexOf("_");r>0&&this.raise(r+t,b.ZeroDigitNumericSeparator)}o=a&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||o||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,b.InvalidOrMissingExponent),r=!0,i=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||a)&&this.raise(t,b.InvalidBigIntLiteral),++this.state.pos,n=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(i||a)&&this.raise(t,b.InvalidDecimal),++this.state.pos,s=!0),N(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(n)return void this.finishToken(u.bigint,l);if(s)return void this.finishToken(u.decimal,l);const h=o?parseInt(l,8):parseFloat(l);this.finishToken(u.num,h)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const r=++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(r,b.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}readString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedString);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(92===n)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===n||8233===n)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(d(n))throw this.raise(this.state.start,b.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(u.string,t)}readTmplToken(){let e="",t=this.state.pos,r=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedTemplate);const n=this.input.charCodeAt(this.state.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(u.template)?36===n?(this.state.pos+=2,void this.finishToken(u.dollarBraceL)):(++this.state.pos,void this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(u.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);const n=this.readEscapedChar(!0);null===n?r=!0:e+=n,t=this.state.pos}else if(d(n)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,n){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}readEscapedChar(e){const t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){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(r>=48&&r<=55){const t=this.state.pos-1;let r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),this.state.pos+=r.length-1;const s=this.input.charCodeAt(this.state.pos);if("0"!==r||56===s||57===s){if(e)return null;this.state.strict?this.raise(t,b.StrictNumericEscape):this.state.octalPositions.push(t)}return String.fromCharCode(n)}return String.fromCharCode(r)}}readHexChar(e,t,r){const n=this.state.pos,s=this.readInt(16,e,t,!1);return null===s&&(r?this.raise(n,b.InvalidEscapeSequence):this.state.pos=n-1),s}readWord1(){let e="";this.state.containsEsc=!1;const t=this.state.pos;let r=this.state.pos;for(;this.state.posthis.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 r={node:null};try{const n=e(((e=null)=>{throw r.node=e,r}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:r,doubleProto:n}=e;if(!t)return r>=0||n>=0;r>=0&&this.unexpected(r),n>=0&&this.raise(n,b.DuplicateProto)}isLiteralPropertyName(){return this.match(u.name)||!!this.state.type.keyword||this.match(u.string)||this.match(u.num)||this.match(u.bigint)||this.match(u.decimal)}}{startNode(){return new Ae(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new Ae(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,r,n){return e.type=t,e.end=r,e.loc.end=n,this.options.ranges&&(e.range[1]=r),this.processComment(e),e}resetStartLocation(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,r=this.state.lastTokEndLoc){e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}{toAssignable(e,t=!1){var r,n;let s;switch(("ParenthesizedExpression"===e.type||(null==(r=e.extra)?void 0:r.parenthesized))&&(s=Ee(e),t?"Identifier"===s.type?this.expressionScope.recordParenthesizedIdentifierError(e.start,b.InvalidParenthesizedAssignment):"MemberExpression"!==s.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 r=0,n=e.properties.length,s=n-1;rthis.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.start,r=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(u.comma)){const s=this.startNodeAt(t,r);for(s.expressions=[n];this.eat(u.comma);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t,r){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssignAllowIn(e,t,r){return this.allowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssign(e,t,r){const n=this.state.start,s=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,n,s)),e}let i;e?i=!1:(e=new Ce,i=!0),(this.match(u.parenL)||this.match(u.name))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e,r);if(t&&(o=t.call(this,o,n,s)),this.state.type.isAssign){const t=this.startNodeAt(n,s),r=this.state.value;return t.operator=r,this.match(u.eq)?(t.left=this.toAssignable(o,!0),e.doubleProto=-1):t.left=o,e.shorthandAssign>=t.left.start&&(e.shorthandAssign=-1),this.checkLVal(o,"assignment expression"),this.next(),t.right=this.parseMaybeAssign(),this.finishNode(t,"AssignmentExpression")}return i&&this.checkExpressionErrors(e,!0),o}parseMaybeConditional(e,t){const r=this.state.start,n=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(e);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,r,n,t)}parseConditional(e,t,r,n){if(this.eat(u.question)){const n=this.startNodeAt(t,r);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(u.colon),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseExprOps(e){const t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseMaybeUnary(e);return this.shouldExitDescending(s,n)?s:this.parseExprOp(s,t,r,-1)}parseExprOp(e,t,r,n){let s=this.state.type.binop;if(null!=s&&(this.prodParam.hasIn||!this.match(u._in))&&s>n){const i=this.state.type;if(i===u.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}const o=this.startNodeAt(t,r);o.left=e,o.operator=this.state.value,i!==u.exponent||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,b.UnexpectedTokenUnaryExponentiation);const a=i===u.logicalOR||i===u.logicalAND,c=i===u.nullishCoalescing;if(c&&(s=u.logicalAND.binop),this.next(),i===u.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(u.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,b.UnexpectedAwaitAfterPipelineBody);o.right=this.parseExprOpRightExpr(i,s),this.finishNode(o,a||c?"LogicalExpression":"BinaryExpression");const l=this.state.type;if(c&&(l===u.logicalOR||l===u.logicalAND)||a&&l===u.nullishCoalescing)throw this.raise(this.state.start,b.MixingCoalesceWithLogical);return this.parseExprOp(o,t,r,n)}return e}parseExprOpRightExpr(e,t){const r=this.state.start,n=this.state.startLoc;switch(e){case u.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t),r,n)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const r=this.state.start,n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,n,e.rightAssociative?t-1:t)}parseMaybeUnary(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const t=this.match(u.incDec),r=this.startNode();if(this.state.type.prefix){r.operator=this.state.value,r.prefix=!0,this.match(u._throw)&&this.expectPlugin("throwExpressions");const n=this.match(u._delete);if(this.next(),r.argument=this.parseMaybeUnary(),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=r.argument;"Identifier"===e.type?this.raise(r.start,b.StrictDelete):"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||"PrivateName"!==e.property.type||this.raise(r.start,b.DeletePrivateField)}if(!t)return this.finishNode(r,"UnaryExpression")}return this.parseUpdate(r,t,e)}parseUpdate(e,t,r){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");const n=this.state.start,s=this.state.startLoc;let i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(n,s);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.checkLVal(i,"postfix operation"),this.next(),i=this.finishNode(e,"UpdateExpression")}return i}parseExprSubscripts(e){const t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,n)?s:this.parseSubscripts(s,t,r)}parseSubscripts(e,t,r,n){const s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n,s),s.maybeAsyncArrow=!1}while(!s.stop);return e}parseSubscript(e,t,r,n,s){if(!n&&this.eat(u.doubleColon))return this.parseBind(e,t,r,n,s);if(this.match(u.backQuote))return this.parseTaggedTemplateExpression(e,t,r,s);let i=!1;if(this.match(u.questionDot)){if(s.optionalChainMember=i=!0,n&&40===this.lookaheadCharCode())return s.stop=!0,e;this.next()}return!n&&this.match(u.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,s,i):i||this.match(u.bracketL)||this.eat(u.dot)?this.parseMember(e,t,r,s,i):(s.stop=!0,e)}parseMember(e,t,r,n,s){const i=this.startNodeAt(t,r),o=this.eat(u.bracketL);i.object=e,i.computed=o;const a=o?this.parseExpression():this.parseMaybePrivateName(!0);return"PrivateName"===a.type&&("Super"===i.object.type&&this.raise(t,b.SuperPrivateField),this.classScope.usePrivateName(a.id.name,a.start)),i.property=a,o&&this.expect(u.bracketR),n.optionalChainMember?(i.optional=s,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n,s){const i=this.startNodeAt(t,r);return i.object=e,i.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r,n)}parseCoverCallAndAsyncArrowHead(e,t,r,n,s){const i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t,r);return o.callee=e,n.maybeAsyncArrow&&this.expressionScope.enter(new Ne(2)),n.optionalChainMember&&(o.optional=s),o.arguments=s?this.parseCallExpressionArguments(u.parenR,!1):this.parseCallExpressionArguments(u.parenR,n.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,o),this.finishCallExpression(o,n.optionalChainMember),n.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!s?(n.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),o=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),o)):(n.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(o)),this.state.maybeInArrowParameters=i,o}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r,n){const s=this.startNodeAt(t,r);return s.tag=e,s.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(t,b.OptionalChainingNoTemplate),this.finishNode(s,"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,r=e.arguments;t1?(n=this.startNodeAt(o,a),n.expressions=c,this.finishNodeAt(n,"SequenceExpression",m,y)):n=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",t),n;const v=this.startNodeAt(t,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression"),v}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(u.arrow))return e}parseParenItem(e,t,r){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(u.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=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(r.start,e)}return r}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(u.questionDot)&&this.raise(this.state.start,b.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(u.parenL)){const t=this.parseExprList(u.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(u.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(u.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(u.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=Object.create(null);let o=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(u.comma),this.match(e)){this.addExtra(a,"trailingComma",this.state.lastTokStart);break}const s=this.parsePropertyDefinition(t,n);t||this.checkProto(s,r,i,n),r&&"ObjectProperty"!==s.type&&"SpreadElement"!==s.type&&this.raise(s.start,b.InvalidRecordProperty),s.shorthand&&this.addExtra(s,"shorthand",!0),a.properties.push(s)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=s;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(a,c)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(u.bracketL)||this.match(u.star))}parsePropertyDefinition(e,t){let r=[];if(this.match(u.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,b.UnsupportedPropertyDecorator);this.match(u.at);)r.push(this.parseDecorator());const n=this.startNode();let s,i,o=!1,a=!1,c=!1;if(this.match(u.ellipsis))return r.length&&this.unexpected(),e?(this.next(),n.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(n,"RestElement")):this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,(e||t)&&(s=this.state.start,i=this.state.startLoc),e||(o=this.eat(u.star));const l=this.state.containsEsc,h=this.parsePropertyName(n,!1);if(!e&&!o&&!l&&this.maybeAsyncOrAccessorProp(n)){const e=h.name;"async"!==e||this.hasPrecedingLineBreak()||(a=!0,o=this.eat(u.star),this.parsePropertyName(n,!1)),"get"!==e&&"set"!==e||(c=!0,n.kind=e,this.match(u.star)&&(o=!0,this.raise(this.state.pos,b.AccessorIsGenerator,e),this.next()),this.parsePropertyName(n,!1))}return this.parseObjPropValue(n,s,i,o,a,e,c,t),n}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e),s=e.start;n.length!==r&&("get"===e.kind?this.raise(s,b.BadGetterArity):this.raise(s,b.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(s,b.BadSetterRestParameter)}parseObjectMethod(e,t,r,n,s){return s?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(u.parenL)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(e,t,r,n,s){return e.shorthand=!1,this.eat(u.colon)?(e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),n?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(u.eq)&&s?(-1===s.shorthandAssign&&(s.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,r,n,s,i,o,a){const c=this.parseObjectMethod(e,n,s,i,o)||this.parseObjectProperty(e,t,r,i,a);return c||this.unexpected(),c}parsePropertyName(e,t){if(this.eat(u.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(u.bracketR);else{const r=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(u.num)||this.match(u.string)||this.match(u.bigint)||this.match(u.decimal)?this.parseExprAtom():this.parseMaybePrivateName(t),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=r}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,r,n,s,i,o=!1){this.initFunction(e,r),e.generator=!!t;const a=n;return this.scope.enter(18|(o?64:0)|(s?32:0)),this.prodParam.enter(le(r,e.generator)),this.parseFunctionParams(e,a),this.parseFunctionBodyAndFinish(e,i,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!r,n,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let s=le(r,!1);!this.match(u.bracketL)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(e,r);const i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){e.params=this.toAssignableList(t,r,!1)}parseFunctionBodyAndFinish(e,t,r=!1){this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const n=t&&!this.match(u.braceL);if(this.expressionScope.enter(Oe()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const n=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(s=>{const i=!this.isSimpleParamList(e.params);if(s&&i){const t="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(t,b.IllegalLanguageModeDirective)}const o=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||i),t,o),this.state.strict&&e.id&&this.checkLVal(e.id,"function name",65,void 0,void 0,o)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=s}}isSimpleParamList(e){for(let t=0,r=e.length;t=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const s=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=n,s}}{parseTopLevel(e,t){if(t.sourceType=this.options.sourceType,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,u.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let e=0,t=Array.from(this.scope.undefinedExports);ethis.parseStatement("do"))),this.state.labels.pop(),this.expect(u._while),e.test=this.parseHeaderExpression(),this.eat(u.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(u.parenL),this.match(u.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const r=this.isLet();if(this.match(u._var)||this.match(u._const)||r){const n=this.startNode(),s=r?"let":this.state.value;return this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.match(u._in)||this.isContextual("of"))&&1===n.declarations.length?this.parseForIn(e,n,t):(t>-1&&this.unexpected(t),this.parseFor(e,n))}const n=new Ce,s=this.parseExpression(!0,n);if(this.match(u._in)||this.isContextual("of")){this.toAssignable(s,!0);const r=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(s,r),this.parseForIn(e,s,t)}return this.checkExpressionErrors(n,!0),t>-1&&this.unexpected(t),this.parseFor(e,s)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._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 r,n;for(this.expect(u.braceL),this.state.labels.push(Le),this.scope.enter(0);!this.match(u.braceR);)if(this.match(u._case)||this.match(u._default)){const e=this.match(u._case);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),e?r.test=this.parseExpression():(n&&this.raise(this.state.lastTokStart,b.MultipleDefaultsInSwitch),n=!0,r.test=null),this.expect(u.colon)}else r?r.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"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(u._catch)){const t=this.startNode();this.next(),this.match(u.parenL)?(this.expect(u.parenL),t.param=this.parseCatchClauseParam(),this.expect(u.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(u._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,r,n){for(let e=0,n=this.state.labels;e=0;t--){const r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const n=this.startNode();return this.expect(u.braceL),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,u.braceR,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,s){const i=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?o:void 0,r,n,s)}parseBlockOrModuleBlockBody(e,t,r,n,s){const i=[],o=this.state.strict;let a=!1,c=!1;for(;!this.match(n);){!c&&this.state.octalPositions.length&&i.push(...this.state.octalPositions);const n=this.parseStatement(null,r);if(t&&!c&&this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0))}else c=!0,e.push(n)}if(this.state.strict&&i.length)for(let e=0;ethis.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const n=this.match(u._in);return this.next(),n?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&!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,n?"for-in":"for-of"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){const n=e.declarations=[],s=this.hasPlugin("typescript");for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),this.eat(u.eq)?e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(u._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(u._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,b.DeclarationMissingInitializer,"Complex binding patterns"):s||this.raise(this.state.lastTokEnd,b.DeclarationMissingInitializer,"Const declarations"),e.init=null),n.push(this.finishNode(e,"VariableDeclarator")),!this.eat(u.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,r=!1){const n=1&t,s=2&t,i=!(!n||4&t);this.initFunction(e,r),this.match(u.star)&&s&&this.raise(this.state.start,b.GeneratorInSingleStatementContext),e.generator=this.eat(u.star),n&&(e.id=this.parseFunctionId(i));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(le(r,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!s&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||this.match(u.name)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(u.parenL),this.expressionScope.enter(new _e(3)),e.params=this.parseBindingList(u.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,r){this.next(),this.takeDecorators(e);const n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(u.eq)||this.match(u.semi)||this.match(u.braceR)}isClassMethod(){return this.match(u.parenL)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const r={constructorAllowsSuper:e,hadConstructor:!1,hadStaticBlock:!1};let n=[];const s=this.startNode();if(s.body=[],this.expect(u.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(u.braceR);){if(this.eat(u.semi)){if(n.length>0)throw this.raise(this.state.lastTokEnd,b.DecoratorSemicolon);continue}if(this.match(u.at)){n.push(this.parseDecorator());continue}const e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(s,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(e.start,b.DecoratorConstructor)}})),this.state.strict=t,this.next(),n.length)throw this.raise(this.state.start,b.TrailingDecorator);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){const n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return!1}parseClassMember(e,t,r){const n=this.isContextual("static");if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(u.braceL))return void this.parseClassStaticBlock(e,t,r)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const s=t,i=t,o=t,a=t,c=s,l=s;if(t.static=n,this.eat(u.star))return c.kind="method",this.parseClassElementName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(s)&&this.raise(s.key.start,b.ConstructorIsGenerator),void this.pushClassMethod(e,s,!0,!1,!1,!1));const h=this.state.containsEsc,p=this.parseClassElementName(t),d="PrivateName"===p.type,f="Identifier"===p.type,m=this.state.start;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,i,!1,!1);const t=this.isNonstaticConstructor(s);let n=!1;t&&(s.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.start,b.DuplicateConstructor),r.hadConstructor=!0,n=r.constructorAllowsSuper),this.pushClassMethod(e,s,!1,!1,t,n)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o);else if(!f||"async"!==p.name||h||this.isLineTerminator())!f||"get"!==p.name&&"set"!==p.name||h||this.match(u.star)&&this.isLineTerminator()?this.isLineTerminator()?d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o):this.unexpected():(c.kind=p.name,this.parseClassElementName(s),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(s.key.start,b.ConstructorIsAccessor),this.pushClassMethod(e,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s));else{const t=this.eat(u.star);l.optional&&this.unexpected(m),c.kind="method",this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,i,t,!0):(this.isNonstaticConstructor(s)&&this.raise(s.key.start,b.ConstructorIsAsync),this.pushClassMethod(e,s,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,r){var n;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(80),this.expressionScope.enter(Oe());const s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,u.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(t,"StaticBlock")),r.hadStaticBlock&&this.raise(t.start,b.DuplicateStaticBlock),(null==(n=t.decorators)?void 0:n.length)&&this.raise(t.start,b.DecoratorStaticBlock),r.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 r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(r.key.id.name,0,r.key.start)}pushClassMethod(e,t,r,n,s,i){e.body.push(this.parseMethod(t,r,n,s,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){this.expectPlugin("classPrivateMethods",t.key.start);const s=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(s);const i="get"===s.kind?s.static?6:2:"set"===s.kind?s.static?5:1:0;this.classScope.declarePrivateName(s.key.id.name,i,s.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return e.typeAnnotation&&!this.match(u.eq)||this.expectPlugin("classProperties"),this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Oe()),this.prodParam.enter(0),e.value=this.eat(u.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,n=139){this.match(u.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",n)):r||!t?e.id=null:this.unexpected(null,b.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(u.comma),n=r&&this.eatExportStar(e),s=n&&this.maybeParseExportNamespaceSpecifier(e),i=r&&(!s||this.eat(u.comma)),o=t||n;if(n&&!s)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const a=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!n&&!a||s&&i&&!a)throw this.unexpected(null,u.braceL);let c;if(o||a?(c=!1,this.parseExportFrom(e,o)):c=this.maybeParseExportDeclaration(e),o||a||c)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(u._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,u.braceL)}eatExportStar(e){return this.eat(u.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(u.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!h.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(u._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(u._class))return this.parseClass(e,!0,!0);if(this.match(u.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(u._const)||this.match(u._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(u.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===u.name&&"from"!==e.value||e.type===u.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(u._default))return!1;const e=this.nextTokenStart(),t=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||this.match(u.name)&&t)return!0;if(this.match(u._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(u.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,r,n){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||(null==(s=t.extra)?void 0:s.parenthesized)||this.raise(t.start,b.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(let t=0,r=e.specifiers;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(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;const r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(u.string)){this.expectPlugin("moduleStringNames");const e=this.parseLiteral(this.state.value,"StringLiteral"),t=e.value.match(Me);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(u.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(u.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&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(u.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(u.name)}parseImportSpecifierLocal(e,t,r,n){t.local=this.parseIdentifier(),this.checkLVal(t.local,n,9),e.specifiers.push(this.finishNode(t,r))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(u.braceR))break;const r=this.startNode(),n=this.state.value;if(this.match(u.string)?r.key=this.parseLiteral(n,"StringLiteral"):r.key=this.parseIdentifier(!0),this.expect(u.colon),"type"!==n&&this.raise(r.key.start,b.ModuleAttributeDifferentFromType,n),t.has(n)&&this.raise(r.key.start,b.ModuleAttributesWithDuplicateKeys,n),t.add(n),!this.match(u.string))throw this.unexpected(this.state.start,b.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(u.comma));return e}maybeParseModuleAttributes(){if(!this.match(u._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,b.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,b.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(u.colon),!this.match(u.string))throw this.unexpected(this.state.start,b.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(u.comma));return e}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(u.braceL);const e=this.parseAssertEntries();return this.eat(u.braceR),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(u.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(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else{if(this.eat(u.colon))throw this.raise(this.state.start,b.DestructureNamedImport);if(this.expect(u.comma),this.eat(u.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 r=0,n=Object.keys(be);r`'${e}'`)).join(", "));if(de(e,"moduleAttributes")){if(de(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==fe(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(fe(e,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+ye.map((e=>`'${e}'`)).join(", "))}(e.plugins),r=function(e){const t=ve.filter((t=>de(e,t))),r=t.join("/");let n=Ve[r];if(!n){n=Re;for(let e=0;e{e.exports=r(5666)},958:(e,t,r)=>{"use strict";r.d(t,{OY:()=>T,ps:()=>Bt,rC:()=>G,_x:()=>i,fC:()=>z,_A:()=>q,Oq:()=>$,kS:()=>oe,QU:()=>ce,fz:()=>X,Yb:()=>K,nN:()=>Vt,sC:()=>R,Ce:()=>jt,J5:()=>Ot});var n=r(3577);r(3834);function s(e){throw e}function i(e,t,r,n){const s=new SyntaxError(String(e));return s.code=e,s.loc=t,s}const o=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),h=Symbol(""),p=Symbol(""),d=Symbol(""),f=Symbol(""),m=Symbol(""),y=Symbol(""),g=Symbol(""),v=Symbol(""),b=Symbol(""),x=Symbol(""),w=Symbol(""),k=Symbol(""),P=Symbol(""),T=Symbol(""),S=Symbol(""),C=Symbol(""),A=Symbol(""),E=Symbol(""),_=Symbol(""),N=Symbol(""),I=Symbol(""),O=Symbol(""),D=Symbol(""),L=Symbol(""),M=Symbol(""),F=Symbol(""),j={[o]:"Fragment",[a]:"Teleport",[c]:"Suspense",[l]:"KeepAlive",[u]:"BaseTransition",[h]:"openBlock",[p]:"createBlock",[d]:"createVNode",[f]:"createCommentVNode",[m]:"createTextVNode",[y]:"createStaticVNode",[g]:"resolveComponent",[v]:"resolveDynamicComponent",[b]:"resolveDirective",[x]:"withDirectives",[w]:"renderList",[k]:"renderSlot",[P]:"createSlots",[T]:"toDisplayString",[S]:"mergeProps",[C]:"toHandlers",[A]:"camelize",[E]:"capitalize",[_]:"toHandlerKey",[N]:"setBlockTracking",[I]:"pushScopeId",[O]:"popScopeId",[D]:"withScopeId",[L]:"withCtx",[M]:"unref",[F]:"isRef"};function R(e){Object.getOwnPropertySymbols(e).forEach((t=>{j[t]=e[t]}))}const B={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function V(e,t,r,n,s,i,o,a=!1,c=!1,l=B){return e&&(a?(e.helper(h),e.helper(p)):e.helper(d),o&&e.helper(x)),{type:13,tag:t,props:r,children:n,patchFlag:s,dynamicProps:i,directives:o,isBlock:a,disableTracking:c,loc:l}}function U(e,t=B){return{type:17,loc:t,elements:e}}function H(e,t=B){return{type:15,loc:t,properties:e}}function q(e,t){return{type:16,loc:B,key:(0,n.HD)(e)?$(e,!0):e,value:t}}function $(e,t,r=B,n=0){return{type:4,loc:r,content:e,isStatic:t,constType:t?3:n}}function z(e,t=B){return{type:8,loc:t,children:e}}function G(e,t=[],r=B){return{type:14,loc:r,callee:e,arguments:t}}function J(e,t,r=!1,n=!1,s=B){return{type:18,params:e,returns:t,newline:r,isSlot:n,loc:s}}function W(e,t,r,n=!0){return{type:19,test:e,consequent:t,alternate:r,newline:n,loc:B}}const K=e=>4===e.type&&e.isStatic,X=(e,t)=>e===t||e===(0,n.rs)(t);function Y(e){return X(e,"Teleport")?a:X(e,"Suspense")?c:X(e,"KeepAlive")?l:X(e,"BaseTransition")?u:void 0}const Q=/^\d|[^\$\w]/,Z=e=>!Q.test(e),ee=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,te=e=>!!e&&ee.test(e.trim());function re(e,t,r){const n={source:e.source.substr(t,r),start:ne(e.start,e.source,t),end:e.end};return null!=r&&(n.end=ne(e.start,e.source,t+r)),n}function ne(e,t,r=t.length){return se((0,n.l7)({},e),t,r)}function se(e,t,r=t.length){let n=0,s=-1;for(let e=0;e!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function le(e){return 5===e.type||2===e.type}function ue(e){return 7===e.type&&"slot"===e.name}function he(e){return 1===e.type&&3===e.tagType}function pe(e){return 1===e.type&&2===e.tagType}function de(e,t,r){let s;const i=13===e.type?e.props:e.arguments[2];if(null==i||(0,n.HD)(i))s=H([t]);else if(14===i.type){const e=i.arguments[0];(0,n.HD)(e)||15!==e.type?i.callee===C?s=G(r.helper(S),[H([t]),i]):i.arguments.unshift(H([t])):e.properties.unshift(t),!s&&(s=i)}else if(15===i.type){let e=!1;if(4===t.key.type){const r=t.key.content;e=i.properties.some((e=>4===e.key.type&&e.key.content===r))}e||i.properties.unshift(t),s=i}else s=G(r.helper(S),[H([t]),i]);13===e.type?e.props=s:e.arguments[2]=s}function fe(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}const me=/&(gt|lt|amp|apos|quot);/g,ye={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},ge={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:n.NO,isPreTag:n.NO,isCustomElement:n.NO,decodeEntities:e=>e.replace(me,((e,t)=>ye[t])),onError:s,comments:!1};function ve(e,t={}){const r=function(e,t){const r=(0,n.l7)({},ge);for(const e in t)r[e]=t[e]||ge[e];return{options:r,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),s=Oe(r);return function(e,t=B){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(be(r,0,[]),De(r,s))}function be(e,t,r){const s=Le(r),i=s?s.ns:0,o=[];for(;!Ve(e,t,r);){const a=e.source;let c;if(0===t||1===t)if(!e.inVPre&&Me(a,e.options.delimiters[0]))c=_e(e,t);else if(0===t&&"<"===a[0])if(1===a.length)Be(e,5,1);else if("!"===a[1])Me(a,"\x3c!--")?c=ke(e):Me(a,""===a[2]){Be(e,14,2),Fe(e,3);continue}if(/[a-z]/i.test(a[2])){Be(e,23),Ce(e,1,s);continue}Be(e,12,2),c=Pe(e)}else/[a-z]/i.test(a[1])?c=Te(e,r):"?"===a[1]?(Be(e,21,1),c=Pe(e)):Be(e,12,1);if(c||(c=Ne(e,t)),(0,n.kJ)(c))for(let e=0;e/.exec(e.source);if(n){n.index<=3&&Be(e,0),n[1]&&Be(e,10),r=e.source.slice(4,n.index);const t=e.source.slice(0,n.index);let s=1,i=0;for(;-1!==(i=t.indexOf("\x3c!--",s));)Fe(e,i-s+1),i+4");return-1===s?(n=e.source.slice(r),Fe(e,e.source.length)):(n=e.source.slice(r,s),Fe(e,s+1)),{type:3,content:n,loc:De(e,t)}}function Te(e,t){const r=e.inPre,n=e.inVPre,s=Le(t),i=Ce(e,0,s),o=e.inPre&&!r,a=e.inVPre&&!n;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return i;t.push(i);const c=e.options.getTextMode(i,s),l=be(e,c,t);if(t.pop(),i.children=l,Ue(e.source,i.tag))Ce(e,1,s);else if(Be(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()){const t=l[0];t&&Me(t.loc.source,"\x3c!--")&&Be(e,8)}return i.loc=De(e,i.loc.start),o&&(e.inPre=!1),a&&(e.inVPre=!1),i}const Se=(0,n.fY)("if,else,else-if,for,slot");function Ce(e,t,r){const s=Oe(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=i[1],a=e.options.getNamespace(o,r);Fe(e,i[0].length),je(e);const c=Oe(e),l=e.source;let u=Ae(e,t);e.options.isPreTag(o)&&(e.inPre=!0),!e.inVPre&&u.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,(0,n.l7)(e,c),e.source=l,u=Ae(e,t).filter((e=>"v-pre"!==e.name)));let h=!1;0===e.source.length?Be(e,9):(h=Me(e.source,"/>"),1===t&&h&&Be(e,4),Fe(e,h?2:1));let p=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(o)){const e=u.some((e=>7===e.type&&"is"===e.name));d.isNativeTag&&!e?d.isNativeTag(o)||(p=1):(e||Y(o)||d.isBuiltInComponent&&d.isBuiltInComponent(o)||/^[A-Z]/.test(o)||"component"===o)&&(p=1),"slot"===o?p=2:"template"===o&&u.some((e=>7===e.type&&Se(e.name)))&&(p=3)}return{type:1,ns:a,tag:o,tagType:p,props:u,isSelfClosing:h,children:[],loc:De(e,s),codegenNode:void 0}}function Ae(e,t){const r=[],n=new Set;for(;e.source.length>0&&!Me(e.source,">")&&!Me(e.source,"/>");){if(Me(e.source,"/")){Be(e,22),Fe(e,1),je(e);continue}1===t&&Be(e,3);const s=Ee(e,n);0===t&&r.push(s),/^[^\t\r\n\f />]/.test(e.source)&&Be(e,15),je(e)}return r}function Ee(e,t){const r=Oe(e),n=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(n)&&Be(e,2),t.add(n),"="===n[0]&&Be(e,19);{const t=/["'<]/g;let r;for(;r=t.exec(n);)Be(e,17,r.index)}let s;Fe(e,n.length),/^[\t\r\n\f ]*=/.test(e.source)&&(je(e),Fe(e,1),je(e),s=function(e){const t=Oe(e);let r;const n=e.source[0],s='"'===n||"'"===n;if(s){Fe(e,1);const t=e.source.indexOf(n);-1===t?r=Ie(e,e.source.length,4):(r=Ie(e,t,4),Fe(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const n=/["'<=`]/g;let s;for(;s=n.exec(t[0]);)Be(e,18,s.index);r=Ie(e,t[0].length,4)}return{content:r,isQuoted:s,loc:De(e,t)}}(e),s||Be(e,13));const i=De(e,r);if(!e.inVPre&&/^(v-|:|@|#)/.test(n)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(n),o=t[1]||(Me(n,":")?"bind":Me(n,"@")?"on":"slot");let a;if(t[2]){const s="slot"===o,i=n.indexOf(t[2]),c=De(e,Re(e,r,i),Re(e,r,i+t[2].length+(s&&t[3]||"").length));let l=t[2],u=!0;l.startsWith("[")?(u=!1,l.endsWith("]")||Be(e,26),l=l.substr(1,l.length-2)):s&&(l+=t[3]||""),a={type:4,content:l,isStatic:u,constType:u?3:0,loc:c}}if(s&&s.isQuoted){const e=s.loc;e.start.offset++,e.start.column++,e.end=ne(e.start,s.content),e.source=e.source.slice(1,-1)}return{type:7,name:o,exp:s&&{type:4,content:s.content,isStatic:!1,constType:0,loc:s.loc},arg:a,modifiers:t[3]?t[3].substr(1).split("."):[],loc:i}}return{type:6,name:n,value:s&&{type:2,content:s.content,loc:s.loc},loc:i}}function _e(e,t){const[r,n]=e.options.delimiters,s=e.source.indexOf(n,r.length);if(-1===s)return void Be(e,25);const i=Oe(e);Fe(e,r.length);const o=Oe(e),a=Oe(e),c=s-r.length,l=e.source.slice(0,c),u=Ie(e,c,t),h=u.trim(),p=u.indexOf(h);p>0&&se(o,l,p);return se(a,l,c-(u.length-h.length-p)),Fe(e,n.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:De(e,o,a)},loc:De(e,i)}}function Ne(e,t){const r=["<",e.options.delimiters[0]];3===t&&r.push("]]>");let n=e.source.length;for(let t=0;ts&&(n=s)}const s=Oe(e);return{type:2,content:Ie(e,n,t),loc:De(e,s)}}function Ie(e,t,r){const n=e.source.slice(0,t);return Fe(e,t),2===r||3===r||-1===n.indexOf("&")?n:e.options.decodeEntities(n,4===r)}function Oe(e){const{column:t,line:r,offset:n}=e;return{column:t,line:r,offset:n}}function De(e,t,r){return{start:t,end:r=r||Oe(e),source:e.originalSource.slice(t.offset,r.offset)}}function Le(e){return e[e.length-1]}function Me(e,t){return e.startsWith(t)}function Fe(e,t){const{source:r}=e;se(e,r,t),e.source=r.slice(t)}function je(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Fe(e,t[0].length)}function Re(e,t,r){return ne(t,e.originalSource.slice(t.offset,r),r)}function Be(e,t,r,n=Oe(e)){r&&(n.offset+=r,n.column+=r),e.options.onError(i(t,{start:n,end:n,source:""}))}function Ve(e,t,r){const n=e.source;switch(t){case 0:if(Me(n,"=0;--e)if(Ue(n,r[e].tag))return!0;break;case 1:case 2:{const e=Le(r);if(e&&Ue(n,e.tag))return!0;break}case 3:if(Me(n,"]]>"))return!0}return!n}function Ue(e,t){return Me(e,"]/.test(e[2+t.length]||">")}function He(e,t){$e(e,t,new Map,qe(e,e.children[0]))}function qe(e,t){const{children:r}=e;return 1===r.length&&1===t.type&&!pe(t)}function $e(e,t,r,n=!1){let s=!1,i=!0;const{children:o}=e;for(let e=0;e0){if(e<3&&(i=!1),e>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s=!0;continue}}else{const e=a.codegenNode;if(13===e.type){const n=We(e);if((!n||512===n||1===n)&&Ge(a,r)>=2){const r=Je(a);r&&(e.props=t.hoist(r))}}}}else if(12===a.type){const e=ze(a.content,r);e>0&&(e<3&&(i=!1),e>=2&&(a.codegenNode=t.hoist(a.codegenNode),s=!0))}if(1===a.type)$e(a,t,r);else if(11===a.type)$e(a,t,r,1===a.children.length);else if(9===a.type)for(let e=0;e1)for(let n=0;n(b.helpers.add(e),e),helperString:e=>`_${j[b.helper(e)]}`,replaceNode(e){b.parent.children[b.childIndex]=b.currentNode=e},removeNode(e){const t=b.parent.children,r=e?t.indexOf(e):b.currentNode?b.childIndex:-1;e&&e!==b.currentNode?b.childIndex>r&&(b.childIndex--,b.onNodeRemoved()):(b.currentNode=null,b.onNodeRemoved()),b.parent.children.splice(r,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){b.hoists.push(e);const t=$(`_hoisted_${b.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,r=!1){return{type:20,index:e,value:t,isVNode:r,loc:B}}(++b.cached,e,t)};return b}function Xe(e,t){const r=Ke(e,t);Ye(e,r),t.hoistStatic&&He(e,r),t.ssr||function(e,t){const{helper:r}=t,{children:s}=e;if(1===s.length){const t=s[0];if(qe(e,t)&&t.codegenNode){const n=t.codegenNode;13===n.type&&(n.isBlock=!0,r(h),r(p)),e.codegenNode=n}else e.codegenNode=t}else s.length>1&&(e.codegenNode=V(t,r(o),void 0,e.children,`64 /* ${n.m[64]} */`,void 0,void 0,!0))}(e,r),e.helpers=[...r.helpers],e.components=[...r.components],e.directives=[...r.directives],e.imports=[...r.imports],e.hoists=r.hoists,e.temps=r.temps,e.cached=r.cached}function Ye(e,t){t.currentNode=e;const{nodeTransforms:r}=t,s=[];for(let i=0;i{r--};for(;rt===e:t=>e.test(t);return(e,n)=>{if(1===e.type){const{props:s}=e;if(3===e.tagType&&s.some(ue))return;const i=[];for(let o=0;o`_${j[e]}`,push(e,t){u.code+=e},indent(){h(++u.indentLevel)},deindent(e=!1){e?--u.indentLevel:h(--u.indentLevel)},newline(){h(u.indentLevel)}};function h(e){u.push("\n"+" ".repeat(e))}return u}(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:n,push:s,prefixIdentifiers:i,indent:o,deindent:a,newline:c,scopeId:l,ssr:u}=r,h=e.helpers.length>0,p=!i&&"module"!==n;!function(e,t){const{ssr:r,prefixIdentifiers:n,push:s,newline:i,runtimeModuleName:o,runtimeGlobalName:a}=t,c=a,l=e=>`${j[e]}: _${j[e]}`;if(e.helpers.length>0&&(s(`const _Vue = ${c}\n`),e.hoists.length)){s(`const { ${[d,f,m,y].filter((t=>e.helpers.includes(t))).map(l).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:n,helper:s,scopeId:i,mode:o}=t;n(),e.forEach(((e,s)=>{e&&(r(`const _hoisted_${s+1} = `),st(e,t),n())})),t.pure=!1})(e.hoists,t),i(),s("return ")}(e,r);if(s(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),o(),p&&(s("with (_ctx) {"),o(),h&&(s(`const { ${e.helpers.map((e=>`${j[e]}: _${j[e]}`)).join(", ")} } = _Vue`),s("\n"),c())),e.components.length&&(tt(e.components,"component",r),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(tt(e.directives,"directive",r),e.temps>0&&c()),e.temps>0){s("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(s("\n"),c()),u||s("return "),e.codegenNode?st(e.codegenNode,r):s("null"),p&&(a(),s("}")),a(),s("}"),{ast:e,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function tt(e,t,{helper:r,push:n,newline:s}){const i=r("component"===t?g:b);for(let r=0;r3||!1;t.push("["),r&&t.indent(),nt(e,t,r),r&&t.deindent(),t.push("]")}function nt(e,t,r=!1,s=!0){const{push:i,newline:o}=t;for(let a=0;ae||"null"))}([i,o,a,c,l]),t),r(")"),f&&r(")");u&&(r(", "),st(u,t),r(")"))}(e,t);break;case 14:!function(e,t){const{push:r,helper:s,pure:i}=t,o=(0,n.HD)(e.callee)?e.callee:s(e.callee);i&&r(Ze);r(o+"(",e),nt(e.arguments,t),r(")")}(e,t);break;case 15:!function(e,t){const{push:r,indent:n,deindent:s,newline:i}=t,{properties:o}=e;if(!o.length)return void r("{}",e);const a=o.length>1||!1;r(a?"{":"{ "),a&&n();for(let e=0;e "),(h||u)&&(r("{"),s());l?(h&&r("return "),(0,n.kJ)(l)?rt(l,t):st(l,t)):u&&st(u,t);(h||u)&&(i(),r("}"));p&&r(")")}(e,t);break;case 19:!function(e,t){const{test:r,consequent:n,alternate:s,newline:i}=e,{push:o,indent:a,deindent:c,newline:l}=t;if(4===r.type){const e=!Z(r.content);e&&o("("),it(r,t),e&&o(")")}else o("("),st(r,t),o(")");i&&a(),t.indentLevel++,i||o(" "),o("? "),st(n,t),t.indentLevel--,i&&l(),i||o(" "),o(": ");const u=19===s.type;u||t.indentLevel++;st(s,t),u||t.indentLevel--;i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:r,helper:n,indent:s,deindent:i,newline:o}=t;r(`_cache[${e.index}] || (`),e.isVNode&&(s(),r(`${n(N)}(-1),`),o());r(`_cache[${e.index}] = `),st(e.value,t),e.isVNode&&(r(","),o(),r(`${n(N)}(1),`),o(),r(`_cache[${e.index}]`),i());r(")")}(e,t);break;case 21:case 22:case 23:case 24:case 25:case 26:case 10:break;default:0}}function it(e,t){const{content:r,isStatic:n}=e;t.push(n?JSON.stringify(r):r,e)}function ot(e,t){for(let r=0;rfunction(e,t,r,n){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;r.onError(i(27,t.loc)),t.exp=$("true",!1,n)}0;if("if"===t.name){const s=lt(e,t),i={type:9,loc:e.loc,branches:[s]};if(r.replaceNode(i),n)return n(i,s,!0)}else{const s=r.parent.children;let o=s.indexOf(e);for(;o-- >=-1;){const a=s[o];if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){r.removeNode();const s=lt(e,t);0,a.branches.push(s);const i=n&&n(a,s,!1);Ye(s,r),i&&i(),r.currentNode=null}else r.onError(i(29,e.loc));break}r.removeNode(a)}}}(e,t,r,((e,t,n)=>{const s=r.parent.children;let i=s.indexOf(e),o=0;for(;i-- >=0;){const e=s[i];e&&9===e.type&&(o+=e.branches.length)}return()=>{if(n)e.codegenNode=ut(t,o,r);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=ut(t,o+e.branches.length-1,r)}}}))));function lt(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:oe(e,"key")}}function ut(e,t,r){return e.condition?W(e.condition,ht(e,t,r),G(r.helper(f),['""',"true"])):ht(e,t,r)}function ht(e,t,r){const{helper:s}=r,i=q("key",$(`${t}`,!1,B,2)),{children:a}=e,c=a[0];if(1!==a.length||1!==c.type){if(1===a.length&&11===c.type){const e=c.codegenNode;return de(e,i,r),e}return V(r,s(o),H([i]),a,`64 /* ${n.m[64]} */`,void 0,void 0,!0,!1,e.loc)}{const e=c.codegenNode;return 13===e.type&&(e.isBlock=!0,s(h),s(p)),de(e,i,r),e}}const pt=Qe("for",((e,t,r)=>{const{helper:s}=r;return function(e,t,r,n){if(!t.exp)return void r.onError(i(30,t.loc));const s=yt(t.exp,r);if(!s)return void r.onError(i(31,t.loc));const{addIdentifiers:o,removeIdentifiers:a,scopes:c}=r,{source:l,value:u,key:h,index:p}=s,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:h,objectIndexAlias:p,parseResult:s,children:he(e)?e.children:[e]};r.replaceNode(d),c.vFor++;const f=n&&n(d);return()=>{c.vFor--,f&&f()}}(e,t,r,(t=>{const i=G(s(w),[t.source]),a=oe(e,"key"),c=a?q("key",6===a.type?$(a.value.content,!0):a.exp):null,l=4===t.source.type&&t.source.constType>0,u=l?64:a?128:256;return t.codegenNode=V(r,s(o),void 0,i,`${u} /* ${n.m[u]} */`,void 0,void 0,!0,!l,e.loc),()=>{let a;const u=he(e),{children:d}=t;const f=1!==d.length||1!==d[0].type,m=pe(e)?e:u&&1===e.children.length&&pe(e.children[0])?e.children[0]:null;m?(a=m.codegenNode,u&&c&&de(a,c,r)):f?a=V(r,s(o),c?H([c]):void 0,e.children,`64 /* ${n.m[64]} */`,void 0,void 0,!0):(a=d[0].codegenNode,u&&c&&de(a,c,r),a.isBlock=!l,a.isBlock&&(s(h),s(p))),i.arguments.push(J(vt(t.parseResult),a,!0))}}))}));const dt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ft=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,mt=/^\(|\)$/g;function yt(e,t){const r=e.loc,n=e.content,s=n.match(dt);if(!s)return;const[,i,o]=s,a={source:gt(r,o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(mt,"").trim();const l=i.indexOf(c),u=c.match(ft);if(u){c=c.replace(ft,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,l+c.length),a.key=gt(r,e,t)),u[2]){const s=u[2].trim();s&&(a.index=gt(r,s,n.indexOf(s,a.key?t+e.length:l+c.length)))}}return c&&(a.value=gt(r,c,l)),a}function gt(e,t,r){return $(t,!1,re(e,r,t.length))}function vt({value:e,key:t,index:r}){const n=[];return e&&n.push(e),t&&(e||n.push($("_",!1)),n.push(t)),r&&(t||(e||n.push($("_",!1)),n.push($("__",!1))),n.push(r)),n}const bt=$("undefined",!1),xt=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const r=ie(e,"slot");if(r){r.exp;return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}}},wt=(e,t,r)=>J(e,t,!1,!0,t.length?t[0].loc:r);function kt(e,t,r=wt){t.helper(L);const{children:n,loc:s}=e,o=[],a=[],c=(e,t)=>q("default",r(e,t,s));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const u=ie(e,"slot",!0);if(u){const{arg:e,exp:t}=u;e&&!K(e)&&(l=!0),o.push(q(e||$("default",!0),r(t,n,s)))}let h=!1,p=!1;const d=[],f=new Set;for(let e=0;e{if(1===e.type&&(0===e.tagType||1===e.tagType))return function(){const{tag:r,props:s}=e,i=1===e.tagType,o=i?function(e,t,r=!1){const{tag:n}=e,s="component"===e.tag?oe(e,"is"):ie(e,"is");if(s){const e=6===s.type?s.value&&$(s.value.content,!0):s.exp;if(e)return G(t.helper(v),[e])}const i=Y(n)||t.isBuiltInComponent(n);if(i)return r||t.helper(i),i;return t.helper(g),t.components.add(n),fe(n,"component")}(e,t):`"${r}"`;let u,h,p,d,f,m,y=0,x=(0,n.Kn)(o)&&o.callee===v||o===a||o===c||!i&&("svg"===r||"foreignObject"===r||oe(e,"key",!0));if(s.length>0){const r=At(e,t);u=r.props,y=r.patchFlag,f=r.dynamicPropNames;const n=r.directives;m=n&&n.length?U(n.map((e=>function(e,t){const r=[],n=St.get(e);n?r.push(t.helperString(n)):(t.helper(b),t.directives.add(e.name),r.push(fe(e.name,"directive")));const{loc:s}=e;e.exp&&r.push(e.exp);e.arg&&(e.exp||r.push("void 0"),r.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||r.push("void 0"),r.push("void 0"));const t=$("true",!1,s);r.push(H(e.modifiers.map((e=>q(e,t))),s))}return U(r,e.loc)}(e,t)))):void 0}if(e.children.length>0){o===l&&(x=!0,y|=1024);if(i&&o!==a&&o!==l){const{slots:r,hasDynamicSlots:n}=kt(e,t);h=r,n&&(y|=1024)}else if(1===e.children.length&&o!==a){const t=e.children[0],r=t.type,n=5===r||8===r;n&&0===ze(t)&&(y|=1),h=n||2===r?t:e.children}else h=e.children}0!==y&&(p=String(y),f&&f.length&&(d=function(e){let t="[";for(let r=0,n=e.length;r{if(K(e)){const r=e.content,s=(0,n.F7)(r);if(c||!s||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||(0,n.Gg)(r)||(y=!0),s&&(0,n.Gg)(r)&&(v=!0),20===t.type||(4===t.type||8===t.type)&&ze(t)>0)return;"ref"===r?d=!0:"class"!==r||c?"style"!==r||c?"key"===r||b.includes(r)||b.push(r):m=!0:f=!0}else g=!0};for(let p=0;p1?G(t.helper(S),u,a):u[0]):l.length&&(w=H(Et(l),a)),g?p|=16:(f&&(p|=2),m&&(p|=4),b.length&&(p|=8),y&&(p|=32)),0!==p&&32!==p||!(d||v||h.length>0)||(p|=512),{props:w,directives:h,patchFlag:p,dynamicPropNames:b}}function Et(e){const t=new Map,r=[];for(let n=0;n{if(pe(e)){const{children:r,loc:n}=e,{slotName:s,slotProps:o}=function(e,t){let r,n='"default"';const s=oe(e,"name");s&&(6===s.type&&s.value?n=JSON.stringify(s.value.content):7===s.type&&s.exp&&(n=s.exp));const o=s?e.props.filter((e=>e!==s)):e.props;if(o.length>0){const{props:n,directives:s}=At(e,t,o);r=n,s.length&&t.onError(i(35,s[0].loc))}return{slotName:n,slotProps:r}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s];o&&a.push(o),r.length&&(o||a.push("{}"),a.push(J([],r,!1,!1,n))),e.codegenNode=G(t.helper(k),a,n)}};const It=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,Ot=(e,t,r,s)=>{const{loc:o,modifiers:a,arg:c}=e;let l;if(e.exp||a.length||r.onError(i(34,o)),4===c.type)if(c.isStatic){const e=c.content;l=$((0,n.hR)((0,n._A)(e)),!0,c.loc)}else l=z([`${r.helperString(_)}(`,c,")"]);else l=c,l.children.unshift(`${r.helperString(_)}(`),l.children.push(")");let u=e.exp;u&&!u.content.trim()&&(u=void 0);let h=r.cacheHandlers&&!u;if(u){const e=te(u.content),t=!(e||It.test(u.content)),r=u.content.includes(";");0,(t||h&&e)&&(u=z([`${t?"$event":"(...args)"} => ${r?"{":"("}`,u,r?"}":")"]))}let p={props:[q(l,u||$("() => {}",!1,o))]};return s&&(p=s(p)),h&&(p.props[0].value=r.cache(p.props[0].value)),p},Dt=(e,t,r)=>{const{exp:s,modifiers:o,loc:a}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=`${c.content} || ""`),o.includes("camel")&&(4===c.type?c.isStatic?c.content=(0,n._A)(c.content):c.content=`${r.helperString(A)}(${c.content})`:(c.children.unshift(`${r.helperString(A)}(`),c.children.push(")"))),!s||4===s.type&&!s.content.trim()?(r.onError(i(33,a)),{props:[q(c,$("",!0,a))]}):{props:[q(c,s)]}},Lt=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const r=e.children;let s,i=!1;for(let e=0;e{if(1===e.type&&ie(e,"once",!0)){if(Mt.has(e))return;return Mt.add(e),t.helper(N),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},jt=(e,t,r)=>{const{exp:n,arg:s}=e;if(!n)return r.onError(i(40,e.loc)),Rt();const o=n.loc.source,a=4===n.type?n.content:o;r.bindingMetadata[o];if(!te(a))return r.onError(i(41,n.loc)),Rt();const c=s||$("modelValue",!0),l=s?K(s)?`onUpdate:${s.content}`:z(['"onUpdate:" + ',s]):"onUpdate:modelValue";let u;u=z([`${r.isTS?"($event: any)":"$event"} => (`,n," = $event)"]);const h=[q(c,e.exp),q(l,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Z(e)?e:JSON.stringify(e))+": true")).join(", "),r=s?K(s)?`${s.content}Modifiers`:z([s,' + "Modifiers"']):"modelModifiers";h.push(q(r,$(`{ ${t} }`,!1,e.loc,2)))}return Rt(h)};function Rt(e=[]){return{props:e}}function Bt(e,t={}){const r=t.onError||s,o="module"===t.mode;!0===t.prefixIdentifiers?r(i(45)):o&&r(i(46));t.cacheHandlers&&r(i(47)),t.scopeId&&!o&&r(i(48));const a=(0,n.HD)(e)?ve(e,t):e,[c,l]=[[Ft,ct,pt,Nt,Ct,xt,Lt],{on:Ot,bind:Dt,model:jt}];return Xe(a,(0,n.l7)({},t,{prefixIdentifiers:false,nodeTransforms:[...c,...t.nodeTransforms||[]],directiveTransforms:(0,n.l7)({},l,t.directiveTransforms||{})})),et(a,(0,n.l7)({},t,{prefixIdentifiers:false}))}const Vt=()=>({props:[]})},8420:(e,t,r)=>{"use strict";r.d(t,{MY:()=>E});var n=r(958),s=r(3577);const i=Symbol(""),o=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),h=Symbol(""),p=Symbol(""),d=Symbol(""),f=Symbol("");let m;(0,n.sC)({[i]:"vModelRadio",[o]:"vModelCheckbox",[a]:"vModelText",[c]:"vModelSelect",[l]:"vModelDynamic",[u]:"withModifiers",[h]:"withKeys",[p]:"vShow",[d]:"Transition",[f]:"TransitionGroup"});const y=(0,s.fY)("style,iframe,script,noscript",!0),g={isVoidTag:s.WB,isNativeTag:e=>(0,s.eS)(e)||(0,s.aN)(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(m||(m=document.createElement("div"))).innerHTML=e,m.textContent},isBuiltInComponent:e=>(0,n.fz)(e,"Transition")?d:(0,n.fz)(e,"TransitionGroup")?f:void 0,getNamespace(e,t){let r=t?t.ns:0;if(t&&2===r)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)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(y(e))return 2}return 0}},v=(e,t)=>{const r=(0,s.yL)(e);return(0,n.Oq)(JSON.stringify(r),!1,t,3)};function b(e,t){return(0,n._x)(e,t,void 0)}const x=(0,s.fY)("passive,once,capture"),w=(0,s.fY)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),k=(0,s.fY)("left,right"),P=(0,s.fY)("onkeyup,onkeydown,onkeypress",!0),T=(e,t)=>(0,n.Yb)(e)&&"onclick"===e.content.toLowerCase()?(0,n.Oq)(t,!0):4!==e.type?(0,n.fC)(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const S=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(b(59,e.loc)),t.removeNode())},C=[e=>{1===e.type&&e.props.forEach(((t,r)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[r]={type:7,name:"bind",arg:(0,n.Oq)("style",!0,t.loc),exp:v(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],A={cloak:n.nN,html:(e,t,r)=>{const{exp:s,loc:i}=e;return s||r.onError(b(49,i)),t.children.length&&(r.onError(b(50,i)),t.children.length=0),{props:[(0,n._A)((0,n.Oq)("innerHTML",!0,i),s||(0,n.Oq)("",!0))]}},text:(e,t,r)=>{const{exp:s,loc:i}=e;return s||r.onError(b(51,i)),t.children.length&&(r.onError(b(52,i)),t.children.length=0),{props:[(0,n._A)((0,n.Oq)("textContent",!0),s?(0,n.rC)(r.helperString(n.OY),[s],i):(0,n.Oq)("",!0))]}},model:(e,t,r)=>{const s=(0,n.Ce)(e,t,r);if(!s.props.length||1===t.tagType)return s;e.arg&&r.onError(b(54,e.arg.loc));const{tag:u}=t,h=r.isCustomElement(u);if("input"===u||"textarea"===u||"select"===u||h){let p=a,d=!1;if("input"===u||h){const s=(0,n.kS)(t,"type");if(s){if(7===s.type)p=l;else if(s.value)switch(s.value.content){case"radio":p=i;break;case"checkbox":p=o;break;case"file":d=!0,r.onError(b(55,e.loc))}}else(0,n.QU)(t)&&(p=l)}else"select"===u&&(p=c);d||(s.needRuntime=r.helper(p))}else r.onError(b(53,e.loc));return s.props=s.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),s},on:(e,t,r)=>(0,n.J5)(e,t,r,(t=>{const{modifiers:i}=e;if(!i.length)return t;let{key:o,value:a}=t.props[0];const{keyModifiers:c,nonKeyModifiers:l,eventOptionModifiers:p}=((e,t)=>{const r=[],s=[],i=[];for(let o=0;o{const{exp:n,loc:s}=e;return n||r.onError(b(57,s)),{props:[],needRuntime:r.helper(p)}}};function E(e,t={}){return(0,n.ps)(e,(0,s.l7)({},g,t,{nodeTransforms:[S,...C,...t.nodeTransforms||[]],directiveTransforms:(0,s.l7)({},A,t.directiveTransforms||{}),transformHoist:null}))}},2262:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>Ee,ZM:()=>Pe,cE:()=>l,X3:()=>le,PG:()=>ae,$y:()=>ce,dq:()=>de,Xl:()=>he,Jd:()=>m,WL:()=>we,qj:()=>re,OT:()=>se,iH:()=>fe,lk:()=>y,Um:()=>ne,YS:()=>ie,XI:()=>me,sT:()=>u,IU:()=>ue,Vh:()=>Ce,BK:()=>Te,j:()=>g,X$:()=>v,oR:()=>ve,SU:()=>be});var n=r(3577);const s=new WeakMap,i=[];let o;const a=Symbol(""),c=Symbol("");function l(e,t=n.kT){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const r=function(){if(!r.active)return t.scheduler?void 0:e();if(!i.includes(r)){p(r);try{return f.push(d),d=!0,i.push(r),o=r,e()}finally{i.pop(),y(),o=i[i.length-1]}}};return r.id=h++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}(e,t);return t.lazy||r(),r}function u(e){e.active&&(p(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let h=0;function p(e){const{deps:t}=e;if(t.length){for(let r=0;r{e&&e.forEach((e=>{(e!==o||e.allowRecurse)&&p.add(e)}))};if("clear"===t)h.forEach(d);else if("length"===r&&(0,n.kJ)(e))h.forEach(((e,t)=>{("length"===t||t>=i)&&d(e)}));else switch(void 0!==r&&d(h.get(r)),t){case"add":(0,n.kJ)(e)?(0,n.S0)(r)&&d(h.get("length")):(d(h.get(a)),(0,n._N)(e)&&d(h.get(c)));break;case"delete":(0,n.kJ)(e)||(d(h.get(a)),(0,n._N)(e)&&d(h.get(c)));break;case"set":(0,n._N)(e)&&d(h.get(a))}p.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const b=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(n.yk)),x=S(),w=S(!1,!0),k=S(!0),P=S(!0,!0),T={};function S(e=!1,t=!1){return function(r,s,i){if("__v_isReactive"===s)return!e;if("__v_isReadonly"===s)return e;if("__v_raw"===s&&i===(e?te:ee).get(r))return r;const o=(0,n.kJ)(r);if(o&&(0,n.RI)(T,s))return Reflect.get(T,s,i);const a=Reflect.get(r,s,i);if((0,n.yk)(s)?b.has(s):"__proto__"===s||"__v_isRef"===s)return a;if(e||g(r,0,s),t)return a;if(de(a)){return!o||!(0,n.S0)(s)?a.value:a}return(0,n.Kn)(a)?e?se(a):re(a):a}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];T[e]=function(...e){const r=ue(this);for(let e=0,t=this.length;e{const t=Array.prototype[e];T[e]=function(...e){m();const r=t.apply(this,e);return y(),r}}));const C=E(),A=E(!0);function E(e=!1){return function(t,r,s,i){const o=t[r];if(!e&&(s=ue(s),!(0,n.kJ)(t)&&de(o)&&!de(s)))return o.value=s,!0;const a=(0,n.kJ)(t)&&(0,n.S0)(r)?Number(r)!0,deleteProperty:(e,t)=>!0},I=(0,n.l7)({},_,{get:w,set:A}),O=(0,n.l7)({},N,{get:P}),D=e=>(0,n.Kn)(e)?re(e):e,L=e=>(0,n.Kn)(e)?se(e):e,M=e=>e,F=e=>Reflect.getPrototypeOf(e);function j(e,t,r=!1,n=!1){const s=ue(e=e.__v_raw),i=ue(t);t!==i&&!r&&g(s,0,t),!r&&g(s,0,i);const{has:o}=F(s),a=r?L:n?M:D;return o.call(s,t)?a(e.get(t)):o.call(s,i)?a(e.get(i)):void 0}function R(e,t=!1){const r=this.__v_raw,n=ue(r),s=ue(e);return e!==s&&!t&&g(n,0,e),!t&&g(n,0,s),e===s?r.has(e):r.has(e)||r.has(s)}function B(e,t=!1){return e=e.__v_raw,!t&&g(ue(e),0,a),Reflect.get(e,"size",e)}function V(e){e=ue(e);const t=ue(this),r=F(t).has.call(t,e),n=t.add(e);return r||v(t,"add",e,e),n}function U(e,t){t=ue(t);const r=ue(this),{has:s,get:i}=F(r);let o=s.call(r,e);o||(e=ue(e),o=s.call(r,e));const a=i.call(r,e),c=r.set(e,t);return o?(0,n.aU)(t,a)&&v(r,"set",e,t):v(r,"add",e,t),c}function H(e){const t=ue(this),{has:r,get:n}=F(t);let s=r.call(t,e);s||(e=ue(e),s=r.call(t,e));n&&n.call(t,e);const i=t.delete(e);return s&&v(t,"delete",e,void 0),i}function q(){const e=ue(this),t=0!==e.size,r=e.clear();return t&&v(e,"clear",void 0,void 0),r}function $(e,t){return function(r,n){const s=this,i=s.__v_raw,o=ue(i),c=e?L:t?M:D;return!e&&g(o,0,a),i.forEach(((e,t)=>r.call(n,c(e),c(t),s)))}}function z(e,t,r){return function(...s){const i=this.__v_raw,o=ue(i),l=(0,n._N)(o),u="entries"===e||e===Symbol.iterator&&l,h="keys"===e&&l,p=i[e](...s),d=t?L:r?M:D;return!t&&g(o,0,h?c:a),{next(){const{value:e,done:t}=p.next();return t?{value:e,done:t}:{value:u?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function G(e){return function(...t){return"delete"!==e&&this}}const J={get(e){return j(this,e)},get size(){return B(this)},has:R,add:V,set:U,delete:H,clear:q,forEach:$(!1,!1)},W={get(e){return j(this,e,!1,!0)},get size(){return B(this)},has:R,add:V,set:U,delete:H,clear:q,forEach:$(!1,!0)},K={get(e){return j(this,e,!0)},get size(){return B(this,!0)},has(e){return R.call(this,e,!0)},add:G("add"),set:G("set"),delete:G("delete"),clear:G("clear"),forEach:$(!0,!1)};function X(e,t){const r=t?W:e?K:J;return(t,s,i)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get((0,n.RI)(r,s)&&s in t?r:t,s,i)}["keys","values","entries",Symbol.iterator].forEach((e=>{J[e]=z(e,!1,!1),K[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 re(e){return e&&e.__v_isReadonly?e:oe(e,!1,_,Y)}function ne(e){return oe(e,!1,I,Q)}function se(e){return oe(e,!0,N,Z)}function ie(e){return oe(e,!0,O,Z)}function oe(e,t,r,s){if(!(0,n.Kn)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=t?te:ee,o=i.get(e);if(o)return o;const a=(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,n.W7)(c));var c;if(0===a)return e;const l=new Proxy(e,2===a?s:r);return i.set(e,l),l}function ae(e){return ce(e)?ae(e.__v_raw):!(!e||!e.__v_isReactive)}function ce(e){return!(!e||!e.__v_isReadonly)}function le(e){return ae(e)||ce(e)}function ue(e){return e&&ue(e.__v_raw)||e}function he(e){return(0,n.Nj)(e,"__v_skip",!0),e}const pe=e=>(0,n.Kn)(e)?re(e):e;function de(e){return Boolean(e&&!0===e.__v_isRef)}function fe(e){return ge(e)}function me(e){return ge(e,!0)}class ye{constructor(e,t=!1){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:pe(e)}get value(){return g(ue(this),0,"value"),this._value}set value(e){(0,n.aU)(ue(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:pe(e),v(ue(this),"set","value",e))}}function ge(e,t=!1){return de(e)?e:new ye(e,t)}function ve(e){v(ue(e),"set","value",void 0)}function be(e){return de(e)?e.value:e}const xe={get:(e,t,r)=>be(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return de(s)&&!de(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function we(e){return ae(e)?e:new Proxy(e,xe)}class ke{constructor(e){this.__v_isRef=!0;const{get:t,set:r}=e((()=>g(this,0,"value")),(()=>v(this,"set","value")));this._get=t,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function Pe(e){return new ke(e)}function Te(e){const t=(0,n.kJ)(e)?new Array(e.length):{};for(const r in e)t[r]=Ce(e,r);return t}class Se{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 Ce(e,t){return de(e[t])?e[t]:new Se(e,t)}class Ae{constructor(e,t,r){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=l(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,v(ue(this),"set","value"))}}),this.__v_isReadonly=r}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),g(ue(this),0,"value"),this._value}set value(e){this._setter(e)}}function Ee(e){let t,r;return(0,n.mf)(e)?(t=e,r=n.dG):(t=e.get,r=e.set),new Ae(t,r,(0,n.mf)(e)||!e.set)}},6252:(e,t,r)=>{"use strict";r.d(t,{ZM:()=>n.ZM,X3:()=>n.X3,PG:()=>n.PG,$y:()=>n.$y,dq:()=>n.dq,Xl:()=>n.Xl,WL:()=>n.WL,qj:()=>n.qj,OT:()=>n.OT,iH:()=>n.iH,Um:()=>n.Um,YS:()=>n.YS,XI:()=>n.XI,IU:()=>n.IU,Vh:()=>n.Vh,BK:()=>n.BK,oR:()=>n.oR,SU:()=>n.SU,_A:()=>s._A,kC:()=>s.kC,zw:()=>s.zw,hR:()=>s.hR,P$:()=>De,sv:()=>It,HY:()=>_t,Ob:()=>Ue,qG:()=>Ot,n4:()=>J,lR:()=>wt,xv:()=>Nt,$d:()=>u,KU:()=>l,Ho:()=>Kt,Fl:()=>Ir,j4:()=>Vt,ry:()=>Qt,Eo:()=>ft,Us:()=>dt,Nv:()=>$r,uE:()=>Yt,Uk:()=>Xt,Wm:()=>Jt,RC:()=>Dr,aZ:()=>Or,zX:()=>Fr,MW:()=>Mr,mW:()=>L,FN:()=>xr,Q6:()=>Be,h:()=>Rr,S3:()=>h,Mr:()=>Ur,f3:()=>sr,lA:()=>Ut,dG:()=>rr,Y3:()=>S,dl:()=>$e,wF:()=>ye,Jd:()=>xe,Xn:()=>ve,se:()=>ze,d1:()=>Te,bv:()=>ge,bT:()=>Pe,Yq:()=>ke,Ah:()=>we,ic:()=>be,wg:()=>Mt,Cn:()=>ie,JJ:()=>nr,dD:()=>se,qb:()=>_,Y1:()=>Sr,Ko:()=>Hr,WI:()=>ee,up:()=>Pt,Q2:()=>Ct,LL:()=>St,U2:()=>Me,qZ:()=>Bt,ec:()=>M,nK:()=>Re,Uc:()=>Br,G:()=>Gr,mx:()=>qr,C3:()=>qt,qp:()=>jr,Zq:()=>Vr,Y8:()=>Ie,i8:()=>zr,ZK:()=>o,YP:()=>Ae,m0:()=>Se,w5:()=>te,wy:()=>tt,HX:()=>oe});var n=r(2262),s=r(3577);const i=[];function o(e,...t){(0,n.Jd)();const r=i.length?i[i.length-1].component:null,s=r&&r.appContext.config.warnHandler,o=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}();if(s)l(s,r,11,[e+t.join(""),r&&r.proxy,o.map((({vnode:e})=>`at <${_r(r,e.type)}>`)).join("\n"),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push("\n",...function(e){const t=[];return e.forEach(((e,r)=>{t.push(...0===r?[]:["\n"],...function({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=!!e.component&&null==e.component.parent,s=` at <${_r(e.component,e.type,n)}`,i=">"+r;return e.props?[s,...a(e.props),i]:[s+i]}(e))})),t}(o)),console.warn(...r)}(0,n.lk)()}function a(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach((r=>{t.push(...c(r,e[r]))})),r.length>3&&t.push(" ..."),t}function c(e,t,r){return(0,s.HD)(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?r?t:[`${e}=${t}`]:(0,n.dq)(t)?(t=c(e,(0,n.IU)(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):(0,s.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,n.IU)(t),r?t:[`${e}=`,t])}function l(e,t,r,n){let s;try{s=n?e(...n):e()}catch(e){h(e,t,r)}return s}function u(e,t,r,n){if((0,s.mf)(e)){const i=l(e,t,r,n);return i&&(0,s.tI)(i)&&i.catch((e=>{h(e,t,r)})),i}const i=[];for(let s=0;sO(e)-O(t))),w=0;wnull==e.id?1/0:e.id;function D(e){d=!1,p=!0,N(e),f.sort(((e,t)=>O(e)-O(t)));try{for(m=0;me.trim())):t&&(i=r.map(s.He))}let c=(0,s.hR)((0,s._A)(t)),l=n[c];!l&&o&&(c=(0,s.hR)((0,s.rs)(t)),l=n[c]),l&&u(l,e,6,i);const h=n[c+"Once"];if(h){if(e.emitted){if(e.emitted[c])return}else(e.emitted={})[c]=!0;u(h,e,6,i)}}function j(e,t,r=!1){if(!t.deopt&&void 0!==e.__emits)return e.__emits;const n=e.emits;let i={},o=!1;if(!(0,s.mf)(e)){const n=e=>{o=!0,(0,s.l7)(i,j(e,t,!0))};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return n||o?((0,s.kJ)(n)?n.forEach((e=>i[e]=null)):(0,s.l7)(i,n),e.__emits=i):e.__emits=null}function R(e,t){return!(!e||!(0,s.F7)(t))&&(t=t.replace(/Once$/,""),(0,s.RI)(e,t[2].toLowerCase()+t.slice(3))||(0,s.RI)(e,t.slice(2)))}let B=null;function V(e){B=e}function U(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:o,propsOptions:[a],slots:c,attrs:l,emit:u,render:p,renderCache:d,data:f,setupState:m,ctx:y}=e;let g;B=e;try{let e;if(4&r.shapeFlag){const t=i||n;g=Zt(p.call(t,t,d,o,m,f,y)),e=l}else{const r=t;0,g=Zt(r.length>1?r(o,{attrs:l,slots:c,emit:u}):r(o,null)),e=t.props?l:q(l)}let h=g;if(!1!==t.inheritAttrs&&e){const t=Object.keys(e),{shapeFlag:r}=h;t.length&&(1&r||6&r)&&(a&&t.some(s.tR)&&(e=$(e,a)),h=Kt(h,e))}r.dirs&&(h.dirs=h.dirs?h.dirs.concat(r.dirs):r.dirs),r.transition&&(h.transition=r.transition),g=h}catch(t){h(t,e,1),g=Jt(It)}return B=null,g}function H(e){const t=e.filter((e=>!(Ut(e)&&e.type===It&&"v-if"!==e.children)));return 1===t.length&&Ut(t[0])?t[0]:null}const q=e=>{let t;for(const r in e)("class"===r||"style"===r||(0,s.F7)(r))&&((t||(t={}))[r]=e[r]);return t},$=(e,t)=>{const r={};for(const n in e)(0,s.tR)(n)&&n.slice(9)in t||(r[n]=e[n]);return r};function z(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s0?(c(null,e.ssFallback,t,r,n,null,i),Y(h,e.ssFallback)):h.resolve()}(t,r,n,i,o,a,c,l):function(e,t,r,n,i,o,{p:a,um:c,o:{createElement:l}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:d,pendingBranch:f,isInFallback:m,isHydrating:y}=u;if(f)u.pendingBranch=h,Ht(h,f)?(a(f,h,u.hiddenContainer,null,i,u,o),u.deps<=0?u.resolve():m&&(a(d,p,r,n,i,null,o),Y(u,p))):(u.pendingId++,y?(u.isHydrating=!1,u.activeBranch=f):c(f,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=l("div"),m?(a(null,h,u.hiddenContainer,null,i,u,o),u.deps<=0?u.resolve():(a(d,p,r,n,i,null,o),Y(u,p))):d&&Ht(h,d)?(a(d,h,r,n,i,u,o),u.resolve(!0)):(a(null,h,u.hiddenContainer,null,i,u,o),u.deps<=0&&u.resolve()));else if(d&&Ht(h,d))a(d,h,r,n,i,u,o),Y(u,h);else{const e=t.props&&t.props.onPending;if((0,s.mf)(e)&&e(),u.pendingBranch=h,u.pendingId++,a(null,h,u.hiddenContainer,null,i,u,o),u.deps<=0)u.resolve();else{const{timeout:e,pendingId:t}=u;e>0?setTimeout((()=>{u.pendingId===t&&u.fallback(p)}),e):0===e&&u.fallback(p)}}}(e,t,r,n,i,a,l)},hydrate:function(e,t,r,n,s,i,o,a){const c=t.suspense=W(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,!0),l=a(e,c.pendingBranch=t.ssContent,r,c,i);0===c.deps&&c.resolve();return l},create:W};function W(e,t,r,n,i,o,a,c,l,u=!1){const{p,m:d,um:f,n:m,o:{parentNode:y,remove:g}}=l,v=(0,s.He)(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:r,isSVG:a,container:n,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:r,pendingBranch:n,pendingId:i,effects:o,parentComponent:a,container:c}=b;if(b.isHydrating)b.isHydrating=!1;else if(!e){const e=r&&n.transition&&"out-in"===n.transition.mode;e&&(r.transition.afterLeave=()=>{i===b.pendingId&&d(n,c,t,0)});let{anchor:t}=b;r&&(t=m(r),f(r,a,b,!0)),e||d(n,c,t,0)}Y(b,n),b.pendingBranch=null,b.isInFallback=!1;let l=b.parent,u=!1;for(;l;){if(l.pendingBranch){l.effects.push(...o),u=!0;break}l=l.parent}u||_(o),b.effects=[];const h=t.props&&t.props.onResolve;(0,s.mf)(h)&&h()},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:r,parentComponent:n,container:i,isSVG:o}=b,a=t.props&&t.props.onFallback;(0,s.mf)(a)&&a();const c=m(r),l=()=>{b.isInFallback&&(p(null,e,i,c,n,null,o),Y(b,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(r.transition.afterLeave=l),f(r,n,null,!0),b.isInFallback=!0,u||l()},move(e,t,r){b.activeBranch&&d(b.activeBranch,e,t,r),b.container=e},next:()=>b.activeBranch&&m(b.activeBranch),registerDep(e,t){if(!b.pendingBranch)return;const r=e.vnode.el;b.deps++,e.asyncDep.catch((t=>{h(t,e,0)})).then((n=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;b.deps--,e.asyncResolved=!0;const{vnode:s}=e;Tr(e,n),r&&(s.el=r);const i=!r&&e.subTree.el;t(e,s,y(r||e.subTree.el),r?null:m(e.subTree),b,a,c),i&&g(i),G(e,s.el),0===b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&f(b.activeBranch,r,e,t),b.pendingBranch&&f(b.pendingBranch,r,e,t)}};return b}function K(e){if((0,s.mf)(e)&&(e=e()),(0,s.kJ)(e)){0,e=H(e)}return Zt(e)}function X(e,t){t&&t.pendingBranch?(0,s.kJ)(e)?t.effects.push(...e):t.effects.push(e):_(e)}function Y(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,s=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=s,G(n,s))}let Q=0;const Z=e=>Q+=e;function ee(e,t,r={},n){let s=e[t];Q++;const i=(Mt(),Vt(_t,{key:r.key},s?s(r):n?n():[],1===e._?64:-2));return Q--,i}function te(e,t=B){if(!t)return e;const r=(...r)=>{Q||Mt(!0);const n=B;V(t);const s=e(...r);return V(n),Q||Ft(),s};return r._c=!0,r}let re=null;const ne=[];function se(e){ne.push(re=e)}function ie(){ne.pop(),re=ne[ne.length-1]||null}function oe(e){return t=>te((function(){se(e);const r=t.apply(this,arguments);return ie(),r}))}function ae(e,t,r,i){const[o,a]=e.propsOptions;if(t)for(const n in t){const a=t[n];if((0,s.Gg)(n))continue;let c;o&&(0,s.RI)(o,c=(0,s._A)(n))?r[c]=a:R(e.emitsOptions,n)||(i[n]=a)}if(a){const t=(0,n.IU)(r);for(let n=0;n{a=!0;const[r,n]=le(e,t,!0);(0,s.l7)(i,r),n&&o.push(...n)};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!n&&!a)return e.__props=s.Z6;if((0,s.kJ)(n))for(let e=0;e-1,a[1]=r<0||e-1||(0,s.RI)(a,"default"))&&o.push(t)}}}}return e.__props=[i,o]}function ue(e){return"$"!==e[0]}function he(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function pe(e,t){return he(e)===he(t)}function de(e,t){if((0,s.kJ)(t)){for(let r=0,n=t.length;r{if(r.isUnmounted)return;(0,n.Jd)(),wr(r);const i=u(t,r,e,s);return wr(null),(0,n.lk)(),i});return s?i.unshift(o):i.push(o),o}}const me=e=>(t,r=br)=>!Pr&&fe(e,t,r),ye=me("bm"),ge=me("m"),ve=me("bu"),be=me("u"),xe=me("bum"),we=me("um"),ke=me("rtg"),Pe=me("rtc"),Te=(e,t=br)=>{fe("ec",e,t)};function Se(e,t){return Ee(e,null,t)}const Ce={};function Ae(e,t,r){return Ee(e,t,r)}function Ee(e,t,{immediate:r,deep:i,flush:o,onTrack:a,onTrigger:c}=s.kT,h=br){let p,d,f=!1;if((0,n.dq)(e)?(p=()=>e.value,f=!!e._shallow):(0,n.PG)(e)?(p=()=>e,i=!0):p=(0,s.kJ)(e)?()=>e.map((e=>(0,n.dq)(e)?e.value:(0,n.PG)(e)?Ne(e):(0,s.mf)(e)?l(e,h,2):void 0)):(0,s.mf)(e)?t?()=>l(e,h,2):()=>{if(!h||!h.isUnmounted)return d&&d(),l(e,h,3,[m])}:s.dG,t&&i){const e=p;p=()=>Ne(e())}const m=e=>{d=k.options.onStop=()=>{l(e,h,4)}};let b=(0,s.kJ)(e)?[]:Ce;const x=()=>{if(k.active)if(t){const e=k();(i||f||(0,s.aU)(e,b))&&(d&&d(),u(t,h,3,[e,b===Ce?void 0:b,m]),b=e)}else k()};let w;x.allowRecurse=!!t,w="sync"===o?x:"post"===o?()=>ht(x,h&&h.suspense):()=>{!h||h.isMounted?function(e){E(e,g,y,v)}(x):x()};const k=(0,n.cE)(p,{lazy:!0,onTrack:a,onTrigger:c,scheduler:w});return Ar(k),t?r?x():b=k():"post"===o?ht(k,h&&h.suspense):k(),()=>{(0,n.sT)(k),h&&(0,s.Od)(h.effects,k)}}function _e(e,t,r){const n=this.proxy;return Ee((0,s.HD)(e)?()=>n[e]:e.bind(n),t.bind(n),r,this)}function Ne(e,t=new Set){if(!(0,s.Kn)(e)||t.has(e))return e;if(t.add(e),(0,n.dq)(e))Ne(e.value,t);else if((0,s.kJ)(e))for(let r=0;r{Ne(e,t)}));else for(const r in e)Ne(e[r],t);return e}function Ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ge((()=>{e.isMounted=!0})),xe((()=>{e.isUnmounting=!0})),e}const Oe=[Function,Array],De={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 r=xr(),s=Ie();let i;return()=>{const o=t.default&&Be(t.default(),!0);if(!o||!o.length)return;const a=(0,n.IU)(e),{mode:c}=a;const l=o[0];if(s.isLeaving)return Fe(l);const u=je(l);if(!u)return Fe(l);const h=Me(u,a,s,r);Re(u,h);const p=r.subTree,d=p&&je(p);let f=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,f=!0)}if(d&&d.type!==It&&(!Ht(u,d)||f)){const e=Me(d,a,s,r);if(Re(d,e),"out-in"===c)return s.isLeaving=!0,e.afterLeave=()=>{s.isLeaving=!1,r.update()},Fe(l);"in-out"===c&&(e.delayLeave=(e,t,r)=>{Le(s,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=r})}return l}}};function Le(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Me(e,t,r,n){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:h,onBeforeLeave:p,onLeave:d,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=t,x=String(e.key),w=Le(r,e),k=(e,t)=>{e&&u(e,n,9,t)},P={mode:i,persisted:o,beforeEnter(t){let n=a;if(!r.isMounted){if(!s)return;n=y||a}t._leaveCb&&t._leaveCb(!0);const i=w[x];i&&Ht(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(n,[t])},enter(e){let t=c,n=l,i=h;if(!r.isMounted){if(!s)return;t=g||c,n=v||l,i=b||h}let o=!1;const a=e._enterCb=t=>{o||(o=!0,k(t?i:n,[e]),P.delayedLeave&&P.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,n){const s=String(e.key);if(t._enterCb&&t._enterCb(!0),r.isUnmounting)return n();k(p,[t]);let i=!1;const o=t._leaveCb=r=>{i||(i=!0,n(),k(r?m:f,[t]),t._leaveCb=void 0,w[s]===e&&delete w[s])};w[s]=e,d?(d(t,o),d.length<=1&&o()):o()},clone:e=>Me(e,t,r,n)};return P}function Fe(e){if(Ve(e))return(e=Kt(e)).children=null,e}function je(e){return Ve(e)?e.children?e.children[0]:void 0:e}function Re(e,t){6&e.shapeFlag&&e.component?Re(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 Be(e,t=!1){let r=[],n=0;for(let s=0;s1)for(let e=0;ee.type.__isKeepAlive,Ue={name:"KeepAlive",__isKeepAlive:!0,inheritRef:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=new Map,n=new Set;let i=null;const o=xr(),a=o.suspense,c=o.ctx,{renderer:{p:l,m:u,um:h,o:{createElement:p}}}=c,d=p("div");function f(e){We(e),h(e,o,a)}function m(e){r.forEach(((t,r)=>{const n=He(t.type);!n||e&&e(n)||y(r)}))}function y(e){const t=r.get(e);i&&t.type===i.type?i&&We(i):f(t),r.delete(e),n.delete(e)}c.activate=(e,t,r,n,i)=>{const o=e.component;u(e,t,r,0,a),l(o.vnode,e,t,r,o,a,n,i),ht((()=>{o.isDeactivated=!1,o.a&&(0,s.ir)(o.a);const t=e.props&&e.props.onVnodeMounted;t&&yt(t,o.parent,e)}),a)},c.deactivate=e=>{const t=e.component;u(e,d,null,1,a),ht((()=>{t.da&&(0,s.ir)(t.da);const r=e.props&&e.props.onVnodeUnmounted;r&&yt(r,t.parent,e),t.isDeactivated=!0}),a)},Ae((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>qe(e,t))),t&&m((e=>!qe(t,e)))}),{flush:"post"});let g=null;const v=()=>{null!=g&&r.set(g,Ke(o.subTree))};return ge(v),be(v),xe((()=>{r.forEach((e=>{const{subTree:t,suspense:r}=o,n=Ke(t);if(e.type!==n.type)f(e);else{We(n);const e=n.component.da;e&&ht(e,r)}}))})),()=>{if(g=null,!t.default)return null;const s=t.default(),o=s[0];if(s.length>1)return i=null,s;if(!(Ut(o)&&(4&o.shapeFlag||128&o.shapeFlag)))return i=null,o;let a=Ke(o);const c=a.type,l=He(c),{include:u,exclude:h,max:p}=e;if(u&&(!l||!qe(u,l))||h&&l&&qe(h,l))return i=a,o;const d=null==a.key?c:a.key,f=r.get(d);return a.el&&(a=Kt(a),128&o.shapeFlag&&(o.ssContent=a)),g=d,f?(a.el=f.el,a.component=f.component,a.transition&&Re(a,a.transition),a.shapeFlag|=512,n.delete(d),n.add(d)):(n.add(d),p&&n.size>parseInt(p,10)&&y(n.values().next().value)),a.shapeFlag|=256,i=a,o}}};function He(e){return e.displayName||e.name}function qe(e,t){return(0,s.kJ)(e)?e.some((e=>qe(e,t))):(0,s.HD)(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function $e(e,t){Ge(e,"a",t)}function ze(e,t){Ge(e,"da",t)}function Ge(e,t,r=br){const n=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(fe(t,n,r),r){let e=r.parent;for(;e&&e.parent;)Ve(e.parent.vnode)&&Je(n,t,r,e),e=e.parent}}function Je(e,t,r,n){const i=fe(t,e,n,!0);we((()=>{(0,s.Od)(n[t],i)}),r)}function We(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Ke(e){return 128&e.shapeFlag?e.ssContent:e}const Xe=e=>"_"===e[0]||"$stable"===e,Ye=e=>(0,s.kJ)(e)?e.map(Zt):[Zt(e)],Qe=(e,t,r)=>te((e=>Ye(t(e))),r),Ze=(e,t)=>{const r=e._ctx;for(const n in e){if(Xe(n))continue;const i=e[n];if((0,s.mf)(i))t[n]=Qe(0,i,r);else if(null!=i){0;const e=Ye(i);t[n]=()=>e}}},et=(e,t)=>{const r=Ye(t);e.slots.default=()=>r};function tt(e,t){if(null===B)return e;const r=B.proxy,n=e.dirs||(e.dirs=[]);for(let e=0;e(o.has(e)||(e&&(0,s.mf)(e.install)?(o.add(e),e.install(c,...t)):(0,s.mf)(e)&&(o.add(e),e(c,...t))),c),mixin:e=>(i.mixins.includes(e)||(i.mixins.push(e),(e.props||e.emits)&&(i.deopt=!0)),c),component:(e,t)=>t?(i.components[e]=t,c):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,c):i.directives[e],mount(s,o){if(!a){const l=Jt(r,n);return l.appContext=i,o&&t?t(l,s):e(l,s),a=!0,c._container=s,s.__vue_app__=c,l.component.proxy}},unmount(){a&&e(null,c._container)},provide:(e,t)=>(i.provides[e]=t,c)};return c}}let ot=!1;const at=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,ct=e=>8===e.nodeType;function lt(e){const{mt:t,p:r,o:{patchProp:n,nextSibling:i,parentNode:o,remove:a,insert:c,createComment:l}}=e,u=(r,n,s,a,c=!1)=>{const l=ct(r)&&"["===r.data,y=()=>f(r,n,s,a,l),{type:g,ref:v,shapeFlag:b}=n,x=r.nodeType;n.el=r;let w=null;switch(g){case Nt:3!==x?w=y():(r.data!==n.children&&(ot=!0,r.data=n.children),w=i(r));break;case It:w=8!==x||l?y():i(r);break;case Ot:if(1===x){w=r;const e=!n.children.length;for(let t=0;t{t(n,e,null,s,a,at(e),c)},h=n.type.__asyncLoader;h?h().then(u):u(),w=l?m(r):i(r)}else 64&b?w=8!==x?y():n.type.hydrate(r,n,s,a,c,e,p):128&b&&(w=n.type.hydrate(r,n,s,a,at(o(r)),c,e,u))}return null!=v&&s&&pt(v,null,s,a,n),w},h=(e,t,r,i,o)=>{o=o||!!t.dynamicChildren;const{props:c,patchFlag:l,shapeFlag:u,dirs:h}=t;if(-1!==l){if(h&&rt(t,null,r,"created"),c)if(!o||16&l||32&l)for(const t in c)!(0,s.Gg)(t)&&(0,s.F7)(t)&&n(e,t,null,c[t]);else c.onClick&&n(e,"onClick",null,c.onClick);let d;if((d=c&&c.onVnodeBeforeMount)&&yt(d,r,t),h&&rt(t,null,r,"beforeMount"),((d=c&&c.onVnodeMounted)||h)&&X((()=>{d&&yt(d,r,t),h&&rt(t,null,r,"mounted")}),i),16&u&&(!c||!c.innerHTML&&!c.textContent)){let n=p(e.firstChild,t,e,r,i,o);for(;n;){ot=!0;const e=n;n=n.nextSibling,a(e)}}else 8&u&&e.textContent!==t.children&&(ot=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,n,s,i,o)=>{o=o||!!t.dynamicChildren;const a=t.children,c=a.length;for(let t=0;t{const a=o(e),u=p(i(e),t,a,r,n,s);return u&&ct(u)&&"]"===u.data?i(t.anchor=u):(ot=!0,c(t.anchor=l("]"),a,u),u)},f=(e,t,n,s,c)=>{if(ot=!0,t.el=null,c){const t=m(e);for(;;){const r=i(e);if(!r||r===t)break;a(r)}}const l=i(e),u=o(e);return a(e),r(null,t,u,l,n,s,at(u)),l},m=e=>{let t=0;for(;e;)if((e=i(e))&&ct(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[(e,t)=>{ot=!1,u(t.firstChild,e,null,null),I(),ot&&console.error("Hydration completed but contains mismatches.")},u]}const ut={scheduler:C,allowRecurse:!0};const ht=X,pt=(e,t,r,i,o)=>{if((0,s.kJ)(e))return void e.forEach(((e,n)=>pt(e,t&&((0,s.kJ)(t)?t[n]:t),r,i,o)));let a;a=o?4&o.shapeFlag?o.component.exposed||o.component.proxy:o.el:null;const{i:c,r:u}=e;const h=t&&t.r,p=c.refs===s.kT?c.refs={}:c.refs,d=c.setupState;if(null!=h&&h!==u&&((0,s.HD)(h)?(p[h]=null,(0,s.RI)(d,h)&&(d[h]=null)):(0,n.dq)(h)&&(h.value=null)),(0,s.HD)(u)){const e=()=>{p[u]=a,(0,s.RI)(d,u)&&(d[u]=a)};a?(e.id=-1,ht(e,i)):e()}else if((0,n.dq)(u)){const e=()=>{u.value=a};a?(e.id=-1,ht(e,i)):e()}else(0,s.mf)(u)&&l(u,r,12,[a,p])};function dt(e){return mt(e)}function ft(e){return mt(e,lt)}function mt(e,t){const{insert:r,remove:i,patchProp:o,forcePatchProp:a,createElement:c,createText:u,createComment:h,setText:p,setElementText:d,parentNode:m,nextSibling:y,setScopeId:g=s.dG,cloneNode:v,insertStaticContent:b}=e,x=(e,t,r,n=null,s=null,i=null,o=!1,a=!1)=>{e&&!Ht(e,t)&&(n=ee(e),K(e,s,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:l,shapeFlag:u}=t;switch(c){case Nt:w(e,t,r,n);break;case It:k(e,t,r,n);break;case Ot:null==e&&P(t,r,n,o);break;case _t:D(e,t,r,n,s,i,o,a);break;default:1&u?T(e,t,r,n,s,i,o,a):6&u?L(e,t,r,n,s,i,o,a):(64&u||128&u)&&c.process(e,t,r,n,s,i,o,a,re)}null!=l&&s&&pt(l,e&&e.ref,s,i,t)},w=(e,t,n,s)=>{if(null==e)r(t.el=u(t.children),n,s);else{const r=t.el=e.el;t.children!==e.children&&p(r,t.children)}},k=(e,t,n,s)=>{null==e?r(t.el=h(t.children||""),n,s):t.el=e.el},P=(e,t,r,n)=>{[e.el,e.anchor]=b(e.children,t,r,n)},T=(e,t,r,n,s,i,o,a)=>{o=o||"svg"===t.type,null==e?S(t,r,n,s,i,o,a):E(e,t,s,i,o,a)},S=(e,t,n,i,a,l,u)=>{let h,p;const{type:f,props:m,shapeFlag:y,transition:g,scopeId:b,patchFlag:x,dirs:w}=e;if(e.el&&void 0!==v&&-1===x)h=e.el=v(e.el);else{if(h=e.el=c(e.type,l,m&&m.is),8&y?d(h,e.children):16&y&&A(e.children,h,null,i,a,l&&"foreignObject"!==f,u||!!e.dynamicChildren),w&&rt(e,null,i,"created"),m){for(const t in m)(0,s.Gg)(t)||o(h,t,null,m[t],l,e.children,i,a,Z);(p=m.onVnodeBeforeMount)&&yt(p,i,e)}C(h,b,e,i)}w&&rt(e,null,i,"beforeMount");const k=(!a||a&&!a.pendingBranch)&&g&&!g.persisted;k&&g.beforeEnter(h),r(h,t,n),((p=m&&m.onVnodeMounted)||k||w)&&ht((()=>{p&&yt(p,i,e),k&&g.enter(h),w&&rt(e,null,i,"mounted")}),a)},C=(e,t,r,n)=>{if(t&&g(e,t),n){const s=n.type.__scopeId;s&&s!==t&&g(e,s+"-s"),0,r===n.subTree&&C(e,n.vnode.scopeId,n.vnode,n.parent)}},A=(e,t,r,n,s,i,o,a=0)=>{for(let c=a;c{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||s.kT,m=t.props||s.kT;let y;if((y=m.onVnodeBeforeUpdate)&&yt(y,r,t,e),p&&rt(t,e,r,"beforeUpdate"),u>0){if(16&u)O(l,t,f,m,r,n,i);else if(2&u&&f.class!==m.class&&o(l,"class",null,m.class,i),4&u&&o(l,"style",f.style,m.style,i),8&u){const s=t.dynamicProps;for(let t=0;t{y&&yt(y,r,t,e),p&&rt(t,e,r,"updated")}),n)},_=(e,t,r,n,s,i)=>{for(let o=0;o{if(r!==n){for(const u in n){if((0,s.Gg)(u))continue;const h=n[u],p=r[u];(h!==p||a&&a(e,u))&&o(e,u,p,h,l,t.children,i,c,Z)}if(r!==s.kT)for(const a in r)(0,s.Gg)(a)||a in n||o(e,a,r[a],null,l,t.children,i,c,Z)}},D=(e,t,n,s,i,o,a,c)=>{const l=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:d}=t;p>0&&(c=!0),null==e?(r(l,n,s),r(h,n,s),A(t.children,n,h,i,o,a,c)):p>0&&64&p&&d?(_(e.dynamicChildren,d,n,i,o,a),(null!=t.key||i&&t===i.subTree)&>(e,t,!0)):q(e,t,n,h,i,o,a,c)},L=(e,t,r,n,s,i,o,a)=>{null==e?512&t.shapeFlag?s.ctx.activate(t,r,n,o,a):M(t,r,n,s,i,o,a):B(e,t,a)},M=(e,t,r,i,o,a,c)=>{const u=e.component=function(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||gr,o={uid:vr++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:le(n,i),emitsOptions:j(n,i),emit:null,emitted:null,ctx:s.kT,data:s.kT,props:s.kT,attrs:s.kT,slots:s.kT,refs:s.kT,setupState:s.kT,setupContext:null,suspense:r,suspenseId:r?r.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};o.ctx={_:o};o.root=t?t.root:o,o.emit=F.bind(null,o),!1;return o}(e,i,o);if(Ve(e)&&(u.ctx.renderer=re),function(e,t=!1){Pr=t;const{props:r,children:i,shapeFlag:o}=e.vnode,a=4&o;(function(e,t,r,i=!1){const o={},a={};(0,s.Nj)(a,$t,1),ae(e,t,o,a),r?e.props=i?o:(0,n.Um)(o):e.type.props?e.props=o:e.props=a,e.attrs=a})(e,r,a,t),((e,t)=>{if(32&e.vnode.shapeFlag){const r=t._;r?(e.slots=t,(0,s.Nj)(t,"_",r)):Ze(t,e.slots={})}else e.slots={},t&&et(e,t);(0,s.Nj)(e.slots,$t,1)})(e,i);const c=a?function(e,t){const r=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mr),!1;const{setup:i}=r;if(i){const r=e.setupContext=i.length>1?function(e){const t=t=>{e.exposed=(0,n.WL)(t)};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}(e):null;br=e,(0,n.Jd)();const o=l(i,e,0,[e.props,r]);if((0,n.lk)(),br=null,(0,s.tI)(o)){if(t)return o.then((t=>{Tr(e,t)}));e.asyncDep=o}else Tr(e,o)}else Cr(e)}(e,t):void 0;Pr=!1}(u),u.asyncDep){if(o&&o.registerDep(u,V),!e.el){const e=u.subTree=Jt(It);k(null,e,t,r)}}else V(u,e,t,r,o,a,c)},B=(e,t,r)=>{const n=t.component=e.component;if(function(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&c>=0))return!(!s&&!a||a&&a.$stable)||n!==o&&(n?!o||z(n,o,l):!!o);if(1024&c)return!0;if(16&c)return n?z(n,o,l):!!o;if(8&c){const e=t.dynamicProps;for(let t=0;t-1&&f.splice(t,1)}(n.update),n.update()}else t.component=e.component,t.el=e.el,n.vnode=t},V=(e,t,r,i,o,a,c)=>{e.update=(0,n.cE)((function(){if(e.isMounted){let t,{next:r,bu:n,u:i,parent:l,vnode:u}=e,h=r;0,r?(r.el=u.el,H(e,r,c)):r=u,n&&(0,s.ir)(n),(t=r.props&&r.props.onVnodeBeforeUpdate)&&yt(t,l,r,u);const p=U(e);0;const d=e.subTree;e.subTree=p,x(d,p,m(d.el),ee(d),e,o,a),r.el=p.el,null===h&&G(e,p.el),i&&ht(i,o),(t=r.props&&r.props.onVnodeUpdated)&&ht((()=>{yt(t,l,r,u)}),o)}else{let n;const{el:c,props:l}=t,{bm:u,m:h,parent:p}=e;u&&(0,s.ir)(u),(n=l&&l.onVnodeBeforeMount)&&yt(n,p,t);const d=e.subTree=U(e);0,c&&se?se(t.el,d,e,o):(x(null,d,r,i,e,o,a),t.el=d.el),h&&ht(h,o),(n=l&&l.onVnodeMounted)&&ht((()=>{yt(n,p,t)}),o);const{a:f}=e;f&&256&t.shapeFlag&&ht(f,o),e.isMounted=!0}}),ut)},H=(e,t,r)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=e,l=(0,n.IU)(o),[u]=e.propsOptions;if(!(i||c>0)||16&c){let n;ae(e,t,o,a);for(const i in l)t&&((0,s.RI)(t,i)||(n=(0,s.rs)(i))!==i&&(0,s.RI)(t,n))||(u?!r||void 0===r[i]&&void 0===r[n]||(o[i]=ce(u,t||s.kT,i,void 0,e)):delete o[i]);if(a!==l)for(const e in a)t&&(0,s.RI)(t,e)||delete a[e]}else if(8&c){const r=e.vnode.dynamicProps;for(let n=0;n{const{vnode:r,slots:n}=e;let i=!0,o=s.kT;if(32&r.shapeFlag){const e=t._;e?1===e?i=!1:(0,s.l7)(n,t):(i=!t.$stable,Ze(t,n)),o=t}else t&&(et(e,t),o={default:1});if(i)for(const e in n)Xe(e)||e in o||delete n[e]})(e,t.children),N(void 0,e.update)},q=(e,t,r,n,s,i,o,a=!1)=>{const c=e&&e.children,l=e?e.shapeFlag:0,u=t.children,{patchFlag:h,shapeFlag:p}=t;if(h>0){if(128&h)return void J(c,u,r,n,s,i,o,a);if(256&h)return void $(c,u,r,n,s,i,o,a)}8&p?(16&l&&Z(c,s,i),u!==c&&d(r,u)):16&l?16&p?J(c,u,r,n,s,i,o,a):Z(c,s,i,!0):(8&l&&d(r,""),16&p&&A(u,r,n,s,i,o,a))},$=(e,t,r,n,i,o,a,c)=>{e=e||s.Z6,t=t||s.Z6;const l=e.length,u=t.length,h=Math.min(l,u);let p;for(p=0;pu?Z(e,i,o,!0,!1,h):A(t,r,n,i,o,a,c,h)},J=(e,t,r,n,i,o,a,c)=>{let l=0;const u=t.length;let h=e.length-1,p=u-1;for(;l<=h&&l<=p;){const n=e[l],s=t[l]=c?er(t[l]):Zt(t[l]);if(!Ht(n,s))break;x(n,s,r,null,i,o,a,c),l++}for(;l<=h&&l<=p;){const n=e[h],s=t[p]=c?er(t[p]):Zt(t[p]);if(!Ht(n,s))break;x(n,s,r,null,i,o,a,c),h--,p--}if(l>h){if(l<=p){const e=p+1,s=ep)for(;l<=h;)K(e[l],i,o,!0),l++;else{const d=l,f=l,m=new Map;for(l=f;l<=p;l++){const e=t[l]=c?er(t[l]):Zt(t[l]);null!=e.key&&m.set(e.key,l)}let y,g=0;const v=p-f+1;let b=!1,w=0;const k=new Array(v);for(l=0;l=v){K(n,i,o,!0);continue}let s;if(null!=n.key)s=m.get(n.key);else for(y=f;y<=p;y++)if(0===k[y-f]&&Ht(n,t[y])){s=y;break}void 0===s?K(n,i,o,!0):(k[s-f]=l+1,s>=w?w=s:b=!0,x(n,t[s],r,null,i,o,a,c),g++)}const P=b?function(e){const t=e.slice(),r=[0];let n,s,i,o,a;const c=e.length;for(n=0;n0&&(t[n]=r[i-1]),r[i]=n)}}i=r.length,o=r[i-1];for(;i-- >0;)r[i]=o,o=t[o];return r}(k):s.Z6;for(y=P.length-1,l=v-1;l>=0;l--){const e=f+l,s=t[e],c=e+1{const{el:o,type:a,transition:c,children:l,shapeFlag:u}=e;if(6&u)return void W(e.component.subTree,t,n,s);if(128&u)return void e.suspense.move(t,n,s);if(64&u)return void a.move(e,t,n,re);if(a===_t){r(o,t,n);for(let e=0;ec.enter(o)),i);else{const{leave:e,delayLeave:s,afterLeave:i}=c,a=()=>r(o,t,n),l=()=>{e(o,(()=>{a(),i&&i()}))};s?s(o,a,l):l()}else r(o,t,n)},K=(e,t,r,n=!1,s=!1)=>{const{type:i,props:o,ref:a,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:p}=e;if(null!=a&&t&&pt(a,null,t,r,null),256&u)return void t.ctx.deactivate(e);const d=1&u&&p;let f;if((f=o&&o.onVnodeBeforeUnmount)&&yt(f,t,e),6&u)Q(e.component,r,n);else{if(128&u)return void e.suspense.unmount(r,n);d&&rt(e,null,t,"beforeUnmount"),l&&(i!==_t||h>0&&64&h)?Z(l,t,r,!1,!0):(i===_t&&(128&h||256&h)||!s&&16&u)&&Z(c,t,r),64&u&&(n||!vt(e.props))&&e.type.remove(e,re),n&&X(e)}((f=o&&o.onVnodeUnmounted)||d)&&ht((()=>{f&&yt(f,t,e),d&&rt(e,null,t,"unmounted")}),r)},X=e=>{const{type:t,el:r,anchor:n,transition:s}=e;if(t===_t)return void Y(r,n);const o=()=>{i(r),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:n}=s,i=()=>t(r,o);n?n(e.el,o,i):i()}else o()},Y=(e,t)=>{let r;for(;e!==t;)r=y(e),i(e),e=r;i(t)},Q=(e,t,r)=>{const{bum:i,effects:o,update:a,subTree:c,um:l}=e;if(i&&(0,s.ir)(i),o)for(let e=0;e{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=(e,t,r,n=!1,s=!1,i=0)=>{for(let o=i;o6&e.shapeFlag?ee(e.component.subTree):128&e.shapeFlag?e.suspense.next():y(e.anchor||e.el),te=(e,t)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):x(t._vnode||null,e,t),I(),t._vnode=e},re={p:x,um:K,m:W,r:X,mt:M,mc:A,pc:q,pbc:_,n:ee,o:e};let ne,se;return t&&([ne,se]=t(re)),{render:te,hydrate:ne,createApp:it(te,ne)}}function yt(e,t,r,n=null){u(e,t,7,[r,n])}function gt(e,t,r=!1){const n=e.children,i=t.children;if((0,s.kJ)(n)&&(0,s.kJ)(i))for(let e=0;ee&&(e.disabled||""===e.disabled),bt=(e,t)=>{const r=e&&e.to;if((0,s.HD)(r)){if(t){const e=t(r);return e}return null}return r};function xt(e,t,r,{o:{insert:n},m:s},i=2){0===i&&n(e.targetAnchor,t,r);const{el:o,anchor:a,shapeFlag:c,children:l,props:u}=e,h=2===i;if(h&&n(o,t,r),(!h||vt(u))&&16&c)for(let e=0;e{16&g&&l(v,e,t,s,i,o,a)};y?m(r,c):u&&m(u,h)}else{t.el=e.el;const n=t.anchor=e.anchor,l=t.target=e.target,p=t.targetAnchor=e.targetAnchor,f=vt(e.props),m=f?r:l,g=f?n:p;if(t.dynamicChildren?(h(e.dynamicChildren,t.dynamicChildren,m,s,i,o),gt(e,t,!0)):a||u(e,t,m,g,s,i,o),y)f||xt(t,r,n,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=bt(t.props,d);e&&xt(t,e,null,c,0)}else f&&xt(t,l,p,c,1)}},remove(e,{r:t,o:{remove:r}}){const{shapeFlag:n,children:s,anchor:i}=e;if(r(i),16&n)for(let e=0;e0&&Lt&&Lt.push(o),o}function Ut(e){return!!e&&!0===e.__v_isVNode}function Ht(e,t){return e.type===t.type&&e.key===t.key}function qt(e){jt=e}const $t="__vInternal",zt=({key:e})=>null!=e?e:null,Gt=({ref:e})=>null!=e?(0,s.kJ)(e)?e:{i:B,r:e}:null,Jt=Wt;function Wt(e,t=null,r=null,i=0,o=null,a=!1){if(e&&e!==Tt||(e=It),Ut(e)){const n=Kt(e,t,!0);return r&&tr(n,r),n}if(Nr(e)&&(e=e.__vccOpts),t){((0,n.X3)(t)||$t in t)&&(t=(0,s.l7)({},t));let{class:e,style:r}=t;e&&!(0,s.HD)(e)&&(t.class=(0,s.C_)(e)),(0,s.Kn)(r)&&((0,n.X3)(r)&&!(0,s.kJ)(r)&&(r=(0,s.l7)({},r)),t.style=(0,s.j5)(r))}const c=(0,s.HD)(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:(0,s.Kn)(e)?4:(0,s.mf)(e)?2:0;const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zt(t),ref:t&&Gt(t),scopeId:re,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:i,dynamicProps:o,dynamicChildren:null,appContext:null};if(tr(l,r),128&c){const{content:e,fallback:t}=function(e){const{shapeFlag:t,children:r}=e;let n,s;return 32&t?(n=K(r.default),s=K(r.fallback)):(n=K(r),s=Zt(null)),{content:n,fallback:s}}(l);l.ssContent=e,l.ssFallback=t}return Rt>0&&!a&&Lt&&(i>0||6&c)&&32!==i&&Lt.push(l),l}function Kt(e,t,r=!1){const{props:n,ref:i,patchFlag:o}=e,a=t?rr(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&zt(a),ref:t&&t.ref?r&&i?(0,s.kJ)(i)?i.concat(Gt(t)):[i,Gt(t)]:Gt(t):i,scopeId:e.scopeId,children:e.children,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_t?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor}}function Xt(e=" ",t=0){return Jt(Nt,null,e,t)}function Yt(e,t){const r=Jt(Ot,null,e);return r.staticCount=t,r}function Qt(e="",t=!1){return t?(Mt(),Vt(It,null,e)):Jt(It,null,e)}function Zt(e){return null==e||"boolean"==typeof e?Jt(It):(0,s.kJ)(e)?Jt(_t,null,e):"object"==typeof e?null===e.el?e:Kt(e):Jt(Nt,null,String(e))}function er(e){return null===e.el?e:Kt(e)}function tr(e,t){let r=0;const{shapeFlag:n}=e;if(null==t)t=null;else if((0,s.kJ)(t))r=16;else if("object"==typeof t){if(1&n||64&n){const r=t.default;return void(r&&(r._c&&Z(1),tr(e,r()),r._c&&Z(-1)))}{r=32;const n=t._;n||$t in t?3===n&&B&&(1024&B.vnode.patchFlag?(t._=2,e.patchFlag|=1024):t._=1):t._ctx=B}}else(0,s.mf)(t)?(t={default:t,_ctx:B},r=32):(t=String(t),64&n?(r=16,t=[Xt(t)]):r=8);e.children=t,e.shapeFlag|=r}function rr(...e){const t=(0,s.l7)({},e[0]);for(let r=1;r1)return r&&(0,s.mf)(t)?t():t}else 0}let ir=!1;function or(e,t,r=[],i=[],o=[],a=!1){const{mixins:c,extends:l,data:u,computed:h,methods:p,watch:d,provide:f,inject:m,components:y,directives:g,beforeMount:v,mounted:b,beforeUpdate:x,updated:w,activated:k,deactivated:P,beforeDestroy:T,beforeUnmount:S,destroyed:C,unmounted:A,render:E,renderTracked:_,renderTriggered:N,errorCaptured:I,expose:O}=t,D=e.proxy,L=e.ctx,M=e.appContext.mixins;a&&E&&e.render===s.dG&&(e.render=E),a||(ir=!0,ar("beforeCreate","bc",t,e,M),ir=!1,ur(e,M,r,i,o)),l&&or(e,l,r,i,o,!0),c&&ur(e,c,r,i,o);if(m)if((0,s.kJ)(m))for(let e=0;ehr(e,t,D))),u&&hr(e,u,D)),h)for(const e in h){const t=h[e];0;const r=Ir({get:(0,s.mf)(t)?t.bind(D,D):(0,s.mf)(t.get)?t.get.bind(D,D):s.dG,set:!(0,s.mf)(t)&&(0,s.mf)(t.set)?t.set.bind(D):s.dG});Object.defineProperty(L,e,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e})}if(d&&i.push(d),!a&&i.length&&i.forEach((e=>{for(const t in e)pr(e[t],L,D,t)})),f&&o.push(f),!a&&o.length&&o.forEach((e=>{const t=(0,s.mf)(e)?e.call(D):e;for(const e in t)nr(e,t[e])})),a&&(y&&(0,s.l7)(e.components||(e.components=(0,s.l7)({},e.type.components)),y),g&&(0,s.l7)(e.directives||(e.directives=(0,s.l7)({},e.type.directives)),g)),a||ar("created","c",t,e,M),v&&ye(v.bind(D)),b&&ge(b.bind(D)),x&&ve(x.bind(D)),w&&be(w.bind(D)),k&&$e(k.bind(D)),P&&ze(P.bind(D)),I&&Te(I.bind(D)),_&&Pe(_.bind(D)),N&&ke(N.bind(D)),S&&xe(S.bind(D)),A&&we(A.bind(D)),(0,s.kJ)(O))if(a)0;else if(O.length){const t=e.exposed||(e.exposed=(0,n.WL)({}));O.forEach((e=>{t[e]=(0,n.Vh)(D,e)}))}else e.exposed||(e.exposed=s.kT)}function ar(e,t,r,n,s){lr(e,t,s,n);const{extends:i,mixins:o}=r;i&&cr(e,t,i,n),o&&lr(e,t,o,n);const a=r[e];a&&u(a.bind(n.proxy),n,t)}function cr(e,t,r,n){r.extends&&cr(e,t,r.extends,n);const s=r[e];s&&u(s.bind(n.proxy),n,t)}function lr(e,t,r,n){for(let s=0;s{let t=e;for(let e=0;er[n];if((0,s.HD)(e)){const r=t[e];(0,s.mf)(r)&&Ae(i,r)}else if((0,s.mf)(e))Ae(i,e.bind(r));else if((0,s.Kn)(e))if((0,s.kJ)(e))e.forEach((e=>pr(e,t,r,n)));else{const n=(0,s.mf)(e.handler)?e.handler.bind(r):t[e.handler];(0,s.mf)(n)&&Ae(i,n,e)}else 0}function dr(e,t,r){const n=r.appContext.config.optionMergeStrategies,{mixins:i,extends:o}=t;o&&dr(e,o,r),i&&i.forEach((t=>dr(e,t,r)));for(const i in t)n&&(0,s.RI)(n,i)?e[i]=n[i](e[i],t[i],r.proxy,i):e[i]=t[i]}const fr=(0,s.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=>function(e){const t=e.type,{__merged:r,mixins:n,extends:s}=t;if(r)return r;const i=e.appContext.mixins;if(!i.length&&!n&&!s)return t;const o={};return i.forEach((t=>dr(o,t,e))),dr(o,t,e),t.__merged=o}(e),$forceUpdate:e=>()=>C(e.update),$nextTick:e=>S.bind(e.proxy),$watch:e=>_e.bind(e)}),mr={get({_:e},t){const{ctx:r,setupState:i,data:o,props:a,accessCache:c,type:l,appContext:u}=e;if("__v_skip"===t)return!0;let h;if("$"!==t[0]){const n=c[t];if(void 0!==n)switch(n){case 0:return i[t];case 1:return o[t];case 3:return r[t];case 2:return a[t]}else{if(i!==s.kT&&(0,s.RI)(i,t))return c[t]=0,i[t];if(o!==s.kT&&(0,s.RI)(o,t))return c[t]=1,o[t];if((h=e.propsOptions[0])&&(0,s.RI)(h,t))return c[t]=2,a[t];if(r!==s.kT&&(0,s.RI)(r,t))return c[t]=3,r[t];ir||(c[t]=4)}}const p=fr[t];let d,f;return p?("$attrs"===t&&(0,n.j)(e,"get",t),p(e)):(d=l.__cssModules)&&(d=d[t])?d:r!==s.kT&&(0,s.RI)(r,t)?(c[t]=3,r[t]):(f=u.config.globalProperties,(0,s.RI)(f,t)?f[t]:void 0)},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;if(i!==s.kT&&(0,s.RI)(i,t))i[t]=r;else if(n!==s.kT&&(0,s.RI)(n,t))n[t]=r;else if(t in e.props)return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:o}},a){let c;return void 0!==r[a]||e!==s.kT&&(0,s.RI)(e,a)||t!==s.kT&&(0,s.RI)(t,a)||(c=o[0])&&(0,s.RI)(c,a)||(0,s.RI)(n,a)||(0,s.RI)(fr,a)||(0,s.RI)(i.config.globalProperties,a)}};const yr=(0,s.l7)({},mr,{get(e,t){if(t!==Symbol.unscopables)return mr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,s.e1)(t)});const gr=nt();let vr=0;let br=null;const xr=()=>br||B,wr=e=>{br=e};let kr,Pr=!1;function Tr(e,t,r){(0,s.mf)(t)?e.render=t:(0,s.Kn)(t)&&(e.setupState=(0,n.WL)(t)),Cr(e)}function Sr(e){kr=e}function Cr(e,t){const r=e.type;e.render||(kr&&r.template&&!r.render&&(r.render=kr(r.template,{isCustomElement:e.appContext.config.isCustomElement,delimiters:r.delimiters})),e.render=r.render||s.dG,e.render._rc&&(e.withProxy=new Proxy(e.ctx,yr))),br=e,or(e,r),br=null}function Ar(e){br&&(br.effects||(br.effects=[])).push(e)}const Er=/(?:^|[-_])(\w)/g;function _r(e,t,r=!1){let n=(0,s.mf)(t)&&t.displayName||t.name;if(!n&&t.__file){const e=t.__file.match(/([^/\\]+)\.vue$/);e&&(n=e[1])}if(!n&&e&&e.parent){const r=e=>{for(const r in e)if(e[r]===t)return r};n=r(e.components||e.parent.type.components)||r(e.appContext.components)}return n?n.replace(Er,(e=>e.toUpperCase())).replace(/[-_]/g,""):r?"App":"Anonymous"}function Nr(e){return(0,s.mf)(e)&&"__vccOpts"in e}function Ir(e){const t=(0,n.Fl)(e);return Ar(t.effect),t}function Or(e){return(0,s.mf)(e)?{setup:e,name:e.name}:e}function Dr(e){(0,s.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:i,delay:o=200,timeout:a,suspensible:c=!0,onError:l}=e;let u,p=null,d=0;const f=()=>{let e;return p||(e=p=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,r)=>{l(e,(()=>t((d++,p=null,f()))),(()=>r(e)),d+1)}));throw e})).then((t=>e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t))))};return Or({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const e=br;if(u)return()=>Lr(u,e);const t=t=>{p=null,h(t,e,13,!i)};if(c&&e.suspense)return f().then((t=>()=>Lr(t,e))).catch((e=>(t(e),()=>i?Jt(i,{error:e}):null)));const s=(0,n.iH)(!1),l=(0,n.iH)(),d=(0,n.iH)(!!o);return o&&setTimeout((()=>{d.value=!1}),o),null!=a&&setTimeout((()=>{if(!s.value&&!l.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),l.value=e}}),a),f().then((()=>{s.value=!0})).catch((e=>{t(e),l.value=e})),()=>s.value&&u?Lr(u,e):l.value&&i?Jt(i,{error:l.value}):r&&!d.value?Jt(r):void 0}})}function Lr(e,{vnode:{props:t,children:r}}){return Jt(e,t,r)}function Mr(e){return null}function Fr(e){return null}function jr(){return xr().setupContext}function Rr(e,t,r){const n=arguments.length;return 2===n?(0,s.Kn)(t)&&!(0,s.kJ)(t)?Ut(t)?Jt(e,null,[t]):Jt(e,t):Jt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):3===n&&Ut(r)&&(r=[r]),Jt(e,t,r))}const Br=Symbol(""),Vr=()=>{{const e=sr(Br);return e||o("Server rendering context not provided. Make sure to only call useSsrContext() conditionally in the server build."),e}};function Ur(){return void 0}function Hr(e,t){let r;if((0,s.kJ)(e)||(0,s.HD)(e)){r=new Array(e.length);for(let n=0,s=e.length;n{"use strict";r.r(t),r.d(t,{BaseTransition:()=>s.P$,Comment:()=>s.sv,Fragment:()=>s.HY,KeepAlive:()=>s.Ob,Static:()=>s.qG,Suspense:()=>s.n4,Teleport:()=>s.lR,Text:()=>s.xv,callWithAsyncErrorHandling:()=>s.$d,callWithErrorHandling:()=>s.KU,camelize:()=>s._A,capitalize:()=>s.kC,cloneVNode:()=>s.Ho,computed:()=>s.Fl,createBlock:()=>s.j4,createCommentVNode:()=>s.ry,createHydrationRenderer:()=>s.Eo,createRenderer:()=>s.Us,createSlots:()=>s.Nv,createStaticVNode:()=>s.uE,createTextVNode:()=>s.Uk,createVNode:()=>s.Wm,customRef:()=>s.ZM,defineAsyncComponent:()=>s.RC,defineComponent:()=>s.aZ,defineEmit:()=>s.zX,defineProps:()=>s.MW,devtools:()=>s.mW,getCurrentInstance:()=>s.FN,getTransitionRawChildren:()=>s.Q6,h:()=>s.h,handleError:()=>s.S3,initCustomFormatter:()=>s.Mr,inject:()=>s.f3,isProxy:()=>s.X3,isReactive:()=>s.PG,isReadonly:()=>s.$y,isRef:()=>s.dq,isVNode:()=>s.lA,markRaw:()=>s.Xl,mergeProps:()=>s.dG,nextTick:()=>s.Y3,onActivated:()=>s.dl,onBeforeMount:()=>s.wF,onBeforeUnmount:()=>s.Jd,onBeforeUpdate:()=>s.Xn,onDeactivated:()=>s.se,onErrorCaptured:()=>s.d1,onMounted:()=>s.bv,onRenderTracked:()=>s.bT,onRenderTriggered:()=>s.Yq,onUnmounted:()=>s.Ah,onUpdated:()=>s.ic,openBlock:()=>s.wg,popScopeId:()=>s.Cn,provide:()=>s.JJ,proxyRefs:()=>s.WL,pushScopeId:()=>s.dD,queuePostFlushCb:()=>s.qb,reactive:()=>s.qj,readonly:()=>s.OT,ref:()=>s.iH,registerRuntimeCompiler:()=>s.Y1,renderList:()=>s.Ko,renderSlot:()=>s.WI,resolveComponent:()=>s.up,resolveDirective:()=>s.Q2,resolveDynamicComponent:()=>s.LL,resolveTransitionHooks:()=>s.U2,setBlockTracking:()=>s.qZ,setDevtoolsHook:()=>s.ec,setTransitionHooks:()=>s.nK,shallowReactive:()=>s.Um,shallowReadonly:()=>s.YS,shallowRef:()=>s.XI,ssrContextKey:()=>s.Uc,ssrUtils:()=>s.G,toDisplayString:()=>s.zw,toHandlerKey:()=>s.hR,toHandlers:()=>s.mx,toRaw:()=>s.IU,toRef:()=>s.Vh,toRefs:()=>s.BK,transformVNodeArgs:()=>s.C3,triggerRef:()=>s.oR,unref:()=>s.SU,useContext:()=>s.qp,useSSRContext:()=>s.Zq,useTransitionState:()=>s.Y8,version:()=>s.i8,warn:()=>s.ZK,watch:()=>s.YP,watchEffect:()=>s.m0,withCtx:()=>s.w5,withDirectives:()=>s.wy,withScopeId:()=>s.HX,Transition:()=>_,TransitionGroup:()=>q,createApp:()=>xe,createSSRApp:()=>we,hydrate:()=>be,render:()=>ve,useCssModule:()=>T,useCssVars:()=>S,vModelCheckbox:()=>Y,vModelDynamic:()=>se,vModelRadio:()=>Z,vModelSelect:()=>ee,vModelText:()=>X,vShow:()=>he,withKeys:()=>ue,withModifiers:()=>ce});var n=r(3577),s=r(6252),i=r(2262);const o="http://www.w3.org/2000/svg",a="undefined"!=typeof document?document:null;let c,l;const u={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r)=>t?a.createElementNS(o,e):a.createElement(e,r?{is:r}:void 0),createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode:e=>e.cloneNode(!0),insertStaticContent(e,t,r,n){const s=n?l||(l=a.createElementNS(o,"svg")):c||(c=a.createElement("div"));s.innerHTML=e;const i=s.firstChild;let h=i,p=h;for(;h;)p=h,u.insert(h,t,r),h=s.firstChild;return[i,p]}};const h=/\s*!important$/;function p(e,t,r){if((0,n.kJ)(r))r.forEach((r=>p(e,t,r)));else if(t.startsWith("--"))e.setProperty(t,r);else{const s=function(e,t){const r=f[t];if(r)return r;let s=(0,n._A)(t);if("filter"!==s&&s in e)return f[t]=s;s=(0,n.kC)(s);for(let r=0;rdocument.createEvent("Event").timeStamp&&(y=()=>performance.now());let g=0;const v=Promise.resolve(),b=()=>{g=0};function x(e,t,r,n){e.addEventListener(t,r,n)}function w(e,t,r,i,o=null){const a=e._vei||(e._vei={}),c=a[t];if(i&&c)c.value=i;else{const[r,l]=function(e){let t;if(k.test(e)){let r;for(t={};r=e.match(k);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e.slice(2).toLowerCase(),t]}(t);if(i){x(e,r,a[t]=function(e,t){const r=e=>{(e.timeStamp||y())>=r.attached-1&&(0,s.$d)(function(e,t){if((0,n.kJ)(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,r.value),t,5,[e])};return r.value=e,r.attached=(()=>g||(v.then(b),g=y()))(),r}(i,o),l)}else c&&(!function(e,t,r,n){e.removeEventListener(t,r,n)}(e,r,c,l),a[t]=void 0)}}const k=/(?:Once|Passive|Capture)$/;const P=/^on[a-z]/;function T(e="$style"){{const t=(0,s.FN)();if(!t)return n.kT;const r=t.type.__cssModules;if(!r)return n.kT;const i=r[e];return i||n.kT}}function S(e){const t=(0,s.FN)();if(!t)return;const r=()=>C(t.subTree,e(t.proxy));(0,s.bv)((()=>(0,s.m0)(r,{flush:"post"}))),(0,s.ic)(r)}function C(e,t){if(128&e.shapeFlag){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push((()=>{C(r.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el){const r=e.el.style;for(const e in t)r.setProperty(`--${e}`,t[e])}else e.type===s.HY&&e.children.forEach((e=>C(e,t)))}const A="transition",E="animation",_=(e,{slots:t})=>(0,s.h)(s.P$,O(e),t);_.displayName="Transition";const N={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},I=_.props=(0,n.l7)({},s.P$.props,N);function O(e){let{name:t="v",type:r,css:s=!0,duration:i,enterFromClass:o=`${t}-enter-from`,enterActiveClass:a=`${t}-enter-active`,enterToClass:c=`${t}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:h=c,leaveFromClass:p=`${t}-leave-from`,leaveActiveClass:d=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=e;const m={};for(const t in e)t in N||(m[t]=e[t]);if(!s)return m;const y=function(e){if(null==e)return null;if((0,n.Kn)(e))return[D(e.enter),D(e.leave)];{const t=D(e);return[t,t]}}(i),g=y&&y[0],v=y&&y[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:w,onLeave:k,onLeaveCancelled:P,onBeforeAppear:T=b,onAppear:S=x,onAppearCancelled:C=w}=m,A=(e,t,r)=>{M(e,t?h:c),M(e,t?u:a),r&&r()},E=(e,t)=>{M(e,f),M(e,d),t&&t()},_=e=>(t,n)=>{const s=e?S:x,i=()=>A(t,e,n);s&&s(t,i),F((()=>{M(t,e?l:o),L(t,e?h:c),s&&s.length>1||(g?setTimeout(i,g):j(t,r,i))}))};return(0,n.l7)(m,{onBeforeEnter(e){b&&b(e),L(e,a),L(e,o)},onBeforeAppear(e){T&&T(e),L(e,u),L(e,l)},onEnter:_(!1),onAppear:_(!0),onLeave(e,t){const n=()=>E(e,t);L(e,d),L(e,p),F((()=>{M(e,p),L(e,f),k&&k.length>1||(v?setTimeout(n,v):j(e,r,n))})),k&&k(e,n)},onEnterCancelled(e){A(e,!1),w&&w(e)},onAppearCancelled(e){A(e,!0),C&&C(e)},onLeaveCancelled(e){E(e),P&&P(e)}})}function D(e){return(0,n.He)(e)}function L(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function M(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function F(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}function j(e,t,r){const{type:n,timeout:s,propCount:i}=R(e,t);if(!n)return r();const o=n+"end";let a=0;const c=()=>{e.removeEventListener(o,l),r()},l=t=>{t.target===e&&++a>=i&&c()};setTimeout((()=>{a(r[e]||"").split(", "),s=n("transitionDelay"),i=n("transitionDuration"),o=B(s,i),a=n("animationDelay"),c=n("animationDuration"),l=B(a,c);let u=null,h=0,p=0;t===A?o>0&&(u=A,h=o,p=i.length):t===E?l>0&&(u=E,h=l,p=c.length):(h=Math.max(o,l),u=h>0?o>l?A:E:null,p=u?u===A?i.length:c.length:0);return{type:u,timeout:h,propCount:p,hasTransform:u===A&&/\b(transform|all)(,|$)/.test(r.transitionProperty)}}function B(e,t){for(;e.lengthV(t)+V(e[r]))))}function V(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const U=new WeakMap,H=new WeakMap,q={name:"TransitionGroup",props:(0,n.l7)({},I,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=(0,s.FN)(),n=(0,s.Y8)();let o,a;return(0,s.ic)((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&n.classList.remove(e)))}));r.split(/\s+/).forEach((e=>e&&n.classList.add(e))),n.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(n);const{hasTransform:i}=R(n);return s.removeChild(n),i}(o[0].el,r.vnode.el,t))return;o.forEach($),o.forEach(z);const n=o.filter(G);document.body.offsetHeight,n.forEach((e=>{const r=e.el,n=r.style;L(r,t),n.transform=n.webkitTransform=n.transitionDuration="";const s=r._moveCb=e=>{e&&e.target!==r||e&&!/transform$/.test(e.propertyName)||(r.removeEventListener("transitionend",s),r._moveCb=null,M(r,t))};r.addEventListener("transitionend",s)}))})),()=>{const c=(0,i.IU)(e),l=O(c),u=c.tag||s.HY;o=a,a=t.default?(0,s.Q6)(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"];return(0,n.kJ)(t)?e=>(0,n.ir)(t,e):t};function W(e){e.target.composing=!0}function K(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}(t,"input"))}const X={created(e,{modifiers:{lazy:t,trim:r,number:s}},i){e._assign=J(i);const o=s||"number"===e.type;x(e,t?"change":"input",(t=>{if(t.target.composing)return;let s=e.value;r?s=s.trim():o&&(s=(0,n.He)(s)),e._assign(s)})),r&&x(e,"change",(()=>{e.value=e.value.trim()})),t||(x(e,"compositionstart",W),x(e,"compositionend",K),x(e,"change",K))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{trim:r,number:s}},i){if(e._assign=J(i),e.composing)return;if(document.activeElement===e){if(r&&e.value.trim()===t)return;if((s||"number"===e.type)&&(0,n.He)(e.value)===t)return}const o=null==t?"":t;e.value!==o&&(e.value=o)}},Y={created(e,t,r){Q(e,t,r),e._assign=J(r),x(e,"change",(()=>{const t=e._modelValue,r=re(e),s=e.checked,i=e._assign;if((0,n.kJ)(t)){const e=(0,n.hq)(t,r),o=-1!==e;if(s&&!o)i(t.concat(r));else if(!s&&o){const r=[...t];r.splice(e,1),i(r)}}else(0,n.DM)(t)?s?t.add(r):t.delete(r):i(ne(e,s))}))},beforeUpdate(e,t,r){e._assign=J(r),Q(e,t,r)}};function Q(e,{value:t,oldValue:r},s){e._modelValue=t,(0,n.kJ)(t)?e.checked=(0,n.hq)(t,s.props.value)>-1:(0,n.DM)(t)?e.checked=t.has(s.props.value):t!==r&&(e.checked=(0,n.WV)(t,ne(e,!0)))}const Z={created(e,{value:t},r){e.checked=(0,n.WV)(t,r.props.value),e._assign=J(r),x(e,"change",(()=>{e._assign(re(e))}))},beforeUpdate(e,{value:t,oldValue:r},s){e._assign=J(s),t!==r&&(e.checked=(0,n.WV)(t,s.props.value))}},ee={created(e,{modifiers:{number:t}},r){x(e,"change",(()=>{const r=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>t?(0,n.He)(re(e)):re(e)));e._assign(e.multiple?r:r[0])})),e._assign=J(r)},mounted(e,{value:t}){te(e,t)},beforeUpdate(e,t,r){e._assign=J(r)},updated(e,{value:t}){te(e,t)}};function te(e,t){const r=e.multiple;if(!r||(0,n.kJ)(t)||(0,n.DM)(t)){for(let s=0,i=e.options.length;s-1:i.selected=t.has(o);else if((0,n.WV)(re(i),t))return void(e.selectedIndex=s)}r||(e.selectedIndex=-1)}}function re(e){return"_value"in e?e._value:e.value}function ne(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const se={created(e,t,r){ie(e,t,r,null,"created")},mounted(e,t,r){ie(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){ie(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){ie(e,t,r,n,"updated")}};function ie(e,t,r,n,s){let i;switch(e.tagName){case"SELECT":i=ee;break;case"TEXTAREA":i=X;break;default:switch(r.props&&r.props.type){case"checkbox":i=Y;break;case"radio":i=Z;break;default:i=X}}const o=i[s];o&&o(e,t,r,n)}const oe=["ctrl","shift","alt","meta"],ae={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)=>oe.some((r=>e[`${r}Key`]&&!t.includes(r)))},ce=(e,t)=>(r,...n)=>{for(let e=0;er=>{if(!("key"in r))return;const s=(0,n.rs)(r.key);return t.some((e=>e===s||le[e]===s))?e(r):void 0},he={beforeMount(e,{value:t},{transition:r}){e._vod="none"===e.style.display?"":e.style.display,r&&t?r.beforeEnter(e):pe(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),pe(e,!0),n.enter(e)):n.leave(e,(()=>{pe(e,!1)})):pe(e,t))},beforeUnmount(e,{value:t}){pe(e,t)}};function pe(e,t){e.style.display=t?e._vod:"none"}const de=(0,n.l7)({patchProp:(e,t,r,s,i=!1,o,a,c,l)=>{switch(t){case"class":!function(e,t,r){if(null==t&&(t=""),r)e.setAttribute("class",t);else{const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),e.className=t}}(e,s,i);break;case"style":!function(e,t,r){const s=e.style;if(r)if((0,n.HD)(r))t!==r&&(s.cssText=r);else{for(const e in r)p(s,e,r[e]);if(t&&!(0,n.HD)(t))for(const e in t)null==r[e]&&p(s,e,"")}else e.removeAttribute("style")}(e,r,s);break;default:(0,n.F7)(t)?(0,n.tR)(t)||w(e,t,0,s,a):function(e,t,r,s){if(s)return"innerHTML"===t||!!(t in e&&P.test(t)&&(0,n.mf)(r));if("spellcheck"===t||"draggable"===t)return!1;if("form"===t&&"string"==typeof r)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if(P.test(t)&&(0,n.HD)(r))return!1;return t in e}(e,t,s,i)?function(e,t,r,n,s,i,o){if("innerHTML"===t||"textContent"===t)return n&&o(n,s,i),void(e[t]=null==r?"":r);if("value"!==t||"PROGRESS"===e.tagName)if(""===r&&"boolean"==typeof e[t])e[t]=!0;else if(null==r&&"string"==typeof e[t])e[t]="",e.removeAttribute(t);else try{e[t]=r}catch(e){}else{e._value=r;const t=null==r?"":r;e.value!==t&&(e.value=t)}}(e,t,s,o,a,c,l):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),function(e,t,r,s){if(s&&t.startsWith("xlink:"))null==r?e.removeAttributeNS(m,t.slice(6,t.length)):e.setAttributeNS(m,t,r);else{const s=(0,n.Pq)(t);null==r||s&&!1===r?e.removeAttribute(t):e.setAttribute(t,s?"":r)}}(e,t,s,i))}},forcePatchProp:(e,t)=>"value"===t},u);let fe,me=!1;function ye(){return fe||(fe=(0,s.Us)(de))}function ge(){return fe=me?fe:(0,s.Eo)(de),me=!0,fe}const ve=(...e)=>{ye().render(...e)},be=(...e)=>{ge().hydrate(...e)},xe=(...e)=>{const t=ye().createApp(...e);const{mount:r}=t;return t.mount=e=>{const s=ke(e);if(!s)return;const i=t._component;(0,n.mf)(i)||i.render||i.template||(i.template=s.innerHTML),s.innerHTML="";const o=r(s);return s.removeAttribute("v-cloak"),s.setAttribute("data-v-app",""),o},t},we=(...e)=>{const t=ge().createApp(...e);const{mount:r}=t;return t.mount=e=>{const t=ke(e);if(t)return r(t,!0)},t};function ke(e){if((0,n.HD)(e)){return document.querySelector(e)}return e}},3577:(e,t,r)=>{"use strict";function n(e,t){const r=Object.create(null),n=e.split(",");for(let e=0;e!!r[e.toLowerCase()]:e=>!!r[e]}r.d(t,{Z6:()=>w,kT:()=>x,NO:()=>P,dG:()=>k,m:()=>s,_A:()=>W,kC:()=>Y,Nj:()=>te,l7:()=>A,aU:()=>Z,RI:()=>N,rs:()=>X,ir:()=>ee,kJ:()=>I,mf:()=>M,e1:()=>i,eS:()=>d,S0:()=>$,_N:()=>O,tR:()=>C,Kn:()=>R,F7:()=>S,tI:()=>B,Gg:()=>z,aN:()=>f,DM:()=>D,Pq:()=>a,HD:()=>F,yk:()=>j,WB:()=>m,WV:()=>y,hq:()=>g,fY:()=>n,C_:()=>p,j5:()=>c,yL:()=>h,Od:()=>E,zw:()=>v,hR:()=>Q,He:()=>re,W7:()=>H});const s={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"},i=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");const o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=n(o);function c(e){if(I(e)){const t={};for(let r=0;r{if(e){const r=e.split(u);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}function p(e){let t="";if(F(e))t=e;else if(I(e))for(let r=0;ry(e,t)))}const v=e=>null==e?"":R(e)?JSON.stringify(e,b,2):String(e),b=(e,t)=>O(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,r])=>(e[`${t} =>`]=r,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!R(t)||I(t)||q(t)?t:String(t),x={},w=[],k=()=>{},P=()=>!1,T=/^on[^a-z]/,S=e=>T.test(e),C=e=>e.startsWith("onUpdate:"),A=Object.assign,E=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},_=Object.prototype.hasOwnProperty,N=(e,t)=>_.call(e,t),I=Array.isArray,O=e=>"[object Map]"===U(e),D=e=>"[object Set]"===U(e),L=e=>e instanceof Date,M=e=>"function"==typeof e,F=e=>"string"==typeof e,j=e=>"symbol"==typeof e,R=e=>null!==e&&"object"==typeof e,B=e=>R(e)&&M(e.then)&&M(e.catch),V=Object.prototype.toString,U=e=>V.call(e),H=e=>U(e).slice(8,-1),q=e=>"[object Object]"===U(e),$=e=>F(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=n(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),G=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},J=/-(\w)/g,W=G((e=>e.replace(J,((e,t)=>t?t.toUpperCase():"")))),K=/\B([A-Z])/g,X=G((e=>e.replace(K,"-$1").toLowerCase())),Y=G((e=>e.charAt(0).toUpperCase()+e.slice(1))),Q=G((e=>e?`on${Y(e)}`:"")),Z=(e,t)=>e!==t&&(e==e||t==t),ee=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},re=e=>{const t=parseFloat(e);return isNaN(t)?e:t}},786:(e,t,r)=>{"use strict";var n=r(8253),s=r(2606),i=r.n(s);window.route=i();const o={methods:{route:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return route(e,t)})),icon:function(e){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+e},__:function(e){var t=lang[e];return t||e}}};var a=r(5043);const{version:c,createStore:l,Store:u,install:h,useStore:p,mapState:d,mapMutations:f,mapGetters:m,mapActions:y,createNamespacedHelpers:g,createLogger:v}=a;var b=r(7757),x=r.n(b);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t",0).whereNotIn("id",i).first();a?n("selectDocuments",{documents:[a],selectFirstUnread:o}):"unread_items"===s["folders/selectedFolder"].type&&n("selectDocuments",{selectFirstUnread:o})},startDraggingDocuments:function(e,t){(0,e.commit)("setDraggedDocuments",t)},stopDraggingDocuments:function(e){(0,e.commit)("setDraggedDocuments",[])},dropIntoFolder:function(e,t){return N(x().mark((function r(){var n,s,i,o,a,c,l,u;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.getters,s=e.commit,i=e.dispatch,o=t.sourceFolder,a=t.targetFolder,(c=(0,E.collect)(n.draggedDocuments).pluck("id").all())&&0!==c.length){r.next=5;break}return r.abrupt("return");case 5:return r.next=7,api.post(route("document.move",{sourceFolder:o.id,targetFolder:a.id}),{documents:c});case 7:l=r.sent,s("setDraggedDocuments",[]),s("setSelectedDocuments",[]),u=(0,E.collect)(n.documents).whereNotIn("id",c),i("index",{documents:u}),i("feedItems/index",n.feeds,{root:!0}),i("feedItems/updateUnreadFeedItemsCount",l,{root:!0});case 14:case"end":return r.stop()}}),r)})))()},incrementVisits:function(e,t){return N(x().mark((function r(){var n,s,i;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.commit,s=t.document,r.next=4,api.post(route("document.visit",{document:s.id}));case 4:i=r.sent,n("update",{document:s,newProperties:i});case 6:case"end":return r.stop()}}),r)})))()},openDocument:function(e,t){var r=e.dispatch,n=t.document;window.open(n.url),r("incrementVisits",{document:n})},destroy:function(e,t){return N(x().mark((function r(){var n,s,i,o,a;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.commit,e.getters,s=e.dispatch,i=t.folder,o=t.documents,n("setSelectedDocuments",[]),r.next=5,api.post(route("document.destroy_bookmarks",{folder:i.id}),{documents:(0,E.collect)(o).pluck("id").all()});case 5:a=r.sent,s("index",{documents:a});case 7:case"end":return r.stop()}}),r)})))()},update:function(e,t){var r=e.commit,n=e.getters,s=t.documentId,i=t.newProperties,o=n.documents.find((function(e){return e.id==s}));o&&r("update",{document:o,newProperties:i})},load:function(e,t){var r=e.dispatch;if(!t.loaded)return api.get(route("document.show",t)).then((function(e){return e.loaded=!0,r("update",{documentId:t.id,newProperties:e})}))},followFeed:function(e,t){var r=e.commit;api.post(route("feed.follow",t)),r("ignoreFeed",{feed:t,ignored:!1})},ignoreFeed:function(e,t){var r=e.commit;api.post(route("feed.ignore",t)),r("ignoreFeed",{feed:t,ignored:!0})}};function O(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1}},actions:{index:function(e,t){return M(x().mark((function r(){var n,s,i,o,a,c,l;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.getters,s=e.commit,i=(0,E.collect)(t).pluck("feeds").flatten(1).pluck("id").all(),o=0,a=[],c=n.selectedFeedItem,!(i.length>0)){r.next=11;break}return r.next=8,api.get(route("feed_item.index"),{feeds:i});case 8:l=r.sent,a=l.data,o=null!==l.next_page_url?l.current_page+1:0;case 11:c&&(0,E.collect)(c.feeds).pluck("id").flatten(1).intersect(i)&&((0,E.collect)(a).where("id",c.id).first()||a.push(c)),s("setNextPage",o),s("setFeeds",i),s("setFeedItems",a);case 15:case"end":return r.stop()}}),r)})))()},loadMoreFeedItems:function(e){return M(x().mark((function t(){var r,n,s,i,o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.getters,n=e.commit,r.nextPage&&r.feeds){t.next=3;break}return t.abrupt("return");case 3:return s=r.feedItems,t.next=6,api.get(route("feed_item.index"),{page:r.nextPage,feeds:r.feeds});case 6:i=t.sent,o=[].concat(O(s),O(i.data)),n("setNextPage",null!==i.next_page_url?i.current_page+1:0),n("setFeeds",r.feeds),n("setFeedItems",o);case 11:case"end":return t.stop()}}),t)})))()},selectFeedItems:function(e,t){return M(x().mark((function r(){var n,s;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.commit,1!==t.length){r.next=6;break}return r.next=4,api.get(route("feed_item.show",t[0]));case 4:s=r.sent,n("update",{feedItem:t[0],newProperties:s});case 6:n("setSelectedFeedItems",t);case 7:case"end":return r.stop()}}),r)})))()},selectFirstUnreadFeedItem:function(e,t){var r=e.getters,n=e.dispatch;t||(t=[]);var s=(0,E.collect)(r.feedItems).where("feed_item_states_count",">",0).whereNotIn("id",t).first();s?n("selectFeedItems",[s]):n("documents/selectFirstDocumentWithUnreadItems",{selectFirstUnread:!0},{root:!0})},selectNextUnreadFeedItem:function(e,t){var r=e.getters,n=e.dispatch;if(!t)return n("selectFirstUnreadFeedItem");var s=(0,E.collect)(r.feedItems).where("feed_item_states_count",">",0).skipUntil((function(e){return e.id===t})).skip(1).shift();s?n("selectFeedItems",[s]):n("documents/selectFirstDocumentWithUnreadItems",{selectFirstUnread:!0},{root:!0})},markAsRead:function(e,t){var r=e.dispatch,n=e.commit,s=e.getters.nextPage;n("setNextPage",null),"feed_items"in t?r("selectNextUnreadFeedItem",t.feed_items[0]):"documents"in t&&r("documents/selectFirstDocumentWithUnreadItems",{exclude:t.documents},{root:!0}),api.post(route("feed_item.mark_as_read"),t).then((function(e){r("updateUnreadFeedItemsCount",e),n("setNextPage",s)}))},updateUnreadFeedItemsCount:function(e,t){var r=e.commit,n=e.dispatch,s=e.getters;"updated_feed_items"in t&&null!==t.updated_feed_items&&(0,E.collect)(s.feedItems).whereIn("id",t.updated_feed_items).each((function(e){r("update",{feedItem:e,newProperties:{feed_item_states_count:0}})}));if("documents"in t)for(var i in t.documents)n("documents/update",{documentId:i,newProperties:{feed_item_states_count:t.documents[i]}},{root:!0});if("folders"in t)for(var o in t.folders)n("folders/updateProperties",{folderId:o,newProperties:{feed_item_states_count:t.folders[o]}},{root:!0});if("groups"in t)for(var a in t.groups)n("groups/updateProperties",{groupId:a,newProperties:{feed_item_states_count:t.groups[a]}},{root:!0})}},mutations:{setFeedItems:function(e,t){e.feedItems=t},setNextPage:function(e,t){e.nextPage=t},setFeeds:function(e,t){e.feeds=t},setSelectedFeedItems:function(e,t){t||(t=[]),e.selectedFeedItems=t},update:function(e,t){var r=t.feedItem,n=t.newProperties;for(var s in n)r[s]=n[s]}}},groups:{namespaced:!0,state:{groups:[]},getters:{groups:function(e){return e.groups},selectedGroup:function(e){return(e.groups?e.groups:[]).find((function(e){return e.is_selected}))}},actions:{indexActive:function(e){return j(x().mark((function t(){var r,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.commit,t.next=3,api.get(route("group.index_active"));case 3:n=t.sent,r("setGroups",n);case 5:case"end":return t.stop()}}),t)})))()},indexMyGroups:function(e){return j(x().mark((function t(){var r,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.commit,t.next=3,api.get(route("group.my_groups"));case 3:n=t.sent,r("setGroups",n);case 5:case"end":return t.stop()}}),t)})))()},show:function(e,t){var r=e.getters,n=e.dispatch,s=(e.rootGetters,t.group),i=t.folder,o=r.selectedGroup;s?Number.isInteger(s)&&(s=r.groups.find((function(e){return e.id===s}))):s=o,n("selectGroup",s),n("documents/selectDocuments",[],{root:!0}),api.get(route("group.show",s)).then((function(e){n("folders/index",i?{folders:e,show:i}:{folders:e},{root:!0})}))},selectGroup:function(e,t){var r=e.commit,n=e.getters;Number.isInteger(t)&&(t=n.groups.find((function(e){return e.id===t}))),r("setSelectedGroup",t)},updateGroup:function(e,t){var r=e.dispatch,n=t.group,s=t.newProperties;api.put(route("group.update",n),s).then((function(e){r("updateProperties",{groupId:n.id,newProperties:e})}))},deleteGroup:function(e,t){var r=e.commit;api.delete(route("group.destroy",t)).then((function(e){r("setGroups",e)}))},updateProperties:function(e,t){var r=e.commit,n=e.getters,s=t.groupId,i=t.newProperties,o=n.groups.find((function(e){return e.id==s}));o?r("update",{group:o,newProperties:i}):console.warn("Group #"+s+" not found")},createGroup:function(e,t){var r=e.commit;api.post(route("group.store"),t).then((function(e){r("setGroups",e)}))},updatePositions:function(e,t){var r=e.getters,n=e.commit,s=t.positions;for(var i in s){var o=r.groups.find((function(e){return e.id==i}));if(!o)return void console.warn("Group #"+i+" not found");n("updatePosition",{group:o,position:s[i]})}api.post(route("group.update_positions"),{positions:s})}},mutations:{setGroups:function(e,t){e.groups=t},setSelectedGroup:function(e,t){e.groups.find((function(e){return e.is_selected=!1})),t.is_selected=!0},update:function(e,t){var r=t.group,n=t.newProperties;for(var s in n)r[s]=n[s]},updatePosition:function(e,t){var r=t.group,n=t.position;r.pivot.position=n}}}},strict:!1});var B={key:0},V={class:"icons"},U={class:"badges"},H={key:0,class:"badge default"},q={class:"tools"},$={fill:"currentColor",width:"16",height:"16"},z={class:"hidden xl:inline-block"},G={fill:"currentColor",width:"16",height:"16"},J={class:"hidden xl:inline-block"},W={fill:"currentColor",width:"16",height:"16"},K={class:"hidden xl:inline-block"},X={class:"body"},Y={class:"vertical list striped items-rounded compact"},Q={class:"list-item"},Z={class:"list-item-title"},ee={class:"list-item-value"},te={key:0,class:"list-item"},re={class:"list-item-title"},ne={class:"list-item-value"},se={class:"list-item"},ie={class:"list-item-title"},oe={class:"list-item-value"},ae={key:1,class:"list-item"},ce={class:"list-item-title"},le={class:"list-item-value"},ue={class:"list vertical striped items-rounded"},he={class:"list-item"},pe={class:"icons"},de={class:"list-item-text"},fe={class:"badges"},me={fill:"currentColor",width:"16",height:"16"},ye={fill:"currentColor",width:"16",height:"16"},ge={class:"vertical list striped items-rounded compact mt-2 alt"},ve={key:0,class:"list-item"},be={class:"list-item"},xe={class:"list-item-title"},we={class:"list-item-value"},ke={class:"list-item"},Pe={class:"list-item-title"},Te={class:"list-item-value"},Se={key:1,class:"list-item"},Ce={class:"list-item-title"},Ae={class:"list-item-value text-red-500"},Ee={class:"list-item"},_e={class:"vertical list striped items-rounded compact"},Ne={class:"list-item"},Ie={class:"list-item-title"},Oe={key:0},De={fill:"currentColor",width:"16",height:"16"},Le={key:0,class:"list-item"},Me={class:"list-item-title"},Fe={class:"list-item-value"},je={key:3,class:"mt-6"},Re={fill:"currentColor",width:"16",height:"16"};const Be={props:["datetime","onlyDate","onlyTime"],computed:{iso:function(){return this.datetime?new Date(this.datetime).toISOString():null},formatted:function(){var e=new Date(this.datetime);return this.onlyTime?e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):this.onlyDate?e.toLocaleDateString():e.toLocaleDateString()+", "+e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}},render:function(e,t,r,s,i,o){return(0,n.openBlock)(),(0,n.createBlock)("time",{datetime:o.iso},(0,n.toDisplayString)(o.formatted),9,["datetime"])}},Ve=Be;const Ue={props:["name"],computed:{opened:function(){return localStorage.getItem(this.name)}},methods:{onToggle:function(e){e.target.open?localStorage.setItem(this.name,e.target.open):localStorage.removeItem(this.name)}},render:function(e,t,r,s,i,o){return(0,n.openBlock)(),(0,n.createBlock)("details",{open:o.opened,onToggle:t[1]||(t[1]=function(){return o.onToggle&&o.onToggle.apply(o,arguments)})},[(0,n.renderSlot)(e.$slots,"default")],40,["open"])}},He=Ue;var qe={key:1,class:"list-item"},$e={class:"list-item-title"},ze={class:"list-item-value"};function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}const Je={components:{StatefulDetails:He},name:"browser",props:["metaData","parentName"],methods:{getStatefulDetailsName:function(e){return collect(["details",this.parentName,e]).join("_")},isArrayOrObject:function(e){return"array"==typeof e||"object"===Ge(e)}},render:function(e,t,r,s,i,o){var a=(0,n.resolveComponent)("browser"),c=(0,n.resolveComponent)("stateful-details");return(0,n.openBlock)(),(0,n.createBlock)("div",null,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(r.metaData,(function(e,t){return(0,n.openBlock)(),(0,n.createBlock)("div",{key:t},[o.isArrayOrObject(e)?((0,n.openBlock)(),(0,n.createBlock)(c,{key:0,class:"list-item",name:o.getStatefulDetailsName(t)},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",null,(0,n.toDisplayString)(t),1),(0,n.createVNode)(a,{class:"vertical list striped items-rounded compact alt","meta-data":e,"parent-name":o.getStatefulDetailsName(t)},null,8,["meta-data","parent-name"])]})),_:2},1032,["name"])):(0,n.createCommentVNode)("",!0),o.isArrayOrObject(e)?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)("div",qe,[(0,n.createVNode)("div",$e,(0,n.toDisplayString)(t),1),(0,n.createVNode)("div",ze,[(0,n.createVNode)("code",null,(0,n.toDisplayString)(e),1)])]))])})),128))])}};function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t=100&&e<=199?t="http-status-info":e>=200&&e<=299?t="http-status-success":e>=300&&e<=399?t="http-status-redirection":e>=400&&e<=499?t="http-status-client-error":e>=500&&e<=599&&(t="http-status-server-error"),t},statusIcon:function(){var e=this.document.http_status_code,t=null;return 0===e?t="error":e>=100&&e<=199?t="info":e>=200&&e<=299?t="success":e>=300&&e<=399?t="redirect":e>=400&&e<=499?t="warning":e>=500&&e<=599&&(t="error"),t},metaData:function(){return collect(this.document.meta_data)}}),watch:{document:function(e){var t=this;e&&e.id&&t.load(e).then((function(){t.findDupplicateInFolders()}))}},mounted:function(){var e=this;e.document&&e.document.id&&e.load(e.document).then((function(){e.findDupplicateInFolders()}))},methods:Ke(Ke({},y({incrementVisits:"documents/incrementVisits",openDocument:"documents/openDocument",ignoreFeed:"documents/ignoreFeed",followFeed:"documents/followFeed",load:"documents/load"})),{},{findDupplicateInFolders:function(){var e=this,t=collect(e.document.dupplicates).reject((function(t){return t.id===e.selectedFolder.id})).all();e.dupplicateInFolders=t},onMarkAsReadClicked:function(){this.$emit("feeditems-read",{documents:[this.document.id]})},onDeleteDocument:function(){var e=this;e.$emit("documents-deleted",{folder:e.selectedFolder,documents:[e.document]})},onShareClicked:function(){var e=this,t={title:e.document.title,text:e.document.description,url:e.document.url};navigator.share?navigator.share(t):location.href="mailto:?subject="+t.title+"&body="+t.url},follow:function(e){this.followFeed(e)},ignore:function(e){this.ignoreFeed(e)}}),render:function(e,t,r,s,i,o){var a=(0,n.resolveComponent)("date-time"),c=(0,n.resolveComponent)("stateful-details"),l=(0,n.resolveComponent)("meta-data-browser");return e.document?((0,n.openBlock)(),(0,n.createBlock)("article",B,[(0,n.createVNode)("header",null,[(0,n.createVNode)("div",V,[(0,n.createVNode)("img",{src:e.document.favicon},null,8,["src"])]),(0,n.createVNode)("h1",null,(0,n.toDisplayString)(e.document.title),1),(0,n.createVNode)("div",U,[e.document.feed_item_states_count>0?((0,n.openBlock)(),(0,n.createBlock)("div",H,(0,n.toDisplayString)(e.document.feed_item_states_count),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createVNode)("div",q,[e.document.feed_item_states_count>0?((0,n.openBlock)(),(0,n.createBlock)("button",{key:0,class:"info",onClick:t[1]||(t[1]=function(){return o.onMarkAsReadClicked&&o.onMarkAsReadClicked.apply(o,arguments)}),title:e.__("Mark as read")},[((0,n.openBlock)(),(0,n.createBlock)("svg",$,[(0,n.createVNode)("use",{"xlink:href":e.icon("unread_items")},null,8,["xlink:href"])])),(0,n.createVNode)("span",z,(0,n.toDisplayString)(e.__("Mark as read")),1)],8,["title"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("a",{class:"button info",href:o.url,rel:"noopener noreferrer",onClick:t[2]||(t[2]=(0,n.withModifiers)((function(t){return e.openDocument({document:e.document})}),["left","stop","prevent"])),onMouseup:t[3]||(t[3]=(0,n.withModifiers)((function(t){return e.incrementVisits({document:e.document})}),["middle","exact"])),title:e.__("Open")},[((0,n.openBlock)(),(0,n.createBlock)("svg",G,[(0,n.createVNode)("use",{"xlink:href":e.icon("open")},null,8,["xlink:href"])])),(0,n.createVNode)("span",J,(0,n.toDisplayString)(e.__("Open")),1)],40,["href","title"]),(0,n.createVNode)("button",{class:"info",onClick:t[4]||(t[4]=function(){return o.onShareClicked&&o.onShareClicked.apply(o,arguments)}),title:e.__("Share")},[((0,n.openBlock)(),(0,n.createBlock)("svg",W,[(0,n.createVNode)("use",{"xlink:href":e.icon("share")},null,8,["xlink:href"])])),(0,n.createVNode)("span",K,(0,n.toDisplayString)(e.__("Share")),1)],8,["title"])])]),(0,n.createVNode)("div",X,[e.document.description?((0,n.openBlock)(),(0,n.createBlock)("div",{key:0,class:"cyca-prose",innerHTML:e.document.description},null,8,["innerHTML"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(c,{name:"document_details",class:"details-block"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",null,(0,n.toDisplayString)(e.__("Details")),1),(0,n.createVNode)("div",Y,[(0,n.createVNode)("div",Q,[(0,n.createVNode)("div",Z,(0,n.toDisplayString)(e.__("Real URL")),1),(0,n.createVNode)("div",ee,[(0,n.createVNode)("a",{href:e.document.url,rel:"noopener noreferrer",onClick:t[5]||(t[5]=(0,n.withModifiers)((function(t){return e.openDocument({document:e.document})}),["left","stop","prevent"])),class:"readable",innerHTML:e.document.ascii_url},null,8,["href","innerHTML"])])]),e.document.visits?((0,n.openBlock)(),(0,n.createBlock)("div",te,[(0,n.createVNode)("div",re,(0,n.toDisplayString)(e.__("Visits")),1),(0,n.createVNode)("div",ne,(0,n.toDisplayString)(e.document.visits),1)])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("div",se,[(0,n.createVNode)("div",ie,(0,n.toDisplayString)(e.__("Date of document's last check")),1),(0,n.createVNode)("div",oe,[(0,n.createVNode)(a,{datetime:e.document.checked_at,calendar:!0},null,8,["datetime"])])]),e.dupplicateInFolders.length>0?((0,n.openBlock)(),(0,n.createBlock)("div",ae,[(0,n.createVNode)("div",ce,(0,n.toDisplayString)(e.__("Also exists in")),1),(0,n.createVNode)("div",le,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(e.dupplicateInFolders,(function(t){return(0,n.openBlock)(),(0,n.createBlock)("div",{key:t.id,onClick:function(r){return e.$emit("folder-selected",t.id,t.group_id)},innerHTML:t.breadcrumbs,class:"cursor-pointer mb-1"},null,8,["onClick","innerHTML"])})),128))])])):(0,n.createCommentVNode)("",!0)])]})),_:1}),e.document.feeds.length>0?((0,n.openBlock)(),(0,n.createBlock)(c,{key:1,name:"feeds_details",class:"details-block"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",null,(0,n.toDisplayString)(e.__("Feeds")),1),(0,n.createVNode)("div",ue,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(e.document.feeds,(function(t){return(0,n.openBlock)(),(0,n.createBlock)("div",{key:t.id},[(0,n.createVNode)("div",he,[(0,n.createVNode)("div",pe,[(0,n.createVNode)("img",{src:t.favicon},null,8,["src"])]),(0,n.createVNode)("div",de,(0,n.toDisplayString)(t.title),1),(0,n.createVNode)("div",fe,[t.is_ignored?((0,n.openBlock)(),(0,n.createBlock)("button",{key:0,class:"success",onClick:function(e){return o.follow(t)}},[((0,n.openBlock)(),(0,n.createBlock)("svg",me,[(0,n.createVNode)("use",{"xlink:href":e.icon("join")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Follow")),1)],8,["onClick"])):(0,n.createCommentVNode)("",!0),t.is_ignored?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)("button",{key:1,class:"danger",onClick:function(e){return o.ignore(t)}},[((0,n.openBlock)(),(0,n.createBlock)("svg",ye,[(0,n.createVNode)("use",{"xlink:href":e.icon("cancel")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Ignore")),1)],8,["onClick"]))])]),(0,n.createVNode)("div",ge,[t.description?((0,n.openBlock)(),(0,n.createBlock)("div",ve,[(0,n.createVNode)("div",{innerHTML:t.description},null,8,["innerHTML"])])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("div",be,[(0,n.createVNode)("div",xe,(0,n.toDisplayString)(e.__("Real URL")),1),(0,n.createVNode)("div",we,[(0,n.createVNode)("div",{class:"readable",innerHTML:t.ascii_url},null,8,["innerHTML"])])]),(0,n.createVNode)("div",ke,[(0,n.createVNode)("div",Pe,(0,n.toDisplayString)(e.__("Date of document's last check")),1),(0,n.createVNode)("div",Te,[(0,n.createVNode)(a,{datetime:t.checked_at,calendar:!0},null,8,["datetime"])])]),t.error?((0,n.openBlock)(),(0,n.createBlock)("div",Se,[(0,n.createVNode)("div",Ce,(0,n.toDisplayString)(e.__("Error")),1),(0,n.createVNode)("div",Ae,(0,n.toDisplayString)(t.error),1)])):(0,n.createCommentVNode)("",!0)])])})),128))])]})),_:1})):(0,n.createCommentVNode)("",!0),e.document.meta_data?((0,n.openBlock)(),(0,n.createBlock)(c,{key:2,class:"details-block",name:"document_meta_data_details"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",null,(0,n.toDisplayString)(e.__("Metadata")),1),(0,n.createVNode)(l,{class:"vertical list striped items-rounded compact","meta-data":e.document.meta_data},null,8,["meta-data"])]})),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(c,{name:"http_response_details",class:"details-block"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",Ee,(0,n.toDisplayString)(e.__("HTTP response")),1),(0,n.createVNode)("div",_e,[(0,n.createVNode)("div",Ne,[(0,n.createVNode)("div",Ie,(0,n.toDisplayString)(e.__("HTTP Status Code")),1),(0,n.createVNode)("div",{class:["list-item-value flex items-center space-x-2",o.statusClass]},[o.statusIcon?((0,n.openBlock)(),(0,n.createBlock)("span",Oe,[((0,n.openBlock)(),(0,n.createBlock)("svg",De,[(0,n.createVNode)("use",{"xlink:href":e.icon(o.statusIcon)},null,8,["xlink:href"])]))])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.document.http_status_code),1),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.document.http_status_text),1)],2)]),e.document.mimetype?((0,n.openBlock)(),(0,n.createBlock)("div",Le,[(0,n.createVNode)("div",Me,(0,n.toDisplayString)(e.__("MIME type")),1),(0,n.createVNode)("div",Fe,(0,n.toDisplayString)(e.document.mimetype),1)])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(c,{name:"document_response_details",class:"list-item"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",null,(0,n.toDisplayString)(e.__("Response details")),1),(0,n.createVNode)(l,{class:"vertical list striped items-rounded compact alt","meta-data":e.document.response,"parent-name":"document_response"},null,8,["meta-data"])]})),_:1})])]})),_:1}),"unread_items"!==e.selectedFolder.type&&e.selectedFolder.user_permissions.can_delete_document?((0,n.openBlock)(),(0,n.createBlock)("div",je,[(0,n.createVNode)("button",{class:"danger",onClick:t[6]||(t[6]=function(){return o.onDeleteDocument&&o.onDeleteDocument.apply(o,arguments)})},[((0,n.openBlock)(),(0,n.createBlock)("svg",Re,[(0,n.createVNode)("use",{"xlink:href":e.icon("trash")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Delete")),1)])])):(0,n.createCommentVNode)("",!0)])])):(0,n.createCommentVNode)("",!0)}},Qe=Ye;var Ze=(0,n.createVNode)("span",null,null,-1),et={class:"flex items-center"},tt={fill:"currentColor",width:"16",height:"16"},rt={fill:"currentColor",width:"16",height:"16"},nt={class:"body"},st={key:0,class:"mt-6"},it={fill:"currentColor",width:"16",height:"16"};function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t0?((0,n.openBlock)(),(0,n.createBlock)("button",{key:0,class:"button info",onClick:t[1]||(t[1]=function(){return o.onMarkAsReadClicked&&o.onMarkAsReadClicked.apply(o,arguments)})},[((0,n.openBlock)(),(0,n.createBlock)("svg",tt,[(0,n.createVNode)("use",{"xlink:href":e.icon("unread_items")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Mark as read")),1)])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("button",{class:"info",onClick:t[2]||(t[2]=(0,n.withModifiers)((function(){return o.onOpenClicked&&o.onOpenClicked.apply(o,arguments)}),["left","stop","prevent"]))},[((0,n.openBlock)(),(0,n.createBlock)("svg",rt,[(0,n.createVNode)("use",{"xlink:href":e.icon("open")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Open")),1)])])]),(0,n.createVNode)("div",nt,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(e.documents,(function(e){return(0,n.openBlock)(),(0,n.createBlock)("img",{key:e.id,title:e.title,src:e.favicon,class:"favicon inline mr-1 mb-1"},null,8,["title","src"])})),128)),"unread_items"!==e.selectedFolder.type&&e.selectedFolder.user_permissions.can_delete_document?((0,n.openBlock)(),(0,n.createBlock)("div",st,[(0,n.createVNode)("button",{class:"danger",onClick:t[3]||(t[3]=function(){return o.onDeleteDocument&&o.onDeleteDocument.apply(o,arguments)})},[((0,n.openBlock)(),(0,n.createBlock)("svg",it,[(0,n.createVNode)("use",{"xlink:href":e.icon("trash")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Delete")),1)])])):(0,n.createCommentVNode)("",!0)])])}},ut=lt;var ht={class:"tools"},pt={fill:"currentColor",width:"16",height:"16"},dt={class:"hidden xl:inline-block"},ft={fill:"currentColor",width:"16",height:"16"},mt={class:"hidden xl:inline-block"},yt={fill:"currentColor",width:"16",height:"16"},gt={class:"hidden xl:inline-block"},vt={class:"body"},bt={class:"vertical list striped items-rounded compact"},xt={class:"list-item"},wt={class:"list-item-title"},kt={class:"list-item-value"},Pt={class:"list-item"},Tt={class:"list-item-title"},St={class:"list-item-value"},Ct={class:"list-item"},At={class:"list-item-title"},Et={class:"list-item-value"},_t={class:"list-item"},Nt={class:"list-item-title"},It={class:"list-item-value"},Ot={class:"list horizontal compact"},Dt={class:"icons"},Lt={class:"list-item-text"};function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t0?((0,n.openBlock)(),(0,n.createBlock)("button",{key:0,class:"button info",onClick:t[1]||(t[1]=function(){return o.onMarkAsReadClicked&&o.onMarkAsReadClicked.apply(o,arguments)}),title:e.__("Mark as read")},[((0,n.openBlock)(),(0,n.createBlock)("svg",pt,[(0,n.createVNode)("use",{"xlink:href":e.icon("unread_items")},null,8,["xlink:href"])])),(0,n.createVNode)("span",dt,(0,n.toDisplayString)(e.__("Mark as read")),1)],8,["title"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("a",{class:"button info",href:e.feedItem.url,rel:"noopener noreferrer",title:e.__("Open")},[((0,n.openBlock)(),(0,n.createBlock)("svg",ft,[(0,n.createVNode)("use",{"xlink:href":e.icon("open")},null,8,["xlink:href"])])),(0,n.createVNode)("span",mt,(0,n.toDisplayString)(e.__("Open")),1)],8,["href","title"]),(0,n.createVNode)("button",{class:"button info",onClick:t[2]||(t[2]=function(){return o.onShareClicked&&o.onShareClicked.apply(o,arguments)}),title:e.__("Share")},[((0,n.openBlock)(),(0,n.createBlock)("svg",yt,[(0,n.createVNode)("use",{"xlink:href":e.icon("share")},null,8,["xlink:href"])])),(0,n.createVNode)("span",gt,(0,n.toDisplayString)(e.__("Share")),1)],8,["title"])])]),(0,n.createVNode)("div",vt,[(0,n.createVNode)("div",{class:"cyca-prose",innerHTML:e.feedItem.content?e.feedItem.content:e.feedItem.description},null,8,["innerHTML"]),(0,n.createVNode)(c,{name:"feed_item_details",class:"details-block"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)("summary",null,(0,n.toDisplayString)(e.__("Details")),1),(0,n.createVNode)("div",bt,[(0,n.createVNode)("div",xt,[(0,n.createVNode)("div",wt,(0,n.toDisplayString)(e.__("Real URL")),1),(0,n.createVNode)("div",kt,[(0,n.createVNode)("a",{href:e.feedItem.url,rel:"noopener noreferrer",class:"readable",innerHTML:e.feedItem.ascii_url},null,8,["href","innerHTML"])])]),(0,n.createVNode)("div",Pt,[(0,n.createVNode)("div",Tt,(0,n.toDisplayString)(e.__("Date of item's creation")),1),(0,n.createVNode)("div",St,[(0,n.createVNode)(a,{datetime:e.feedItem.created_at,calendar:!0},null,8,["datetime"])])]),(0,n.createVNode)("div",Ct,[(0,n.createVNode)("div",At,(0,n.toDisplayString)(e.__("Date of item's publication")),1),(0,n.createVNode)("div",Et,[(0,n.createVNode)(a,{datetime:e.feedItem.published_at,calendar:!0},null,8,["datetime"])])]),(0,n.createVNode)("div",_t,[(0,n.createVNode)("div",Nt,(0,n.toDisplayString)(e.__("Published in")),1),(0,n.createVNode)("div",It,[(0,n.createVNode)("div",Ot,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(e.feedItem.feeds,(function(e){return(0,n.openBlock)(),(0,n.createBlock)("div",{class:"list-item px-0 ml-2",key:e.id,title:e.url},[(0,n.createVNode)("div",Dt,[(0,n.createVNode)("img",{src:e.favicon},null,8,["src"])]),(0,n.createVNode)("div",Lt,(0,n.toDisplayString)(e.title),1)],8,["title"])})),128))])])])])]})),_:1})])])}},Bt=Rt;var Vt={key:0},Ut={class:"icons"},Ht={class:"badges"},qt={key:0,class:"badge default"},$t={class:"tools"},zt={fill:"currentColor",width:"16",height:"16"},Gt={class:"body"},Jt={class:"input-group"},Wt={type:"submit",class:"success"},Kt={fill:"currentColor",width:"16",height:"16"},Xt={class:"input-group"},Yt={type:"submit",class:"success"},Qt={fill:"currentColor",width:"16",height:"16"},Zt={class:"input-group"},er={type:"submit",class:"success"},tr={fill:"currentColor",width:"16",height:"16"},rr={key:3,class:"mb-6"},nr={key:4},sr={fill:"currentColor",width:"16",height:"16"};var ir={class:"body flex items-center mt-2 space-x-2"};var or={fill:"currentColor",width:"16",height:"16"};function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t0?((0,n.openBlock)(),(0,n.createBlock)("form",dr,[(0,n.createVNode)("div",fr,[(0,n.createVNode)("label",mr,(0,n.toDisplayString)(e.__("Add explicit permissions for"))+":",1),(0,n.withDirectives)((0,n.createVNode)("select",{"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.addPermissionsForUser=t}),id:"addPermissionsForUser"},[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(e.usersWithoutPermissions,(function(e){return(0,n.openBlock)(),(0,n.createBlock)("option",{key:e.id,value:e.id},(0,n.toDisplayString)(e.name),9,["value"])})),128))],512),[[n.vModelSelect,e.addPermissionsForUser]])])])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(e.users,(function(t){return(0,n.openBlock)(),(0,n.createBlock)("div",{class:"list vertical spaced striped items-rounded compact",key:t.id},[(0,n.createVNode)("div",yr,[(0,n.createVNode)("div",null,[(0,n.createTextVNode)((0,n.toDisplayString)(t.name)+" ",1),(0,n.createVNode)("small",gr,(0,n.toDisplayString)(t.email),1),(0,n.createVNode)("div",vr,[(0,n.createVNode)(a,{text:e.__("Create folder"),ability:"can_create_folder",folder:r.folder,user:t},null,8,["text","folder","user"]),(0,n.createVNode)(a,{text:e.__("Update folder"),ability:"can_update_folder",folder:r.folder,user:t},null,8,["text","folder","user"]),(0,n.createVNode)(a,{text:e.__("Delete folder"),ability:"can_delete_folder",folder:r.folder,user:t},null,8,["text","folder","user"]),(0,n.createVNode)(a,{text:e.__("Create document"),ability:"can_create_document",folder:r.folder,user:t},null,8,["text","folder","user"]),(0,n.createVNode)(a,{text:e.__("Delete document"),ability:"can_delete_document",folder:r.folder,user:t},null,8,["text","folder","user"])])]),(0,n.createVNode)("div",null,[(0,n.createVNode)("button",{class:"info",onClick:function(e){return o.onRemovePermissions(t)}},[((0,n.openBlock)(),(0,n.createBlock)("svg",br,[(0,n.createVNode)("use",{"xlink:href":e.icon("cancel")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Apply default permissions")),1)],8,["onClick"])])])])})),128))])]})),_:1},8,["onToggle"])}};function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t0?((0,n.openBlock)(),(0,n.createBlock)("div",qt,(0,n.toDisplayString)(e.folder.feed_item_states_count),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createVNode)("div",$t,[e.folder.feed_item_states_count>0?((0,n.openBlock)(),(0,n.createBlock)("button",{key:0,class:"info",onClick:t[1]||(t[1]=function(){return o.onMarkAsReadClicked&&o.onMarkAsReadClicked.apply(o,arguments)})},[((0,n.openBlock)(),(0,n.createBlock)("svg",zt,[(0,n.createVNode)("use",{"xlink:href":e.icon("unread_items")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Mark as read")),1)])):(0,n.createCommentVNode)("",!0)])]),(0,n.createVNode)("div",Gt,[o.can("can_update_folder")&&"folder"===e.folder.type?((0,n.openBlock)(),(0,n.createBlock)("form",{key:0,action:e.route("folder.update",e.folder),onSubmit:t[3]||(t[3]=(0,n.withModifiers)((function(){return o.onUpdateFolder&&o.onUpdateFolder.apply(o,arguments)}),["prevent"]))},[(0,n.createVNode)("div",Jt,[(0,n.createVNode)("input",{type:"text",name:"title",value:e.folder.title,onInput:t[2]||(t[2]=function(t){return e.updateFolderTitle=t.target.value})},null,40,["value"]),(0,n.createVNode)("button",Wt,[((0,n.openBlock)(),(0,n.createBlock)("svg",Kt,[(0,n.createVNode)("use",{"xlink:href":e.icon("update")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Update folder")),1)])])],40,["action"])):(0,n.createCommentVNode)("",!0),o.can("can_create_folder")?((0,n.openBlock)(),(0,n.createBlock)("form",{key:1,action:e.route("folder.store"),onSubmit:t[5]||(t[5]=(0,n.withModifiers)((function(){return o.onAddFolder&&o.onAddFolder.apply(o,arguments)}),["prevent"]))},[(0,n.createVNode)("div",Xt,[(0,n.withDirectives)((0,n.createVNode)("input",{type:"text","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.addFolderTitle=t})},null,512),[[n.vModelText,e.addFolderTitle]]),(0,n.createVNode)("button",Yt,[((0,n.openBlock)(),(0,n.createBlock)("svg",Qt,[(0,n.createVNode)("use",{"xlink:href":e.icon("add")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Add folder")),1)])])],40,["action"])):(0,n.createCommentVNode)("",!0),o.can("can_create_document")?((0,n.openBlock)(),(0,n.createBlock)("form",{key:2,action:e.route("document.store"),onSubmit:t[7]||(t[7]=(0,n.withModifiers)((function(){return o.onAddDocument&&o.onAddDocument.apply(o,arguments)}),["prevent"])),class:"mb-6"},[(0,n.createVNode)("div",Zt,[(0,n.withDirectives)((0,n.createVNode)("input",{type:"url","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.addDocumentUrl=t})},null,512),[[n.vModelText,e.addDocumentUrl]]),(0,n.createVNode)("button",er,[((0,n.openBlock)(),(0,n.createBlock)("svg",tr,[(0,n.createVNode)("use",{"xlink:href":e.icon("add")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Add document")),1)])])],40,["action"])):(0,n.createCommentVNode)("",!0),e.folder.group&&e.folder.group.active_users_count>1?((0,n.openBlock)(),(0,n.createBlock)("div",rr,[!o.can("can_change_permissions")||"root"!==e.folder.type&&"folder"!==e.folder.type?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,class:"details-block",folder:e.folder},null,8,["folder"])),!o.can("can_change_permissions")||"root"!==e.folder.type&&"folder"!==e.folder.type?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)(c,{key:1,class:"details-block",folder:e.folder},null,8,["folder"]))])):(0,n.createCommentVNode)("",!0),o.can("can_delete_folder")?((0,n.openBlock)(),(0,n.createBlock)("div",nr,[(0,n.createVNode)("button",{class:"danger",onClick:t[8]||(t[8]=function(){return o.onDeleteFolder&&o.onDeleteFolder.apply(o,arguments)})},[((0,n.openBlock)(),(0,n.createBlock)("svg",sr,[(0,n.createVNode)("use",{"xlink:href":e.icon("trash")},null,8,["xlink:href"])])),(0,n.createVNode)("span",null,(0,n.toDisplayString)(e.__("Delete")),1)])])):(0,n.createCommentVNode)("",!0)])])):(0,n.createCommentVNode)("",!0)}},Sr=Tr;var Cr={class:"vertical list spaced striped items-rounded"};var Ar={class:"icons"},Er={class:"list-item-text"},_r={class:"text-sm"},Nr={class:"badges"},Ir={fill:"currentColor",width:"16",height:"16"},Or={key:1,class:"badge default"},Dr={key:0},Lr={fill:"currentColor",width:"16",height:"16",class:"text-blue-300"};function Mr(e){return function(e){if(Array.isArray(e))return Fr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=100&&e<=199?t="http-status-info":e>=200&&e<=299?t="http-status-success":e>=300&&e<=399?t="http-status-redirection":e>=400&&e<=499?t="http-status-client-error":e>=500&&e<=599&&(t="http-status-server-error"),t},statusIcon:function(){var e=this.document.http_status_code,t=null;return 0===e?t="error":e>=100&&e<=199?t="info":e>=200&&e<=299?t="success":e>=300&&e<=399?t="redirect":e>=400&&e<=499?t="warning":e>=500&&e<=599&&(t="error"),t}}),methods:Rr(Rr({},y({startDraggingDocuments:"documents/startDraggingDocuments",stopDraggingDocuments:"documents/stopDraggingDocuments",incrementVisits:"documents/incrementVisits",openDocument:"documents/openDocument"})),{},{onClicked:function(){this.$emit("selected-documents-changed",[this.document])},onAddToSelection:function(){var e=this,t=Mr(e.selectedDocuments),r=t.findIndex((function(t){return t.id===e.document.id}));-1===r?t.push(e.document):t.splice(r,1),e.$emit("selected-documents-changed",t)},onDragStart:function(){var e=this,t=[e.document];e.selectedDocuments&&e.selectedDocuments.length>0&&(t=e.selectedDocuments),e.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()},ensureVisible:function(){this.enableEnsureVisible&&this.$el.scrollIntoView({block:"center"})}}),render:function(e,t,r,s,i,o){return(0,n.openBlock)(),(0,n.createBlock)("a",{class:["list-item",{selected:o.is_selected}],draggable:!0,href:o.url,onClick:[t[1]||(t[1]=(0,n.withModifiers)((function(){return o.onAddToSelection&&o.onAddToSelection.apply(o,arguments)}),["meta","left","exact","prevent","stop"])),t[2]||(t[2]=(0,n.withModifiers)((function(){return o.onClicked&&o.onClicked.apply(o,arguments)}),["left","exact","prevent","stop"]))],onMouseup:t[3]||(t[3]=(0,n.withModifiers)((function(t){return e.incrementVisits({document:r.document,folder:e.selectedFolder})}),["middle","exact"])),onDblclick:t[4]||(t[4]=function(t){return e.openDocument({document:r.document,folder:e.selectedFolder})}),onDragstart:t[5]||(t[5]=function(){return o.onDragStart&&o.onDragStart.apply(o,arguments)}),onDragend:t[6]||(t[6]=function(){return o.onDragEnd&&o.onDragEnd.apply(o,arguments)}),rel:"noopener noreferrer"},[(0,n.createVNode)("div",Ar,[(0,n.createVNode)("img",{src:r.document.favicon,class:"favicon-lg"},null,8,["src"])]),(0,n.createVNode)("div",Er,[(0,n.createTextVNode)((0,n.toDisplayString)(r.document.title)+" ",1),(0,n.createVNode)("div",_r,(0,n.toDisplayString)(r.document.url),1)]),(0,n.createVNode)("div",Nr,[r.document.http_status_code<200||r.document.http_status_code>299?((0,n.openBlock)(),(0,n.createBlock)("div",{key:0,class:o.statusClass,title:r.document.http_status_text},[((0,n.openBlock)(),(0,n.createBlock)("svg",Ir,[(0,n.createVNode)("use",{"xlink:href":e.icon(o.statusIcon)},null,8,["xlink:href"])]))],10,["title"])):(0,n.createCommentVNode)("",!0),r.document.feed_item_states_count>0?((0,n.openBlock)(),(0,n.createBlock)("div",Or,[r.document.has_new_unread_items?((0,n.openBlock)(),(0,n.createBlock)("span",Dr,[((0,n.openBlock)(),(0,n.createBlock)("svg",Lr,[(0,n.createVNode)("use",{"xlink:href":e.icon("update")},null,8,["xlink:href"])]))])):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(r.document.feed_item_states_count),1)])):(0,n.createCommentVNode)("",!0)])],42,["href"])}};function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t",0)),t.all()}}),methods:{onSelectedDocumentsChanged:function(e){this.$emit("selected-documents-changed",e)}},render:function(e,t,r,s,i,o){var a=(0,n.resolveComponent)("document-item");return(0,n.openBlock)(),(0,n.createBlock)("div",Cr,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(o.sortedList,(function(e){return(0,n.openBlock)(),(0,n.createBlock)(a,{key:e.id,document:e,onSelectedDocumentsChanged:o.onSelectedDocumentsChanged},null,8,["document","onSelectedDocumentsChanged"])})),128))])}},zr=$r;var Gr={class:"flex justify-between items-center space-x-2"},Jr={class:"list horizontal compact overflow-hidden"},Wr={class:"icons"},Kr={class:"hidden xl:inline-block text-xs"};var Xr=r(9911),Yr=r.n(Xr);function Qr(e){return function(e){if(Array.isArray(e))return Zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r|[^<>]*$1')})),e},ensureVisible:function(){this.enableEnsureVisible&&this.$el.scrollIntoView({block:"center"})}}),render:function(e,t,r,s,i,o){var a=(0,n.resolveComponent)("date-time");return(0,n.openBlock)(),(0,n.createBlock)("a",{class:[{selected:o.is_selected,emphasize:r.feedItem.feed_item_states_count>0},"list-item"],href:r.feedItem.url,rel:"noopener noreferrer",onClick:t[1]||(t[1]=(0,n.withModifiers)((function(){return o.onClicked&&o.onClicked.apply(o,arguments)}),["left","exact","stop","prevent"]))},[(0,n.createVNode)("div",{class:"list-item-text mr-2",innerHTML:o.highlight(r.feedItem.title)},null,8,["innerHTML"]),(0,n.createVNode)("div",Gr,[(0,n.createVNode)("div",Jr,[(0,n.createVNode)("div",{class:"list-item px-0",title:r.feedItem.feeds[0].title},[(0,n.createVNode)("div",Wr,[(0,n.createVNode)("img",{src:r.feedItem.feeds[0].favicon},null,8,["src"])]),(0,n.createVNode)("div",Kr,(0,n.toDisplayString)(r.feedItem.feeds[0].title),1)],8,["title"])]),(0,n.createVNode)(a,{class:"text-2xs font-mono badge shadow dark:bg-gray-850",datetime:r.feedItem.published_at,calendar:!0},null,8,["datetime"])])],10,["href"])}};function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function on(e){for(var t=1;t",0)),t.all()}}),watch:{sortedList:function(){var e=this;e.$nextTick((function(){e.$el.scrollHeight===e.$el.clientHeight&&e.canLoadMore&&e.loadMoreFeedItems()}))}},methods:on(on({},y({loadMoreFeedItems:"feedItems/loadMoreFeedItems"})),{},{onSelectedFeedItemsChanged:function(e){this.$emit("selected-feeditems-changed",e)},onScroll:function(e){e.target.scrollTop+e.target.clientHeight>=e.target.scrollHeight-20&&this.canLoadMore&&this.loadMoreFeedItems()}}),render:function(e,t,r,s,i,o){var a=(0,n.resolveComponent)("feed-item");return(0,n.openBlock)(),(0,n.createBlock)("div",{id:"feed-items-list",class:"list vertical spaced striped items-rounded",onScrollPassive:t[1]||(t[1]=function(){return o.onScroll&&o.onScroll.apply(o,arguments)})},[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(o.sortedList,(function(e){return(0,n.openBlock)(),(0,n.createBlock)(a,{key:e.id,feedItem:e,onSelectedFeeditemsChanged:o.onSelectedFeedItemsChanged},null,8,["feedItem","onSelectedFeeditemsChanged"])})),128))],32)}},ln=cn;var un={class:"flex flex-col"},hn={class:"list vertical items-rounded spaced compact striped flex-none overflow-auto max-h-36 bg-gray-50 dark:bg-gray-800"},pn={class:"list vertical items-rounded overflow-auto flex-grow compact"},dn={class:"list vertical items-rounded spaced compact striped flex-none bg-gray-50 dark:bg-gray-800"},fn={class:"icons"},mn={fill:"currentColor",width:"16",height:"16",class:"text-green-500"},yn={class:"list-item-text"},gn={class:"icons"},vn={fill:"currentColor",width:"16",height:"16",class:"text-red-500"},bn={class:"list-item-text"};var xn={class:"icons"},wn={fill:"currentColor",width:"16",height:"16",class:"text-green-500"},kn={class:"list-item-text"},Pn={class:"badges"},Tn={key:0,class:"badge default"},Sn={key:0},Cn={fill:"currentColor",width:"16",height:"16",class:"text-blue-300"};const An={props:["group"],render:function(e,t,r,s,i,o){return(0,n.openBlock)(),(0,n.createBlock)("a",{href:e.route("group.show",r.group),class:["list-item",{selected:r.group.is_selected}],onClick:t[1]||(t[1]=(0,n.withModifiers)((function(t){return e.$emit("selected-group-changed",r.group)}),["stop","prevent"]))},[(0,n.createVNode)("div",xn,[((0,n.openBlock)(),(0,n.createBlock)("svg",wn,[(0,n.createVNode)("use",{"xlink:href":e.icon("group")},null,8,["xlink:href"])]))]),(0,n.createVNode)("div",kn,(0,n.toDisplayString)(r.group.name),1),(0,n.createVNode)("div",Pn,[r.group.feed_item_states_count>0?((0,n.openBlock)(),(0,n.createBlock)("div",Tn,[r.group.has_new_unread_items?((0,n.openBlock)(),(0,n.createBlock)("span",Sn,[((0,n.openBlock)(),(0,n.createBlock)("svg",Cn,[(0,n.createVNode)("use",{"xlink:href":e.icon("update")},null,8,["xlink:href"])]))])):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(r.group.feed_item_states_count),1)])):(0,n.createCommentVNode)("",!0)])],10,["href"])}},En=An;var _n={class:"icons"},Nn={class:"caret"},In={class:"list-item-text"},On={class:"badges"},Dn={key:0,class:"badge default"},Ln={key:0},Mn={fill:"currentColor",width:"16",height:"16",class:"text-blue-300"};function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t0?((0,n.openBlock)(),(0,n.createBlock)("svg",{key:0,fill:"currentColor",width:"16",height:"16",onMouseupCapture:t[1]||(t[1]=(0,n.withModifiers)((function(){return o.onToggleExpandedClicked&&o.onToggleExpandedClicked.apply(o,arguments)}),["stop"])),onMousedownCapture:t[2]||(t[2]=(0,n.withModifiers)((function(){return o.startTimer&&o.startTimer.apply(o,arguments)}),["stop"]))},[(0,n.createVNode)("use",{"xlink:href":e.icon(o.expanderIcon)},null,8,["xlink:href"])],32)):(0,n.createCommentVNode)("",!0)]),((0,n.openBlock)(),(0,n.createBlock)("svg",{fill:"currentColor",width:"16",height:"16",class:["favicon",r.folder.iconColor]},[(0,n.createVNode)("use",{"xlink:href":e.icon(r.folder.icon)},null,8,["xlink:href"])],2))]),(0,n.createVNode)("div",In,(0,n.toDisplayString)(r.folder.title),1),(0,n.createVNode)("div",On,[r.folder.feed_item_states_count>0?((0,n.openBlock)(),(0,n.createBlock)("div",Dn,[r.folder.has_new_unread_items?((0,n.openBlock)(),(0,n.createBlock)("span",Ln,[((0,n.openBlock)(),(0,n.createBlock)("svg",Mn,[(0,n.createVNode)("use",{"xlink:href":e.icon("update")},null,8,["xlink:href"])]))])):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(r.folder.feed_item_states_count),1)])):(0,n.createCommentVNode)("",!0)])],46,["href","draggable"])):(0,n.createCommentVNode)("",!0)}};function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t0?1===e.length?t.detailsViewComponent="details-document":t.detailsViewComponent="details-documents":t.detailsViewComponent="details-folder"},selectedFeedItems:function(e){var t=this;e&&e.length>0?1===e.length?t.detailsViewComponent="details-feed-item":t.detailsViewComponent=null:t.selectedDocuments&&t.selectedDocuments.length>0?t.detailsViewComponent="details-document":t.detailsViewComponent="details-folder"},feedItems:function(e){this.showFeedItemsList=e&&(0,E.collect)(e).count()>0}},methods:Gn(Gn({},y({showFolder:"folders/show",indexFolders:"folders/index",selectDocuments:"documents/selectDocuments",indexDocuments:"documents/index",dropIntoFolder:"folders/dropIntoFolder",selectFeedItems:"feedItems/selectFeedItems",markFeedItemsAsRead:"feedItems/markAsRead",updateDocument:"documents/update",deleteDocuments:"documents/destroy",updateFolder:"folders/updateProperties",showGroup:"groups/show",updateGroup:"groups/updateProperties",resetUnreadCount:"folders/resetUnreadCount",updateUnreadFeedItemsCount:"feedItems/updateUnreadFeedItemsCount"})),{},{listenToBroadcast:function(){var e=this,t=document.querySelector('meta[name="user-id"]').getAttribute("content");window.Echo.private("App.Models.User."+t).notification((function(t){switch(t.type){case"App\\Notifications\\UnreadItemsChanged":e.updateUnreadFeedItemsCount(t),e.showFolder({deselectDocuments:!1,updateFeedItems:!0});break;case"App\\Notifications\\DocumentUpdated":e.updateDocument({documentId:t.document.id,newProperties:t.document})}}))},onSelectedGroupChanged:function(e){this.showGroup({group:e,folder:"unread_items"})},onGroupsLoaded:function(){},onFoldersLoaded:function(){},onSelectedFolderChanged:function(e,t){var r=this;e&&(t&&t!=r.selectedGroup.id?r.showGroup({group:t,folder:e}):r.showFolder({folder:e}),r.detailsViewComponent="details-folder")},onItemDropped:function(e){this.dropIntoFolder(e)},onSelectedDocumentsChanged:function(e){this.selectDocuments({documents:e}),this.feedItems.length>0&&(document.getElementById("feed-items-list").scrollTop=0)},onDocumentAdded:function(){},onDocumentsDeleted:function(e){var t=e.folder,r=e.documents;this.deleteDocuments({documents:r,folder:t})},onSelectedFeedItemsChanged:function(e){this.selectFeedItems(e)},onFeedItemsRead:function(e){this.markFeedItemsAsRead(e)}})}).mixin(o).use(R).mount("#app")},4511:(e,t,r)=>{"use strict";r.r(t);var n=r(7757),s=r.n(n);function i(e,t,r,n,s,i,o){try{var a=e[i](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,s)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var o=e.apply(t,r);function a(e){i(o,n,s,a,c,"next",e)}function c(e){i(o,n,s,a,c,"throw",e)}a(void 0)}))}}var a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")};const c={send:function(e,t){var r=arguments;return o(s().mark((function n(){var i,o,c,l,u,h,p;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.length>2&&void 0!==r[2]?r[2]:"POST",o=r.length>3&&void 0!==r[3]&&r[3],c=a,o&&(c["Content-Type"]="multipart/form-data"),l={method:i,headers:c},t&&(o?l.body=t:"GET"===i?(u=Object.keys(t).map((function(e){var r=encodeURIComponent(e),n=t[e];if(n.constructor===Array){var s=[];return n.forEach((function(e){s.push(r+"[]="+encodeURIComponent(e))})),s.join("&")}return r+"="+encodeURIComponent(n)})).join("&"),e=e+"?"+u):l.body=JSON.stringify(t)),n.next=8,fetch(e,l);case 8:return h=n.sent,n.prev=9,n.next=12,h.json();case 12:return p=n.sent,n.abrupt("return",p);case 16:return n.prev=16,n.t0=n.catch(9),n.abrupt("return",h);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},get:function(e,t){var r=this;return o(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(e,t,"GET"));case 1:case"end":return n.stop()}}),n)})))()},post:function(e,t){var r=arguments,n=this;return o(s().mark((function i(){var o;return s().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return o=r.length>2&&void 0!==r[2]&&r[2],s.abrupt("return",n.send(e,t,"POST",o));case 2:case"end":return s.stop()}}),i)})))()},put:function(e,t){var r=this;return o(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(e,t,"PUT"));case 1:case"end":return n.stop()}}),n)})))()},delete:function(e,t){var r=this;return o(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(e,t,"DELETE"));case 1:case"end":return n.stop()}}),n)})))()}};window.collect=r(131),window.api=c},2606:(e,t,r)=>{var n=r(6197);e.exports=function(e,t){if(void 0!==n[e])return document.querySelector("base").getAttribute("href")+"/"+n[e].split("/").map((function(e){if("{"==e[0]){var r=e.substring(1,e.length-1);return t[r]?t[r]:t.id?t.id:r}return e})).join("/");console.error("Unknown route ",e)}},696:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r{"use strict";e.exports=function(e){var t,r=void 0;Array.isArray(e)?(t=r=[]).push.apply(t,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports={isArray:function(e){return Array.isArray(e)},isObject:function(e){return"object"===(void 0===e?"undefined":t(e))&&!1===Array.isArray(e)&&null!==e},isFunction:function(e){return"function"==typeof e}}},6429:e=>{"use strict";e.exports=function(e,t){try{return t.split(".").reduce((function(e,t){return e[t]}),e)}catch(t){return e}}},7055:e=>{"use strict";function t(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";e.exports=function(e){return Array.isArray(e[0])?e[0]:e}},131:(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function s(e){void 0===e||Array.isArray(e)||"object"===(void 0===e?"undefined":n(e))?e instanceof this.constructor?this.items=e.all():this.items=e||[]:this.items=[e]}var i=r(9874);"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=i),s.prototype.toJSON=function(){return this.items},s.prototype.all=r(9446),s.prototype.average=r(7722),s.prototype.avg=r(7699),s.prototype.chunk=r(5838),s.prototype.collapse=r(4940),s.prototype.combine=r(451),s.prototype.concat=r(6618),s.prototype.contains=r(1567),s.prototype.count=r(2658),s.prototype.countBy=r(2137),s.prototype.crossJoin=r(2098),s.prototype.dd=r(2797),s.prototype.diff=r(7293),s.prototype.diffAssoc=r(9582),s.prototype.diffKeys=r(7691),s.prototype.dump=r(4387),s.prototype.duplicates=r(7332),s.prototype.each=r(9577),s.prototype.eachSpread=r(5881),s.prototype.every=r(5711),s.prototype.except=r(5949),s.prototype.filter=r(7435),s.prototype.first=r(6126),s.prototype.firstWhere=r(1692),s.prototype.flatMap=r(8374),s.prototype.flatten=r(7048),s.prototype.flip=r(6447),s.prototype.forPage=r(1671),s.prototype.forget=r(64),s.prototype.get=r(4026),s.prototype.groupBy=r(8925),s.prototype.has=r(3605),s.prototype.implode=r(3399),s.prototype.intersect=r(2006),s.prototype.intersectByKeys=r(4368),s.prototype.isEmpty=r(5614),s.prototype.isNotEmpty=r(4247),s.prototype.join=r(2663),s.prototype.keyBy=r(5914),s.prototype.keys=r(3008),s.prototype.last=r(4262),s.prototype.macro=r(78),s.prototype.make=r(9252),s.prototype.map=r(8920),s.prototype.mapSpread=r(2235),s.prototype.mapToDictionary=r(2241),s.prototype.mapInto=r(5170),s.prototype.mapToGroups=r(9720),s.prototype.mapWithKeys=r(5294),s.prototype.max=r(9861),s.prototype.median=r(3783),s.prototype.merge=r(4898),s.prototype.mergeRecursive=r(8524),s.prototype.min=r(5782),s.prototype.mode=r(3075),s.prototype.nth=r(1577),s.prototype.only=r(5840),s.prototype.pad=r(1668),s.prototype.partition=r(2842),s.prototype.pipe=r(9368),s.prototype.pluck=r(3824),s.prototype.pop=r(5682),s.prototype.prepend=r(9531),s.prototype.pull=r(7003),s.prototype.push=r(3817),s.prototype.put=r(9418),s.prototype.random=r(6849),s.prototype.reduce=r(5102),s.prototype.reject=r(2820),s.prototype.replace=r(9797),s.prototype.replaceRecursive=r(7287),s.prototype.reverse=r(9469),s.prototype.search=r(5334),s.prototype.shift=r(6561),s.prototype.shuffle=r(2882),s.prototype.skip=r(7692),s.prototype.skipUntil=r(6825),s.prototype.skipWhile=r(1190),s.prototype.slice=r(2867),s.prototype.some=r(9101),s.prototype.sort=r(8766),s.prototype.sortDesc=r(7783),s.prototype.sortBy=r(1127),s.prototype.sortByDesc=r(7738),s.prototype.sortKeys=r(6536),s.prototype.sortKeysDesc=r(4989),s.prototype.splice=r(4947),s.prototype.split=r(4481),s.prototype.sum=r(6149),s.prototype.take=r(496),s.prototype.takeUntil=r(4270),s.prototype.takeWhile=r(1548),s.prototype.tap=r(4265),s.prototype.times=r(2668),s.prototype.toArray=r(2903),s.prototype.toJson=r(1245),s.prototype.transform=r(4583),s.prototype.unless=r(5553),s.prototype.unlessEmpty=r(3339),s.prototype.unlessNotEmpty=r(4721),s.prototype.union=r(4464),s.prototype.unique=r(5547),s.prototype.unwrap=r(794),s.prototype.values=r(7615),s.prototype.when=r(1005),s.prototype.whenEmpty=r(4721),s.prototype.whenNotEmpty=r(3339),s.prototype.where=r(4295),s.prototype.whereBetween=r(4835),s.prototype.whereIn=r(5524),s.prototype.whereInstanceOf=r(7848),s.prototype.whereNotBetween=r(2787),s.prototype.whereNotIn=r(5839),s.prototype.whereNull=r(609),s.prototype.whereNotNull=r(1590),s.prototype.wrap=r(8711),s.prototype.zip=r(3585);var o=function(e){return new s(e)};e.exports=o,e.exports.collect=o,e.exports.default=o,e.exports.Collection=s},9446:e=>{"use strict";e.exports=function(){return this.items}},7722:e=>{"use strict";e.exports=function(e){return void 0===e?this.sum()/this.items.length:new this.constructor(this.items).pluck(e).sum()/this.items.length}},7699:(e,t,r)=>{"use strict";var n=r(7722);e.exports=n},5838:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var r=this,n=[],s=0;if(Array.isArray(this.items))do{var i=this.items.slice(s,s+e),o=new this.constructor(i);n.push(o),s+=e}while(s{"use strict";e.exports=function(){var e;return new this.constructor((e=[]).concat.apply(e,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(s)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var n=this,s=e;s instanceof this.constructor&&(s=e.all());var i={};if(Array.isArray(this.items)&&Array.isArray(s))this.items.forEach((function(e,t){i[e]=s[t]}));else if("object"===r(this.items)&&"object"===(void 0===s?"undefined":r(s)))Object.keys(this.items).forEach((function(e,t){i[n.items[e]]=s[Object.keys(s)[t]]}));else if(Array.isArray(this.items))i[this.items[0]]=s;else if("string"==typeof this.items&&Array.isArray(s)){var o=t(s,1);i[this.items]=o[0]}else"string"==typeof this.items&&(i[this.items]=s);return new this.constructor(i)}},6618:(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(1536);e.exports=function(e){var t=e;e instanceof this.constructor?t=e.all():"object"===(void 0===e?"undefined":n(e))&&(t=[],Object.keys(e).forEach((function(r){t.push(e[r])})));var r=s(this.items);return t.forEach((function(e){"object"===(void 0===e?"undefined":n(e))?Object.keys(e).forEach((function(t){return r.push(e[t])})):r.push(e)})),new this.constructor(r)}},1567:(e,t,r)=>{"use strict";var n=r(7055),s=r(1242).isFunction;e.exports=function(e,t){if(void 0!==t)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[e]&&r[e]===t})).length>0:void 0!==this.items[e]&&this.items[e]===t;if(s(e))return this.items.filter((function(t,r){return e(t,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(e);var r=n(this.items);return r.push.apply(r,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";e.exports=function(){var e=0;return Array.isArray(this.items)&&(e=this.items.length),Math.max(Object.keys(this.items).length,e)}},2137:e=>{"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return new this.constructor(this.items).groupBy(e).map((function(e){return e.count()}))}},2098:e=>{"use strict";e.exports=function(){function e(t,r,n){var s=n[0];s instanceof r&&(s=s.all());for(var i=n.slice(1),o=!i.length,a=[],c=0;c{"use strict";var n=r(4155);e.exports=function(){this.dump(),void 0!==n&&n.exit(1)}},7293:e=>{"use strict";e.exports=function(e){var t=void 0;t=e instanceof this.constructor?e.all():e;var r=this.items.filter((function(e){return-1===t.indexOf(e)}));return new this.constructor(r)}},9582:e=>{"use strict";e.exports=function(e){var t=this,r=e;e instanceof this.constructor&&(r=e.all());var n={};return Object.keys(this.items).forEach((function(e){void 0!==r[e]&&r[e]===t.items[e]||(n[e]=t.items[e])})),new this.constructor(n)}},7691:e=>{"use strict";e.exports=function(e){var t=void 0;t=e instanceof this.constructor?e.all():e;var r=Object.keys(t),n=Object.keys(this.items).filter((function(e){return-1===r.indexOf(e)}));return new this.constructor(this.items).only(n)}},4387:e=>{"use strict";e.exports=function(){return console.log(this),this}},7332:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(){var e=this,r=[],n={},s=function(e){return Array.isArray(e)||"object"===(void 0===e?"undefined":t(e))?JSON.stringify(e):e};return Array.isArray(this.items)?this.items.forEach((function(e,t){var i=s(e);-1===r.indexOf(i)?r.push(i):n[t]=e})):"object"===t(this.items)&&Object.keys(this.items).forEach((function(t){var i=s(e.items[t]);-1===r.indexOf(i)?r.push(i):n[t]=e.items[t]})),new this.constructor(n)}},9577:e=>{"use strict";e.exports=function(e){var t=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n{"use strict";e.exports=function(e){return this.each((function(t,r){e.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";var n=r(7055);e.exports=function(e){return n(this.items).every(e)}},5949:(e,t,r)=>{"use strict";var n=r(725);e.exports=function(){for(var e=this,t=arguments.length,r=Array(t),s=0;s{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){if(Array.isArray(e)){if(e.length)return!1}else if(null!=e&&"object"===(void 0===e?"undefined":t(e))){if(Object.keys(e).length)return!1}else if(e)return!1;return!0}e.exports=function(e){var t=e||!1,n=null;return n=Array.isArray(this.items)?function(e,t){if(e)return t.filter(e);for(var n=[],s=0;s{"use strict";var n=r(1242).isFunction;e.exports=function(e,t){if(n(e)){for(var r=0,s=this.items.length;r{"use strict";e.exports=function(e,t,r){return this.where(e,t,r).first()||null}},8374:e=>{"use strict";e.exports=function(e){return this.map(e).collapse()}},7048:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject;e.exports=function(e){var t=e||1/0,r=!1,n=[],o=function(e){n=[],s(e)?e.forEach((function(e){s(e)?n=n.concat(e):i(e)?Object.keys(e).forEach((function(t){n=n.concat(e[t])})):n.push(e)})):Object.keys(e).forEach((function(t){s(e[t])?n=n.concat(e[t]):i(e[t])?Object.keys(e[t]).forEach((function(r){n=n.concat(e[t][r])})):n.push(e[t])})),r=0===(r=n.filter((function(e){return i(e)}))).length,t-=1};for(o(this.items);!r&&t>0;)o(n);return new this.constructor(n)}},6447:e=>{"use strict";e.exports=function(){var e=this,t={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){t[e.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){t[e.items[r]]=r})),new this.constructor(t)}},1671:e=>{"use strict";e.exports=function(e,t){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(e*t-t,e*t):Object.keys(this.items).slice(e*t-t,e*t).forEach((function(e){n[e]=r.items[e]})),new this.constructor(n)}},64:e=>{"use strict";e.exports=function(e){return Array.isArray(this.items)?this.items.splice(e,1):delete this.items[e],this}},4026:(e,t,r)=>{"use strict";var n=r(1242).isFunction;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[e]?this.items[e]:n(t)?t():null!==t?t:null}},8925:(e,t,r)=>{"use strict";var n=r(6429),s=r(1242).isFunction;e.exports=function(e){var t=this,r={};return this.items.forEach((function(i,o){var a=void 0;a=s(e)?e(i,o):n(i,e)||0===n(i,e)?n(i,e):"",void 0===r[a]&&(r[a]=new t.constructor([])),r[a].push(i)})),new this.constructor(r)}},3605:(e,t,r)=>{"use strict";var n=r(725);e.exports=function(){for(var e=this,t=arguments.length,r=Array(t),s=0;s{"use strict";e.exports=function(e,t){return void 0===t?this.items.join(e):new this.constructor(this.items).pluck(e).all().join(t)}},2006:e=>{"use strict";e.exports=function(e){var t=e;e instanceof this.constructor&&(t=e.all());var r=this.items.filter((function(e){return-1!==t.indexOf(e)}));return new this.constructor(r)}},4368:e=>{"use strict";e.exports=function(e){var t=this,r=Object.keys(e);e instanceof this.constructor&&(r=Object.keys(e.all()));var n={};return Object.keys(this.items).forEach((function(e){-1!==r.indexOf(e)&&(n[e]=t.items[e])})),new this.constructor(n)}},5614:e=>{"use strict";e.exports=function(){return Array.isArray(this.items)?!this.items.length:!Object.keys(this.items).length}},4247:e=>{"use strict";e.exports=function(){return!this.isEmpty()}},2663:e=>{"use strict";e.exports=function(e,t){var r=this.values();if(void 0===t)return r.implode(e);var n=r.count();if(0===n)return"";if(1===n)return r.last();var s=r.pop();return r.implode(e)+t+s}},5914:(e,t,r)=>{"use strict";var n=r(6429),s=r(1242).isFunction;e.exports=function(e){var t={};return s(e)?this.items.forEach((function(r){t[e(r)]=r})):this.items.forEach((function(r){var s=n(r,e);t[s||""]=r})),new this.constructor(t)}},3008:e=>{"use strict";e.exports=function(){var e=Object.keys(this.items);return Array.isArray(this.items)&&(e=e.map(Number)),new this.constructor(e)}},4262:(e,t,r)=>{"use strict";var n=r(1242).isFunction;e.exports=function(e,t){var r=this.items;if(n(e)&&(r=this.filter(e).all()),Array.isArray(r)&&!r.length||!Object.keys(r).length)return n(t)?t():t;if(Array.isArray(r))return r[r.length-1];var s=Object.keys(r);return r[s[s.length-1]]}},78:e=>{"use strict";e.exports=function(e,t){this.constructor.prototype[e]=t}},9252:e=>{"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(e)}},8920:e=>{"use strict";e.exports=function(e){var t=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(e));var r={};return Object.keys(this.items).forEach((function(n){r[n]=e(t.items[n],n)})),new this.constructor(r)}},5170:e=>{"use strict";e.exports=function(e){return this.map((function(t,r){return new e(t,r)}))}},2235:e=>{"use strict";e.exports=function(e){return this.map((function(t,r){return e.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(s)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var r={};return this.items.forEach((function(n,s){var i=e(n,s),o=t(i,2),a=o[0],c=o[1];void 0===r[a]?r[a]=[c]:r[a].push(c)})),new this.constructor(r)}},9720:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(s)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var r={};return this.items.forEach((function(n,s){var i=e(n,s),o=t(i,2),a=o[0],c=o[1];void 0===r[a]?r[a]=[c]:r[a].push(c)})),new this.constructor(r)}},5294:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(s)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var r=this,n={};return Array.isArray(this.items)?this.items.forEach((function(r){var s=e(r),i=t(s,2),o=i[0],a=i[1];n[o]=a})):Object.keys(this.items).forEach((function(s){var i=e(r.items[s]),o=t(i,2),a=o[0],c=o[1];n[a]=c})),new this.constructor(n)}},9861:e=>{"use strict";function t(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";e.exports=function(e){var t=this.items.length;return void 0===e?t%2==0?(this.items[t/2-1]+this.items[t/2])/2:this.items[Math.floor(t/2)]:t%2==0?(this.items[t/2-1][e]+this.items[t/2][e])/2:this.items[Math.floor(t/2)][e]}},4898:e=>{"use strict";e.exports=function(e){var t=e;if("string"==typeof t&&(t=[t]),Array.isArray(this.items)&&Array.isArray(t))return new this.constructor(this.items.concat(t));var r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(e){r[e]=t[e]})),new this.constructor(r)}},8524:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var r=function e(r,n){var s={};return Object.keys(Object.assign({},r,n)).forEach((function(i){void 0===r[i]&&void 0!==n[i]?s[i]=n[i]:void 0!==r[i]&&void 0===n[i]?s[i]=r[i]:void 0!==r[i]&&void 0!==n[i]&&(r[i]===n[i]?s[i]=r[i]:Array.isArray(r[i])||"object"!==t(r[i])||Array.isArray(n[i])||"object"!==t(n[i])?s[i]=[].concat(r[i],n[i]):s[i]=e(r[i],n[i]))})),s};return e?"Collection"===e.constructor.name?new this.constructor(r(this.items,e.all())):new this.constructor(r(this.items,e)):this}},5782:e=>{"use strict";function t(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t{"use strict";e.exports=function(e){var t=[],r=1;return this.items.length?(this.items.forEach((function(n){var s=t.filter((function(t){return void 0!==e?t.key===n[e]:t.key===n}));if(s.length){s[0].count+=1;var i=s[0].count;i>r&&(r=i)}else void 0!==e?t.push({key:n[e],count:1}):t.push({key:n,count:1})})),t.filter((function(e){return e.count===r})).map((function(e){return e.key}))):null}},1577:(e,t,r)=>{"use strict";var n=r(7055);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=n(this.items),s=r.slice(t).filter((function(t,r){return r%e==0}));return new this.constructor(s)}},5840:(e,t,r)=>{"use strict";var n=r(725);e.exports=function(){for(var e=this,t=arguments.length,r=Array(t),s=0;s{"use strict";var n=r(1536);e.exports=function(e,t){var r=Math.abs(e),s=this.count();if(r<=s)return this;for(var i=r-s,o=n(this.items),a=Array.isArray(this.items),c=e<0,l=0;l{"use strict";e.exports=function(e){var t=this,r=void 0;return Array.isArray(this.items)?(r=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(t){!0===e(t)?r[0].push(t):r[1].push(t)}))):(r=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(n){var s=t.items[n];!0===e(s)?r[0].put(n,s):r[1].put(n,s)}))),new this.constructor(r)}},9368:e=>{"use strict";e.exports=function(e){return e(this)}},3824:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject,o=r(6429);e.exports=function(e,t){if(-1!==e.indexOf("*")){var r=(d=this.items,f={},d.forEach((function(e,t){!function e(t,r){i(t)?Object.keys(t).forEach((function(n){e(t[n],r+"."+n)})):s(t)&&t.forEach((function(t,n){e(t,r+"."+n)})),f[r]=t}(e,t)})),f),n=[];if(void 0!==t){var a=new RegExp("0."+t,"g"),c=("0."+t).split(".").length;Object.keys(r).forEach((function(e){var t=e.match(a);if(t){var s=t[0];s.split(".").length===c&&n.push(r[s])}}))}var l=[],u=new RegExp("0."+e,"g"),h=("0."+e).split(".").length;if(Object.keys(r).forEach((function(e){var t=e.match(u);if(t){var n=t[0];n.split(".").length===h&&l.push(r[n])}})),void 0!==t){var p={};return this.items.forEach((function(e,t){p[n[t]||""]=l})),new this.constructor(p)}return new this.constructor([l])}var d,f;if(void 0!==t){var m={};return this.items.forEach((function(r){void 0!==o(r,e)?m[r[t]||""]=o(r,e):m[r[t]||""]=null})),new this.constructor(m)}return this.map((function(t){return void 0!==o(t,e)?o(t,e):null}))}},5682:e=>{"use strict";e.exports=function(){if(Array.isArray(this.items))return this.items.pop();var e=Object.keys(this.items),t=e[e.length-1],r=this.items[t];return delete this.items[t],r}},9531:e=>{"use strict";e.exports=function(e,t){return void 0!==t?this.put(t,e):(this.items.unshift(e),this)}},7003:(e,t,r)=>{"use strict";var n=r(1242).isFunction;e.exports=function(e,t){var r=this.items[e]||null;return r||void 0===t||(r=n(t)?t():t),delete this.items[e],r}},3817:e=>{"use strict";e.exports=function(){var e;return(e=this.items).push.apply(e,arguments),this}},9418:e=>{"use strict";e.exports=function(e,t){return this.items[e]=t,this}},6849:(e,t,r)=>{"use strict";var n=r(7055);e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=n(this.items),r=new this.constructor(t).shuffle();return e!==parseInt(e,10)?r.first():r.take(e)}},5102:e=>{"use strict";e.exports=function(e,t){var r=this,n=null;return void 0!==t&&(n=t),Array.isArray(this.items)?this.items.forEach((function(t){n=e(n,t)})):Object.keys(this.items).forEach((function(t){n=e(n,r.items[t],t)})),n}},2820:e=>{"use strict";e.exports=function(e){return new this.constructor(this.items).filter((function(t){return!e(t)}))}},9797:e=>{"use strict";e.exports=function(e){if(!e)return this;if(Array.isArray(e)){var t=this.items.map((function(t,r){return e[r]||t}));return new this.constructor(t)}if("Collection"===e.constructor.name){var r=Object.assign({},this.items,e.all());return new this.constructor(r)}var n=Object.assign({},this.items,e);return new this.constructor(n)}},7287:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var r=function e(r,n){var s=Object.assign({},r);return Object.keys(Object.assign({},r,n)).forEach((function(i){Array.isArray(n[i])||"object"!==t(n[i])?void 0===r[i]&&void 0!==n[i]?"object"===t(r[i])?s[i]=Object.assign({},n[i]):s[i]=n[i]:void 0!==r[i]&&void 0===n[i]?"object"===t(r[i])?s[i]=Object.assign({},r[i]):s[i]=r[i]:void 0!==r[i]&&void 0!==n[i]&&("object"===t(n[i])?s[i]=Object.assign({},n[i]):s[i]=n[i]):s[i]=e(r[i],n[i])})),s};return e?Array.isArray(e)||"object"===(void 0===e?"undefined":t(e))?"Collection"===e.constructor.name?new this.constructor(r(this.items,e.all())):new this.constructor(r(this.items,e)):new this.constructor(r(this.items,[e])):this}},9469:e=>{"use strict";e.exports=function(){var e=[].concat(this.items).reverse();return new this.constructor(e)}},5334:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject,o=n.isFunction;e.exports=function(e,t){var r=this,n=void 0,a=function(n,s){return o(e)?e(r.items[s],s):t?r.items[s]===e:r.items[s]==e};return s(this.items)?n=this.items.findIndex(a):i(this.items)&&(n=Object.keys(this.items).find((function(e){return a(r.items[e],e)}))),!(void 0===n||n<0)&&n}},6561:e=>{"use strict";e.exports=function(){if(Array.isArray(this.items)&&this.items.length)return this.items.shift();if(Object.keys(this.items).length){var e=Object.keys(this.items)[0],t=this.items[e];return delete this.items[e],t}return null}},2882:(e,t,r)=>{"use strict";var n=r(7055);e.exports=function(){var e=n(this.items),t=void 0,r=void 0,s=void 0;for(s=e.length;s;s-=1)t=Math.floor(Math.random()*s),r=e[s-1],e[s-1]=e[t],e[t]=r;return this.items=e,this}},7692:(e,t,r)=>{"use strict";var n=r(1242).isObject;e.exports=function(e){var t=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,n,s){return s+1>e&&(r[n]=t.items[n]),r}),{})):new this.constructor(this.items.slice(e))}},6825:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject,o=n.isFunction;e.exports=function(e){var t=this,r=null,n=void 0,a=function(t){return t===e};return o(e)&&(a=e),s(this.items)&&(n=this.items.filter((function(e){return!0!==r&&(r=a(e)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(e,n){return!0!==r&&(r=a(t.items[n])),!1!==r&&(e[n]=t.items[n]),e}),{})),new this.constructor(n)}},1190:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject,o=n.isFunction;e.exports=function(e){var t=this,r=null,n=void 0,a=function(t){return t===e};return o(e)&&(a=e),s(this.items)&&(n=this.items.filter((function(e){return!0!==r&&(r=!a(e)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(e,n){return!0!==r&&(r=!a(t.items[n])),!1!==r&&(e[n]=t.items[n]),e}),{})),new this.constructor(n)}},2867:e=>{"use strict";e.exports=function(e,t){var r=this.items.slice(e);return void 0!==t&&(r=r.slice(0,t)),new this.constructor(r)}},9101:(e,t,r)=>{"use strict";var n=r(1567);e.exports=n},8766:e=>{"use strict";e.exports=function(e){var t=[].concat(this.items);return void 0===e?this.every((function(e){return"number"==typeof e}))?t.sort((function(e,t){return e-t})):t.sort():t.sort(e),new this.constructor(t)}},1127:(e,t,r)=>{"use strict";var n=r(6429),s=r(1242).isFunction;e.exports=function(e){var t=[].concat(this.items),r=function(t){return s(e)?e(t):n(t,e)};return t.sort((function(e,t){var n=r(e),s=r(t);return null==n?1:null==s||ns?1:0})),new this.constructor(t)}},7738:e=>{"use strict";e.exports=function(e){return this.sortBy(e).reverse()}},7783:e=>{"use strict";e.exports=function(){return this.sort().reverse()}},6536:e=>{"use strict";e.exports=function(){var e=this,t={};return Object.keys(this.items).sort().forEach((function(r){t[r]=e.items[r]})),new this.constructor(t)}},4989:e=>{"use strict";e.exports=function(){var e=this,t={};return Object.keys(this.items).sort().reverse().forEach((function(r){t[r]=e.items[r]})),new this.constructor(t)}},4947:e=>{"use strict";e.exports=function(e,t,r){var n=this.slice(e,t);if(this.items=this.diff(n.all()).all(),Array.isArray(r))for(var s=0,i=r.length;s{"use strict";e.exports=function(e){for(var t=Math.round(this.items.length/e),r=JSON.parse(JSON.stringify(this.items)),n=[],s=0;s{"use strict";var n=r(7055),s=r(1242).isFunction;e.exports=function(e){var t=n(this.items),r=0;if(void 0===e)for(var i=0,o=t.length;i{"use strict";e.exports=function(){var e=this,t=-1;return{next:function(){return t+=1,{value:e.items[t],done:t>=e.items.length}}}}},496:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var r=this;if(!Array.isArray(this.items)&&"object"===t(this.items)){var n=Object.keys(this.items),s=void 0;s=e<0?n.slice(e):n.slice(0,e);var i={};return n.forEach((function(e){-1!==s.indexOf(e)&&(i[e]=r.items[e])})),new this.constructor(i)}return e<0?new this.constructor(this.items.slice(e)):new this.constructor(this.items.slice(0,e))}},4270:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject,o=n.isFunction;e.exports=function(e){var t=this,r=null,n=void 0,a=function(t){return t===e};return o(e)&&(a=e),s(this.items)&&(n=this.items.filter((function(e){return!1!==r&&(r=!a(e)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(e,n){return!1!==r&&(r=!a(t.items[n])),!1!==r&&(e[n]=t.items[n]),e}),{})),new this.constructor(n)}},1548:(e,t,r)=>{"use strict";var n=r(1242),s=n.isArray,i=n.isObject,o=n.isFunction;e.exports=function(e){var t=this,r=null,n=void 0,a=function(t){return t===e};return o(e)&&(a=e),s(this.items)&&(n=this.items.filter((function(e){return!1!==r&&(r=a(e)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(e,n){return!1!==r&&(r=a(t.items[n])),!1!==r&&(e[n]=t.items[n]),e}),{})),new this.constructor(n)}},4265:e=>{"use strict";e.exports=function(e){return e(this),this}},2668:e=>{"use strict";e.exports=function(e,t){for(var r=1;r<=e;r+=1)this.items.push(t(r));return this}},2903:e=>{"use strict";e.exports=function(){var e=this.constructor;function t(r,n){var s=[];r instanceof e?(r.items.forEach((function(e){return t(e,s)})),n.push(s)):Array.isArray(r)?(r.forEach((function(e){return t(e,s)})),n.push(s)):n.push(r)}if(Array.isArray(this.items)){var r=[];return this.items.forEach((function(e){t(e,r)})),r}return this.values().all()}},1245:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(){return"object"!==t(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},4583:e=>{"use strict";e.exports=function(e){var t=this;if(Array.isArray(this.items))this.items=this.items.map(e);else{var r={};Object.keys(this.items).forEach((function(n){r[n]=e(t.items[n],n)})),this.items=r}return this}},4464:e=>{"use strict";e.exports=function(e){var t=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(e).forEach((function(n){void 0===t.items[n]&&(r[n]=e[n])})),new this.constructor(r)}},5547:(e,t,r)=>{"use strict";var n=r(1242).isFunction;e.exports=function(e){var t=void 0;if(void 0===e)t=this.items.filter((function(e,t,r){return r.indexOf(e)===t}));else{t=[];for(var r=[],s=0,i=this.items.length;s{"use strict";e.exports=function(e,t,r){e?r(this):t(this)}},794:e=>{"use strict";e.exports=function(e){return e instanceof this.constructor?e.all():e}},7615:(e,t,r)=>{"use strict";var n=r(7055);e.exports=function(){return new this.constructor(n(this.items))}},1005:e=>{"use strict";e.exports=function(e,t,r){return e?t(this,e):r?r(this,e):this}},4721:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this);if(void 0!==t){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this)}return this}},3339:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(this.items)&&this.items.length)return e(this);if(Object.keys(this.items).length)return e(this);if(void 0!==t){if(Array.isArray(this.items)&&!this.items.length)return t(this);if(!Object.keys(this.items).length)return t(this)}return this}},4295:(e,t,r)=>{"use strict";var n=r(7055),s=r(6429);e.exports=function(e,t,r){var i=t,o=r,a=n(this.items);if(void 0===t||!0===t)return new this.constructor(a.filter((function(t){return s(t,e)})));if(!1===t)return new this.constructor(a.filter((function(t){return!s(t,e)})));void 0===r&&(o=t,i="===");var c=a.filter((function(t){switch(i){case"==":return s(t,e)===Number(o)||s(t,e)===o.toString();default:case"===":return s(t,e)===o;case"!=":case"<>":return s(t,e)!==Number(o)&&s(t,e)!==o.toString();case"!==":return s(t,e)!==o;case"<":return s(t,e)":return s(t,e)>o;case">=":return s(t,e)>=o}}));return new this.constructor(c)}},4835:e=>{"use strict";e.exports=function(e,t){return this.where(e,">=",t[0]).where(e,"<=",t[t.length-1])}},5524:(e,t,r)=>{"use strict";var n=r(7055),s=r(6429);e.exports=function(e,t){var r=n(t),i=this.items.filter((function(t){return-1!==r.indexOf(s(t,e))}));return new this.constructor(i)}},7848:e=>{"use strict";e.exports=function(e){return this.filter((function(t){return t instanceof e}))}},2787:(e,t,r)=>{"use strict";var n=r(6429);e.exports=function(e,t){return this.filter((function(r){return n(r,e)t[t.length-1]}))}},5839:(e,t,r)=>{"use strict";var n=r(7055),s=r(6429);e.exports=function(e,t){var r=n(t),i=this.items.filter((function(t){return-1===r.indexOf(s(t,e))}));return new this.constructor(i)}},1590:e=>{"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(e,"!==",null)}},609:e=>{"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(e,"===",null)}},8711:e=>{"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return e instanceof this.constructor?e:"object"===(void 0===e?"undefined":t(e))?new this.constructor(e):new this.constructor([e])}},3585:e=>{"use strict";e.exports=function(e){var t=this,r=e;r instanceof this.constructor&&(r=r.all());var n=this.items.map((function(e,n){return new t.constructor([e,r[n]])}));return new this.constructor(n)}},2584:()=>{},4155:e=>{var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=o(h);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u1)for(var r=1;r{var t;window,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){"use strict";var n,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=256,o=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r>>18&63),t+=this._encodeByte(n>>>12&63),t+=this._encodeByte(n>>>6&63),t+=this._encodeByte(n>>>0&63)}var s=e.length-r;return s>0&&(n=e[r]<<16|(2===s?e[r+1]<<8:0),t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=2===s?this._encodeByte(n>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""),t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),s=0,o=0,a=0,c=0,l=0,u=0,h=0;o>>4,n[s++]=l<<4|u>>>2,n[s++]=u<<6|h,a|=c&i,a|=l&i,a|=u&i,a|=h&i;if(o>>4,a|=c&i,a|=l&i),o>>2,a|=u&i),o>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,t+=62-e>>>8&3,String.fromCharCode(t)},e.prototype._decodeChar=function(e){var t=i;return t+=(42-e&e-44)>>>8&-256+e-43+62,t+=(46-e&e-48)>>>8&-256+e-47+63,t+=(47-e&e-58)>>>8&-256+e-48+52,t+=(64-e&e-91)>>>8&-256+e-65+0,t+=(96-e&e-123)>>>8&-256+e-97+26},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0&&e[r]===this._paddingCharacter;r--)t++;if(e.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=o;var a=new o;t.encode=function(e){return a.encode(e)},t.decode=function(e){return a.decode(e)};var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,t+=62-e>>>8&49,String.fromCharCode(t)},t.prototype._decodeChar=function(e){var t=i;return t+=(44-e&e-46)>>>8&-256+e-45+62,t+=(94-e&e-96)>>>8&-256+e-95+63,t+=(47-e&e-58)>>>8&-256+e-48+52,t+=(64-e&e-91)>>>8&-256+e-65+0,t+=(96-e&e-123)>>>8&-256+e-97+26},t}(o);t.URLSafeCoder=c;var l=new c;t.encodeURLSafe=function(e){return l.encode(e)},t.decodeURLSafe=function(e){return l.decode(e)},t.encodedLength=function(e){return a.encodedLength(e)},t.maxDecodedLength=function(e){return a.maxDecodedLength(e)},t.decodedLength=function(e){return a.decodedLength(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="utf8: invalid string",s="utf8: invalid source encoding";function i(e){for(var t=0,r=0;r=e.length-1)throw new Error(n);r++,t+=4}}return t}t.encode=function(e){for(var t=new Uint8Array(i(e)),r=0,n=0;n>6,t[r++]=128|63&s):s<55296?(t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s):(n++,s=(1023&s)<<10,s|=1023&e.charCodeAt(n),s+=65536,t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s)}return t},t.encodedLength=i,t.decode=function(e){for(var t=[],r=0;r=e.length)throw new Error(s);if(128!=(192&(o=e[++r])))throw new Error(s);n=(31&n)<<6|63&o,i=128}else if(n<240){if(r>=e.length-1)throw new Error(s);var o=e[++r],a=e[++r];if(128!=(192&o)||128!=(192&a))throw new Error(s);n=(15&n)<<12|(63&o)<<6|63&a,i=2048}else{if(!(n<248))throw new Error(s);if(r>=e.length-2)throw new Error(s);o=e[++r],a=e[++r];var c=e[++r];if(128!=(192&o)||128!=(192&a)||128!=(192&c))throw new Error(s);n=(15&n)<<18|(63&o)<<12|(63&a)<<6|63&c,i=65536}if(n=55296&&n<=57343)throw new Error(s);if(n>=65536){if(n>1114111)throw new Error(s);n-=65536,t.push(String.fromCharCode(55296|n>>10)),n=56320|1023&n}}t.push(String.fromCharCode(n))}return t.join("")}},function(e,t,r){e.exports=r(3).default},function(e,t,r){"use strict";r.r(t);for(var n,s=function(){function e(e,t){this.lastId=0,this.prefix=e,this.name=t}return e.prototype.create=function(e){this.lastId++;var t=this.lastId,r=this.prefix+t,n=this.name+"["+t+"]",s=!1,i=function(){s||(e.apply(null,arguments),s=!0)};return this[t]=i,{number:t,id:r,name:n,callback:i}},e.prototype.remove=function(e){delete this[e.number]},e}(),i=new s("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"7.0.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},a=function(){function e(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}return e.prototype.load=function(e,t,r){var n=this;if(n.loading[e]&&n.loading[e].length>0)n.loading[e].push(r);else{n.loading[e]=[r];var s=wt.createScriptRequest(n.getPath(e,t)),i=n.receivers.create((function(t){if(n.receivers.remove(i),n.loading[e]){var r=n.loading[e];delete n.loading[e];for(var o=function(e){e||s.cleanup()},a=0;a>>6)+k(128|63&t):k(224|t>>>12&15)+k(128|t>>>6&63)+k(128|63&t)},E=function(e){return e.replace(/[^\x00-\x7F]/g,A)},_=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[P.charAt(r>>>18),P.charAt(r>>>12&63),t>=2?"=":P.charAt(r>>>6&63),t>=1?"=":P.charAt(63&r)].join("")},N=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,_)},I=function(){function e(e,t,r,n){var s=this;this.clear=t,this.timer=e((function(){s.timer&&(s.timer=n(s.timer))}),r)}return e.prototype.isRunning=function(){return null!==this.timer},e.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},e}(),O=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function D(e){window.clearTimeout(e)}function L(e){window.clearInterval(e)}var M=function(e){function t(t,r){return e.call(this,setTimeout,D,t,(function(e){return r(),null}))||this}return O(t,e),t}(I),F=function(e){function t(t,r){return e.call(this,setInterval,L,t,(function(e){return r(),e}))||this}return O(t,e),t}(I),j={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(e){return new M(0,e)},method:function(e){for(var t=[],r=1;r0)for(n=0;n=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},Ee=Ae,_e=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.id=t,n.transport=r,n.activityTimeout=r.activityTimeout,n.bindListeners(),n}return _e(t,e),t.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},t.prototype.send=function(e){return this.transport.send(e)},t.prototype.send_event=function(e,t,r){var n={event:e,data:t};return r&&(n.channel=r),Y.debug("Event sent",n),this.send(Ee.encodeMessage(n))},t.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},t.prototype.close=function(){this.transport.close()},t.prototype.bindListeners=function(){var e=this,t={message:function(t){var r;try{r=Ee.decodeMessage(t)}catch(r){e.emit("error",{type:"MessageParseError",error:r,data:t.data})}if(void 0!==r){switch(Y.debug("Event recd",r),r.event){case"pusher:error":e.emit("error",{type:"PusherError",data:r.data});break;case"pusher:ping":e.emit("ping");break;case"pusher:pong":e.emit("pong")}e.emit("message",r)}},activity:function(){e.emit("activity")},error:function(t){e.emit("error",t)},closed:function(t){r(),t&&t.code&&e.handleCloseEvent(t),e.transport=null,e.emit("closed")}},r=function(){U(t,(function(t,r){e.transport.unbind(r,t)}))};U(t,(function(t,r){e.transport.bind(r,t)}))},t.prototype.handleCloseEvent=function(e){var t=Ee.getCloseAction(e),r=Ee.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})},t}(le),Ie=function(){function e(e,t){this.transport=e,this.callback=t,this.bindListeners()}return e.prototype.close=function(){this.unbindListeners(),this.transport.close()},e.prototype.bindListeners=function(){var e=this;this.onMessage=function(t){var r;e.unbindListeners();try{r=Ee.processHandshake(t)}catch(t){return e.finish("error",{error:t}),void e.transport.close()}"connected"===r.action?e.finish("connected",{connection:new Ne(r.id,e.transport),activityTimeout:r.activityTimeout}):(e.finish(r.action,{error:r.error}),e.transport.close())},this.onClosed=function(t){e.unbindListeners();var r=Ee.getCloseAction(t)||"backoff",n=Ee.getCloseError(t);e.finish(r,{error:n})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},e.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},e.prototype.finish=function(e,t){this.callback(R({transport:this.transport,action:e},t))},e}(),Oe=function(){function e(e,t){this.channel=e;var r=t.authTransport;if(void 0===wt.getAuthorizers()[r])throw"'"+r+"' is not a recognized auth transport";this.type=r,this.options=t,this.authOptions=t.auth||{}}return e.prototype.composeQuery=function(e){var t="socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var r in this.authOptions.params)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(this.authOptions.params[r]);return t},e.prototype.authorize=function(t,r){e.authorizers=e.authorizers||wt.getAuthorizers(),e.authorizers[this.type].call(this,wt,t,r)},e}(),De=function(){function e(e,t){this.timeline=e,this.options=t||{}}return e.prototype.send=function(e,t){this.timeline.isEmpty()||this.timeline.send(wt.TimelineTransport.getAgent(this,e),t)},e}(),Le=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Me=function(e){function t(t,r){var n=e.call(this,(function(e,r){Y.debug("No callbacks on "+t+" for "+e)}))||this;return n.name=t,n.pusher=r,n.subscribed=!1,n.subscriptionPending=!1,n.subscriptionCancelled=!1,n}return Le(t,e),t.prototype.authorize=function(e,t){return t(null,{auth:""})},t.prototype.trigger=function(e,t){if(0!==e.indexOf("client-"))throw new d("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=h("triggeringClientEvents");Y.warn("Client event triggered before channel 'subscription_succeeded' event . "+r)}return this.pusher.send_event(e,t,this.name)},t.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},t.prototype.handleEvent=function(e){var t=e.event,r=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,r,{})},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)},t.prototype.subscribe=function(){var e=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(t,r){t?(Y.error(t.toString()),e.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:t.message},t instanceof x?{status:t.status}:{}))):e.pusher.send_event("pusher:subscribe",{auth:r.auth,channel_data:r.channel_data,channel:e.name})})))},t.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},t.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},t.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},t}(le),Fe=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fe(t,e),t.prototype.authorize=function(e,t){return We.createAuthorizer(this,this.pusher.config).authorize(e,t)},t}(Me),Re=function(){function e(){this.reset()}return e.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null},e.prototype.each=function(e){var t=this;U(this.members,(function(r,n){e(t.get(n))}))},e.prototype.setMyID=function(e){this.myID=e},e.prototype.onSubscription=function(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)},e.prototype.addMember=function(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)},e.prototype.removeMember=function(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t},e.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},e}(),Be=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ve=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.members=new Re,n}return Be(t,e),t.prototype.authorize=function(t,r){var n=this;e.prototype.authorize.call(this,t,(function(e,t){if(!e){if(void 0===(t=t).channel_data){var s=h("authenticationEndpoint");return Y.error("Invalid auth response for channel '"+n.name+"',expected 'channel_data' field. "+s),void r("Invalid auth response")}var i=JSON.parse(t.channel_data);n.members.setMyID(i.user_id)}r(e,t)}))},t.prototype.handleEvent=function(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var r=e.data,n={};e.user_id&&(n.user_id=e.user_id),this.emit(t,r,n)}},t.prototype.handleInternalEvent=function(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:member_added":var n=this.members.addMember(r);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var s=this.members.removeMember(r);s&&this.emit("pusher:member_removed",s)}},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))},t.prototype.disconnect=function(){this.members.reset(),e.prototype.disconnect.call(this)},t}(je),Ue=r(1),He=r(0),qe=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$e=function(e){function t(t,r,n){var s=e.call(this,t,r)||this;return s.key=null,s.nacl=n,s}return qe(t,e),t.prototype.authorize=function(t,r){var n=this;e.prototype.authorize.call(this,t,(function(e,t){if(e)r(e,t);else{var s=t.shared_secret;s?(n.key=Object(He.decode)(s),delete t.shared_secret,r(null,t)):r(new Error("No shared_secret key in auth payload for encrypted channel: "+n.name),null)}}))},t.prototype.trigger=function(e,t){throw new g("Client events are not currently supported for encrypted channels")},t.prototype.handleEvent=function(t){var r=t.event,n=t.data;0!==r.indexOf("pusher_internal:")&&0!==r.indexOf("pusher:")?this.handleEncryptedEvent(r,n):e.prototype.handleEvent.call(this,t)},t.prototype.handleEncryptedEvent=function(e,t){var r=this;if(this.key)if(t.ciphertext&&t.nonce){var n=Object(He.decode)(t.ciphertext);if(n.length0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new M(e||0,(function(){t.disconnectInternally(),t.connect()}))},t.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},t.prototype.setUnavailableTimer=function(){var e=this;this.unavailableTimer=new M(this.options.unavailableTimeout,(function(){e.updateState("unavailable")}))},t.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},t.prototype.sendActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new M(this.options.pongTimeout,(function(){e.timeline.error({pong_timed_out:e.options.pongTimeout}),e.retryIn(0)}))},t.prototype.resetActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new M(this.activityTimeout,(function(){e.sendActivityCheck()})))},t.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},t.prototype.buildConnectionCallbacks=function(e){var t=this;return R({},e,{message:function(e){t.resetActivityCheck(),t.emit("message",e)},ping:function(){t.send_event("pusher:pong",{})},activity:function(){t.resetActivityCheck()},error:function(e){t.emit("error",e)},closed:function(){t.abandonConnection(),t.shouldRetry()&&t.retryIn(1e3)}})},t.prototype.buildHandshakeCallbacks=function(e){var t=this;return R({},e,{connected:function(e){t.activityTimeout=Math.min(t.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),t.clearUnavailableTimer(),t.setConnection(e.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})},t.prototype.buildErrorCallbacks=function(){var e=this,t=function(t){return function(r){r.error&&e.emit("error",{type:"WebSocketError",error:r.error}),t(r)}};return{tls_only:t((function(){e.usingTLS=!0,e.updateStrategy(),e.retryIn(0)})),refused:t((function(){e.disconnect()})),backoff:t((function(){e.retryIn(1e3)})),retry:t((function(){e.retryIn(0)}))}},t.prototype.setConnection=function(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()},t.prototype.abandonConnection=function(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}},t.prototype.updateState=function(e,t){var r=this.state;if(this.state=e,r!==e){var n=e;"connected"===n&&(n+=" with new socket ID "+t.socket_id),Y.debug("State changed",r+" -> "+n),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}},t.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},t}(le),Je=function(){function e(){this.channels={}}return e.prototype.add=function(e,t){return this.channels[e]||(this.channels[e]=function(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return We.createEncryptedChannel(e,t,t.config.nacl);var r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",n=h("encryptedChannelSupport");throw new g(r+". "+n)}return 0===e.indexOf("private-")?We.createPrivateChannel(e,t):0===e.indexOf("presence-")?We.createPresenceChannel(e,t):We.createChannel(e,t)}(e,t)),this.channels[e]},e.prototype.all=function(){return function(e){var t=[];return U(e,(function(e){t.push(e)})),t}(this.channels)},e.prototype.find=function(e){return this.channels[e]},e.prototype.remove=function(e){var t=this.channels[e];return delete this.channels[e],t},e.prototype.disconnect=function(){U(this.channels,(function(e){e.disconnect()}))},e}(),We={createChannels:function(){return new Je},createConnectionManager:function(e,t){return new Ge(e,t)},createChannel:function(e,t){return new Me(e,t)},createPrivateChannel:function(e,t){return new je(e,t)},createPresenceChannel:function(e,t){return new Ve(e,t)},createEncryptedChannel:function(e,t,r){return new $e(e,t,r)},createTimelineSender:function(e,t){return new De(e,t)},createAuthorizer:function(e,t){return t.authorizer?t.authorizer(e,t):new Oe(e,t)},createHandshake:function(e,t){return new Ie(e,t)},createAssistantToTheTransportManager:function(e,t,r){return new Ce(e,t,r)}},Ke=function(){function e(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}return e.prototype.getAssistant=function(e){return We.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},e.prototype.isAlive=function(){return this.livesLeft>0},e.prototype.reportDeath=function(){this.livesLeft-=1},e}(),Xe=function(){function e(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}return e.prototype.isSupported=function(){return J(this.strategies,j.method("isSupported"))},e.prototype.connect=function(e,t){var r=this,n=this.strategies,s=0,i=this.timeout,o=null,a=function(c,l){l?t(null,l):(s+=1,r.loop&&(s%=n.length),s0&&(s=new M(r.timeout,(function(){i.abort(),n(!0)}))),i=e.connect(t,(function(e,t){e&&s&&s.isRunning()&&!r.failFast||(s&&s.ensureAborted(),n(e,t))})),{abort:function(){s&&s.ensureAborted(),i.abort()},forceMinPriority:function(e){i.forceMinPriority(e)}}},e}(),Ye=function(){function e(e){this.strategies=e}return e.prototype.isSupported=function(){return J(this.strategies,j.method("isSupported"))},e.prototype.connect=function(e,t){return function(e,t,r){var n=$(e,(function(e,n,s,i){return e.connect(t,r(n,i))}));return{abort:function(){q(n,Qe)},forceMinPriority:function(e){q(n,(function(t){t.forceMinPriority(e)}))}}}(this.strategies,e,(function(e,r){return function(n,s){r[e].error=n,n?function(e){return function(e,t){for(var r=0;r=j.now()){var i=this.transports[n.transport];i&&(this.timeline.info({cached:!0,transport:n.transport,latency:n.latency}),s.push(new Xe([i],{timeout:2*n.latency+1e3,failFast:!0})))}var o=j.now(),a=s.pop().connect(e,(function n(i,c){i?(tt(r),s.length>0?(o=j.now(),a=s.pop().connect(e,n)):t(i)):(function(e,t,r){var n=wt.getLocalStorage();if(n)try{n[et(e)]=X({timestamp:j.now(),transport:t,latency:r})}catch(e){}}(r,c.transport.name,j.now()-o),t(null,c))}));return{abort:function(){a.abort()},forceMinPriority:function(t){e=t,a&&a.forceMinPriority(t)}}},e}();function et(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function tt(e){var t=wt.getLocalStorage();if(t)try{delete t[et(e)]}catch(e){}}var rt=function(){function e(e,t){var r=t.delay;this.strategy=e,this.options={delay:r}}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var r,n=this.strategy,s=new M(this.options.delay,(function(){r=n.connect(e,t)}));return{abort:function(){s.ensureAborted(),r&&r.abort()},forceMinPriority:function(t){e=t,r&&r.forceMinPriority(t)}}},e}(),nt=function(){function e(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}return e.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},e.prototype.connect=function(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)},e}(),st=function(){function e(e){this.strategy=e}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var r=this.strategy.connect(e,(function(e,n){n&&r.abort(),t(e,n)}));return r},e}();function it(e){return function(){return e.isSupported()}}var ot,at=function(e,t,r){var n={};function s(t,s,i,o,a){var c=r(e,t,s,i,o,a);return n[t]=c,c}var i,o=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),a=Object.assign({},o,{useTLS:!0}),c=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),l={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),p=s("ws","ws",3,o,u),d=s("wss","ws",3,a,u),f=s("sockjs","sockjs",1,c),m=s("xhr_streaming","xhr_streaming",1,c,h),y=s("xdr_streaming","xdr_streaming",1,c,h),g=s("xhr_polling","xhr_polling",1,c),v=s("xdr_polling","xdr_polling",1,c),b=new Xe([p],l),x=new Xe([d],l),w=new Xe([f],l),k=new Xe([new nt(it(m),m,y)],l),P=new Xe([new nt(it(g),g,v)],l),T=new Xe([new nt(it(k),new Ye([k,new rt(P,{delay:4e3})]),P)],l),S=new nt(it(T),T,w);return i=t.useTLS?new Ye([b,new rt(S,{delay:2e3})]):new Ye([b,new rt(x,{delay:2e3}),new rt(S,{delay:5e3})]),new Ze(new st(new nt(it(p),i,S)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},ct={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new f),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},lt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ut=function(e){function t(t,r,n){var s=e.call(this)||this;return s.hooks=t,s.method=r,s.url=n,s}return lt(t,e),t.prototype.start=function(e){var t=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){t.close()},wt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)},t.prototype.close=function(){this.unloader&&(wt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},t.prototype.onChunk=function(e,t){for(;;){var r=this.advanceBuffer(t);if(!r)break;this.emit("chunk",{status:e,data:r})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")},t.prototype.advanceBuffer=function(e){var t=e.slice(this.position),r=t.indexOf("\n");return-1!==r?(this.position+=r+1,t.slice(0,r)):null},t.prototype.isBufferTooLong=function(e){return this.position===e.length&&e.length>262144},t}(le);!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSED=3]="CLOSED"}(ot||(ot={}));var ht=ot,pt=1;function dt(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+pt++}function ft(e){return Math.floor(Math.random()*e)}var mt,yt=function(){function e(e,t){this.hooks=e,this.session=ft(1e3)+"/"+function(e){for(var t=[],r=0;r0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},xt={createStreamingSocket:function(e){return this.createSocket(gt,e)},createPollingSocket:function(e){return this.createSocket(vt,e)},createSocket:function(e,t){return new yt(e,t)},createXHR:function(e,t){return this.createRequest(bt,e,t)},createRequest:function(e,t,r){return new ut(e,t,r)},createXDR:function(e,t){return this.createRequest(ct,e,t)}},wt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:at,Transports:Pe,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),l.load(e.hooks.file,{useTLS:e.options.useTLS},(function(t,r){e.hooks.isInitialized()?(e.changeState("initialized"),r(!0)):(t&&e.onError(t),e.onClose(),r(!1))}))):e.onClose()},HTTPFactory:xt,TimelineTransport:te,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(e){var t=this;window.Pusher=e;var r=function(){t.onDocumentBody(e.ready)};window.JSON?r():l.load("json2",{},r)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:w,jsonp:Q}},onDocumentBody:function(e){var t=this;document.body?e():setTimeout((function(){t.onDocumentBody(e)}),0)},createJSONPRequest:function(e,t){return new ee(e,t)},createScriptRequest:function(e){return new Z(e)},getLocalStorage:function(){try{return window.localStorage}catch(e){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return Se},createWebSocket:function(e){return new(this.getWebSocketAPI())(e)},createSocketRequest:function(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported:function(e){var t=e?"https:":"http:",r=this.getProtocol();return Boolean(window.XDomainRequest)&&r===t},addUnloadListener:function(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener:function(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)}};!function(e){e[e.ERROR=3]="ERROR",e[e.INFO=6]="INFO",e[e.DEBUG=7]="DEBUG"}(mt||(mt={}));var kt=mt,Pt=function(){function e(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}return e.prototype.log=function(e,t){e<=this.options.level&&(this.events.push(R({},t,{timestamp:j.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},e.prototype.error=function(e){this.log(kt.ERROR,e)},e.prototype.info=function(e){this.log(kt.INFO,e)},e.prototype.debug=function(e){this.log(kt.DEBUG,e)},e.prototype.isEmpty=function(){return 0===this.events.length},e.prototype.send=function(e,t){var r=this,n=R({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(n,(function(e,n){e||r.sent++,t&&t(e,n)})),!0},e.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},e}(),Tt=function(){function e(e,t,r,n){this.name=e,this.priority=t,this.transport=r,this.options=n||{}}return e.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},e.prototype.connect=function(e,t){var r=this;if(!this.isSupported())return St(new b,t);if(this.priority{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},i=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var s=t&&t.prototype instanceof y?t:y,i=Object.create(s.prototype),o=new E(n||[]);return i._invoke=function(e,t,r){var n=h;return function(s,i){if(n===d)throw new Error("Generator is already running");if(n===f){if("throw"===s)throw i;return N()}for(r.method=s,r.arg=i;;){var o=r.delegate;if(o){var a=S(o,r);if(a){if(a===m)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?f:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",f="completed",m={};function y(){}function g(){}function v(){}var b={};b[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(_([])));w&&w!==r&&n.call(w,i)&&(b=w);var k=v.prototype=y.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(s,i,o,a){var c=u(e[s],e,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,o,a)}),(function(e){r("throw",e,o,a)})):t.resolve(h).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,a)}))}a(c.arg)}var s;this._invoke=function(e,n){function i(){return new t((function(t,s){r(e,n,t,s)}))}return s=s?s.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var s=u(n,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,m;var i=s.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function _(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,o=function r(){for(;++s=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return s("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var s=n.arg;A(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},9911:(e,t)=>{var r;!function(){var n=function(e){return e instanceof n?e:this instanceof n?void 0:new n(e)};function s(e){return.213*e[0]+.715*e[1]+.072*e[2]>127.5?"#000000":"#ffffff"}e.exports&&(t=e.exports=n),t.TEXTColor=n,n.findTextColor=function(e){const t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;var r=e;if(/^(rgb|RGB)/.test(r))return s(r.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","));if(t.test(r)){var n=e.toLowerCase();if(n&&t.test(n)){if(4===n.length){for(var i="#",o=1;o<4;o+=1)i+=n.slice(o,o+1).concat(n.slice(o,o+1));n=i}var a=[];for(o=1;o<7;o+=2)a.push(parseInt("0x"+n.slice(o,o+2)));return s(a)}return!1}return!1},void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},8253:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseTransition:()=>n.BaseTransition,Comment:()=>n.Comment,Fragment:()=>n.Fragment,KeepAlive:()=>n.KeepAlive,Static:()=>n.Static,Suspense:()=>n.Suspense,Teleport:()=>n.Teleport,Text:()=>n.Text,Transition:()=>n.Transition,TransitionGroup:()=>n.TransitionGroup,callWithAsyncErrorHandling:()=>n.callWithAsyncErrorHandling,callWithErrorHandling:()=>n.callWithErrorHandling,camelize:()=>n.camelize,capitalize:()=>n.capitalize,cloneVNode:()=>n.cloneVNode,computed:()=>n.computed,createApp:()=>n.createApp,createBlock:()=>n.createBlock,createCommentVNode:()=>n.createCommentVNode,createHydrationRenderer:()=>n.createHydrationRenderer,createRenderer:()=>n.createRenderer,createSSRApp:()=>n.createSSRApp,createSlots:()=>n.createSlots,createStaticVNode:()=>n.createStaticVNode,createTextVNode:()=>n.createTextVNode,createVNode:()=>n.createVNode,customRef:()=>n.customRef,defineAsyncComponent:()=>n.defineAsyncComponent,defineComponent:()=>n.defineComponent,defineEmit:()=>n.defineEmit,defineProps:()=>n.defineProps,devtools:()=>n.devtools,getCurrentInstance:()=>n.getCurrentInstance,getTransitionRawChildren:()=>n.getTransitionRawChildren,h:()=>n.h,handleError:()=>n.handleError,hydrate:()=>n.hydrate,initCustomFormatter:()=>n.initCustomFormatter,inject:()=>n.inject,isProxy:()=>n.isProxy,isReactive:()=>n.isReactive,isReadonly:()=>n.isReadonly,isRef:()=>n.isRef,isVNode:()=>n.isVNode,markRaw:()=>n.markRaw,mergeProps:()=>n.mergeProps,nextTick:()=>n.nextTick,onActivated:()=>n.onActivated,onBeforeMount:()=>n.onBeforeMount,onBeforeUnmount:()=>n.onBeforeUnmount,onBeforeUpdate:()=>n.onBeforeUpdate,onDeactivated:()=>n.onDeactivated,onErrorCaptured:()=>n.onErrorCaptured,onMounted:()=>n.onMounted,onRenderTracked:()=>n.onRenderTracked,onRenderTriggered:()=>n.onRenderTriggered,onUnmounted:()=>n.onUnmounted,onUpdated:()=>n.onUpdated,openBlock:()=>n.openBlock,popScopeId:()=>n.popScopeId,provide:()=>n.provide,proxyRefs:()=>n.proxyRefs,pushScopeId:()=>n.pushScopeId,queuePostFlushCb:()=>n.queuePostFlushCb,reactive:()=>n.reactive,readonly:()=>n.readonly,ref:()=>n.ref,registerRuntimeCompiler:()=>n.registerRuntimeCompiler,render:()=>n.render,renderList:()=>n.renderList,renderSlot:()=>n.renderSlot,resolveComponent:()=>n.resolveComponent,resolveDirective:()=>n.resolveDirective,resolveDynamicComponent:()=>n.resolveDynamicComponent,resolveTransitionHooks:()=>n.resolveTransitionHooks,setBlockTracking:()=>n.setBlockTracking,setDevtoolsHook:()=>n.setDevtoolsHook,setTransitionHooks:()=>n.setTransitionHooks,shallowReactive:()=>n.shallowReactive,shallowReadonly:()=>n.shallowReadonly,shallowRef:()=>n.shallowRef,ssrContextKey:()=>n.ssrContextKey,ssrUtils:()=>n.ssrUtils,toDisplayString:()=>n.toDisplayString,toHandlerKey:()=>n.toHandlerKey,toHandlers:()=>n.toHandlers,toRaw:()=>n.toRaw,toRef:()=>n.toRef,toRefs:()=>n.toRefs,transformVNodeArgs:()=>n.transformVNodeArgs,triggerRef:()=>n.triggerRef,unref:()=>n.unref,useContext:()=>n.useContext,useCssModule:()=>n.useCssModule,useCssVars:()=>n.useCssVars,useSSRContext:()=>n.useSSRContext,useTransitionState:()=>n.useTransitionState,vModelCheckbox:()=>n.vModelCheckbox,vModelDynamic:()=>n.vModelDynamic,vModelRadio:()=>n.vModelRadio,vModelSelect:()=>n.vModelSelect,vModelText:()=>n.vModelText,vShow:()=>n.vShow,version:()=>n.version,warn:()=>n.warn,watch:()=>n.watch,watchEffect:()=>n.watchEffect,withCtx:()=>n.withCtx,withDirectives:()=>n.withDirectives,withKeys:()=>n.withKeys,withModifiers:()=>n.withModifiers,withScopeId:()=>n.withScopeId,compile:()=>c});var n=r(9963),s=r(6252),i=r(3577),o=r(8420);const a=Object.create(null);function c(e,t){if(!(0,i.HD)(e)){if(!e.nodeType)return i.dG;e=e.innerHTML}const r=e,s=a[r];if(s)return s;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const{code:c}=(0,o.MY)(e,(0,i.l7)({hoistStatic:!0,onError(e){throw e}},t)),l=new Function("Vue",c)(n);return l._rc=!0,a[r]=l}(0,s.Y1)(c)},5043:(e,t,r)=>{"use strict";var n=r(8253),s="store";var i=("undefined"!=typeof window?window:void 0!==r.g?r.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var r,n=(r=function(t){return t.original===e},t.filter(r)[0]);if(n)return n.copy;var s=Array.isArray(e)?[]:{};return t.push({original:e,copy:s}),Object.keys(e).forEach((function(r){s[r]=o(e[r],t)})),s}function a(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function c(e){return null!==e&&"object"==typeof e}var l=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(e,t){this._children[e]=t},l.prototype.removeChild=function(e){delete this._children[e]},l.prototype.getChild=function(e){return this._children[e]},l.prototype.hasChild=function(e){return e in this._children},l.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},l.prototype.forEachChild=function(e){a(this._children,e)},l.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},l.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},l.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(l.prototype,u);var h=function(e){this.register([],e,!1)};function p(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void 0;p(e.concat(n),t.getChild(n),r.modules[n])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},h.prototype.update=function(e){p([],this.root,e)},h.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var s=new l(t,r);0===e.length?this.root=s:this.get(e.slice(0,-1)).addChild(e[e.length-1],s);t.modules&&a(t.modules,(function(t,s){n.register(e.concat(s),t,r)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var d=function(e){var t=this;void 0===e&&(e={});var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null);var s=this,o=this.dispatch,a=this.commit;this.dispatch=function(e,t){return o.call(s,e,t)},this.commit=function(e,t,r){return a.call(s,e,t,r)},this.strict=n;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),r.forEach((function(e){return e(t)})),(void 0===e.devtools||e.devtools)&&function(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function m(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function y(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;v(e,r,[],e._modules.root,!0),g(e,r,t)}function g(e,t,r){var s=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,r){o[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return o[r]()},enumerable:!0})})),e._state=n.reactive({data:t}),e.strict&&function(e){n.watch((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(e),s&&r&&e._withCommit((function(){s.data=null}))}function v(e,t,r,n,s){var i=!r.length,o=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=n),!i&&!s){var a=b(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){a[c]=n.state}))}var l=n.context=function(e,t,r){var n=""===t,s={dispatch:n?e.dispatch:function(r,n,s){var i=x(r,n,s),o=i.payload,a=i.options,c=i.type;return a&&a.root||(c=t+c),e.dispatch(c,o)},commit:n?e.commit:function(r,n,s){var i=x(r,n,s),o=i.payload,a=i.options,c=i.type;a&&a.root||(c=t+c),e.commit(c,o,a)}};return Object.defineProperties(s,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(s){if(s.slice(0,n)===t){var i=s.slice(n);Object.defineProperty(r,i,{get:function(){return e.getters[s]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return b(e.state,r)}}}),s}(e,o,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,o+r,t,l)})),n.forEachAction((function(t,r){var n=t.root?r:o+r,s=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var s,i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(s=i)&&"function"==typeof s.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,n,s,l)})),n.forEachGetter((function(t,r){!function(e,t,r,n){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}(e,o+r,t,l)})),n.forEachChild((function(n,i){v(e,t,r.concat(i),n,s)}))}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function x(e,t,r){return c(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}d.prototype.install=function(e,t){e.provide(t||s,this),e.config.globalProperties.$store=this},f.state.get=function(){return this._state.data},f.state.set=function(e){0},d.prototype.commit=function(e,t,r){var n=this,s=x(e,t,r),i=s.type,o=s.payload,a=(s.options,{type:i,payload:o}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(a,n.state)})))},d.prototype.dispatch=function(e,t){var r=this,n=x(e,t),s=n.type,i=n.payload,o={type:s,payload:i},a=this._actions[s];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,r.state)}))}catch(e){0}var c=a.length>1?Promise.all(a.map((function(e){return e(i)}))):a[0](i);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,r.state)}))}catch(e){0}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,r.state,e)}))}catch(e){0}t(e)}))}))}},d.prototype.subscribe=function(e,t){return m(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){return m("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},d.prototype.watch=function(e,t,r){var s=this;return n.watch((function(){return e(s.state,s.getters)}),t,Object.assign({},r))},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},d.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),r.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete b(t.state,e.slice(0,-1))[e[e.length-1]]})),y(this)},d.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype.hotUpdate=function(e){this._modules.update(e),y(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var w=C((function(e,t){var r={};return S(t).forEach((function(t){var n=t.key,s=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=A(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof s?s.call(this,t,r):t[s]},r[n].vuex=!0})),r})),k=C((function(e,t){var r={};return S(t).forEach((function(t){var n=t.key,s=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var i=A(this.$store,"mapMutations",e);if(!i)return;n=i.context.commit}return"function"==typeof s?s.apply(this,[n].concat(t)):n.apply(this.$store,[s].concat(t))}})),r})),P=C((function(e,t){var r={};return S(t).forEach((function(t){var n=t.key,s=t.val;s=e+s,r[n]=function(){if(!e||A(this.$store,"mapGetters",e))return this.$store.getters[s]},r[n].vuex=!0})),r})),T=C((function(e,t){var r={};return S(t).forEach((function(t){var n=t.key,s=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var i=A(this.$store,"mapActions",e);if(!i)return;n=i.context.dispatch}return"function"==typeof s?s.apply(this,[n].concat(t)):n.apply(this.$store,[s].concat(t))}})),r}));function S(e){return function(e){return Array.isArray(e)||c(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function C(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function A(e,t,r){return e._modulesNamespaceMap[r]}function E(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function _(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function N(){var e=new Date;return" @ "+I(e.getHours(),2)+":"+I(e.getMinutes(),2)+":"+I(e.getSeconds(),2)+"."+I(e.getMilliseconds(),3)}function I(e,t){return r="0",n=t-e.toString().length,new Array(n+1).join(r)+e;var r,n}var O={version:"4.0.0-rc.2",createStore:function(e){return new d(e)},Store:d,useStore:function(e){return void 0===e&&(e=null),n.inject(null!==e?e:s)},mapState:w,mapMutations:k,mapGetters:P,mapActions:T,createNamespacedHelpers:function(e){return{mapState:w.bind(null,e),mapGetters:P.bind(null,e),mapMutations:k.bind(null,e),mapActions:T.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var s=e.mutationTransformer;void 0===s&&(s=function(e){return e});var i=e.actionFilter;void 0===i&&(i=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=o(e.state);void 0!==u&&(c&&e.subscribe((function(e,i){var a=o(i);if(r(e,h,a)){var c=N(),l=s(e),p="mutation "+e.type+c;E(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),_(u)}h=a})),l&&e.subscribeAction((function(e,r){if(i(e,r)){var n=N(),s=a(e),o="action "+e.type+n;E(u,o,t),u.log("%c action","color: #03A9F4; font-weight: bold",s),_(u)}})))}}};e.exports=O},6197:e=>{"use strict";e.exports=JSON.parse('{"logout":"logout","account":"account","home":"/","account.password":"account/password","account.import.form":"account/import","account.import":"account/import","account.export":"account/export","group.index_active":"group/active","group.my_groups":"group/my_groups","group.update_positions":"group/update_positions","group.invite_user":"group/{group}/invite","group.leave":"group/{group}/leave","group.join":"group/{group}/join","group.accept_invitation":"group/{group}/accept_invitation","group.reject_invitation":"group/{group}/reject_invitation","group.index":"group","group.store":"group","group.show":"group/{group}","group.update":"group/{group}","group.destroy":"group/{group}","folder.toggle_branch":"folder/{folder}/toggle_branch","folder.details":"folder/{folder}/details","folder.set_permission":"folder/{folder}/set_permission","folder.per_user_permissions":"folder/{folder}/per_user_permissions","folder.users_without_permissions":"folder/{folder}/users_without_permissions","folder.remove_permissions":"folder/{folder}/remove_permissions/{user}","folder.index":"folder","folder.store":"folder","folder.show":"folder/{folder}","folder.update":"folder/{folder}","folder.destroy":"folder/{folder}","document.move":"document/move/{sourceFolder}/{targetFolder}","document.destroy_bookmarks":"document/delete_bookmarks/{folder}","document.visit":"document/{document}/visit","document.store":"document","document.show":"document/{document}","feed.ignore":"feed/{feed}/ignore","feed.follow":"feed/{feed}/follow","feed_item.mark_as_read":"feed_item/mark_as_read","feed_item.index":"feed_item","feed_item.show":"feed_item/{feed_item}","highlight.update_positions":"highlight/update_positions","highlight.store":"highlight","highlight.update":"highlight/{highlight}","highlight.destroy":"highlight/{highlight}"}')}},r={};function n(e){var s=r[e];if(void 0!==s)return s.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,s,i)=>{if(!r){var o=1/0;for(l=0;l=i)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(a=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,s,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={773:0,170:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var s,i,[o,a,c]=r,l=0;for(s in a)n.o(a,s)&&(n.m[s]=a[s]);if(c)var u=c(n);for(t&&t(r);ln(786)));var s=n.O(void 0,[170],(()=>n(2584)));s=n.O(s)})();