@batijs/core 0.0.625 → 0.0.627
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -8
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -187,9 +187,9 @@ ${l}`),l}async function Bie(e,t){let n=await eJ(t),r=n.preprocess?await n.prepro
|
|
|
187
187
|
`,e)}return{formatted:p,cursorOffset:f,comments:u.comments}}function BJ(e,t,n){return typeof t!=`number`||Number.isNaN(t)||t<0||t>e.length?n:t}function VJ(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=BJ(e,n,-1),r=BJ(e,r,0),i=BJ(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function HJ(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a}=VJ(e,t),o=e.charAt(0)===IJ;if(o&&(e=e.slice(1),n--,r--,i--),a===`auto`&&(a=cW(e)),e.includes(`\r`)){let t=t=>dW(e.slice(0,Math.max(t,0)),`\r
|
|
188
188
|
`);n-=t(n),r-=t(r),i-=t(i),e=fW(e)}return{hasBOM:o,text:e,options:VJ(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a})}}async function UJ(e,t){let n=await eJ(t);return!n.hasPragma||n.hasPragma(e)}async function qie(e,t){return(await eJ(t)).hasIgnorePragma?.(e)}async function WJ(e,t){let{hasBOM:n,text:r,options:i}=HJ(e,await cJ(t));if(i.rangeStart>=i.rangeEnd&&r!==``||i.requirePragma&&!await UJ(r,i)||i.checkIgnorePragma&&await qie(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let a;return i.rangeStart>0||i.rangeEnd<r.length?a=await zJ(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await UJ(r,i)&&(r=i.printer.insertPragma(r)),a=await RJ(r,i)),n&&(a.formatted=IJ+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function GJ(e,t,n){let{text:r,options:i}=HJ(e,await cJ(t)),a=await _J(r,i);return n&&(n.preprocessForPrint&&(a.ast=await CJ(a.ast,i)),n.massage&&(a.ast=EJ(a.ast,i))),a}async function KJ(e,t){return t=await cJ(t),UG(await xJ(e,t),t)}async function qJ(e,t){let{formatted:n}=await WJ(wG(e),{...t,parser:`__js_expression`});return n}async function JJ(e,t){t=await cJ(t);let{ast:n}=await _J(e,t);return t.cursorOffset>=0&&(t={...t,...wJ(n,t)}),xJ(n,t)}async function Jie(e,t){return UG(e,await cJ(t))}var Yie={};KU(Yie,{builders:()=>Xie,printer:()=>Zie,utils:()=>YJ});var Xie={join:fG,line:mG,softline:hG,hardline:_G,literalline:yG,group:uG,conditionalGroup:dG,fill:lG,lineSuffix:bG,lineSuffixBoundary:xG,cursor:cG,breakParent:sG,ifBreak:uie,trim:SG,indent:nG,indentIfBreak:die,align:rG,addAlignmentToDoc:oG,markAsRoot:aG,dedentToRoot:iG,dedent:lie,hardlineWithoutBreakParent:gG,literallineWithoutBreakParent:vG,label:pG,concat:e=>e},Zie={printDocToString:UG},YJ={willBreak:UW,traverseDoc:zW,findInDoc:VW,mapDoc:BW,removeLines:iie,stripTrailingHardline:aie,replaceEndOfLine:sie,canBreak:ZW},Qie=`3.8.3`,$ie={};KU($ie,{addDanglingComment:()=>mK,addLeadingComment:()=>pK,addTrailingComment:()=>hK,getAlignmentSize:()=>GG,getIndentSize:()=>aY,getMaxContinuousCount:()=>cY,getNextNonSpaceNonCommentCharacter:()=>uY,getNextNonSpaceNonCommentCharacterIndex:()=>SY,getPreferredQuote:()=>gY,getStringWidth:()=>jG,hasNewline:()=>rK,hasNewlineInRange:()=>vY,hasSpaces:()=>bY,isNextLineEmpty:()=>eae,isNextLineEmptyAfterIndex:()=>rY,isPreviousLineEmpty:()=>wY,makeString:()=>EY,skip:()=>YG,skipEverythingButNewLine:()=>$G,skipInlineComment:()=>ZJ,skipNewline:()=>nK,skipSpaces:()=>ZG,skipToLineEnd:()=>QG,skipTrailingComment:()=>$J,skipWhitespace:()=>XG});function XJ(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var ZJ=XJ;function QJ(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?$G(e,t):t}var $J=QJ;function eY(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ZG(e,r),r=ZJ(e,r),r=$J(e,r),r=nK(e,r);return r}var tY=eY;function nY(e,t){let n=null,r=t;for(;r!==n;)n=r,r=QG(e,r),r=ZJ(e,r),r=ZG(e,r);return r=$J(e,r),r=nK(e,r),r!==!1&&rK(e,r)}var rY=nY;function iY(e,t){let n=e.lastIndexOf(`
|
|
189
189
|
`);return n===-1?0:GG(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var aY=iY;function oY(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function sY(e,t){let n=e.matchAll(RegExp(`(?:${oY(t)})+`,`gu`));return n.reduce||(n=[...n]),n.reduce((e,[t])=>Math.max(e,t.length),0)/t.length}var cY=sY;function lY(e,t){let n=tY(e,t);return n===!1?``:e.charAt(n)}var uY=lY,dY=Object.freeze({character:`'`,codePoint:39}),fY=Object.freeze({character:`"`,codePoint:34}),pY=Object.freeze({preferred:dY,alternate:fY}),mY=Object.freeze({preferred:fY,alternate:dY});function hY(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?pY:mY,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var gY=hY;function _Y(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
|
|
190
|
-
`)return!0;return!1}var vY=_Y;function yY(e,t,n={}){return ZG(e,n.backwards?t-1:t,n)!==t}var bY=yY;function xY(e,t,n){return tY(e,n(t))}function SY(e,t){return arguments.length===2||typeof t==`number`?tY(e,t):xY(...arguments)}function CY(e,t,n){return EK(e,n(t))}function wY(e,t){return arguments.length===2||typeof t==`number`?EK(e,t):CY(...arguments)}function TY(e,t,n){return rY(e,n(t))}function EY(e,t,n){let r=t===`"`?`'`:`"`;return t+XU(0,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}function eae(e,t){return arguments.length===2||typeof t==`number`?rY(e,t):TY(...arguments)}function DY(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var tae=DY(WJ);async function OY(e,t){let{formatted:n}=await tae(e,{...t,cursorOffset:-1});return n}async function nae(e,t){return await OY(e,t)===e}var rae=DY(IK,0),kY={parse:DY(GJ),formatAST:DY(KJ),formatDoc:DY(qJ),printToDoc:DY(JJ),printDocToString:DY(Jie)};function AY(e,t){return OY(e,{plugins:[p,JA,ea,E_,Fw],filepath:t.filepath,printWidth:120})}var jY=r(a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var n=class{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}},r=class{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 i(e,t){let{line:r,column:i,index:a}=e;return new n(r,i+t,a+t)}let a=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`;var o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:a},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:a}};let s={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},c=e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type];var l={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:({type:e})=>`'${e===`ForInStatement`?`for-in`:`for-of`}' loop variable declaration may not have an initializer.`,ForInUsing:`For-in loop may not start with 'using' declaration.`,ForOfAsync:`The left-hand side of a for-of loop may not be 'async'.`,ForOfLet:`The left-hand side of a for-of loop may not start with 'let'.`,GeneratorInSingleStatementContext:`Generators can only be declared at the top level or inside a block.`,IllegalBreakContinue:({type:e})=>`Unsyntactic ${e===`BreakStatement`?`break`:`continue`}.`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list.`,IllegalReturn:`'return' outside of function.`,ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverDiscardElement:`'void' must be followed by an expression when not used in a binding position.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:`Unexpected void binding.`,UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:`A void binding may not have an initializer.`,YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,YieldNotInGeneratorFunction:`'yield' is only allowed within generator functions.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},u={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},d={ParseExpressionEmptyInput:`Unexpected parseExpression() input: The input is empty or contains only comments.`,ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};let f=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]);var p=Object.assign({PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`,PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:`Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.`,PipelineBodySequenceExpression:`Pipeline body may not be a comma-separated sequence expression.`,PipelineHeadSequenceExpression:`Pipeline head should not be a comma-separated sequence expression.`,PipelineTopicUnused:`Pipeline is in topic style but does not use topic reference.`,PrimaryTopicNotAllowed:`Topic reference was used in a lexical context without topic binding.`,PrimaryTopicRequiresSmartPipeline:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`});let m=[`message`];function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let a=r===`MissingPlugin`||r===`MissingOneOfPlugins`,o={AccessorCannotDeclareThisParameter:`AccesorCannotDeclareThisParameter`,AccessorCannotHaveTypeParameters:`AccesorCannotHaveTypeParameters`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference`,SetAccessorCannotHaveOptionalParameter:`SetAccesorCannotHaveOptionalParameter`,SetAccessorCannotHaveRestParameter:`SetAccesorCannotHaveRestParameter`,SetAccessorCannotHaveReturnType:`SetAccesorCannotHaveReturnType`};return o[r]&&(r=o[r]),function o(s,c){let l=SyntaxError();return l.code=t,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=i,a&&(l.missingPlugin=c.missingPlugin),h(l,`clone`,function(e={}){let{line:t,column:r,index:i}=e.loc??s;return o(new n(t,r,i),Object.assign({},c,e.details))}),h(l,`details`,c),Object.defineProperty(l,`message`,{configurable:!0,get(){let t=`${e(c)} (${s.line}:${s.column})`;return this.message=t,t},set(e){Object.defineProperty(this,`message`,{value:e,writable:!0})}}),l}}function _(e,n){if(Array.isArray(e))return t=>_(t,e[0]);let r={};for(let i of Object.keys(e)){let a=e[i],o=typeof a==`string`?{message:()=>a}:typeof a==`function`?{message:a}:a,{message:s}=o,c=t(o,m);r[i]=g(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:i,toMessage:typeof s==`string`?()=>s:s},n?{syntaxPlugin:n}:{},c))}return r}let v=Object.assign({},_(o),_(l),_(u),_(d),_`pipelineOperator`(p));function y(){return{sourceType:`script`,sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function b(e){let t=y();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))e[n]!=null&&(t[n]=e[n]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType===`commonjs`){if(e.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}let{defineProperty:x}=Object,S=(e,t)=>{e&&x(e,t,{enumerable:!1,value:e[t]})};function C(e){return S(e.loc.start,`index`),S(e.loc.end,`index`),e}var w=e=>class extends e{parse(){let e=C(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(C)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){let n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,`ChainExpression`,t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,`Literal`),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=this.castNodeTo(e,`ExpressionStatement`);return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:t,end:n,loc:r,range:i,raw:a,value:o}=e,s=Object.create(e.constructor.prototype);return s.type=`Literal`,s.start=t,s.end=n,s.loc=r,s.range=i,s.raw=a,s.value=o,s}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption(`estree`,`classFeatures`)?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,`PrivateIdentifier`)}isPrivateName(e){return this.getPluginOption(`estree`,`classFeatures`)?e.type===`PrivateIdentifier`:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption(`estree`,`classFeatures`)?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),delete s.kind;let{typeParameters:c}=e;return c&&(delete e.typeParameters,s.typeParameters=c,this.resetStartLocationFromNode(s,c)),e.value=this.castNodeTo(s,`FunctionExpression`),a===`ClassPrivateMethod`&&(e.computed=!1),a===`ObjectMethod`?(e.kind===`method`&&(e.kind=`init`),e.shorthand=!1,this.finishNode(e,`Property`)):this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&this.castNodeTo(t,`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)?(this.castNodeTo(t,`PropertyDefinition`),t.computed=!1,t):t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.abstract&&this.hasPlugin(`typescript`)?(delete t.abstract,this.castNodeTo(t,`TSAbstractAccessorProperty`)):this.castNodeTo(t,`AccessorProperty`)),t}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,this.castNodeTo(i,`Property`)),i}finishObjectProperty(e){return e.kind=`init`,this.finishNode(e,`Property`)}isValidLVal(e,t,n,r){return e===`Property`?`value`:super.isValidLVal(e,t,n,r)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(v.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(v.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`?(this.castNodeTo(n,`ImportExpression`),n.source=n.arguments[0],n.options=n.arguments[1]??null,n.attributes=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type===`OptionalCallExpression`?this.castNodeTo(n,`CallExpression`):n.optional=!1,n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(this.castNodeTo(r,`ExportAllDeclaration`),r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{let{declaration:e}=r;e?.type===`ClassDeclaration`&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}break}return r}stopParseSubscript(e,t){let n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,r,i){let a=super.parseMember(e,t,n,r,i);return a.type===`OptionalMemberExpression`?this.castNodeTo(a,`MemberExpression`):a.optional=!1,a}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}castNodeTo(e,t){let n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return e.type===`Literal`?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return C(super.finishNodeAt(e,t,n))}finishNode(e,t){let n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),C(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),C(e)}},T=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}};let E={brace:new T(`{`),j_oTag:new T(`<tag`),j_cTag:new T(`</tag`),j_expr:new T(`<tag>...</tag>`,!0)};E.template=new T("`",!0);var D=class{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.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=t.binop==null?null:t.binop,this.updateContext=null}};let O=new Map;function k(e,t={}){t.keyword=e;let n=F(e,t);return O.set(e,n),n}function A(e,t){return F(e,{beforeExpr:!0,binop:t})}let ee=-1,j=[],te=[],M=[],N=[],ne=[],P=[];function F(e,t={}){return++ee,te.push(e),M.push(t.binop??-1),N.push(t.beforeExpr??!1),ne.push(t.startsExpr??!1),P.push(t.prefix??!1),j.push(new D(e,t)),ee}function I(e,t={}){return++ee,O.set(e,ee),te.push(e),M.push(t.binop??-1),N.push(t.beforeExpr??!1),ne.push(t.startsExpr??!1),P.push(t.prefix??!1),j.push(new D(`name`,t)),ee}let L={bracketL:F(`[`,{beforeExpr:!0,startsExpr:!0}),bracketHashL:F(`#[`,{beforeExpr:!0,startsExpr:!0}),bracketBarL:F(`[|`,{beforeExpr:!0,startsExpr:!0}),bracketR:F(`]`),bracketBarR:F(`|]`),braceL:F(`{`,{beforeExpr:!0,startsExpr:!0}),braceBarL:F(`{|`,{beforeExpr:!0,startsExpr:!0}),braceHashL:F(`#{`,{beforeExpr:!0,startsExpr:!0}),braceR:F(`}`),braceBarR:F(`|}`),parenL:F(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:F(`)`),comma:F(`,`,{beforeExpr:!0}),semi:F(`;`,{beforeExpr:!0}),colon:F(`:`,{beforeExpr:!0}),doubleColon:F(`::`,{beforeExpr:!0}),dot:F(`.`),question:F(`?`,{beforeExpr:!0}),questionDot:F(`?.`),arrow:F(`=>`,{beforeExpr:!0}),template:F(`template`),ellipsis:F(`...`,{beforeExpr:!0}),backQuote:F("`",{startsExpr:!0}),dollarBraceL:F("${",{beforeExpr:!0,startsExpr:!0}),templateTail:F("...`",{startsExpr:!0}),templateNonTail:F("...${",{beforeExpr:!0,startsExpr:!0}),at:F(`@`),hash:F(`#`,{startsExpr:!0}),interpreterDirective:F(`#!...`),eq:F(`=`,{beforeExpr:!0,isAssign:!0}),assign:F(`_=`,{beforeExpr:!0,isAssign:!0}),slashAssign:F(`_=`,{beforeExpr:!0,isAssign:!0}),xorAssign:F(`_=`,{beforeExpr:!0,isAssign:!0}),moduloAssign:F(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:F(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),bang:F(`!`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:F(`~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:F(`^^`,{startsExpr:!0}),doubleAt:F(`@@`,{startsExpr:!0}),pipeline:A(`|>`,0),nullishCoalescing:A(`??`,1),logicalOR:A(`||`,1),logicalAND:A(`&&`,2),bitwiseOR:A(`|`,3),bitwiseXOR:A(`^`,4),bitwiseAND:A(`&`,5),equality:A(`==/!=/===/!==`,6),lt:A(`</>/<=/>=`,7),gt:A(`</>/<=/>=`,7),relational:A(`</>/<=/>=`,7),bitShift:A(`<</>>/>>>`,8),bitShiftL:A(`<</>>/>>>`,8),bitShiftR:A(`<</>>/>>>`,8),plusMin:F(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F(`%`,{binop:10,startsExpr:!0}),star:F(`*`,{binop:10}),slash:A(`/`,10),exponent:F(`**`,{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:k(`in`,{beforeExpr:!0,binop:7}),_instanceof:k(`instanceof`,{beforeExpr:!0,binop:7}),_break:k(`break`),_case:k(`case`,{beforeExpr:!0}),_catch:k(`catch`),_continue:k(`continue`),_debugger:k(`debugger`),_default:k(`default`,{beforeExpr:!0}),_else:k(`else`,{beforeExpr:!0}),_finally:k(`finally`),_function:k(`function`,{startsExpr:!0}),_if:k(`if`),_return:k(`return`,{beforeExpr:!0}),_switch:k(`switch`),_throw:k(`throw`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:k(`try`),_var:k(`var`),_const:k(`const`),_with:k(`with`),_new:k(`new`,{beforeExpr:!0,startsExpr:!0}),_this:k(`this`,{startsExpr:!0}),_super:k(`super`,{startsExpr:!0}),_class:k(`class`,{startsExpr:!0}),_extends:k(`extends`,{beforeExpr:!0}),_export:k(`export`),_import:k(`import`,{startsExpr:!0}),_null:k(`null`,{startsExpr:!0}),_true:k(`true`,{startsExpr:!0}),_false:k(`false`,{startsExpr:!0}),_typeof:k(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:k(`do`,{isLoop:!0,beforeExpr:!0}),_for:k(`for`,{isLoop:!0}),_while:k(`while`,{isLoop:!0}),_as:I(`as`,{startsExpr:!0}),_assert:I(`assert`,{startsExpr:!0}),_async:I(`async`,{startsExpr:!0}),_await:I(`await`,{startsExpr:!0}),_defer:I(`defer`,{startsExpr:!0}),_from:I(`from`,{startsExpr:!0}),_get:I(`get`,{startsExpr:!0}),_let:I(`let`,{startsExpr:!0}),_meta:I(`meta`,{startsExpr:!0}),_of:I(`of`,{startsExpr:!0}),_sent:I(`sent`,{startsExpr:!0}),_set:I(`set`,{startsExpr:!0}),_source:I(`source`,{startsExpr:!0}),_static:I(`static`,{startsExpr:!0}),_using:I(`using`,{startsExpr:!0}),_yield:I(`yield`,{startsExpr:!0}),_asserts:I(`asserts`,{startsExpr:!0}),_checks:I(`checks`,{startsExpr:!0}),_exports:I(`exports`,{startsExpr:!0}),_global:I(`global`,{startsExpr:!0}),_implements:I(`implements`,{startsExpr:!0}),_intrinsic:I(`intrinsic`,{startsExpr:!0}),_infer:I(`infer`,{startsExpr:!0}),_is:I(`is`,{startsExpr:!0}),_mixins:I(`mixins`,{startsExpr:!0}),_proto:I(`proto`,{startsExpr:!0}),_require:I(`require`,{startsExpr:!0}),_satisfies:I(`satisfies`,{startsExpr:!0}),_keyof:I(`keyof`,{startsExpr:!0}),_readonly:I(`readonly`,{startsExpr:!0}),_unique:I(`unique`,{startsExpr:!0}),_abstract:I(`abstract`,{startsExpr:!0}),_declare:I(`declare`,{startsExpr:!0}),_enum:I(`enum`,{startsExpr:!0}),_module:I(`module`,{startsExpr:!0}),_namespace:I(`namespace`,{startsExpr:!0}),_interface:I(`interface`,{startsExpr:!0}),_type:I(`type`,{startsExpr:!0}),_opaque:I(`opaque`,{startsExpr:!0}),name:F(`name`,{startsExpr:!0}),placeholder:F(`%%`,{startsExpr:!0}),string:F(`string`,{startsExpr:!0}),num:F(`num`,{startsExpr:!0}),bigint:F(`bigint`,{startsExpr:!0}),decimal:F(`decimal`,{startsExpr:!0}),regexp:F(`regexp`,{startsExpr:!0}),privateName:F(`#name`,{startsExpr:!0}),eof:F(`eof`),jsxName:F(`jsxName`),jsxText:F(`jsxText`,{beforeExpr:!0}),jsxTagStart:F(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:F(`jsxTagEnd`)};function R(e){return e>=93&&e<=133}function z(e){return e<=92}function B(e){return e>=58&&e<=133}function re(e){return e>=58&&e<=137}function ie(e){return N[e]}function V(e){return ne[e]}function ae(e){return e>=29&&e<=33}function oe(e){return e>=129&&e<=131}function se(e){return e>=90&&e<=92}function ce(e){return e>=58&&e<=92}function le(e){return e>=39&&e<=59}function ue(e){return e===34}function de(e){return P[e]}function fe(e){return e>=121&&e<=123}function pe(e){return e>=124&&e<=130}function me(e){return te[e]}function he(e){return M[e]}function ge(e){return e===57}function _e(e){return e>=24&&e<=25}function ve(e){return j[e]}j[8].updateContext=e=>{e.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=e=>{e.push(E.brace)},j[22].updateContext=e=>{e[e.length-1]===E.template?e.pop():e.push(E.template)},j[143].updateContext=e=>{e.push(E.j_expr,E.j_oTag)};let ye=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,be=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,xe=RegExp(`[`+ye+`]`),H=RegExp(`[`+ye+be+`]`);ye=be=null;let Se=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ce=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function we(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function Te(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&xe.test(String.fromCharCode(e)):we(e,Se)}function Ee(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&H.test(String.fromCharCode(e)):we(e,Se)||we(e,Ce)}let De={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},Oe=new Set(De.keyword),ke=new Set(De.strict),Ae=new Set(De.strictBind);function je(e,t){return t&&e===`await`||e===`enum`}function Me(e,t){return je(e,t)||ke.has(e)}function Ne(e){return Ae.has(e)}function Pe(e,t){return Me(e,t)||Ne(e)}function Fe(e){return Oe.has(e)}function Ie(e,t,n){return e===64&&t===64&&Te(n)}let Le=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function Re(e){return Le.has(e)}var ze=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},Be=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ze(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||=e,i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&1667));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(v.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t)||0;return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},Ve=class extends ze{constructor(...e){super(...e),this.declareFunctions=new Set}},He=class extends Be{createScope(e){return new Ve(e)}declareName(e,t,n){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}};let Ue=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),We=_`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{reasonCode:`OptionalBindingPattern`}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function Ge(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}function Ke(e){return e.importKind===`type`||e.importKind===`typeof`}let qe={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function Je(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}let Ye=/\*?\s*@((?:no)?flow)\b/;var Xe=e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return He}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}finishToken(e,t){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=Ye.exec(e.value);if(t)if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(We.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(We.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(We.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(e))):(this.expectContextual(125,We.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{Ge(e)?(r===`CommonJS`&&this.raise(We.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(We.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(We.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(We.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:qe[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`?(e.default=!1,delete e.exportKind,this.castNodeTo(e,`DeclareExportDeclaration`)):this.castNodeTo(e,`DeclareExportAllDeclaration`);throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return this.castNodeTo(t,`DeclareTypeAlias`),t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,`DeclareOpaqueType`),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(We.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){Ue.has(e)&&this.raise(n?We.AssignReservedType:We.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(We.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowInTopLevelContext(e){if(this.curContext()!==E.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&re(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(We.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(We.InexactInsideExact,this.state.lastTokStartLoc):this.raise(We.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(We.InexactVariance,r),null):(a||this.raise(We.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(We.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(We.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise(e.kind===`get`?We.GetterMayNotHaveThisParam:We.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?v.BadGetterArity:v.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(v.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??=this.state.startLoc;let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(We.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(We.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(R(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 134:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(We.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 136:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(ce(this.state.type)){let e=me(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(R(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n||=i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(B(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||R(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(R(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||oe(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||oe(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(We.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):Je(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(We.DeclareClassElement,r):t.value&&this.raise(We.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(v.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):Ie(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;let i=e[r];i&&i.type===`TypeCastExpression`&&!((n=i.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(We.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n){let r=super.parseArrayLike(e,t,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(r.elements),r}isValidLVal(e,t,n,r){return e===`TypeCastExpression`||super.isValidLVal(e,t,n,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(We.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(We.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(We.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(We.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(We.PatternIsOptional,e),this.isThisParam(e)&&this.raise(We.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(We.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(We.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(We.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(We.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=Ke(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!B(this.state.type)?(e.imported=t,e.importKind=o,e.local=this.cloneIdentifier(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&B(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(v.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=this.cloneIdentifier(e.imported))}let c=Ke(e);return n&&c&&this.raise(We.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r=null,i;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(r=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,t),r),!i.error)return i.node;let{context:n}=this.state,a=n[n.length-1];(a===E.j_oTag||a===E.j_expr)&&n.pop()}if((n=i)!=null&&n.error||this.match(47)){var a,o;r||=this.state.clone();let n,s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(n,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});(i=a.extra)!=null&&i.parenthesized&&r();let o=this.maybeUnwrapTypeCastExpression(a);return o.type!==`ArrowFunctionExpression`&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},r),c=null;if(s.node&&this.maybeUnwrapTypeCastExpression(s.node).type===`ArrowFunctionExpression`){if(!s.error&&!s.aborted)return s.node.async&&this.raise(We.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if((a=i)!=null&&a.node)return this.state=i.failState,i.node;if(c)return this.state=s.failState,c;throw(o=i)!=null&&o.thrown?i.error:s.thrown?s.error:this.raise(We.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});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(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(We.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(We.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(We.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(We.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?We.EnumInvalidMemberInitializerSymbolType:We.EnumInvalidMemberInitializerPrimaryType:We.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(We.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(We.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(We.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(We.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}else{for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!R(this.state.type))throw this.raise(We.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(We.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`));e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}else if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}else return this.raise(We.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}};let Ze={__proto__:null,quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,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:`♦`},U=RegExp(`\\r\\n|[\\r\\n\\u2028\\u2029]`,`g`);function Qe(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function $e(e,t,n){for(let r=t;r<n;r++)if(Qe(e.charCodeAt(r)))return!0;return!1}let et=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function nt(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}}let rt=_`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function at(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}function ot(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return ot(e.object)+`.`+ot(e.property);throw Error(`Node had unexpected type: `+e.type)}var st=e=>class extends e{jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(rt.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Qe(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
|
|
190
|
+
`)return!0;return!1}var vY=_Y;function yY(e,t,n={}){return ZG(e,n.backwards?t-1:t,n)!==t}var bY=yY;function xY(e,t,n){return tY(e,n(t))}function SY(e,t){return arguments.length===2||typeof t==`number`?tY(e,t):xY(...arguments)}function CY(e,t,n){return EK(e,n(t))}function wY(e,t){return arguments.length===2||typeof t==`number`?EK(e,t):CY(...arguments)}function TY(e,t,n){return rY(e,n(t))}function EY(e,t,n){let r=t===`"`?`'`:`"`;return t+XU(0,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}function eae(e,t){return arguments.length===2||typeof t==`number`?rY(e,t):TY(...arguments)}function DY(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var tae=DY(WJ);async function OY(e,t){let{formatted:n}=await tae(e,{...t,cursorOffset:-1});return n}async function nae(e,t){return await OY(e,t)===e}var rae=DY(IK,0),kY={parse:DY(GJ),formatAST:DY(KJ),formatDoc:DY(qJ),printToDoc:DY(JJ),printDocToString:DY(Jie)};function AY(e,t){return OY(e,{plugins:[p,JA,ea,E_,Fw],filepath:t.filepath,printWidth:120})}var jY=r(a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var n=class{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}},r=class{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 i(e,t){let{line:r,column:i,index:a}=e;return new n(r,i+t,a+t)}let a=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`;var o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:a},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:a}};let s={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},c=e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type];var l={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:({type:e})=>`'${e===`ForInStatement`?`for-in`:`for-of`}' loop variable declaration may not have an initializer.`,ForInUsing:`For-in loop may not start with 'using' declaration.`,ForOfAsync:`The left-hand side of a for-of loop may not be 'async'.`,ForOfLet:`The left-hand side of a for-of loop may not start with 'let'.`,GeneratorInSingleStatementContext:`Generators can only be declared at the top level or inside a block.`,IllegalBreakContinue:({type:e})=>`Unsyntactic ${e===`BreakStatement`?`break`:`continue`}.`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list.`,IllegalReturn:`'return' outside of function.`,ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverDiscardElement:`'void' must be followed by an expression when not used in a binding position.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:`Unexpected void binding.`,UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:`A void binding may not have an initializer.`,YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,YieldNotInGeneratorFunction:`'yield' is only allowed within generator functions.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},u={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},d={ParseExpressionEmptyInput:`Unexpected parseExpression() input: The input is empty or contains only comments.`,ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};let f=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]);var p=Object.assign({PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`,PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:`Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.`,PipelineBodySequenceExpression:`Pipeline body may not be a comma-separated sequence expression.`,PipelineHeadSequenceExpression:`Pipeline head should not be a comma-separated sequence expression.`,PipelineTopicUnused:`Pipeline is in topic style but does not use topic reference.`,PrimaryTopicNotAllowed:`Topic reference was used in a lexical context without topic binding.`,PrimaryTopicRequiresSmartPipeline:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`});let m=[`message`];function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let a=r===`MissingPlugin`||r===`MissingOneOfPlugins`,o={AccessorCannotDeclareThisParameter:`AccesorCannotDeclareThisParameter`,AccessorCannotHaveTypeParameters:`AccesorCannotHaveTypeParameters`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference`,SetAccessorCannotHaveOptionalParameter:`SetAccesorCannotHaveOptionalParameter`,SetAccessorCannotHaveRestParameter:`SetAccesorCannotHaveRestParameter`,SetAccessorCannotHaveReturnType:`SetAccesorCannotHaveReturnType`};return o[r]&&(r=o[r]),function o(s,c){let l=SyntaxError();return l.code=t,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=i,a&&(l.missingPlugin=c.missingPlugin),h(l,`clone`,function(e={}){let{line:t,column:r,index:i}=e.loc??s;return o(new n(t,r,i),Object.assign({},c,e.details))}),h(l,`details`,c),Object.defineProperty(l,`message`,{configurable:!0,get(){let t=`${e(c)} (${s.line}:${s.column})`;return this.message=t,t},set(e){Object.defineProperty(this,`message`,{value:e,writable:!0})}}),l}}function _(e,n){if(Array.isArray(e))return t=>_(t,e[0]);let r={};for(let i of Object.keys(e)){let a=e[i],o=typeof a==`string`?{message:()=>a}:typeof a==`function`?{message:a}:a,{message:s}=o,c=t(o,m);r[i]=g(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:i,toMessage:typeof s==`string`?()=>s:s},n?{syntaxPlugin:n}:{},c))}return r}let v=Object.assign({},_(o),_(l),_(u),_(d),_`pipelineOperator`(p));function y(){return{sourceType:`script`,sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function b(e){let t=y();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))e[n]!=null&&(t[n]=e[n]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType===`commonjs`){if(e.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}let{defineProperty:x}=Object,S=(e,t)=>{e&&x(e,t,{enumerable:!1,value:e[t]})};function C(e){return S(e.loc.start,`index`),S(e.loc.end,`index`),e}var w=e=>class extends e{parse(){let e=C(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(C)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){let n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,`ChainExpression`,t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,`Literal`),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=this.castNodeTo(e,`ExpressionStatement`);return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:t,end:n,loc:r,range:i,raw:a,value:o}=e,s=Object.create(e.constructor.prototype);return s.type=`Literal`,s.start=t,s.end=n,s.loc=r,s.range=i,s.raw=a,s.value=o,s}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption(`estree`,`classFeatures`)?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,`PrivateIdentifier`)}isPrivateName(e){return this.getPluginOption(`estree`,`classFeatures`)?e.type===`PrivateIdentifier`:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption(`estree`,`classFeatures`)?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),delete s.kind;let{typeParameters:c}=e;return c&&(delete e.typeParameters,s.typeParameters=c,this.resetStartLocationFromNode(s,c)),e.value=this.castNodeTo(s,`FunctionExpression`),a===`ClassPrivateMethod`&&(e.computed=!1),a===`ObjectMethod`?(e.kind===`method`&&(e.kind=`init`),e.shorthand=!1,this.finishNode(e,`Property`)):this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&this.castNodeTo(t,`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)?(this.castNodeTo(t,`PropertyDefinition`),t.computed=!1,t):t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.abstract&&this.hasPlugin(`typescript`)?(delete t.abstract,this.castNodeTo(t,`TSAbstractAccessorProperty`)):this.castNodeTo(t,`AccessorProperty`)),t}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,this.castNodeTo(i,`Property`)),i}finishObjectProperty(e){return e.kind=`init`,this.finishNode(e,`Property`)}isValidLVal(e,t,n,r){return e===`Property`?`value`:super.isValidLVal(e,t,n,r)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(v.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(v.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`?(this.castNodeTo(n,`ImportExpression`),n.source=n.arguments[0],n.options=n.arguments[1]??null,n.attributes=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type===`OptionalCallExpression`?this.castNodeTo(n,`CallExpression`):n.optional=!1,n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(this.castNodeTo(r,`ExportAllDeclaration`),r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{let{declaration:e}=r;e?.type===`ClassDeclaration`&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}break}return r}stopParseSubscript(e,t){let n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,r,i){let a=super.parseMember(e,t,n,r,i);return a.type===`OptionalMemberExpression`?this.castNodeTo(a,`MemberExpression`):a.optional=!1,a}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}castNodeTo(e,t){let n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return e.type===`Literal`?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return C(super.finishNodeAt(e,t,n))}finishNode(e,t){let n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),C(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),C(e)}},T=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}};let E={brace:new T(`{`),j_oTag:new T(`<tag`),j_cTag:new T(`</tag`),j_expr:new T(`<tag>...</tag>`,!0)};E.template=new T("`",!0);var D=class{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.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=t.binop==null?null:t.binop,this.updateContext=null}};let O=new Map;function k(e,t={}){t.keyword=e;let n=F(e,t);return O.set(e,n),n}function A(e,t){return F(e,{beforeExpr:!0,binop:t})}let ee=-1,j=[],te=[],M=[],N=[],ne=[],P=[];function F(e,t={}){return++ee,te.push(e),M.push(t.binop??-1),N.push(t.beforeExpr??!1),ne.push(t.startsExpr??!1),P.push(t.prefix??!1),j.push(new D(e,t)),ee}function I(e,t={}){return++ee,O.set(e,ee),te.push(e),M.push(t.binop??-1),N.push(t.beforeExpr??!1),ne.push(t.startsExpr??!1),P.push(t.prefix??!1),j.push(new D(`name`,t)),ee}let L={bracketL:F(`[`,{beforeExpr:!0,startsExpr:!0}),bracketHashL:F(`#[`,{beforeExpr:!0,startsExpr:!0}),bracketBarL:F(`[|`,{beforeExpr:!0,startsExpr:!0}),bracketR:F(`]`),bracketBarR:F(`|]`),braceL:F(`{`,{beforeExpr:!0,startsExpr:!0}),braceBarL:F(`{|`,{beforeExpr:!0,startsExpr:!0}),braceHashL:F(`#{`,{beforeExpr:!0,startsExpr:!0}),braceR:F(`}`),braceBarR:F(`|}`),parenL:F(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:F(`)`),comma:F(`,`,{beforeExpr:!0}),semi:F(`;`,{beforeExpr:!0}),colon:F(`:`,{beforeExpr:!0}),doubleColon:F(`::`,{beforeExpr:!0}),dot:F(`.`),question:F(`?`,{beforeExpr:!0}),questionDot:F(`?.`),arrow:F(`=>`,{beforeExpr:!0}),template:F(`template`),ellipsis:F(`...`,{beforeExpr:!0}),backQuote:F("`",{startsExpr:!0}),dollarBraceL:F("${",{beforeExpr:!0,startsExpr:!0}),templateTail:F("...`",{startsExpr:!0}),templateNonTail:F("...${",{beforeExpr:!0,startsExpr:!0}),at:F(`@`),hash:F(`#`,{startsExpr:!0}),interpreterDirective:F(`#!...`),eq:F(`=`,{beforeExpr:!0,isAssign:!0}),assign:F(`_=`,{beforeExpr:!0,isAssign:!0}),slashAssign:F(`_=`,{beforeExpr:!0,isAssign:!0}),xorAssign:F(`_=`,{beforeExpr:!0,isAssign:!0}),moduloAssign:F(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:F(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),bang:F(`!`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:F(`~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:F(`^^`,{startsExpr:!0}),doubleAt:F(`@@`,{startsExpr:!0}),pipeline:A(`|>`,0),nullishCoalescing:A(`??`,1),logicalOR:A(`||`,1),logicalAND:A(`&&`,2),bitwiseOR:A(`|`,3),bitwiseXOR:A(`^`,4),bitwiseAND:A(`&`,5),equality:A(`==/!=/===/!==`,6),lt:A(`</>/<=/>=`,7),gt:A(`</>/<=/>=`,7),relational:A(`</>/<=/>=`,7),bitShift:A(`<</>>/>>>`,8),bitShiftL:A(`<</>>/>>>`,8),bitShiftR:A(`<</>>/>>>`,8),plusMin:F(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F(`%`,{binop:10,startsExpr:!0}),star:F(`*`,{binop:10}),slash:A(`/`,10),exponent:F(`**`,{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:k(`in`,{beforeExpr:!0,binop:7}),_instanceof:k(`instanceof`,{beforeExpr:!0,binop:7}),_break:k(`break`),_case:k(`case`,{beforeExpr:!0}),_catch:k(`catch`),_continue:k(`continue`),_debugger:k(`debugger`),_default:k(`default`,{beforeExpr:!0}),_else:k(`else`,{beforeExpr:!0}),_finally:k(`finally`),_function:k(`function`,{startsExpr:!0}),_if:k(`if`),_return:k(`return`,{beforeExpr:!0}),_switch:k(`switch`),_throw:k(`throw`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:k(`try`),_var:k(`var`),_const:k(`const`),_with:k(`with`),_new:k(`new`,{beforeExpr:!0,startsExpr:!0}),_this:k(`this`,{startsExpr:!0}),_super:k(`super`,{startsExpr:!0}),_class:k(`class`,{startsExpr:!0}),_extends:k(`extends`,{beforeExpr:!0}),_export:k(`export`),_import:k(`import`,{startsExpr:!0}),_null:k(`null`,{startsExpr:!0}),_true:k(`true`,{startsExpr:!0}),_false:k(`false`,{startsExpr:!0}),_typeof:k(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:k(`do`,{isLoop:!0,beforeExpr:!0}),_for:k(`for`,{isLoop:!0}),_while:k(`while`,{isLoop:!0}),_as:I(`as`,{startsExpr:!0}),_assert:I(`assert`,{startsExpr:!0}),_async:I(`async`,{startsExpr:!0}),_await:I(`await`,{startsExpr:!0}),_defer:I(`defer`,{startsExpr:!0}),_from:I(`from`,{startsExpr:!0}),_get:I(`get`,{startsExpr:!0}),_let:I(`let`,{startsExpr:!0}),_meta:I(`meta`,{startsExpr:!0}),_of:I(`of`,{startsExpr:!0}),_sent:I(`sent`,{startsExpr:!0}),_set:I(`set`,{startsExpr:!0}),_source:I(`source`,{startsExpr:!0}),_static:I(`static`,{startsExpr:!0}),_using:I(`using`,{startsExpr:!0}),_yield:I(`yield`,{startsExpr:!0}),_asserts:I(`asserts`,{startsExpr:!0}),_checks:I(`checks`,{startsExpr:!0}),_exports:I(`exports`,{startsExpr:!0}),_global:I(`global`,{startsExpr:!0}),_implements:I(`implements`,{startsExpr:!0}),_intrinsic:I(`intrinsic`,{startsExpr:!0}),_infer:I(`infer`,{startsExpr:!0}),_is:I(`is`,{startsExpr:!0}),_mixins:I(`mixins`,{startsExpr:!0}),_proto:I(`proto`,{startsExpr:!0}),_require:I(`require`,{startsExpr:!0}),_satisfies:I(`satisfies`,{startsExpr:!0}),_keyof:I(`keyof`,{startsExpr:!0}),_readonly:I(`readonly`,{startsExpr:!0}),_unique:I(`unique`,{startsExpr:!0}),_abstract:I(`abstract`,{startsExpr:!0}),_declare:I(`declare`,{startsExpr:!0}),_enum:I(`enum`,{startsExpr:!0}),_module:I(`module`,{startsExpr:!0}),_namespace:I(`namespace`,{startsExpr:!0}),_interface:I(`interface`,{startsExpr:!0}),_type:I(`type`,{startsExpr:!0}),_opaque:I(`opaque`,{startsExpr:!0}),name:F(`name`,{startsExpr:!0}),placeholder:F(`%%`,{startsExpr:!0}),string:F(`string`,{startsExpr:!0}),num:F(`num`,{startsExpr:!0}),bigint:F(`bigint`,{startsExpr:!0}),decimal:F(`decimal`,{startsExpr:!0}),regexp:F(`regexp`,{startsExpr:!0}),privateName:F(`#name`,{startsExpr:!0}),eof:F(`eof`),jsxName:F(`jsxName`),jsxText:F(`jsxText`,{beforeExpr:!0}),jsxTagStart:F(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:F(`jsxTagEnd`)};function R(e){return e>=93&&e<=133}function z(e){return e<=92}function B(e){return e>=58&&e<=133}function re(e){return e>=58&&e<=137}function ie(e){return N[e]}function V(e){return ne[e]}function ae(e){return e>=29&&e<=33}function oe(e){return e>=129&&e<=131}function se(e){return e>=90&&e<=92}function ce(e){return e>=58&&e<=92}function le(e){return e>=39&&e<=59}function ue(e){return e===34}function de(e){return P[e]}function fe(e){return e>=121&&e<=123}function pe(e){return e>=124&&e<=130}function me(e){return te[e]}function he(e){return M[e]}function ge(e){return e===57}function _e(e){return e>=24&&e<=25}function ve(e){return j[e]}j[8].updateContext=e=>{e.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=e=>{e.push(E.brace)},j[22].updateContext=e=>{e[e.length-1]===E.template?e.pop():e.push(E.template)},j[143].updateContext=e=>{e.push(E.j_expr,E.j_oTag)};let ye=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,be=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,xe=RegExp(`[`+ye+`]`),H=RegExp(`[`+ye+be+`]`);ye=be=null;let Se=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ce=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function we(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function Te(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&xe.test(String.fromCharCode(e)):we(e,Se)}function Ee(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&H.test(String.fromCharCode(e)):we(e,Se)||we(e,Ce)}let De={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},Oe=new Set(De.keyword),ke=new Set(De.strict),Ae=new Set(De.strictBind);function je(e,t){return t&&e===`await`||e===`enum`}function Me(e,t){return je(e,t)||ke.has(e)}function Ne(e){return Ae.has(e)}function Pe(e,t){return Me(e,t)||Ne(e)}function Fe(e){return Oe.has(e)}function Ie(e,t,n){return e===64&&t===64&&Te(n)}let Le=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function Re(e){return Le.has(e)}var ze=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},Be=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ze(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||=e,i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&1667));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(v.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t)||0;return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},Ve=class extends ze{constructor(...e){super(...e),this.declareFunctions=new Set}},He=class extends Be{createScope(e){return new Ve(e)}declareName(e,t,n){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}};let Ue=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),We=_`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{reasonCode:`OptionalBindingPattern`}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function Ge(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}function Ke(e){return e.importKind===`type`||e.importKind===`typeof`}let qe={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function Je(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}let Ye=/\*?\s*@((?:no)?flow)\b/;var Xe=e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return He}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}finishToken(e,t){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=Ye.exec(e.value);if(t)if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(We.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(We.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(We.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(e))):(this.expectContextual(125,We.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{Ge(e)?(r===`CommonJS`&&this.raise(We.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(We.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(We.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(We.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:qe[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`?(e.default=!1,delete e.exportKind,this.castNodeTo(e,`DeclareExportDeclaration`)):this.castNodeTo(e,`DeclareExportAllDeclaration`);throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return this.castNodeTo(t,`DeclareTypeAlias`),t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,`DeclareOpaqueType`),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(We.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){Ue.has(e)&&this.raise(n?We.AssignReservedType:We.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifierName(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifierName(e)}flowParseRestrictedIdentifier(e,t){let n=this.startNode(),r=this.flowParseRestrictedIdentifierName(e,t);return this.createIdentifier(n,r)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let e=this.startNode();return this.next(),e.typeAnnotation=this.flowParseType(),this.finishNode(e,`TypeAnnotation`)}}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance();return n.name=this.flowParseRestrictedIdentifierName(),n.variance=r,n.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(We.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowInTopLevelContext(e){if(this.curContext()!==E.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&re(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(We.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(We.InexactInsideExact,this.state.lastTokStartLoc):this.raise(We.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(We.InexactVariance,r),null):(a||this.raise(We.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(We.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(We.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise(e.kind===`get`?We.GetterMayNotHaveThisParam:We.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?v.BadGetterArity:v.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(v.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??=this.state.startLoc;let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(We.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(We.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(R(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 134:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(We.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 136:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(ce(this.state.type)){let e=me(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(R(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n||=i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(){let e=this.startNode(),t=this.parseIdentifierName();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(e,t)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(B(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||R(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(R(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||oe(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||oe(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(We.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):Je(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(We.DeclareClassElement,r):t.value&&this.raise(We.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(v.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):Ie(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;let i=e[r];i&&i.type===`TypeCastExpression`&&!((n=i.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(We.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n){let r=super.parseArrayLike(e,t,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(r.elements),r}isValidLVal(e,t,n,r){return e===`TypeCastExpression`||super.isValidLVal(e,t,n,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(We.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(We.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(We.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(We.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(We.PatternIsOptional,e),this.isThisParam(e)&&this.raise(We.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(We.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(We.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(We.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(We.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=Ke(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!B(this.state.type)?(e.imported=t,e.importKind=o,e.local=this.cloneIdentifier(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&B(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(v.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=this.cloneIdentifier(e.imported))}let c=Ke(e);return n&&c&&this.raise(We.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r=null,i;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(r=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,t),r),!i.error)return i.node;let{context:n}=this.state,a=n[n.length-1];(a===E.j_oTag||a===E.j_expr)&&n.pop()}if((n=i)!=null&&n.error||this.match(47)){var a,o;r||=this.state.clone();let n,s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(n,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});(i=a.extra)!=null&&i.parenthesized&&r();let o=this.maybeUnwrapTypeCastExpression(a);return o.type!==`ArrowFunctionExpression`&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},r),c=null;if(s.node&&this.maybeUnwrapTypeCastExpression(s.node).type===`ArrowFunctionExpression`){if(!s.error&&!s.aborted)return s.node.async&&this.raise(We.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if((a=i)!=null&&a.node)return this.state=i.failState,i.node;if(c)return this.state=s.failState,c;throw(o=i)!=null&&o.thrown?i.error:s.thrown?s.error:this.raise(We.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});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(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(We.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(We.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(We.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(We.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?We.EnumInvalidMemberInitializerSymbolType:We.EnumInvalidMemberInitializerPrimaryType:We.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(We.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(We.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(We.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(We.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}else{for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!R(this.state.type))throw this.raise(We.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(We.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`));e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}else if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}else return this.raise(We.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}};let Ze={__proto__:null,quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,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:`♦`},U=RegExp(`\\r\\n|[\\r\\n\\u2028\\u2029]`,`g`);function Qe(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function $e(e,t,n){for(let r=t;r<n;r++)if(Qe(e.charCodeAt(r)))return!0;return!1}let et=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function nt(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}}let rt=_`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function at(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}function ot(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return ot(e.object)+`.`+ot(e.property);throw Error(`Node had unexpected type: `+e.type)}var st=e=>class extends e{jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(rt.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Qe(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
|
|
191
191
|
`:`\r
|
|
192
|
-
`):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Qe(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let t=Ze[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Ee(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:ce(this.state.type)?e.name=me(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(E.brace),this.next(),e=this.jsxParseExpressionContainer(e,E.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(rt.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(rt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(E.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(E.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(E.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){contents:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break contents}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(E.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,E.j_expr));break}default:this.unexpected()}at(r)&&!at(i)&&i!==null?this.raise(rt.MissingClosingTagFragment,i):(!at(r)&&at(i)||!at(r)&&!at(i)&&ot(i.name)!==ot(r.name))&&this.raise(rt.MissingClosingTagElement,i,{openingTagName:ot(r.name)})}if(at(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(rt.UnwrappedAdjacentJSXElements,this.state.startLoc);return at(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===E.j_expr){this.jsxReadToken();return}if(t===E.j_oTag||t===E.j_cTag){if(Te(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===E.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,E.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(E.j_oTag);else if(n===144){let n=t[t.length-1];n===E.j_oTag&&e===56||n===E.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===E.j_expr):(this.setContext(E.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=ie(n)}},W=class extends ze{constructor(...e){super(...e),this.tsNames=new Map}},ct=class extends Be{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new W(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(v.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},lt=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ut(e,t){return(e?2:0)|!!t}var dt=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function ft(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function pt(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function mt(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function ht(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?mt(e,n.comments):ft(r,n.comments)}var gt=class extends dt{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&ft(e.leadingNode,t),e.trailingNode!==null&&pt(e.trailingNode,t);else{let n=e.containingNode,r=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:ht(n,n.properties,e);break;case`CallExpression`:case`OptionalCallExpression`:ht(n,n.arguments,e);break;case`ImportExpression`:ht(n,[n.source,n.options??null],e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:ht(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:ht(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:ht(n,n.specifiers,e);break;case`TSEnumDeclaration`:ht(n,n.members,e);break;case`TSEnumBody`:ht(n,n.members,e);break;default:if(n.type===`RecordExpression`){ht(n,n.properties,e);break}if(n.type===`TupleExpression`){ht(n,n.elements,e);break}mt(n,t)}else mt(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},_t=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[E.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:i,startColumn:a}){this.strict=e===!1?!1:e===!0?!0:t===`module`,this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new n(i,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},vt=function(e){return e>=48&&e<=57};let yt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},bt={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function xt(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(St(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=Ct(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
|
|
192
|
+
`):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Qe(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let t=Ze[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Ee(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:ce(this.state.type)?e.name=me(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(E.brace),this.next(),e=this.jsxParseExpressionContainer(e,E.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(rt.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(rt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(E.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(E.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(E.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){contents:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break contents}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(E.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,E.j_expr));break}default:this.unexpected()}at(r)&&!at(i)&&i!==null?this.raise(rt.MissingClosingTagFragment,i):(!at(r)&&at(i)||!at(r)&&!at(i)&&ot(i.name)!==ot(r.name))&&this.raise(rt.MissingClosingTagElement,i,{openingTagName:ot(r.name)})}if(at(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(rt.UnwrappedAdjacentJSXElements,this.state.startLoc);return at(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===E.j_expr){this.jsxReadToken();return}if(t===E.j_oTag||t===E.j_cTag){if(Te(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===E.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,E.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(E.j_oTag);else if(n===144){let n=t[t.length-1];n===E.j_oTag&&e===56||n===E.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===E.j_expr):(this.setContext(E.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=ie(n)}},W=class extends ze{constructor(...e){super(...e),this.tsNames=new Map}},ct=class extends Be{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new W(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(v.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},lt=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ut(e,t){return(e?2:0)|!!t}var dt=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function ft(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function pt(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function mt(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function ht(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?mt(e,n.comments):ft(r,n.comments)}var gt=class extends dt{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&ft(e.leadingNode,t),e.trailingNode!==null&&pt(e.trailingNode,t);else{let n=e.containingNode,r=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:ht(n,n.properties,e);break;case`CallExpression`:case`NewExpression`:case`OptionalCallExpression`:ht(n,n.arguments,e);break;case`ImportExpression`:ht(n,[n.source,n.options??null],e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:case`TSTypeParameterDeclaration`:ht(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:ht(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:ht(n,n.specifiers,e);break;case`TSEnumDeclaration`:ht(n,n.members,e);break;case`TSEnumBody`:ht(n,n.members,e);break;case`TSInterfaceBody`:ht(n,n.body,e);break;default:if(n.type===`RecordExpression`){ht(n,n.properties,e);break}if(n.type===`TupleExpression`){ht(n,n.elements,e);break}mt(n,t)}else mt(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},_t=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[E.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:i,startColumn:a}){this.strict=e===!1?!1:e===!0?!0:t===`module`,this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new n(i,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},vt=function(e){return e>=48&&e<=57};let yt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},bt={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function xt(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(St(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=Ct(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
|
|
193
193
|
`,++n,p===13&&t.charCodeAt(n)===10&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function St(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}function Ct(e,t,n,r,i,a){let o=!i;t++;let s=e=>({pos:t,ch:e,lineStart:n,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return s(`
|
|
194
194
|
`);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=wt(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=Et(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(` `);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}function wt(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=Tt(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}function Tt(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?yt.hex:yt.decBinOct,f=i===16?bt.hex:i===10?bt.dec:i===8?bt.oct:bt.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(!s){if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}else if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:vt(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}function Et(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=wt(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111)if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}else ({code:s,pos:t}=wt(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}function Dt(e,t,r){return new n(r,e-t,e)}let Ot=new Set([103,109,115,105,121,117,100,118]);var kt=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new r(e.startLoc,e.endLoc)}},At=class extends gt{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>this.optionFlags&2048?(this.raise(v.InvalidDigit,Dt(e,t,n),{radix:r}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(v.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(v.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(v.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(v.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(v.StrictNumericEscape,Dt(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(v.UnterminatedString,Dt(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(v.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(v.UnterminatedTemplate,Dt(e,t,n))}}),this.state=new _t,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new kt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return et.lastIndex=e,et.test(this.input)?et.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return tt.lastIndex=e,tt.test(this.input)?tt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(e,n+2);if(i===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,U.lastIndex=n+2;U.test(this.input)&&U.lastIndex<=i;)++this.state.curLine,this.state.lineStart=U.lastIndex;if(this.isLookahead)return;let a={type:`CommentBlock`,value:this.input.slice(n+2,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i+e.length),loc:new r(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Qe(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:`CommentLine`,value:this.input.slice(t+e,a),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new r(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;loop:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),t?.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),t?.push(e));break}default:break loop}break;default:if(nt(n))++this.state.pos;else if(n===45&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),t?.push(e))}else break loop}else if(n===60&&!this.inModule&&this.optionFlags&8192){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),t?.push(e))}else break loop}else break loop}}if(t?.length>0){let n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(v.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin(`recordAndTuple`)){if(this.expectPlugin(`recordAndTuple`),this.getPluginOption(`recordAndTuple`,`syntaxType`)===`bar`)throw this.raise(t===123?v.RecordExpressionHashIncorrectStartSyntaxType:v.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else Te(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!Qe(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin(`recordAndTuple`)&&t===125){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin(`recordAndTuple`)&&t===93){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`^^`}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`@@`}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else ++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else ++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin(`functionBind`)&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Te(e)){this.readWord(e);return}}throw this.raise(v.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,r,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(v.UnterminatedRegExp,i(e,1));let t=this.input.charCodeAt(a);if(Qe(t))throw this.raise(v.UnterminatedRegExp,i(e,1));if(n)n=!1;else{if(t===91)r=!0;else if(t===93&&r)r=!1;else if(t===47&&!r)break;n=t===92}}let o=this.input.slice(t,a);++a;let s=``,c=()=>i(e,a+2-t);for(;a<this.length;){let e=this.codePointAtPos(a),t=String.fromCharCode(e);if(Ot.has(e))e===118?s.includes(`u`)&&this.raise(v.IncompatibleRegExpUVFlags,c()):e===117&&s.includes(`v`)&&this.raise(v.IncompatibleRegExpUVFlags,c()),s.includes(t)&&this.raise(v.DuplicateRegExpFlags,c());else if(Ee(e)||e===92)this.raise(v.MalformedRegExpFlags,c());else break;++a,s+=t}this.state.pos=a,this.finishToken(138,{pattern:o,flags:s})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=Tt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1;this.state.pos+=2;let a=this.readInt(e);a??this.raise(v.InvalidDigit,i(n,2),{radix:e});let o=this.input.charCodeAt(this.state.pos);if(o===110)++this.state.pos,r=!0;else if(o===109)throw this.raise(v.InvalidDecimal,n);if(Te(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,``);this.finishToken(136,e);return}this.finishToken(135,a)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,a=!1,o=!1,s=!1;!e&&this.readInt(10)===null&&this.raise(v.InvalidNumber,this.state.curPosition());let c=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(c){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(v.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(v.ZeroDigitNumericSeparator,i(n,t))}s=c&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!s&&(++this.state.pos,this.readInt(10),r=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!s&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(v.InvalidOrMissingExponent,n),r=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((r||c)&&this.raise(v.InvalidBigIntLiteral,n),++this.state.pos,a=!0),l===109){this.expectPlugin(`decimal`,this.state.curPosition()),(o||c)&&this.raise(v.InvalidDecimal,n),++this.state.pos;var u=!0}if(Te(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());let d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(a){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=s?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(e){let{code:t,pos:n}=Et(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=xt(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=xt(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new n(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(i)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(Ee(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?Te:Ee;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(v.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(v.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=O.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,me(n))}checkKeywordEscapes(){let{type:e}=this.state;ce(e)&&this.state.containsEsc&&this.raise(v.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:me(e)})}raise(e,t,r={}){let i=e(t instanceof n?t:t.loc.start,r);if(!(this.optionFlags&2048))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,r={}){let i=t instanceof n?t:t.loc.start,a=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(v.UnexpectedToken,e??this.state.startLoc,{expected:t?me(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(v.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(v.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,Dt(t,n,r))}}},jt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Mt=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new jt)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(v.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(v.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(v.InvalidPrivateFieldResolution,t,{identifierName:e})}},Nt=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Pt=class extends Nt{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},Ft=class{constructor(e){this.parser=void 0,this.stack=[new Nt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(v.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}};function It(){return new Nt(3)}function Lt(){return new Pt(1)}function Rt(){return new Pt(2)}function zt(){return new Nt}var Bt=class extends At{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;i??(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let n=this.input.charCodeAt(e+t.length);return!(Ee(n)||(n&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return $e(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return $e(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(v.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a,voidPatternLoc:o}=e,s=!!n||!!r||!!a||!!i||!!o;if(!t)return s;n!=null&&this.raise(v.InvalidCoverInitializedName,n),r!=null&&this.raise(v.DuplicateProto,r),i!=null&&this.raise(v.UnexpectedPrivateField,i),a!=null&&this.unexpected(a),o!=null&&this.raise(v.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return re(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new lt;let s=this.classScope;this.classScope=new Mt(this);let c=this.expressionScope;return this.expressionScope=new Ft(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType===`commonjs`;(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;this.optionFlags&4&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}},Vt=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Ht=class{constructor(e,t,n){this.type=``,this.start=t,this.end=0,this.loc=new r(n),e?.optionFlags&128&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}};let Ut=Ht.prototype;Ut.__clone=function(){let e=new Ht(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){let r=t[n];r!==`leadingComments`&&r!==`trailingComments`&&r!==`innerComments`&&(e[r]=this[r])}return e};var Wt=class extends Bt{startNode(){let e=this.state.startLoc;return new Ht(this,e.index,e)}startNodeAt(e){return new Ht(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.optionFlags&128&&(e.range[1]=n.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:n,end:r,loc:i,range:a,name:o}=e,s=Object.create(Ut);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,s.name=o,e.extra&&(s.extra=e.extra),s}cloneStringLiteral(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e,s=Object.create(Ut);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,s.extra=o,s.value=e.value,s}};let Gt=e=>e.type===`ParenthesizedExpression`?Gt(e.expression):e;var Kt=class extends Wt{toAssignable(e,t=!1){var n;let r;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(r=Gt(e),t?r.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(v.InvalidParenthesizedAssignment,e):r.type!==`CallExpression`&&r.type!==`MemberExpression`&&!this.isOptionalMemberExpression(r)&&this.raise(v.InvalidParenthesizedAssignment,e):this.raise(v.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:case`VoidPattern`:break;case`ObjectExpression`:this.castNodeTo(e,`ObjectPattern`);for(let n=0,r=e.properties.length,a=r-1;n<r;n++){var i;let r=e.properties[n],o=n===a;this.toAssignableObjectExpressionProp(r,o,t),o&&r.type===`RestElement`&&(i=e.extra)!=null&&i.trailingCommaLoc&&this.raise(v.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:this.castNodeTo(e,`ArrayPattern`),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(v.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,`AssignmentPattern`),delete e.operator,e.left.type===`VoidPattern`&&this.raise(v.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(r,t);break}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?v.PatternHasAccessor:v.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){this.castNodeTo(e,`RestElement`);let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(v.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];a&&(this.toAssignableListItem(e,i,n),a.type===`RestElement`&&(i<r?this.raise(v.RestTrailingComma,a):t&&this.raise(v.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){let r=e[t];if(r.type===`SpreadElement`){this.castNodeTo(r,`RestElement`);let e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(r,n)}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:case`VoidPattern`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)t?.type===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return t.type===`VoidPattern`&&this.raise(v.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin(`flow`)||n&2)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(n&2)for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(v.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin(`discardBinding`)&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(v.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===139?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){let n=this.parseMaybeDefault();return(this.hasPlugin(`flow`)||e&2)&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t??=this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return t.type===`VoidPattern`&&this.raise(v.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n,r){switch(e){case`AssignmentPattern`:return`left`;case`RestElement`:return`argument`;case`ObjectProperty`:return`value`;case`ParenthesizedExpression`:return`expression`;case`ArrayPattern`:return`elements`;case`ObjectPattern`:return`properties`;case`VoidPattern`:return!0;case`CallExpression`:if(!t&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,t,n=64,r=!1,i=!1,a=!1,o=!1){var s;let c=e.type;if(this.isObjectMethod(e))return;let l=this.isOptionalMemberExpression(e);if(l||c===`MemberExpression`){l&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(v.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(v.InvalidPropertyBindingPattern,e);return}if(c===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(v.ParamDupe,e):r.add(t));return}else c===`VoidPattern`&&t.type===`CatchClause`&&this.raise(v.VoidPatternCatchClauseParam,e);let u=Gt(e);o||=u.type===`CallExpression`&&(u.callee.type===`Import`||u.callee.type===`Super`);let d=this.isValidLVal(c,o,!(a||(s=e.extra)!=null&&s.parenthesized)&&t.type===`AssignmentExpression`,n);if(d===!0)return;if(d===!1){let r=n===64?v.InvalidLhs:v.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let f,p;typeof d==`string`?(f=d,p=c===`ParenthesizedExpression`):[f,p]=d;let m=c===`ArrayPattern`||c===`ObjectPattern`?{type:c}:t,h=e[f];if(Array.isArray(h))for(let e of h)e&&this.checkLVal(e,m,n,r,i,p,!0);else h&&this.checkLVal(h,m,n,r,i,p,o)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?Pe(e.name,this.inModule):Ne(e.name))&&(t===64?this.raise(v.StrictEvalArguments,e,{referenceName:e.name}):this.raise(v.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(v.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(v.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?v.RestTrailingComma:v.ElementAfterRest,this.state.startLoc),!0):!1}};let qt=/in(?:stanceof)?|as|satisfies/y;function Jt(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function Yt(e){if(!e)throw Error(`Assert fail`)}let Xt=_`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,AccessorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccessorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.`,ConstructorHasTypeParameters:`Type parameters cannot appear on a constructor declaration.`,DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:`Initializers are not allowed in ambient contexts.`,DeclareFunctionHasImplementation:`An implementation cannot be declared in ambient contexts.`,DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:`Type argument list cannot be empty.`,EmptyTypeParameters:`Type parameter list cannot be empty.`,ExpectedAmbientAfterExportDeclare:`'export declare' must be followed by an ambient declaration.`,ImportAliasHasImportType:`An import alias can not use 'import type'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:`Index signatures cannot have the 'declare' modifier.`,IndexSignatureHasOverride:`'override' modifier cannot appear on an index signature.`,IndexSignatureHasStatic:`Index signatures cannot have the 'static' modifier.`,InitializerNotAllowedInAmbientContext:`Initializers are not allowed in ambient contexts.`,InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:`Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.`,InvalidTupleMemberLabel:`Tuple members must be labeled with a simple identifier.`,MissingInterfaceName:`'interface' declarations must be followed by an identifier.`,NonAbstractClassHasAbstractMethod:`Abstract methods can only appear within an abstract class.`,NonClassMethodPropertyHasAbstractModifier:`'abstract' modifier can only appear on a class, method, or property declaration.`,OptionalTypeBeforeRequired:`A required element cannot follow an optional element.`,OverrideNotInSubClass:`This member cannot have an 'override' modifier because its containing class does not extend another class.`,PatternIsOptional:`A binding pattern parameter cannot be optional in an implementation signature.`,PrivateElementHasAbstract:`Private elements cannot have the 'abstract' modifier.`,PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:`'readonly' modifier can only appear on a property declaration or index signature.`,ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccessorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccessorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function Zt(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}}function Qt(e){return e===`private`||e===`public`||e===`protected`}function $t(e){return e===`in`||e===`out`}var en=e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:Xt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:Xt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:Xt.InvalidModifierOnTypeParameter})}getScopeHandler(){return ct}tsIsIdentifier(){return R(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!R(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let r=this.state.value;if(e.includes(r)){if(n&&this.match(106)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=Xt.InvalidModifierOnTypeMember},i){let a=(e,t,n,r)=>{t===n&&i[r]&&this.raise(Xt.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(Xt.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n,i.static);if(!c)break;Qt(c)?i.accessibility?this.raise(Xt.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):$t(c)?(i[c]&&this.raise(Xt.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise(Xt.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t!=null&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return Jt(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(Xt.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,`ObjectExpression`)}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){let e=this.state.type;R(e)||e===134?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,`ObjectExpression`)}tsParseEntityName(e){let t;if(e&1&&this.match(78))if(e&2)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,`ThisExpression`)}else t=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(e&1)),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise(Xt.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise(Xt.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),R(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(Xt.ReadonlyForMethodSignature,e);let n=e;n.kind&&this.match(47)&&this.raise(Xt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let r=`parameters`,i=`typeAnnotation`;if(n.kind===`get`)n[r].length>0&&(this.raise(v.BadGetterArity,this.state.curPosition()),this.isThisParam(n[r][0])&&this.raise(Xt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind===`set`){if(n[r].length!==1)this.raise(v.BadSetterArity,this.state.curPosition());else{let e=n[r][0];this.isThisParam(e)&&this.raise(Xt.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(Xt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(Xt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(Xt.SetAccessorCannotHaveReturnType,n[i])}else n.kind=`method`;return this.finishNode(n,`TSMethodSignature`)}else{let n=e;t&&(n.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(n.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(n,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,`TSTypeParameter`),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise(Xt.OptionalTypeBeforeRequired,e),t||=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state,r,i,a,o,s=B(this.state.type)?this.lookaheadCharCode():null;if(s===58)r=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(s===63){a=!0;let e=this.state.value,t=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(r=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),o=this.tsParseType()):(r=!1,o=t,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),r=this.eat(14);if(r){let e;i?(e=this.startNodeAt(n),e.optional=a,e.label=i,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Xt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=a,this.raise(Xt.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,`TSNamedTupleMember`)}else if(a){let e=this.startNodeAt(n);e.typeAnnotation=o,o=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,`TSRestType`)}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,`TSLiteralType`)}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==135&&t.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(R(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:Zt(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,`TSArrayType`)}else{let n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,`TSIndexedAccessType`)}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise(Xt.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return fe(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSIntersectionType`,this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSUnionType`,this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(R(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!R(this.state.type)&&!this.match(78)?!1:(e&&this.raise(v.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){Yt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`TSConditionalType`)}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual(`new`)}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType(`TSFunctionType`):this.match(77)?this.tsParseFunctionOrConstructorType(`TSConstructorType`):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType(`TSConstructorType`,!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(Xt.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSExpressionWithTypeArguments`)});return n.length||this.raise(Xt.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),R(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Xt.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInTopLevelContext(e){if(this.curContext()!==E.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumDeclaration`)}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumBody`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind=`global`,e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind=`module`,e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise(Xt.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Xt.InvalidModifierOnUsingDeclaration,this.state.startLoc,`declare`),e.declare=!0,this.parseVarStatement(e,`using`,!0);break;case 96:if(this.isAwaitUsing())return this.raise(Xt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,`declare`),e.declare=!0,this.next(),this.parseVarStatement(e,`await using`,!0);break;case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(R(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,r){switch(t){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||R(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(R(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&R(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&R(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise(Xt.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return pe(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,t){let n=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise(Xt.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(s);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise(Xt.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise(Xt.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise(Xt.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type===`TSTypeCastExpression`&&this.raise(Xt.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n){let r=super.parseArrayLike(e,t,n);return r.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(_e(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&s!==93&&s!==120&&V(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Xt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(o.expression=super.stopParseSubscript(e,r))),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:n}=e;n.type===`TSInstantiationExpression`&&!((t=n.extra)!=null&&t.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(he(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(v.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(Xt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(134))return e.importKind=`value`,super.parseImport(e);let t;if(R(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise(Xt.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){let t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`,this.tsParseImportEqualsDeclaration(t,n,!0)}else if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}else if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}else return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual(`class`)}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;if(!e.declare&&(t===`using`||t===`await using`))return this.raiseOverwrite(Xt.UsingDeclarationInAmbientContext,e,t),i;for(let{id:e,init:n}of i.declarations)n&&(t===`var`||t===`let`||e.typeAnnotation?this.raise(Xt.InitializerNotAllowedInAmbientContext,n):nn(n,this.hasPlugin(`estree`))||this.raise(Xt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,n=this.startNode();this.next();let r=e===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return r?(e===125&&(r.declare=!0),r):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),e===125?`declare`:`abstract`),this.semicolon(!1),this.finishNode(n,`ExpressionStatement`))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(this.lookaheadCharCode()===123){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}break}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>Qt(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:Xt.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Xt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(Xt.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Xt.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Xt.IndexSignatureHasDeclare,t),t.override&&this.raise(Xt.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(Xt.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Xt.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Xt.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Xt.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Xt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=R(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&r.type!==`TSImportEqualsDeclaration`&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Xt.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(Xt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Xt.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Xt.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Xt.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(Xt.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(Xt.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type===`MethodDefinition`&&e.value.body==null||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if(e.superClass.type===`TSInstantiationExpression`){let t=e.superClass,n=t.expression;this.takeSurroundingComments(n,n.start,n.end);let r=t.typeParameters;this.takeSurroundingComments(r,r.start,r.end),e.superClass=n,e.superTypeParameters=r}else (this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i;let a,o,s;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(a=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!o.error)return o.node;let{context:n}=this.state,r=n[n.length-1];(r===E.j_oTag||r===E.j_expr)&&n.pop()}if(!((n=o)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,t);(!a||a===this.state)&&(a=this.state.clone());let c,l=this.tryParse(n=>{var r;c=this.tsParseTypeParameters(this.tsParseConstModifier);let i=super.parseMaybeAssign(e,t);return(i.type!==`ArrowFunctionExpression`||(r=i.extra)!=null&&r.parenthesized)&&n(),c?.params.length!==0&&this.resetStartLocationFromNode(i,c),i.typeParameters=c,i},a);if(!l.error&&!l.aborted)return c&&this.reportReservedArrowTypeParam(c),l.node;if(!o&&(Yt(!this.hasPlugin(`jsx`)),s=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!s.error))return s.node;if((r=o)!=null&&r.node)return this.state=o.failState,o.node;if(l.node)return this.state=l.failState,c&&this.reportReservedArrowTypeParam(c),l.node;if((i=s)!=null&&i.node)return this.state=s.failState,s.node;throw o?.error||l.error||s?.error}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(Xt.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError(Xt.UnexpectedTypeCastInParameter,e):this.raise(Xt.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,r){switch(e){case`TSTypeCastExpression`:return!0;case`TSParameterProperty`:return`parameter`;case`TSNonNullExpression`:return`expression`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:return(r!==64||!n)&&[`expression`,!0];default:return super.isValidLVal(e,t,n,r)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=n,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Xt.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,n){let r=e[t];r.type===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(Xt.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if((s.abstract||s.type===`TSAbstractMethodDefinition`)&&(this.hasPlugin(`estree`)?s.value:s).body){let{key:e}=s;this.raise(Xt.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}return s}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption(`typescript`,`dts`)}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();B(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else B(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else B(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?Xt.TypeModifierIsUsedInTypeImports:Xt.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case`ExpressionStatement`:e.directive??=void 0;return;case`RestElement`:e.value=void 0;case`Identifier`:case`ArrayPattern`:case`AssignmentPattern`:case`ObjectPattern`:e.decorators??=[],e.optional??=!1,e.typeAnnotation??=void 0;return;case`TSParameterProperty`:e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.readonly??=!1,e.static??=!1;return;case`TSEmptyBodyFunctionExpression`:e.body=null;case`TSDeclareFunction`:case`FunctionDeclaration`:case`FunctionExpression`:case`ClassMethod`:case`ClassPrivateMethod`:e.declare??=!1,e.returnType??=void 0,e.typeParameters??=void 0;return;case`Property`:e.optional??=!1;return;case`TSMethodSignature`:case`TSPropertySignature`:e.optional??=!1;case`TSIndexSignature`:e.accessibility??=void 0,e.readonly??=!1,e.static??=!1;return;case`TSAbstractPropertyDefinition`:case`PropertyDefinition`:case`TSAbstractAccessorProperty`:case`AccessorProperty`:e.declare??=!1,e.definite??=!1,e.readonly??=!1,e.typeAnnotation??=void 0;case`TSAbstractMethodDefinition`:case`MethodDefinition`:e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.optional??=!1;return;case`ClassExpression`:e.id??=null;case`ClassDeclaration`:e.abstract??=!1,e.declare??=!1,e.decorators??=[],e.implements??=[],e.superTypeArguments??=void 0,e.typeParameters??=void 0;return;case`TSTypeAliasDeclaration`:case`VariableDeclaration`:e.declare??=!1;return;case`VariableDeclarator`:e.definite??=!1;return;case`TSEnumDeclaration`:e.const??=!1,e.declare??=!1;return;case`TSEnumMember`:e.computed??=!1;return;case`TSImportType`:e.qualifier??=null,e.options??=null;return;case`TSInterfaceDeclaration`:e.declare??=!1,e.extends??=[];return;case`TSMappedType`:e.optional??=!1,e.readonly??=void 0;return;case`TSModuleDeclaration`:e.declare??=!1,e.global??=e.kind===`global`;return;case`TSTypeParameter`:e.const??=!1,e.in??=!1,e.out??=!1;return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(Te(e)){if(qt.lastIndex=t,qt.test(this.input)){let e=this.codePointAtPos(qt.lastIndex);if(!Ee(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||t===34||t===39}};function tn(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:on(e.object)}function nn(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(r===`StringLiteral`||r===`BooleanLiteral`)return!0;return!!(rn(e,t)||an(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||tn(e))}function rn(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}function an(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&rn(r,t))return!0}return!1}function on(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:on(e.object)}let sn=_`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`});var cn=e=>class extends e{parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return t.type===`Placeholder`&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return e.type===`Placeholder`?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n,r){return e===`Placeholder`||super.isValidLVal(e,t,n,r)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(e,t){e.label?.type!==`Placeholder`&&super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if(t.type!==`Placeholder`||(n=t.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let r=e;return r.name=t.name,this.finishPlaceholder(r,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a)if(this.match(81)||this.match(133)||this.match(5))e.id=a;else if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);else throw this.raise(sn.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(me(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(sn.UnexpectedSpace,this.state.lastTokEndLoc)}},ln=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),R(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,`V8IntrinsicIdentifier`),this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};let un=[`minimal`,`fsharp`,`hack`,`smart`],dn=[`^^`,`@@`,`^`,`%`,`#`];function fn(e){if(e.has(`decorators`)){if(e.has(`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=e.get(`decorators`).decoratorsBeforeExport;if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=e.get(`decorators`).allowCallParenthesized;if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(e.has(`flow`)&&e.has(`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(e.has(`placeholders`)&&e.has(`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(e.has(`pipelineOperator`)){let t=e.get(`pipelineOperator`).proposal;if(!un.includes(t)){let e=un.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if(t===`hack`){if(e.has(`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(e.has(`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=e.get(`pipelineOperator`).topicToken;if(!dn.includes(t)){let e=dn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t===`#`&&e.get(`recordAndTuple`)?.syntaxType===`hash`)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}else if(t===`smart`&&e.get(`recordAndTuple`)?.syntaxType===`hash`)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}if(e.has(`moduleAttributes`)){if(e.has(`deprecatedImportAssert`)||e.has(`importAssertions`))throw Error(`Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.`);if(e.get(`moduleAttributes`).version!==`may-2020`)throw Error(`The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.`)}if(e.has(`importAssertions`)&&e.has(`deprecatedImportAssert`))throw Error(`Cannot combine importAssertions and deprecatedImportAssert plugins.`);if(e.has(`deprecatedImportAssert`)||e.has(`importAttributes`)&&e.get(`importAttributes`).deprecatedAssertSyntax&&e.set(`deprecatedImportAssert`,{}),e.has(`recordAndTuple`)){let t=e.get(`recordAndTuple`).syntaxType;if(t!=null){let e=[`hash`,`bar`];if(!e.includes(t))throw Error(`The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: `+e.map(e=>`'${e}'`).join(`, `))}}if(e.has(`asyncDoExpressions`)&&!e.has(`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(e.has(`optionalChainingAssign`)&&e.get(`optionalChainingAssign`).version!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`);if(e.has(`discardBinding`)&&e.get(`discardBinding`).syntaxType!==`void`)throw Error(`The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.`)}let pn={estree:w,jsx:st,flow:Xe,typescript:en,v8intrinsic:ln,placeholders:cn},mn=Object.keys(pn);var hn=class extends Kt{checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return n;let i=e.key;return(i.type===`Identifier`?i.name:i.value)===`__proto__`?t?(this.raise(v.RecordNoProto,i),!0):(n&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(v.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(v.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(v.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new Vt,i=!0);let{type:a}=this.state;(a===10||R(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),ae(this.state.type)){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=r&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,`AssignmentExpression`),void 0,void 0,void 0,void 0,r===`||=`||r===`&&=`||r===`??=`),t}else i&&this.checkExpressionErrors(e,!0);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?V(e):V(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=he(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(v.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(le(r)&&(this.prodParam.hasIn||!this.match(58))){let i=he(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;if(s&&(i=he(42)),this.next(),r===39&&this.hasPlugin([`pipelineOperator`,{proposal:`minimal`}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(v.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(v.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){let n=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if(this.getPluginOption(`pipelineOperator`,`proposal`)===`smart`)return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(v.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)});default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,ge(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,n=this.parseMaybeAssign();return f.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(v.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(v.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(de(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(v.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(v.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?V(e):V(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,this.finishNode(t,`UpdateExpression`)),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;ue(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,`UpdateExpression`))}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(_e(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(v.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,r);r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type===`Super`&&this.raise(v.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(Rt()),a=new Vt),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(v.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type===`Import`)if(e.arguments.length===0||e.arguments.length>2)this.raise(v.ImportCallArity,e);else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(v.ImportCallSpreadArgument,t);return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n){let r=[],i=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=a,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&mt(e,t.innerComments),t.callee.trailingComments&&mt(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(v.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(v.UnsupportedBind,e)}case 139:return this.raise(v.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,`%`);case 32:return this.parseTopicReferenceThenEqualsSign(44,`^`);case 37:case 38:return this.parseTopicReference(`hack`);case 44:case 54:case 27:{let e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{let e=this.input.codePointAt(this.nextTokenStart());throw Te(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected()}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(r===2||r===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(r===6||r===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(R(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:t}=this.state;if(t===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(R(t))return e&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(t===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return n===`hack`?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,`TopicReference`)):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,`PipelinePrimaryTopicReference`));throw this.raise(v.PipeTopicUnconfiguredToken,t,{token:me(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:me(n)}]);case`smart`:return n===27;default:throw this.raise(v.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(ut(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(v.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(v.SuperNotAllowed,e):this.scope.allowSuper||this.optionFlags&16||this.raise(v.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(v.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(v.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),`import`,this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(v.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,`meta`)}}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){return this.parseLiteral(e,`BigIntLiteral`)}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(Lt());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new Vt,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return this.scope.allowNewTarget||this.raise(v.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(v.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:a}=this.state,o=t+1,s=this.startNodeAt(i(n,1));a===null&&(e||this.raise(v.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),l=c?-1:-2,u=r+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,`
|
|
195
195
|
`),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,i(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),a=this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(v.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(v.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(v.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?v.BadGetterArity:v.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(v.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(v.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,`ObjectProperty`)}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(B(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(v.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(ut(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n){t&&this.expectPlugin(`recordAndTuple`);let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=r,this.finishNode(i,t?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=ut(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(zt()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(v.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,r){let i;if(this.match(12))t||this.raise(v.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),i=null;else if(this.match(21)){let e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),r||this.raise(v.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),i=this.finishNode(e,`ArgumentPlaceholder`)}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,`Identifier`,n)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;B(r)?t=this.state.value:this.unexpected();let i=z(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&Re(e)){if(n&&Fe(e)){this.raise(v.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Pe:Me:je)(e,this.inModule)){this.raise(v.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(v.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(v.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(v.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(v.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(v.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(v.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||_e(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(v.YieldInParameter,t);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,t.argument=r,this.finishNode(t,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(v.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(v.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(v.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parseVoidPattern(e){this.expectPlugin(`discardBinding`);let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,`VoidPattern`)}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}};let gn={kind:1},_n={kind:2},vn=/[\uD800-\uDFFF]/u,yn=/in(?:stanceof)?/y;function bn(e,t,n){for(let r=0;r<e.length;r++){let a=e[r],{type:o}=a;if(typeof o==`number`){if(o===139){let{loc:t,start:n,value:o,end:s}=a,c=n+1,l=i(t.start,1);e.splice(r,1,new kt({type:ve(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new kt({type:ve(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),r++;continue}if(_e(o)){let{loc:s,start:c,value:l,end:u}=a,d=c+1,f=i(s.start,1),p;p=t.charCodeAt(c-n)===96?new kt({type:ve(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new kt({type:ve(8),value:`}`,start:c,end:d,startLoc:s.start,endLoc:f});let m,h,g,_;o===24?(h=u-1,g=i(s.end,-1),m=l===null?null:l.slice(1,-1),_=new kt({type:ve(22),value:"`",start:h,end:u,startLoc:g,endLoc:s.end})):(h=u-2,g=i(s.end,-2),m=l===null?null:l.slice(1,-2),_=new kt({type:ve(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(r,1,p,new kt({type:ve(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),r+=2;continue}a.type=ve(o)}}return e}var xn=class extends hn{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,this.options.sourceType===`module`?`module`:`script`),e.comments=this.comments,this.optionFlags&256&&(e.tokens=bn(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(v.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let r;return r=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,i(this.state.startLoc,-1)),r}stmtToDirective(e){let t=this.castNodeTo(e,`Directive`),n=this.castNodeTo(e.expression,`DirectiveLiteral`),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,`of`)){let t=this.lookaheadCharCodeSince(e+2);if(t!==61&&t!==58&&t!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,`void`))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(Te(e)){if(yn.lastIndex=t,yn.test(this.input)){let e=this.codePointAtPos(yn.lastIndex);if(!Ee(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?v.StrictFunction:this.options.annexB?v.SloppyFunctionAnnexB:v.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,r):this.raise(v.UnexpectedLexicalDeclaration,r):this.raise(v.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(v.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(v.UnexpectedImportExport,this.state.startLoc),this.next();let e;return e=n===83?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(v.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return R(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(v.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){if(e){var r;(r=t.decorators)!=null&&r.length?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(v.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(v.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(v.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(v.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(v.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(gn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(gn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isAwaitUsing(),i=r||this.isForUsing(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(v.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new Vt,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(v.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(v.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(v.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(_n),this.scope.enter(256);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(v.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(v.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(v.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(gn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(v.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(v.LabelRedeclaration,n,{labelName:t});let i=se(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(v.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(v.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();t===`using`||t===`await using`?(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(v.UsingDeclarationHasBindingPattern,n.loc.start):n.type===`VoidPattern`&&this.raise(v.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(v.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(ut(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||R(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(It()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(v.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(v.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(v.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),this.parsePostMemberNameModifiers(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&R(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(v.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(v.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(v.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(v.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(v.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(v.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(v.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(zt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(R(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(v.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(v.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(v.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(v.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(v.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,`ExportDefaultDeclaration`)}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,this.hasPlugin(`importAssertions`)?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(v.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(R(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(t===123||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith(`from`,e))return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||R(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(v.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(v.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(v.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t===`default`?this.raise(v.DuplicateDefaultExport,e):this.raise(v.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||=this.cloneIdentifier(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=vn.exec(e.value);return t&&this.raise(v.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(v.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(v.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(v.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(v.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!==`default`:t.value!==`default`});e!==void 0&&this.raise(v.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return(B(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(e,t,r,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return R(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(v.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(v.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(v.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin(`moduleAttributes`)?(t=this.parseModuleAttributes(),this.addExtra(e,`deprecatedWithLegacySyntax`,!0)):t=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin(`deprecatedImportAssert`)&&!this.hasPlugin(`importAssertions`)&&this.raise(v.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin(`importAssertions`)||this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(B(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(v.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(v.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=this.cloneIdentifier(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}},Sn=class extends xn{constructor(e,t,n){let r=b(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=n,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let i=0;r.allowAwaitOutsideFunction&&(i|=1),r.allowReturnOutsideFunction&&(i|=2),r.allowImportExportEverywhere&&(i|=8),r.allowSuperOutsideMethod&&(i|=16),r.allowUndeclaredExports&&(i|=64),r.allowNewTargetOutsideFunction&&(i|=4),r.allowYieldOutsideFunction&&(i|=32),r.ranges&&(i|=128),r.tokens&&(i|=256),r.createImportExpressions&&(i|=512),r.createParenthesizedExpressions&&(i|=1024),r.errorRecovery&&(i|=2048),r.attachComment&&(i|=4096),r.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return Be}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function Cn(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=Tn(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,Tn(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,Tn(t,e).parse()}catch{}throw n}}else return Tn(t,e).parse()}function wn(e){let t={};for(let n of Object.keys(e))t[n]=ve(e[n]);return t}wn(L);function Tn(e,t){let n=Sn,r=new Map;if(e!=null&&e.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}fn(r),n=G(r)}return new n(e,t,r)}let En=new Map;function G(e){let t=[];for(let n of mn)e.has(n)&&t.push(n);let n=t.join(`|`),r=En.get(n);if(!r){r=Sn;for(let e of t)r=pn[e](r);En.set(n,r)}return r}e.parse=Cn}))(),1),MY=Object.create,NY=Object.defineProperty,PY=Object.getOwnPropertyDescriptor,FY=Object.getOwnPropertyNames,IY=Object.getPrototypeOf,LY=Object.prototype.hasOwnProperty,RY=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zY=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=FY(t),a=0,o=i.length,s;a<o;a++)s=i[a],!LY.call(e,s)&&s!==n&&NY(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=PY(t,s))||r.enumerable});return e},iae=(e,t,n)=>(n=e==null?{}:MY(IY(e)),zY(t||!e||!e.__esModule?NY(n,`default`,{value:e,enumerable:!0}):n,e));function BY(e){var t=e.use($Y),n=t.Type,r=t.builtInTypes,i=r.number;function a(e){return n.from(t=>i.check(t)&&t>=e,i+` >= `+e)}let o={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return`use strict`}};var s=n.or(r.string,r.number,r.boolean,r.null,r.undefined);return{geq:a,defaults:o,isPrimitive:n.from(e=>{if(e===null)return!0;var t=typeof e;return!(t===`object`||t===`function`)},s.toString())}}const VY=Object.prototype,HY=VY.toString,UY=VY.hasOwnProperty;var WY=class{assert(e,t){if(!this.check(e,t)){var n=QY(e);throw Error(n+` does not match type `+this)}return!0}arrayOf(){return new GY(this)}},GY=class extends WY{kind=`ArrayType`;constructor(e){super(),this.elemType=e}toString(){return`[`+this.elemType+`]`}check(e,t){return Array.isArray(e)&&e.every(e=>this.elemType.check(e,t))}},KY=class extends WY{kind=`IdentityType`;constructor(e){super(),this.value=e}toString(){return String(this.value)}check(e,t){let n=e===this.value;return!n&&typeof t==`function`&&t(this,e),n}},qY=class extends WY{kind=`ObjectType`;constructor(e){super(),this.fields=e}toString(){return`{ `+this.fields.join(`, `)+` }`}check(e,t){return HY.call(e)===HY.call({})&&this.fields.every(n=>n.type.check(e[n.name],t))}},JY=class extends WY{kind=`OrType`;constructor(e){super(),this.types=e}toString(){return this.types.join(` | `)}check(e,t){return this.types.some(n=>n.check(e,!!t))?!0:(typeof t==`function`&&t(this,e),!1)}},YY=class extends WY{kind=`PredicateType`;constructor(e,t){super(),this.name=e,this.predicate=t}toString(){return this.name}check(e,t){let n=this.predicate(e,t);return!n&&typeof t==`function`&&t(this,e),n}},XY=class e{baseNames=[];ownFields=Object.create(null);allSupertypes=Object.create(null);supertypeList=[];allFields=Object.create(null);fieldNames=[];finalized=!1;buildable=!1;buildParams=[];constructor(e,t){this.type=e,this.typeName=t}isSupertypeOf(t){if(t instanceof e){if(this.finalized!==!0||t.finalized!==!0)throw Error(``);return UY.call(t.allSupertypes,this.typeName)}else throw Error(t+` is not a Def`)}checkAllFields(e,t){var n=this.allFields;if(this.finalized!==!0)throw Error(``+this.typeName);function r(r){var i=n[r],a=i.type,o=i.getValue(e);return a.check(o,t)}return typeof e==`object`&&!!e&&Object.keys(n).every(r)}bases(...e){var t=this.baseNames;if(this.finalized){if(e.length!==t.length)throw Error(``);for(var n=0;n<e.length;n++)if(e[n]!==t[n])throw Error(``);return this}return e.forEach(e=>{t.indexOf(e)<0&&t.push(e)}),this}},ZY=class{hidden;constructor(e,t,n,r){this.name=e,this.type=t,this.defaultFn=n,this.hidden=!!r}toString(){return JSON.stringify(this.name)+`: `+this.type}getValue(e){var t=e[this.name];return t===void 0&&typeof this.defaultFn==`function`&&(t=this.defaultFn.call(e)),t}};function QY(e){return Array.isArray(e)?`[`+e.map(QY).join(`, `)+`]`:e&&typeof e==`object`?`{ `+Object.keys(e).map(function(t){return t+`: `+e[t]}).join(`, `)+` }`:JSON.stringify(e)}function $Y(e){let t={or(...e){return new JY(e.map(e=>t.from(e)))},from(e,i){if(e instanceof GY||e instanceof KY||e instanceof qY||e instanceof JY||e instanceof YY)return e;if(e instanceof XY)return e.type;if(s.check(e)){if(e.length!==1)throw Error(`only one element type is permitted for typed arrays`);return new GY(t.from(e[0]))}if(c.check(e))return new qY(Object.keys(e).map(n=>new ZY(n,t.from(e[n],n))));if(typeof e==`function`){var a=n.indexOf(e);if(a>=0)return r[a];if(typeof i!=`string`)throw Error(`missing name`);return new YY(i,e)}return new KY(e)},def(e){return UY.call(g,e)?g[e]:g[e]=new v(e)},hasDef(e){return UY.call(g,e)}};var n=[],r=[];function i(e,t){let i=HY.call(t),a=new YY(e,e=>HY.call(e)===i);return t&&typeof t.constructor==`function`&&(n.push(t.constructor),r.push(a)),a}let a=i(`string`,`truthy`),o=i(`function`,function(){}),s=i(`array`,[]),c=i(`object`,{}),l=i(`RegExp`,/./),u=i(`Date`,new Date),d=i(`number`,3),f=i(`boolean`,!0),p=i(`null`,null),m=i(`undefined`,void 0),h={string:a,function:o,array:s,object:c,RegExp:l,Date:u,number:d,boolean:f,null:p,undefined:m,BigInt:typeof BigInt==`function`?i(`BigInt`,BigInt(1234)):new YY(`BigInt`,()=>!1)};var g=Object.create(null);function _(e){if(e&&typeof e==`object`){var t=e.type;if(typeof t==`string`&&UY.call(g,t)){var n=g[t];if(n.finalized)return n}}return null}class v extends XY{constructor(e){super(new YY(e,(e,t)=>this.check(e,t)),e)}check(e,t){if(this.finalized!==!0)throw Error(`prematurely checking unfinalized type `+this.typeName);if(typeof e!=`object`||!e)return!1;var n=_(e);return n?t&&n===this?this.checkAllFields(e,t):this.isSupertypeOf(n)?t?n.checkAllFields(e,t)&&this.checkAllFields(e,!1):!0:!1:this.typeName===`SourceLocation`||this.typeName===`Position`?this.checkAllFields(e,t):!1}build(...e){if(this.buildParams=e,this.buildable)return this;this.field(`type`,String,()=>this.typeName),this.buildable=!0;let t=(e,t,n,r)=>{if(!UY.call(e,t)){var i=this.allFields;if(!UY.call(i,t))throw Error(``+t);var a=i[t],o=a.type,s;if(r)s=n;else if(a.defaultFn)s=a.defaultFn.call(e);else{var c=`no value or default function given for field `+JSON.stringify(t)+` of `+this.typeName+`(`+this.buildParams.map(function(e){return i[e]}).join(`, `)+`)`;throw Error(c)}if(!o.check(s))throw Error(QY(s)+` does not match field `+a+` of type `+this.typeName);e[t]=s}},n=(...e)=>{var n=e.length;if(!this.finalized)throw Error(`attempting to instantiate unfinalized type `+this.typeName);var r=Object.create(S);if(this.buildParams.forEach(function(i,a){a<n?t(r,i,e[a],!0):t(r,i,null,!1)}),Object.keys(this.allFields).forEach(function(e){t(r,e,null,!1)}),r.type!==this.typeName)throw Error(``);return r};return n.from=e=>{if(!this.finalized)throw Error(`attempting to instantiate unfinalized type `+this.typeName);var n=Object.create(S);if(Object.keys(this.allFields).forEach(function(r){UY.call(e,r)?t(n,r,e[r],!0):t(n,r,null,!1)}),n.type!==this.typeName)throw Error(``);return n},Object.defineProperty(x,w(this.typeName),{enumerable:!0,value:n}),this}field(e,n,r,i){return this.finalized?(console.error(`Ignoring attempt to redefine field `+JSON.stringify(e)+` of finalized type `+JSON.stringify(this.typeName)),this):(this.ownFields[e]=new ZY(e,t.from(n),r,i),this)}finalize(){if(!this.finalized){var e=this.allFields,t=this.allSupertypes;for(var n in this.baseNames.forEach(n=>{var r=g[n];if(r instanceof XY)r.finalize(),te(e,r.allFields),te(t,r.allSupertypes);else{var i=`unknown supertype name `+JSON.stringify(n)+` for subtype `+JSON.stringify(this.typeName);throw Error(i)}}),te(e,this.ownFields),t[this.typeName]=this,this.fieldNames.length=0,e)UY.call(e,n)&&!e[n].hidden&&this.fieldNames.push(n);Object.defineProperty(E,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,j(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf(`Expression`)>=0&&ee(this.typeName)}}}function y(e){if(!UY.call(g,e))throw Error(``);var t=g[e];if(t.finalized!==!0)throw Error(``);return t.supertypeList.slice(1)}function b(e){for(var t={},n=Object.keys(g),r=n.length,i=0;i<r;++i){var a=n[i],o=g[a];if(o.finalized!==!0)throw Error(``+a);for(var s=0;s<o.supertypeList.length;++s){var c=o.supertypeList[s];if(UY.call(e,c)){t[a]=c;break}}}return t}var x=Object.create(null),S={};function C(e,t){var n=S[e];return m.check(t)?delete S[e]:(o.assert(t),Object.defineProperty(S,e,{enumerable:!0,configurable:!0,value:t})),n}function w(e){return e.replace(/^[A-Z]+/,function(e){var t=e.length;switch(t){case 0:return``;case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}})}function T(e){return e=w(e),e.replace(/(Expression)?$/,`Statement`)}var E={};function D(e){var t=_(e);if(t)return t.fieldNames.slice(0);if(`type`in e)throw Error(`did not recognize object of type `+JSON.stringify(e.type));return Object.keys(e)}function O(e,t){var n=_(e);if(n){var r=n.allFields[t];if(r)return r.getValue(e)}return e&&e[t]}function k(e,t,n){D(e).forEach(function(n){t.call(this,n,O(e,n))},n)}function A(e,t,n){return D(e).some(function(n){return t.call(this,n,O(e,n))},n)}function ee(e){var t=T(e);if(x[t])return;var n=x[w(e)];if(!n)return;let r=function(...e){return x.expressionStatement(n.apply(x,e))};r.from=function(...e){return x.expressionStatement(n.from.apply(x,e))},x[t]=r}function j(e,t){t.length=0,t.push(e);for(var n=Object.create(null),r=0;r<t.length;++r){e=t[r];var i=g[e];if(i.finalized!==!0)throw Error(``);UY.call(n,e)&&delete t[n[e]],n[e]=r,t.push.apply(t,i.baseNames)}for(var a=0,o=a,s=t.length;o<s;++o)UY.call(t,o)&&(t[a++]=t[o]);t.length=a}function te(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function M(){Object.keys(g).forEach(function(e){g[e].finalize()})}return{Type:t,builtInTypes:h,getSupertypeNames:y,computeSupertypeLookupTable:b,builders:x,defineMethod:C,getBuilderName:w,getStatementBuilderName:T,namedTypes:E,getFieldNames:D,getFieldValue:O,eachField:k,someField:A,finalize:M}}var eX=Object.prototype.hasOwnProperty;function tX(e){var t=e.use($Y),n=t.builtInTypes.array,r=t.builtInTypes.number;let i=function e(t,n,r){if(!(this instanceof e))throw Error(`Path constructor cannot be invoked without 'new'`);if(n){if(!(n instanceof e))throw Error(``)}else n=null,r=null;this.value=t,this.parentPath=n,this.name=r,this.__childCache=null};var a=i.prototype;function o(e){return e.__childCache||=Object.create(null)}function s(e,t){var n=o(e),r=e.getValueProperty(t),i=n[t];return(!eX.call(n,t)||i.value!==r)&&(i=n[t]=new e.constructor(r,e,t)),i}a.getValueProperty=function(e){return this.value[e]},a.get=function(...e){for(var t=this,n=e.length,r=0;r<n;++r)t=s(t,e[r]);return t},a.each=function(e,t){for(var n=[],r=this.value.length,i=0,i=0;i<r;++i)eX.call(this.value,i)&&(n[i]=this.get(i));for(t||=this,i=0;i<r;++i)eX.call(n,i)&&e.call(t,n[i])},a.map=function(e,t){var n=[];return this.each(function(t){n.push(e.call(this,t))},t),n},a.filter=function(e,t){var n=[];return this.each(function(t){e.call(this,t)&&n.push(t)},t),n};function c(){}function l(e,t,i,a){if(n.assert(e.value),t===0)return c;var s=e.value.length;if(s<1)return c;var l=arguments.length;l===2?(i=0,a=s):l===3?(i=Math.max(i,0),a=s):(i=Math.max(i,0),a=Math.min(a,s)),r.assert(i),r.assert(a);for(var u=Object.create(null),d=o(e),f=i;f<a;++f)if(eX.call(e.value,f)){var p=e.get(f);if(p.name!==f)throw Error(``);var m=f+t;p.name=m,u[m]=p,delete d[f]}return delete d.length,function(){for(var t in u){var n=u[t];if(n.name!==+t)throw Error(``);d[t]=n,e.value[t]=n.value}}}a.shift=function(){var e=l(this,-1),t=this.value.shift();return e(),t},a.unshift=function(...e){var t=l(this,e.length),n=this.value.unshift.apply(this.value,e);return t(),n},a.push=function(...e){return n.assert(this.value),delete o(this).length,this.value.push.apply(this.value,e)},a.pop=function(){n.assert(this.value);var e=o(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},a.insertAt=function(e){var t=arguments.length,n=l(this,t-1,e);if(n===c&&t<=1)return this;e=Math.max(e,0);for(var r=1;r<t;++r)this.value[e+r-1]=arguments[r];return n(),this},a.insertBefore=function(...e){for(var t=this.parentPath,n=e.length,r=[this.name],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},a.insertAfter=function(...e){for(var t=this.parentPath,n=e.length,r=[this.name+1],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)};function u(e){if(!(e instanceof i))throw Error(``);var t=e.parentPath;if(!t)return e;var r=t.value,a=o(t);if(r[e.name]===e.value)a[e.name]=e;else if(n.check(r)){var s=r.indexOf(e.value);s>=0&&(a[e.name=s]=e)}else r[e.name]=e.value,a[e.name]=e;if(r[e.name]!==e.value||e.parentPath.get(e.name)!==e)throw Error(``);return e}return a.replace=function(e){var t=[],r=this.parentPath.value,i=o(this.parentPath),a=arguments.length;if(u(this),n.check(r)){for(var s=r.length,c=l(this.parentPath,a-1,this.name+1),d=[this.name,1],f=0;f<a;++f)d.push(arguments[f]);if(r.splice.apply(r,d)[0]!==this.value||r.length!==s-1+a)throw Error(``);if(c(),a===0)delete this.value,delete i[this.name],this.__childCache=null;else{if(r[this.name]!==e)throw Error(``);for(this.value!==e&&(this.value=e,this.__childCache=null),f=0;f<a;++f)t.push(this.parentPath.get(this.name+f));if(t[0]!==this)throw Error(``)}}else if(a===1)this.value!==e&&(this.__childCache=null),this.value=r[this.name]=e,t.push(this);else if(a===0)delete r[this.name],delete this.value,this.__childCache=null;else throw Error(`Could not replace path`);return t},i}var nX=Object.prototype.hasOwnProperty;function rX(e){var t=e.use($Y),n=t.Type,r=t.namedTypes,i=r.Node,a=r.Expression,o=t.builtInTypes.array,s=t.builders;let c=function e(t,n){if(!(this instanceof e))throw Error(`Scope constructor cannot be invoked without 'new'`);u.check(t.value)||l.assert(t.value);var r;if(n){if(!(n instanceof e))throw Error(``);r=n.depth+1}else n=null,r=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!n,enumerable:!0},depth:{value:r},parent:{value:n},bindings:{value:{}},types:{value:{}}})};var l=n.or(r.Program,r.Function,r.CatchClause),u=n.or(r.Function,r.ClassDeclaration,r.ClassExpression,r.InterfaceDeclaration,r.TSInterfaceDeclaration,r.TypeAlias,r.TSTypeAliasDeclaration),d=n.or(r.TypeParameter,r.TSTypeParameter);c.isEstablishedBy=function(e){return l.check(e)||u.check(e)};var f=c.prototype;f.didScan=!1,f.declares=function(e){return this.scan(),nX.call(this.bindings,e)},f.declaresType=function(e){return this.scan(),nX.call(this.types,e)},f.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw Error(``)}else e=`t$`;e+=this.depth.toString(36)+`$`,this.scan();for(var n=0;this.declares(e+n);)++n;var r=e+n;return this.bindings[r]=t.builders.identifier(r)},f.injectTemporary=function(e,t){e||=this.declareTemporary();var n=this.path.get(`body`);return r.BlockStatement.check(n.value)&&(n=n.get(`body`)),n.unshift(s.variableDeclaration(`var`,[s.variableDeclarator(e,t||null)])),e},f.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];p(this.path,this.bindings,this.types),this.didScan=!0}},f.getBindings=function(){return this.scan(),this.bindings},f.getTypes=function(){return this.scan(),this.types};function p(e,t,n){var i=e.value;if(u.check(i)){let t=e.get(`typeParameters`,`params`);o.check(t.value)&&t.each(e=>{y(e,n)})}l.check(i)&&(r.CatchClause.check(i)?_(e.get(`param`),t):m(e,t,n))}function m(e,n,s){var c=e.value;e.parent&&r.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&_(e.parent.get(`id`),n),c&&(o.check(c)?e.each(e=>{g(e,n,s)}):r.Function.check(c)?(e.get(`params`).each(e=>{_(e,n)}),g(e.get(`body`),n,s),m(e.get(`typeParameters`),n,s)):r.TypeAlias&&r.TypeAlias.check(c)||r.InterfaceDeclaration&&r.InterfaceDeclaration.check(c)||r.TSTypeAliasDeclaration&&r.TSTypeAliasDeclaration.check(c)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(c)?v(e.get(`id`),s):r.VariableDeclarator.check(c)?(_(e.get(`id`),n),g(e.get(`init`),n,s)):c.type===`ImportSpecifier`||c.type===`ImportNamespaceSpecifier`||c.type===`ImportDefaultSpecifier`?_(e.get(c.local?`local`:c.name?`name`:`id`),n):i.check(c)&&!a.check(c)&&t.eachField(c,function(t,r){var i=e.get(t);if(!h(i,r))throw Error(``);g(i,n,s)}))}function h(e,t){return!!(e.value===t||Array.isArray(e.value)&&e.value.length===0&&Array.isArray(t)&&t.length===0)}function g(e,t,n){var i=e.value;if(!(!i||a.check(i)))if(r.FunctionDeclaration.check(i)&&i.id!==null)_(e.get(`id`),t);else if(r.ClassDeclaration&&r.ClassDeclaration.check(i)&&i.id!==null)_(e.get(`id`),t),m(e.get(`typeParameters`),t,n);else if(r.InterfaceDeclaration&&r.InterfaceDeclaration.check(i)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(i))v(e.get(`id`),n);else if(l.check(i)){if(r.CatchClause.check(i)&&r.Identifier.check(i.param)){var o=i.param.name,s=nX.call(t,o);m(e.get(`body`),t,n),s||delete t[o]}}else m(e,t,n)}function _(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)?nX.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]:r.AssignmentPattern&&r.AssignmentPattern.check(n)?_(e.get(`left`),t):r.ObjectPattern&&r.ObjectPattern.check(n)?e.get(`properties`).each(function(e){var n=e.value;r.Pattern.check(n)?_(e,t):r.Property.check(n)||r.ObjectProperty&&r.ObjectProperty.check(n)?_(e.get(`value`),t):r.SpreadProperty&&r.SpreadProperty.check(n)&&_(e.get(`argument`),t)}):r.ArrayPattern&&r.ArrayPattern.check(n)?e.get(`elements`).each(function(e){var n=e.value;r.Pattern.check(n)?_(e,t):r.SpreadElement&&r.SpreadElement.check(n)&&_(e.get(`argument`),t)}):r.PropertyPattern&&r.PropertyPattern.check(n)?_(e.get(`pattern`),t):(r.SpreadElementPattern&&r.SpreadElementPattern.check(n)||r.RestElement&&r.RestElement.check(n)||r.SpreadPropertyPattern&&r.SpreadPropertyPattern.check(n))&&_(e.get(`argument`),t)}function v(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)&&(nX.call(t,n.name)?t[n.name].push(e):t[n.name]=[e])}function y(e,t){var n=e.value;d.assert(n),nX.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]}return f.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},f.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},f.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},c}function iX(e){var t=e.use($Y),n=t.namedTypes,r=t.builders,i=t.builtInTypes.number,a=t.builtInTypes.array,o=e.use(tX),s=e.use(rX);let c=function e(t,n,r){if(!(this instanceof e))throw Error(`NodePath constructor cannot be invoked without 'new'`);o.call(this,t,n,r)};var l=c.prototype=Object.create(o.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(l,{node:{get:function(){return Object.defineProperty(this,`node`,{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,`parent`,{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,`scope`,{configurable:!0,value:this._computeScope()}),this.scope}}}),l.replace=function(){return delete this.node,delete this.parent,delete this.scope,o.prototype.replace.apply(this,arguments)},l.prune=function(){var e=this.parent;return this.replace(),m(e)},l._computeNode=function(){var e=this.value;if(n.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},l._computeParent=function(){var e=this.value,t=this.parentPath;if(!n.Node.check(e)){for(;t&&!n.Node.check(t.value);)t=t.parentPath;t&&=t.parentPath}for(;t&&!n.Node.check(t.value);)t=t.parentPath;return t||null},l._computeScope=function(){var e=this.value,t=this.parentPath,r=t&&t.scope;return n.Node.check(e)&&s.isEstablishedBy(e)&&(r=new s(this,r)),r||null},l.getValueProperty=function(e){return t.getFieldValue(this.value,e)},l.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var r=this.value;if(!n.Expression.check(r)||r.type===`Identifier`)return!1;for(;!n.Node.check(t.value);)if(t=t.parentPath,!t)return!1;var a=t.value;switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return a.type===`MemberExpression`&&this.name===`object`&&a.object===r;case`BinaryExpression`:case`LogicalExpression`:switch(a.type){case`CallExpression`:return this.name===`callee`&&a.callee===r;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return this.name===`object`&&a.object===r;case`BinaryExpression`:case`LogicalExpression`:{let e=r,t=d[a.operator],n=d[e.operator];if(t>n)return!0;if(t===n&&this.name===`right`){if(a.right!==e)throw Error(`Nodes must be equal`);return!0}}default:return!1}case`SequenceExpression`:switch(a.type){case`ForStatement`:return!1;case`ExpressionStatement`:return this.name!==`expression`;default:return!0}case`YieldExpression`:switch(a.type){case`BinaryExpression`:case`LogicalExpression`:case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`CallExpression`:case`MemberExpression`:case`NewExpression`:case`ConditionalExpression`:case`YieldExpression`:return!0;default:return!1}case`Literal`:return a.type===`MemberExpression`&&i.check(r.value)&&this.name===`object`&&a.object===r;case`AssignmentExpression`:case`ConditionalExpression`:switch(a.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:return this.name===`callee`&&a.callee===r;case`ConditionalExpression`:return this.name===`test`&&a.test===r;case`MemberExpression`:return this.name===`object`&&a.object===r;default:return!1}default:if(a.type===`NewExpression`&&this.name===`callee`&&a.callee===r)return f(r)}return!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function u(e){return n.BinaryExpression.check(e)||n.LogicalExpression.check(e)}var d={};[[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`]].forEach(function(e,t){e.forEach(function(e){d[e]=t})});function f(e){return n.CallExpression.check(e)?!0:a.check(e)?e.some(f):n.Node.check(e)?t.someField(e,function(e,t){return f(t)}):!1}l.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},l.firstInStatement=function(){return p(this)};function p(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,n.BlockStatement.check(r)&&e.parent.name===`body`&&e.name===0){if(r.body[0]!==t)throw Error(`Nodes must be equal`);return!0}if(n.ExpressionStatement.check(r)&&e.name===`expression`){if(r.expression!==t)throw Error(`Nodes must be equal`);return!0}if(n.SequenceExpression.check(r)&&e.parent.name===`expressions`&&e.name===0){if(r.expressions[0]!==t)throw Error(`Nodes must be equal`);continue}if(n.CallExpression.check(r)&&e.name===`callee`){if(r.callee!==t)throw Error(`Nodes must be equal`);continue}if(n.MemberExpression.check(r)&&e.name===`object`){if(r.object!==t)throw Error(`Nodes must be equal`);continue}if(n.ConditionalExpression.check(r)&&e.name===`test`){if(r.test!==t)throw Error(`Nodes must be equal`);continue}if(u(r)&&e.name===`left`){if(r.left!==t)throw Error(`Nodes must be equal`);continue}if(n.UnaryExpression.check(r)&&!r.prefix&&e.name===`argument`){if(r.argument!==t)throw Error(`Nodes must be equal`);continue}return!1}return!0}function m(e){if(n.VariableDeclaration.check(e.node)){var t=e.get(`declarations`).value;if(!t||t.length===0)return e.prune()}else if(n.ExpressionStatement.check(e.node)){if(!e.get(`expression`).value)return e.prune()}else n.IfStatement.check(e.node)&&h(e);return e}function h(e){var t=e.get(`test`).value,i=e.get(`alternate`).value,a=e.get(`consequent`).value;if(!a&&!i){var o=r.expressionStatement(t);e.replace(o)}else if(!a&&i){var s=r.unaryExpression(`!`,t,!0);n.UnaryExpression.check(t)&&t.operator===`!`&&(s=t.argument),e.get(`test`).replace(s),e.get(`consequent`).replace(i),e.get(`alternate`).replace()}}return c}var aX=Object.prototype.hasOwnProperty;function oX(e){var t=e.use($Y),n=e.use(iX),r=t.builtInTypes.array,i=t.builtInTypes.object,a=t.builtInTypes.function,o;let s=function e(){if(!(this instanceof e))throw Error(`PathVisitor constructor cannot be invoked without 'new'`);this._reusableContextStack=[],this._methodNameTable=c(this),this._shouldVisitComments=aX.call(this._methodNameTable,`Block`)||aX.call(this._methodNameTable,`Line`),this.Context=f(this),this._visiting=!1,this._changeReported=!1};function c(e){var n=Object.create(null);for(var r in e)/^visit[A-Z]/.test(r)&&(n[r.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(n),o=Object.create(null),s=Object.keys(i),c=s.length,l=0;l<c;++l){var u=s[l];r=`visit`+i[u],a.check(e[r])&&(o[u]=r)}return o}s.fromMethodsObject=function(e){if(e instanceof s)return e;if(!i.check(e))return new s;let t=function e(){if(!(this instanceof e))throw Error(`Visitor constructor cannot be invoked without 'new'`);s.call(this)};var n=t.prototype=Object.create(u);return n.constructor=t,l(n,e),l(t,s),a.assert(t.fromMethodsObject),a.assert(t.visit),new t};function l(e,t){for(var n in t)aX.call(t,n)&&(e[n]=t[n]);return e}s.visit=function(e,t){return s.fromMethodsObject(t).visit(e)};var u=s.prototype;u.visit=function(){if(this._visiting)throw Error(`Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.`);this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var e=[...arguments];e[0]instanceof n||(e[0]=new n({root:e[0]}).get(`root`)),this.reset.apply(this,e);var t;try{var r=this.visitWithoutReset(e[0]);t=!0}finally{if(this._visiting=!1,!t&&this._abortRequested)return e[0].value}return r},u.AbortRequest=function(){},u.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},u.reset=function(e){},u.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof n))throw Error(``);var t=e.value,r=t&&typeof t==`object`&&typeof t.type==`string`&&this._methodNameTable[t.type];if(r){var i=this.acquireContext(e);try{return i.invokeVisitorMethod(r)}finally{this.releaseContext(i)}}else return d(e,this)};function d(e,a){if(!(e instanceof n)||!(a instanceof s))throw Error(``);var o=e.value;if(r.check(o))e.each(a.visitWithoutReset,a);else if(i.check(o)){var c=t.getFieldNames(o);a._shouldVisitComments&&o.comments&&c.indexOf(`comments`)<0&&c.push(`comments`);for(var l=c.length,u=[],d=0;d<l;++d){var f=c[d];aX.call(o,f)||(o[f]=t.getFieldValue(o,f)),u.push(e.get(f))}for(var d=0;d<l;++d)a.visitWithoutReset(u[d])}return e.value}u.acquireContext=function(e){return this._reusableContextStack.length===0?new this.Context(e):this._reusableContextStack.pop().reset(e)},u.releaseContext=function(e){if(!(e instanceof this.Context))throw Error(``);this._reusableContextStack.push(e),e.currentPath=null},u.reportChanged=function(){this._changeReported=!0},u.wasChangeReported=function(){return this._changeReported};function f(e){function t(r){if(!(this instanceof t)||!(this instanceof s)||!(r instanceof n))throw Error(``);Object.defineProperty(this,`visitor`,{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=r,this.needToCallTraverse=!0,Object.seal(this)}if(!(e instanceof s))throw Error(``);var r=t.prototype=Object.create(e);return r.constructor=t,l(r,p),t}var p=Object.create(null);return p.reset=function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error(``);return this.currentPath=e,this.needToCallTraverse=!0,this},p.invokeVisitorMethod=function(e){if(!(this instanceof this.Context)||!(this.currentPath instanceof n))throw Error(``);var t=this.visitor[e].call(this,this.currentPath);if(t===!1?this.needToCallTraverse=!1:t!==o&&(this.currentPath=this.currentPath.replace(t)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw Error(`Must either call this.traverse or return false in `+e);var r=this.currentPath;return r&&r.value},p.traverse=function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,d(e,s.fromMethodsObject(t||this.visitor))},p.visit=function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,s.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},p.reportChanged=function(){this.visitor.reportChanged()},p.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},s}function sX(e){var t=e.use($Y),n=t.getFieldNames,r=t.getFieldValue,i=t.builtInTypes.array,a=t.builtInTypes.object,o=t.builtInTypes.Date,s=t.builtInTypes.RegExp,c=Object.prototype.hasOwnProperty;function l(e,t,n){return i.check(n)?n.length=0:n=null,d(e,t,n)}l.assert=function(e,t){var n=[];if(!l(e,t,n))if(n.length===0){if(e!==t)throw Error(`Nodes must be equal`)}else throw Error(`Nodes differ in the following path: `+n.map(u).join(``))};function u(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function d(e,t,n){return e===t?!0:i.check(e)?f(e,t,n):a.check(e)?p(e,t,n):o.check(e)?o.check(t)&&+e==+t:s.check(e)?s.check(t)&&e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.ignoreCase===t.ignoreCase:e==t}function f(e,t,n){i.assert(e);var r=e.length;if(!i.check(t)||t.length!==r)return n&&n.push(`length`),!1;for(var a=0;a<r;++a){if(n&&n.push(a),a in e!=a in t||!d(e[a],t[a],n))return!1;if(n){var o=n.pop();if(o!==a)throw Error(``+o)}}return!0}function p(e,t,i){if(a.assert(e),!a.check(t))return!1;if(e.type!==t.type)return i&&i.push(`type`),!1;var o=n(e),s=o.length,l=n(t),u=l.length;if(s===u){for(var f=0;f<s;++f){var p=o[f],m=r(e,p),h=r(t,p);if(i&&i.push(p),!d(m,h,i))return!1;if(i){var g=i.pop();if(g!==p)throw Error(``+g)}}return!0}if(!i)return!1;var _=Object.create(null);for(f=0;f<s;++f)_[o[f]]=!0;for(f=0;f<u;++f){if(p=l[f],!c.call(_,p))return i.push(p),!1;delete _[p]}for(p in _){i.push(p);break}return!1}return l}function cX(e){let t=lX(),n=t.use($Y);e.forEach(t.use),n.finalize();let r=t.use(oX);return{Type:n.Type,builtInTypes:n.builtInTypes,namedTypes:n.namedTypes,builders:n.builders,defineMethod:n.defineMethod,getFieldNames:n.getFieldNames,getFieldValue:n.getFieldValue,eachField:n.eachField,someField:n.someField,getSupertypeNames:n.getSupertypeNames,getBuilderName:n.getBuilderName,astNodesAreEquivalent:t.use(sX),finalize:n.finalize,Path:t.use(tX),NodePath:t.use(iX),PathVisitor:r,use:t.use,visit:r.visit}}function lX(){let e=[],t=[];function n(n){var i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n),t[i]=n(r)),t[i]}var r={use:n};return r}function uX(){return{BinaryOperators:[`==`,`!=`,`===`,`!==`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`&`,`|`,`^`,`in`,`instanceof`],AssignmentOperators:[`=`,`+=`,`-=`,`*=`,`/=`,`%=`,`<<=`,`>>=`,`>>>=`,`|=`,`^=`,`&=`],LogicalOperators:[`||`,`&&`]}}function dX(e){let t=e.use(uX);return t.BinaryOperators.indexOf(`**`)<0&&t.BinaryOperators.push(`**`),t.AssignmentOperators.indexOf(`**=`)<0&&t.AssignmentOperators.push(`**=`),t}function fX(e){let t=e.use(dX);return t.LogicalOperators.indexOf(`??`)<0&&t.LogicalOperators.push(`??`),t}function pX(e){let t=e.use(fX);return t.LogicalOperators.forEach(e=>{let n=e+`=`;t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n)}),t}function aae(e){var t=e.use($Y).Type,n=t.def,r=t.or,i=e.use(BY),a=i.defaults,o=i.geq;let{BinaryOperators:s,AssignmentOperators:c,LogicalOperators:l}=e.use(uX);n(`Printable`).field(`loc`,r(n(`SourceLocation`),null),a.null,!0),n(`Node`).bases(`Printable`).field(`type`,String).field(`comments`,r([n(`Comment`)],null),a.null,!0),n(`SourceLocation`).field(`start`,n(`Position`)).field(`end`,n(`Position`)).field(`source`,r(String,null),a.null),n(`Position`).field(`line`,o(1)).field(`column`,o(0)),n(`File`).bases(`Node`).build(`program`,`name`).field(`program`,n(`Program`)).field(`name`,r(String,null),a.null),n(`Program`).bases(`Node`).build(`body`).field(`body`,[n(`Statement`)]),n(`Function`).bases(`Node`).field(`id`,r(n(`Identifier`),null),a.null).field(`params`,[n(`Pattern`)]).field(`body`,n(`BlockStatement`)).field(`generator`,Boolean,a.false).field(`async`,Boolean,a.false),n(`Statement`).bases(`Node`),n(`EmptyStatement`).bases(`Statement`).build(),n(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[n(`Statement`)]),n(`ExpressionStatement`).bases(`Statement`).build(`expression`).field(`expression`,n(`Expression`)),n(`IfStatement`).bases(`Statement`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Statement`)).field(`alternate`,r(n(`Statement`),null),a.null),n(`LabeledStatement`).bases(`Statement`).build(`label`,`body`).field(`label`,n(`Identifier`)).field(`body`,n(`Statement`)),n(`BreakStatement`).bases(`Statement`).build(`label`).field(`label`,r(n(`Identifier`),null),a.null),n(`ContinueStatement`).bases(`Statement`).build(`label`).field(`label`,r(n(`Identifier`),null),a.null),n(`WithStatement`).bases(`Statement`).build(`object`,`body`).field(`object`,n(`Expression`)).field(`body`,n(`Statement`)),n(`SwitchStatement`).bases(`Statement`).build(`discriminant`,`cases`,`lexical`).field(`discriminant`,n(`Expression`)).field(`cases`,[n(`SwitchCase`)]).field(`lexical`,Boolean,a.false),n(`ReturnStatement`).bases(`Statement`).build(`argument`).field(`argument`,r(n(`Expression`),null)),n(`ThrowStatement`).bases(`Statement`).build(`argument`).field(`argument`,n(`Expression`)),n(`TryStatement`).bases(`Statement`).build(`block`,`handler`,`finalizer`).field(`block`,n(`BlockStatement`)).field(`handler`,r(n(`CatchClause`),null),function(){return this.handlers&&this.handlers[0]||null}).field(`handlers`,[n(`CatchClause`)],function(){return this.handler?[this.handler]:[]},!0).field(`guardedHandlers`,[n(`CatchClause`)],a.emptyArray).field(`finalizer`,r(n(`BlockStatement`),null),a.null),n(`CatchClause`).bases(`Node`).build(`param`,`guard`,`body`).field(`param`,n(`Pattern`)).field(`guard`,r(n(`Expression`),null),a.null).field(`body`,n(`BlockStatement`)),n(`WhileStatement`).bases(`Statement`).build(`test`,`body`).field(`test`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DoWhileStatement`).bases(`Statement`).build(`body`,`test`).field(`body`,n(`Statement`)).field(`test`,n(`Expression`)),n(`ForStatement`).bases(`Statement`).build(`init`,`test`,`update`,`body`).field(`init`,r(n(`VariableDeclaration`),n(`Expression`),null)).field(`test`,r(n(`Expression`),null)).field(`update`,r(n(`Expression`),null)).field(`body`,n(`Statement`)),n(`ForInStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,r(n(`VariableDeclaration`),n(`Expression`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DebuggerStatement`).bases(`Statement`).build(),n(`Declaration`).bases(`Statement`),n(`FunctionDeclaration`).bases(`Function`,`Declaration`).build(`id`,`params`,`body`).field(`id`,n(`Identifier`)),n(`FunctionExpression`).bases(`Function`,`Expression`).build(`id`,`params`,`body`),n(`VariableDeclaration`).bases(`Declaration`).build(`kind`,`declarations`).field(`kind`,r(`var`,`let`,`const`)).field(`declarations`,[n(`VariableDeclarator`)]),n(`VariableDeclarator`).bases(`Node`).build(`id`,`init`).field(`id`,n(`Pattern`)).field(`init`,r(n(`Expression`),null),a.null),n(`Expression`).bases(`Node`),n(`ThisExpression`).bases(`Expression`).build(),n(`ArrayExpression`).bases(`Expression`).build(`elements`).field(`elements`,[r(n(`Expression`),null)]),n(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[n(`Property`)]),n(`Property`).bases(`Node`).build(`kind`,`key`,`value`).field(`kind`,r(`init`,`get`,`set`)).field(`key`,r(n(`Literal`),n(`Identifier`))).field(`value`,n(`Expression`)),n(`SequenceExpression`).bases(`Expression`).build(`expressions`).field(`expressions`,[n(`Expression`)]);var u=r(`-`,`+`,`!`,`~`,`typeof`,`void`,`delete`);n(`UnaryExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,u).field(`argument`,n(`Expression`)).field(`prefix`,Boolean,a.true);let d=r(...s);n(`BinaryExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,d).field(`left`,n(`Expression`)).field(`right`,n(`Expression`));let f=r(...c);n(`AssignmentExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,f).field(`left`,r(n(`Pattern`),n(`MemberExpression`))).field(`right`,n(`Expression`));var p=r(`++`,`--`);n(`UpdateExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,p).field(`argument`,n(`Expression`)).field(`prefix`,Boolean);var m=r(...l);n(`LogicalExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,m).field(`left`,n(`Expression`)).field(`right`,n(`Expression`)),n(`ConditionalExpression`).bases(`Expression`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Expression`)).field(`alternate`,n(`Expression`)),n(`NewExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`CallExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`MemberExpression`).bases(`Expression`).build(`object`,`property`,`computed`).field(`object`,n(`Expression`)).field(`property`,r(n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,function(){var e=this.property.type;return e===`Literal`||e===`MemberExpression`||e===`BinaryExpression`}),n(`Pattern`).bases(`Node`),n(`SwitchCase`).bases(`Node`).build(`test`,`consequent`).field(`test`,r(n(`Expression`),null)).field(`consequent`,[n(`Statement`)]),n(`Identifier`).bases(`Expression`,`Pattern`).build(`name`).field(`name`,String).field(`optional`,Boolean,a.false),n(`Literal`).bases(`Expression`).build(`value`).field(`value`,r(String,Boolean,null,Number,RegExp,BigInt)),n(`Comment`).bases(`Printable`).field(`value`,String).field(`leading`,Boolean,a.true).field(`trailing`,Boolean,a.false)}function mX(e){e.use(aae);let t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults;n(`Function`).field(`generator`,Boolean,i.false).field(`expression`,Boolean,i.false).field(`defaults`,[r(n(`Expression`),null)],i.emptyArray).field(`rest`,r(n(`Identifier`),null),i.null),n(`RestElement`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)).field(`typeAnnotation`,r(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),i.null),n(`SpreadElementPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`FunctionDeclaration`).build(`id`,`params`,`body`,`generator`,`expression`).field(`id`,r(n(`Identifier`),null)),n(`FunctionExpression`).build(`id`,`params`,`body`,`generator`,`expression`),n(`ArrowFunctionExpression`).bases(`Function`,`Expression`).build(`params`,`body`,`expression`).field(`id`,null,i.null).field(`body`,r(n(`BlockStatement`),n(`Expression`))).field(`generator`,!1,i.false),n(`ForOfStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,r(n(`VariableDeclaration`),n(`Pattern`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`YieldExpression`).bases(`Expression`).build(`argument`,`delegate`).field(`argument`,r(n(`Expression`),null)).field(`delegate`,Boolean,i.false),n(`GeneratorExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,r(n(`Expression`),null)),n(`ComprehensionExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,r(n(`Expression`),null)),n(`ComprehensionBlock`).bases(`Node`).build(`left`,`right`,`each`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)).field(`each`,Boolean),n(`Property`).field(`key`,r(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`value`,r(n(`Expression`),n(`Pattern`))).field(`method`,Boolean,i.false).field(`shorthand`,Boolean,i.false).field(`computed`,Boolean,i.false),n(`ObjectProperty`).field(`shorthand`,Boolean,i.false),n(`PropertyPattern`).bases(`Pattern`).build(`key`,`pattern`).field(`key`,r(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`pattern`,n(`Pattern`)).field(`computed`,Boolean,i.false),n(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[r(n(`PropertyPattern`),n(`Property`))]),n(`ArrayPattern`).bases(`Pattern`).build(`elements`).field(`elements`,[r(n(`Pattern`),null)]),n(`SpreadElement`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ArrayExpression`).field(`elements`,[r(n(`Expression`),n(`SpreadElement`),n(`RestElement`),null)]),n(`NewExpression`).field(`arguments`,[r(n(`Expression`),n(`SpreadElement`))]),n(`CallExpression`).field(`arguments`,[r(n(`Expression`),n(`SpreadElement`))]),n(`AssignmentPattern`).bases(`Pattern`).build(`left`,`right`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)),n(`MethodDefinition`).bases(`Declaration`).build(`kind`,`key`,`value`,`static`).field(`kind`,r(`constructor`,`method`,`get`,`set`)).field(`key`,n(`Expression`)).field(`value`,n(`Function`)).field(`computed`,Boolean,i.false).field(`static`,Boolean,i.false);let a=r(n(`MethodDefinition`),n(`VariableDeclarator`),n(`ClassPropertyDefinition`),n(`ClassProperty`),n(`StaticBlock`));n(`ClassProperty`).bases(`Declaration`).build(`key`).field(`key`,r(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,i.false),n(`ClassPropertyDefinition`).bases(`Declaration`).build(`definition`).field(`definition`,a),n(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[a]),n(`ClassDeclaration`).bases(`Declaration`).build(`id`,`body`,`superClass`).field(`id`,r(n(`Identifier`),null)).field(`body`,n(`ClassBody`)).field(`superClass`,r(n(`Expression`),null),i.null),n(`ClassExpression`).bases(`Expression`).build(`id`,`body`,`superClass`).field(`id`,r(n(`Identifier`),null),i.null).field(`body`,n(`ClassBody`)).field(`superClass`,r(n(`Expression`),null),i.null),n(`Super`).bases(`Expression`).build(),n(`Specifier`).bases(`Node`),n(`ModuleSpecifier`).bases(`Specifier`).field(`local`,r(n(`Identifier`),null),i.null).field(`id`,r(n(`Identifier`),null),i.null).field(`name`,r(n(`Identifier`),null),i.null),n(`ImportSpecifier`).bases(`ModuleSpecifier`).build(`imported`,`local`).field(`imported`,n(`Identifier`)),n(`ImportDefaultSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportNamespaceSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportDeclaration`).bases(`Declaration`).build(`specifiers`,`source`,`importKind`).field(`specifiers`,[r(n(`ImportSpecifier`),n(`ImportNamespaceSpecifier`),n(`ImportDefaultSpecifier`))],i.emptyArray).field(`source`,n(`Literal`)).field(`importKind`,r(`value`,`type`),function(){return`value`}),n(`ExportNamedDeclaration`).bases(`Declaration`).build(`declaration`,`specifiers`,`source`).field(`declaration`,r(n(`Declaration`),null)).field(`specifiers`,[n(`ExportSpecifier`)],i.emptyArray).field(`source`,r(n(`Literal`),null),i.null),n(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`local`,`exported`).field(`exported`,n(`Identifier`)),n(`ExportDefaultDeclaration`).bases(`Declaration`).build(`declaration`).field(`declaration`,r(n(`Declaration`),n(`Expression`))),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,n(`Literal`)),n(`TaggedTemplateExpression`).bases(`Expression`).build(`tag`,`quasi`).field(`tag`,n(`Expression`)).field(`quasi`,n(`TemplateLiteral`)),n(`TemplateLiteral`).bases(`Expression`).build(`quasis`,`expressions`).field(`quasis`,[n(`TemplateElement`)]).field(`expressions`,[n(`Expression`)]),n(`TemplateElement`).bases(`Node`).build(`value`,`tail`).field(`value`,{cooked:String,raw:String}).field(`tail`,Boolean),n(`MetaProperty`).bases(`Expression`).build(`meta`,`property`).field(`meta`,n(`Identifier`)).field(`property`,n(`Identifier`))}function hX(e){e.use(dX),e.use(mX)}function gX(e){e.use(hX);let t=e.use($Y).Type.def,n=e.use(BY).defaults;t(`Function`).field(`async`,Boolean,n.false),t(`AwaitExpression`).bases(`Expression`).build(`argument`).field(`argument`,t(`Expression`))}function oae(e){e.use(gX);let t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults;n(`ForOfStatement`).field(`await`,Boolean,i.false),n(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ObjectExpression`).field(`properties`,[r(n(`Property`),n(`SpreadProperty`),n(`SpreadElement`))]),n(`TemplateElement`).field(`value`,{cooked:r(String,null),raw:String}),n(`SpreadPropertyPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`ObjectPattern`).field(`properties`,[r(n(`PropertyPattern`),n(`Property`),n(`RestElement`),n(`SpreadPropertyPattern`))])}function sae(e){e.use(oae);let t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults;n(`CatchClause`).field(`param`,r(n(`Pattern`),null),i.null)}function cae(e){e.use(fX),e.use(sae);let t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults;n(`ImportExpression`).bases(`Expression`).build(`source`).field(`source`,n(`Expression`)),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`,`exported`).field(`source`,n(`Literal`)).field(`exported`,r(n(`Identifier`),null,void 0),i.null),n(`ChainElement`).bases(`Node`).field(`optional`,Boolean,i.false),n(`CallExpression`).bases(`Expression`,`ChainElement`),n(`MemberExpression`).bases(`Expression`,`ChainElement`),n(`ChainExpression`).bases(`Expression`).build(`expression`).field(`expression`,n(`ChainElement`)),n(`OptionalCallExpression`).bases(`CallExpression`).build(`callee`,`arguments`,`optional`).field(`optional`,Boolean,i.true),n(`OptionalMemberExpression`).bases(`MemberExpression`).build(`object`,`property`,`computed`,`optional`).field(`optional`,Boolean,i.true)}function lae(e){e.use(pX),e.use(cae)}function uae(e){e.use(lae);let t=e.use($Y).Type.def;t(`StaticBlock`).bases(`Declaration`).build(`body`).field(`body`,[t(`Statement`)])}function _X(e){e.use(uae);let t=e.use($Y),n=t.Type,r=t.Type.def,i=n.or,a=e.use(BY).defaults;r(`AwaitExpression`).build(`argument`,`all`).field(`argument`,i(r(`Expression`),null)).field(`all`,Boolean,a.false),r(`Decorator`).bases(`Node`).build(`expression`).field(`expression`,r(`Expression`)),r(`Property`).field(`decorators`,i([r(`Decorator`)],null),a.null),r(`MethodDefinition`).field(`decorators`,i([r(`Decorator`)],null),a.null),r(`PrivateName`).bases(`Expression`,`Pattern`).build(`id`).field(`id`,r(`Identifier`)),r(`ClassPrivateProperty`).bases(`ClassProperty`).build(`key`,`value`).field(`key`,r(`PrivateName`)).field(`value`,i(r(`Expression`),null),a.null),r(`ImportAttribute`).bases(`Node`).build(`key`,`value`).field(`key`,i(r(`Identifier`),r(`Literal`))).field(`value`,r(`Expression`)),[`ImportDeclaration`,`ExportAllDeclaration`,`ExportNamedDeclaration`].forEach(e=>{r(e).field(`assertions`,[r(`ImportAttribute`)],a.emptyArray)}),r(`RecordExpression`).bases(`Expression`).build(`properties`).field(`properties`,[i(r(`ObjectProperty`),r(`ObjectMethod`),r(`SpreadElement`))]),r(`TupleExpression`).bases(`Expression`).build(`elements`).field(`elements`,[i(r(`Expression`),r(`SpreadElement`),null)]),r(`ModuleExpression`).bases(`Node`).build(`body`).field(`body`,r(`Program`))}function vX(e){e.use(_X);let t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults;n(`JSXAttribute`).bases(`Node`).build(`name`,`value`).field(`name`,r(n(`JSXIdentifier`),n(`JSXNamespacedName`))).field(`value`,r(n(`Literal`),n(`JSXExpressionContainer`),n(`JSXElement`),n(`JSXFragment`),null),i.null),n(`JSXIdentifier`).bases(`Identifier`).build(`name`).field(`name`,String),n(`JSXNamespacedName`).bases(`Node`).build(`namespace`,`name`).field(`namespace`,n(`JSXIdentifier`)).field(`name`,n(`JSXIdentifier`)),n(`JSXMemberExpression`).bases(`MemberExpression`).build(`object`,`property`).field(`object`,r(n(`JSXIdentifier`),n(`JSXMemberExpression`))).field(`property`,n(`JSXIdentifier`)).field(`computed`,Boolean,i.false);let a=r(n(`JSXIdentifier`),n(`JSXNamespacedName`),n(`JSXMemberExpression`));n(`JSXSpreadAttribute`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`));let o=[r(n(`JSXAttribute`),n(`JSXSpreadAttribute`))];n(`JSXExpressionContainer`).bases(`Expression`).build(`expression`).field(`expression`,r(n(`Expression`),n(`JSXEmptyExpression`)));let s=[r(n(`JSXText`),n(`JSXExpressionContainer`),n(`JSXSpreadChild`),n(`JSXElement`),n(`JSXFragment`),n(`Literal`))];n(`JSXElement`).bases(`Expression`).build(`openingElement`,`closingElement`,`children`).field(`openingElement`,n(`JSXOpeningElement`)).field(`closingElement`,r(n(`JSXClosingElement`),null),i.null).field(`children`,s,i.emptyArray).field(`name`,a,function(){return this.openingElement.name},!0).field(`selfClosing`,Boolean,function(){return this.openingElement.selfClosing},!0).field(`attributes`,o,function(){return this.openingElement.attributes},!0),n(`JSXOpeningElement`).bases(`Node`).build(`name`,`attributes`,`selfClosing`).field(`name`,a).field(`attributes`,o,i.emptyArray).field(`selfClosing`,Boolean,i.false),n(`JSXClosingElement`).bases(`Node`).build(`name`).field(`name`,a),n(`JSXFragment`).bases(`Expression`).build(`openingFragment`,`closingFragment`,`children`).field(`openingFragment`,n(`JSXOpeningFragment`)).field(`closingFragment`,n(`JSXClosingFragment`)).field(`children`,s,i.emptyArray),n(`JSXOpeningFragment`).bases(`Node`).build(),n(`JSXClosingFragment`).bases(`Node`).build(),n(`JSXText`).bases(`Literal`).build(`value`,`raw`).field(`value`,String).field(`raw`,String,function(){return this.value}),n(`JSXEmptyExpression`).bases(`Node`).build(),n(`JSXSpreadChild`).bases(`Node`).build(`expression`).field(`expression`,n(`Expression`))}function dae(e){var t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults,a=r(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),o=r(n(`TypeParameterDeclaration`),n(`TSTypeParameterDeclaration`),null);n(`Identifier`).field(`typeAnnotation`,a,i.null),n(`ObjectPattern`).field(`typeAnnotation`,a,i.null),n(`Function`).field(`returnType`,a,i.null).field(`typeParameters`,o,i.null),n(`ClassProperty`).build(`key`,`value`,`typeAnnotation`,`static`).field(`value`,r(n(`Expression`),null)).field(`static`,Boolean,i.false).field(`typeAnnotation`,a,i.null),[`ClassDeclaration`,`ClassExpression`].forEach(e=>{n(e).field(`typeParameters`,o,i.null).field(`superTypeParameters`,r(n(`TypeParameterInstantiation`),n(`TSTypeParameterInstantiation`),null),i.null).field(`implements`,r([n(`ClassImplements`)],[n(`TSExpressionWithTypeArguments`)]),i.emptyArray)})}function yX(e){e.use(_X),e.use(dae);let t=e.use($Y),n=t.Type.def,r=t.Type.or,i=e.use(BY).defaults;n(`Flow`).bases(`Node`),n(`FlowType`).bases(`Flow`),n(`AnyTypeAnnotation`).bases(`FlowType`).build(),n(`EmptyTypeAnnotation`).bases(`FlowType`).build(),n(`MixedTypeAnnotation`).bases(`FlowType`).build(),n(`VoidTypeAnnotation`).bases(`FlowType`).build(),n(`SymbolTypeAnnotation`).bases(`FlowType`).build(),n(`NumberTypeAnnotation`).bases(`FlowType`).build(),n(`BigIntTypeAnnotation`).bases(`FlowType`).build(),n(`NumberLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`NumericLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`BigIntLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,null).field(`raw`,String),n(`StringTypeAnnotation`).bases(`FlowType`).build(),n(`StringLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,String).field(`raw`,String),n(`BooleanTypeAnnotation`).bases(`FlowType`).build(),n(`BooleanLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Boolean).field(`raw`,String),n(`TypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullableTypeAnnotation`).bases(`FlowType`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullLiteralTypeAnnotation`).bases(`FlowType`).build(),n(`NullTypeAnnotation`).bases(`FlowType`).build(),n(`ThisTypeAnnotation`).bases(`FlowType`).build(),n(`ExistsTypeAnnotation`).bases(`FlowType`).build(),n(`ExistentialTypeParam`).bases(`FlowType`).build(),n(`FunctionTypeAnnotation`).bases(`FlowType`).build(`params`,`returnType`,`rest`,`typeParameters`).field(`params`,[n(`FunctionTypeParam`)]).field(`returnType`,n(`FlowType`)).field(`rest`,r(n(`FunctionTypeParam`),null)).field(`typeParameters`,r(n(`TypeParameterDeclaration`),null)),n(`FunctionTypeParam`).bases(`Node`).build(`name`,`typeAnnotation`,`optional`).field(`name`,r(n(`Identifier`),null)).field(`typeAnnotation`,n(`FlowType`)).field(`optional`,Boolean),n(`ArrayTypeAnnotation`).bases(`FlowType`).build(`elementType`).field(`elementType`,n(`FlowType`)),n(`ObjectTypeAnnotation`).bases(`FlowType`).build(`properties`,`indexers`,`callProperties`).field(`properties`,[r(n(`ObjectTypeProperty`),n(`ObjectTypeSpreadProperty`))]).field(`indexers`,[n(`ObjectTypeIndexer`)],i.emptyArray).field(`callProperties`,[n(`ObjectTypeCallProperty`)],i.emptyArray).field(`inexact`,r(Boolean,void 0),i.undefined).field(`exact`,Boolean,i.false).field(`internalSlots`,[n(`ObjectTypeInternalSlot`)],i.emptyArray),n(`Variance`).bases(`Node`).build(`kind`).field(`kind`,r(`plus`,`minus`));let a=r(n(`Variance`),`plus`,`minus`,null);n(`ObjectTypeProperty`).bases(`Node`).build(`key`,`value`,`optional`).field(`key`,r(n(`Literal`),n(`Identifier`))).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`variance`,a,i.null),n(`ObjectTypeIndexer`).bases(`Node`).build(`id`,`key`,`value`).field(`id`,n(`Identifier`)).field(`key`,n(`FlowType`)).field(`value`,n(`FlowType`)).field(`variance`,a,i.null).field(`static`,Boolean,i.false),n(`ObjectTypeCallProperty`).bases(`Node`).build(`value`).field(`value`,n(`FunctionTypeAnnotation`)).field(`static`,Boolean,i.false),n(`QualifiedTypeIdentifier`).bases(`Node`).build(`qualification`,`id`).field(`qualification`,r(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`id`,n(`Identifier`)),n(`GenericTypeAnnotation`).bases(`FlowType`).build(`id`,`typeParameters`).field(`id`,r(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`typeParameters`,r(n(`TypeParameterInstantiation`),null)),n(`MemberTypeAnnotation`).bases(`FlowType`).build(`object`,`property`).field(`object`,n(`Identifier`)).field(`property`,r(n(`MemberTypeAnnotation`),n(`GenericTypeAnnotation`))),n(`IndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)),n(`OptionalIndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`,`optional`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)).field(`optional`,Boolean),n(`UnionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`IntersectionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`TypeofTypeAnnotation`).bases(`FlowType`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeSpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeInternalSlot`).bases(`Node`).build(`id`,`value`,`optional`,`static`,`method`).field(`id`,n(`Identifier`)).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`static`,Boolean).field(`method`,Boolean),n(`TypeParameterDeclaration`).bases(`Node`).build(`params`).field(`params`,[n(`TypeParameter`)]),n(`TypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[n(`FlowType`)]),n(`TypeParameter`).bases(`FlowType`).build(`name`,`variance`,`bound`,`default`).field(`name`,String).field(`variance`,a,i.null).field(`bound`,r(n(`TypeAnnotation`),null),i.null).field(`default`,r(n(`FlowType`),null),i.null),n(`ClassProperty`).field(`variance`,a,i.null),n(`ClassImplements`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`superClass`,r(n(`Expression`),null),i.null).field(`typeParameters`,r(n(`TypeParameterInstantiation`),null),i.null),n(`InterfaceTypeAnnotation`).bases(`FlowType`).build(`body`,`extends`).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,r([n(`InterfaceExtends`)],null),i.null),n(`InterfaceDeclaration`).bases(`Declaration`).build(`id`,`body`,`extends`).field(`id`,n(`Identifier`)).field(`typeParameters`,r(n(`TypeParameterDeclaration`),null),i.null).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,[n(`InterfaceExtends`)]),n(`DeclareInterface`).bases(`InterfaceDeclaration`).build(`id`,`body`,`extends`),n(`InterfaceExtends`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`typeParameters`,r(n(`TypeParameterInstantiation`),null),i.null),n(`TypeAlias`).bases(`Declaration`).build(`id`,`typeParameters`,`right`).field(`id`,n(`Identifier`)).field(`typeParameters`,r(n(`TypeParameterDeclaration`),null)).field(`right`,n(`FlowType`)),n(`DeclareTypeAlias`).bases(`TypeAlias`).build(`id`,`typeParameters`,`right`),n(`OpaqueType`).bases(`Declaration`).build(`id`,`typeParameters`,`impltype`,`supertype`).field(`id`,n(`Identifier`)).field(`typeParameters`,r(n(`TypeParameterDeclaration`),null)).field(`impltype`,n(`FlowType`)).field(`supertype`,r(n(`FlowType`),null)),n(`DeclareOpaqueType`).bases(`OpaqueType`).build(`id`,`typeParameters`,`supertype`).field(`impltype`,r(n(`FlowType`),null)),n(`TypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,n(`Expression`)).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`TupleTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`DeclareVariable`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)),n(`DeclareFunction`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)).field(`predicate`,r(n(`FlowPredicate`),null),i.null),n(`DeclareClass`).bases(`InterfaceDeclaration`).build(`id`),n(`DeclareModule`).bases(`Statement`).build(`id`,`body`).field(`id`,r(n(`Identifier`),n(`Literal`))).field(`body`,n(`BlockStatement`)),n(`DeclareModuleExports`).bases(`Statement`).build(`typeAnnotation`).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`DeclareExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,r(n(`DeclareVariable`),n(`DeclareFunction`),n(`DeclareClass`),n(`FlowType`),n(`TypeAlias`),n(`DeclareOpaqueType`),n(`InterfaceDeclaration`),null)).field(`specifiers`,[r(n(`ExportSpecifier`),n(`ExportBatchSpecifier`))],i.emptyArray).field(`source`,r(n(`Literal`),null),i.null),n(`DeclareExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,r(n(`Literal`),null),i.null),n(`ImportDeclaration`).field(`importKind`,r(`value`,`type`,`typeof`),()=>`value`),n(`FlowPredicate`).bases(`Flow`),n(`InferredPredicate`).bases(`FlowPredicate`).build(),n(`DeclaredPredicate`).bases(`FlowPredicate`).build(`value`).field(`value`,n(`Expression`)),n(`Function`).field(`predicate`,r(n(`FlowPredicate`),null),i.null),n(`CallExpression`).field(`typeArguments`,r(null,n(`TypeParameterInstantiation`)),i.null),n(`NewExpression`).field(`typeArguments`,r(null,n(`TypeParameterInstantiation`)),i.null),n(`EnumDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,n(`Identifier`)).field(`body`,r(n(`EnumBooleanBody`),n(`EnumNumberBody`),n(`EnumStringBody`),n(`EnumSymbolBody`))),n(`EnumBooleanBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumBooleanMember`)]).field(`explicitType`,Boolean),n(`EnumNumberBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumNumberMember`)]).field(`explicitType`,Boolean),n(`EnumStringBody`).build(`members`,`explicitType`).field(`members`,r([n(`EnumStringMember`)],[n(`EnumDefaultedMember`)])).field(`explicitType`,Boolean),n(`EnumSymbolBody`).build(`members`).field(`members`,[n(`EnumDefaultedMember`)]),n(`EnumBooleanMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,r(n(`Literal`),Boolean)),n(`EnumNumberMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumStringMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumDefaultedMember`).build(`id`).field(`id`,n(`Identifier`))}function fae(e){e.use(_X);var t=e.use($Y),n=e.use(BY).defaults,r=t.Type.def,i=t.Type.or;r(`VariableDeclaration`).field(`declarations`,[i(r(`VariableDeclarator`),r(`Identifier`))]),r(`Property`).field(`value`,i(r(`Expression`),r(`Pattern`))),r(`ArrayPattern`).field(`elements`,[i(r(`Pattern`),r(`SpreadElement`),null)]),r(`ObjectPattern`).field(`properties`,[i(r(`Property`),r(`PropertyPattern`),r(`SpreadPropertyPattern`),r(`SpreadProperty`))]),r(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`id`,`name`),r(`ExportBatchSpecifier`).bases(`Specifier`).build(),r(`ExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,i(r(`Declaration`),r(`Expression`),null)).field(`specifiers`,[i(r(`ExportSpecifier`),r(`ExportBatchSpecifier`))],n.emptyArray).field(`source`,i(r(`Literal`),null),n.null),r(`Block`).bases(`Comment`).build(`value`,`leading`,`trailing`),r(`Line`).bases(`Comment`).build(`value`,`leading`,`trailing`)}function pae(e){e.use(_X);let t=e.use($Y),n=e.use(BY).defaults,r=t.Type.def,i=t.Type.or,{undefined:a}=t.builtInTypes;r(`Noop`).bases(`Statement`).build(),r(`DoExpression`).bases(`Expression`).build(`body`).field(`body`,[r(`Statement`)]),r(`BindExpression`).bases(`Expression`).build(`object`,`callee`).field(`object`,i(r(`Expression`),null)).field(`callee`,r(`Expression`)),r(`ParenthesizedExpression`).bases(`Expression`).build(`expression`).field(`expression`,r(`Expression`)),r(`ExportNamespaceSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,r(`Identifier`)),r(`ExportDefaultSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,r(`Identifier`)),r(`CommentBlock`).bases(`Comment`).build(`value`,`leading`,`trailing`),r(`CommentLine`).bases(`Comment`).build(`value`,`leading`,`trailing`),r(`Directive`).bases(`Node`).build(`value`).field(`value`,r(`DirectiveLiteral`)),r(`DirectiveLiteral`).bases(`Node`,`Expression`).build(`value`).field(`value`,String,n[`use strict`]),r(`InterpreterDirective`).bases(`Node`).build(`value`).field(`value`,String),r(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[r(`Statement`)]).field(`directives`,[r(`Directive`)],n.emptyArray),r(`Program`).bases(`Node`).build(`body`).field(`body`,[r(`Statement`)]).field(`directives`,[r(`Directive`)],n.emptyArray).field(`interpreter`,i(r(`InterpreterDirective`),null),n.null);function o(e=String,n){return[`extra`,{rawValue:e,raw:String},function(){let e=t.getFieldValue(this,`value`);return{rawValue:e,raw:n?n(e):String(e)}}]}r(`StringLiteral`).bases(`Literal`).build(`value`).field(`value`,String).field(...o(String,e=>JSON.stringify(e))),r(`NumericLiteral`).bases(`Literal`).build(`value`).field(`value`,Number).field(`raw`,i(String,null),n.null).field(...o(Number)),r(`BigIntLiteral`).bases(`Literal`).build(`value`).field(`value`,i(String,Number)).field(...o(String,e=>e+`n`)),r(`DecimalLiteral`).bases(`Literal`).build(`value`).field(`value`,String).field(...o(String,e=>e+`m`)),r(`NullLiteral`).bases(`Literal`).build().field(`value`,null,n.null),r(`BooleanLiteral`).bases(`Literal`).build(`value`).field(`value`,Boolean),r(`RegExpLiteral`).bases(`Literal`).build(`pattern`,`flags`).field(`pattern`,String).field(`flags`,String).field(`value`,RegExp,function(){return new RegExp(this.pattern,this.flags)}).field(...o(i(RegExp,a),e=>`/${e.pattern}/${e.flags||``}`)).field(`regex`,{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var s=i(r(`Property`),r(`ObjectMethod`),r(`ObjectProperty`),r(`SpreadProperty`),r(`SpreadElement`));r(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[s]),r(`ObjectMethod`).bases(`Node`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`).field(`kind`,i(`method`,`get`,`set`)).field(`key`,i(r(`Literal`),r(`Identifier`),r(`Expression`))).field(`params`,[r(`Pattern`)]).field(`body`,r(`BlockStatement`)).field(`computed`,Boolean,n.false).field(`generator`,Boolean,n.false).field(`async`,Boolean,n.false).field(`accessibility`,i(r(`Literal`),null),n.null).field(`decorators`,i([r(`Decorator`)],null),n.null),r(`ObjectProperty`).bases(`Node`).build(`key`,`value`).field(`key`,i(r(`Literal`),r(`Identifier`),r(`Expression`))).field(`value`,i(r(`Expression`),r(`Pattern`))).field(`accessibility`,i(r(`Literal`),null),n.null).field(`computed`,Boolean,n.false);var c=i(r(`MethodDefinition`),r(`VariableDeclarator`),r(`ClassPropertyDefinition`),r(`ClassProperty`),r(`ClassPrivateProperty`),r(`ClassMethod`),r(`ClassPrivateMethod`),r(`ClassAccessorProperty`),r(`StaticBlock`));r(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[c]),r(`ClassMethod`).bases(`Declaration`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`,`static`).field(`key`,i(r(`Literal`),r(`Identifier`),r(`Expression`))),r(`ClassPrivateMethod`).bases(`Declaration`,`Function`).build(`key`,`params`,`body`,`kind`,`computed`,`static`).field(`key`,r(`PrivateName`)),r(`ClassAccessorProperty`).bases(`Declaration`).build(`key`,`value`,`decorators`,`computed`,`static`).field(`key`,i(r(`Literal`),r(`Identifier`),r(`PrivateName`),r(`Expression`))).field(`value`,i(r(`Expression`),null),n.null),[`ClassMethod`,`ClassPrivateMethod`].forEach(e=>{r(e).field(`kind`,i(`get`,`set`,`method`,`constructor`),()=>`method`).field(`body`,r(`BlockStatement`)).field(`access`,i(`public`,`private`,`protected`,null),n.null)}),[`ClassMethod`,`ClassPrivateMethod`,`ClassAccessorProperty`].forEach(e=>{r(e).field(`computed`,Boolean,n.false).field(`static`,Boolean,n.false).field(`abstract`,Boolean,n.false).field(`accessibility`,i(`public`,`private`,`protected`,null),n.null).field(`decorators`,i([r(`Decorator`)],null),n.null).field(`definite`,Boolean,n.false).field(`optional`,Boolean,n.false).field(`override`,Boolean,n.false).field(`readonly`,Boolean,n.false)});var l=i(r(`Property`),r(`PropertyPattern`),r(`SpreadPropertyPattern`),r(`SpreadProperty`),r(`ObjectProperty`),r(`RestProperty`),r(`RestElement`));r(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[l]).field(`decorators`,i([r(`Decorator`)],null),n.null),r(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,r(`Expression`)),r(`RestProperty`).bases(`Node`).build(`argument`).field(`argument`,r(`Expression`)),r(`ForAwaitStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,i(r(`VariableDeclaration`),r(`Expression`))).field(`right`,r(`Expression`)).field(`body`,r(`Statement`)),r(`Import`).bases(`Expression`).build()}function mae(e){let t=e.use($Y).Type.def;e.use(pae),e.use(yX),t(`V8IntrinsicIdentifier`).bases(`Expression`).build(`name`).field(`name`,String),t(`TopicReference`).bases(`Expression`).build()}function bX(e){e.use(pae),e.use(dae);var t=e.use($Y),n=t.namedTypes,r=t.Type.def,i=t.Type.or,a=e.use(BY).defaults,o=t.Type.from(function(e,t){return!!(n.StringLiteral&&n.StringLiteral.check(e,t)||n.Literal&&n.Literal.check(e,t)&&typeof e.value==`string`)},`StringLiteral`);r(`TSType`).bases(`Node`);var s=i(r(`Identifier`),r(`TSQualifiedName`));r(`TSTypeReference`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`typeName`,`typeParameters`).field(`typeName`,s),r(`TSHasOptionalTypeParameterInstantiation`).field(`typeParameters`,i(r(`TSTypeParameterInstantiation`),null),a.null),r(`TSHasOptionalTypeParameters`).field(`typeParameters`,i(r(`TSTypeParameterDeclaration`),null,void 0),a.null),r(`TSHasOptionalTypeAnnotation`).field(`typeAnnotation`,i(r(`TSTypeAnnotation`),null),a.null),r(`TSQualifiedName`).bases(`Node`).build(`left`,`right`).field(`left`,s).field(`right`,s),r(`TSAsExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,r(`Expression`)).field(`typeAnnotation`,r(`TSType`)).field(`extra`,i({parenthesized:Boolean},null),a.null),r(`TSTypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,r(`Expression`)).field(`typeAnnotation`,r(`TSType`)),r(`TSSatisfiesExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,r(`Expression`)).field(`typeAnnotation`,r(`TSType`)),r(`TSNonNullExpression`).bases(`Expression`,`Pattern`).build(`expression`).field(`expression`,r(`Expression`)),[`TSAnyKeyword`,`TSBigIntKeyword`,`TSBooleanKeyword`,`TSNeverKeyword`,`TSNullKeyword`,`TSNumberKeyword`,`TSObjectKeyword`,`TSStringKeyword`,`TSSymbolKeyword`,`TSUndefinedKeyword`,`TSUnknownKeyword`,`TSVoidKeyword`,`TSIntrinsicKeyword`,`TSThisType`].forEach(e=>{r(e).bases(`TSType`).build()}),r(`TSArrayType`).bases(`TSType`).build(`elementType`).field(`elementType`,r(`TSType`)),r(`TSLiteralType`).bases(`TSType`).build(`literal`).field(`literal`,i(r(`NumericLiteral`),r(`StringLiteral`),r(`BooleanLiteral`),r(`TemplateLiteral`),r(`UnaryExpression`),r(`BigIntLiteral`))),r(`TemplateLiteral`).field(`expressions`,i([r(`Expression`)],[r(`TSType`)])),[`TSUnionType`,`TSIntersectionType`].forEach(e=>{r(e).bases(`TSType`).build(`types`).field(`types`,[r(`TSType`)])}),r(`TSConditionalType`).bases(`TSType`).build(`checkType`,`extendsType`,`trueType`,`falseType`).field(`checkType`,r(`TSType`)).field(`extendsType`,r(`TSType`)).field(`trueType`,r(`TSType`)).field(`falseType`,r(`TSType`)),r(`TSInferType`).bases(`TSType`).build(`typeParameter`).field(`typeParameter`,r(`TSTypeParameter`)),r(`TSParenthesizedType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,r(`TSType`));var c=[i(r(`Identifier`),r(`RestElement`),r(`ArrayPattern`),r(`ObjectPattern`))];[`TSFunctionType`,`TSConstructorType`].forEach(e=>{r(e).bases(`TSType`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`).field(`parameters`,c)}),r(`TSDeclareFunction`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`params`,`returnType`).field(`declare`,Boolean,a.false).field(`async`,Boolean,a.false).field(`generator`,Boolean,a.false).field(`id`,i(r(`Identifier`),null),a.null).field(`params`,[r(`Pattern`)]).field(`returnType`,i(r(`TSTypeAnnotation`),r(`Noop`),null),a.null),r(`TSDeclareMethod`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`key`,`params`,`returnType`).field(`async`,Boolean,a.false).field(`generator`,Boolean,a.false).field(`params`,[r(`Pattern`)]).field(`abstract`,Boolean,a.false).field(`accessibility`,i(`public`,`private`,`protected`,void 0),a.undefined).field(`static`,Boolean,a.false).field(`computed`,Boolean,a.false).field(`optional`,Boolean,a.false).field(`key`,i(r(`Identifier`),r(`StringLiteral`),r(`NumericLiteral`),r(`Expression`))).field(`kind`,i(`get`,`set`,`method`,`constructor`),function(){return`method`}).field(`access`,i(`public`,`private`,`protected`,void 0),a.undefined).field(`decorators`,i([r(`Decorator`)],null),a.null).field(`returnType`,i(r(`TSTypeAnnotation`),r(`Noop`),null),a.null),r(`TSMappedType`).bases(`TSType`).build(`typeParameter`,`typeAnnotation`).field(`readonly`,i(Boolean,`+`,`-`),a.false).field(`typeParameter`,r(`TSTypeParameter`)).field(`optional`,i(Boolean,`+`,`-`),a.false).field(`typeAnnotation`,i(r(`TSType`),null),a.null),r(`TSTupleType`).bases(`TSType`).build(`elementTypes`).field(`elementTypes`,[i(r(`TSType`),r(`TSNamedTupleMember`))]),r(`TSNamedTupleMember`).bases(`TSType`).build(`label`,`elementType`,`optional`).field(`label`,r(`Identifier`)).field(`optional`,Boolean,a.false).field(`elementType`,r(`TSType`)),r(`TSRestType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,r(`TSType`)),r(`TSOptionalType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,r(`TSType`)),r(`TSIndexedAccessType`).bases(`TSType`).build(`objectType`,`indexType`).field(`objectType`,r(`TSType`)).field(`indexType`,r(`TSType`)),r(`TSTypeOperator`).bases(`TSType`).build(`operator`).field(`operator`,String).field(`typeAnnotation`,r(`TSType`)),r(`TSTypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,i(r(`TSType`),r(`TSTypeAnnotation`))),r(`TSIndexSignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,[r(`Identifier`)]).field(`readonly`,Boolean,a.false),r(`TSPropertySignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`key`,`typeAnnotation`,`optional`).field(`key`,r(`Expression`)).field(`computed`,Boolean,a.false).field(`readonly`,Boolean,a.false).field(`optional`,Boolean,a.false).field(`initializer`,i(r(`Expression`),null),a.null),r(`TSMethodSignature`).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`key`,`parameters`,`typeAnnotation`).field(`key`,r(`Expression`)).field(`computed`,Boolean,a.false).field(`optional`,Boolean,a.false).field(`parameters`,c),r(`TSTypePredicate`).bases(`TSTypeAnnotation`,`TSType`).build(`parameterName`,`typeAnnotation`,`asserts`).field(`parameterName`,i(r(`Identifier`),r(`TSThisType`))).field(`typeAnnotation`,i(r(`TSTypeAnnotation`),null),a.null).field(`asserts`,Boolean,a.false),[`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`].forEach(e=>{r(e).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,c)}),r(`TSEnumMember`).bases(`Node`).build(`id`,`initializer`).field(`id`,i(r(`Identifier`),o)).field(`initializer`,i(r(`Expression`),null),a.null),r(`TSTypeQuery`).bases(`TSType`).build(`exprName`).field(`exprName`,i(s,r(`TSImportType`)));var l=i(r(`TSCallSignatureDeclaration`),r(`TSConstructSignatureDeclaration`),r(`TSIndexSignature`),r(`TSMethodSignature`),r(`TSPropertySignature`));r(`TSTypeLiteral`).bases(`TSType`).build(`members`).field(`members`,[l]),r(`TSTypeParameter`).bases(`Identifier`).build(`name`,`constraint`,`default`).field(`name`,i(r(`Identifier`),String)).field(`constraint`,i(r(`TSType`),void 0),a.undefined).field(`default`,i(r(`TSType`),void 0),a.undefined),r(`TSTypeAssertion`).bases(`Expression`,`Pattern`).build(`typeAnnotation`,`expression`).field(`typeAnnotation`,r(`TSType`)).field(`expression`,r(`Expression`)).field(`extra`,i({parenthesized:Boolean},null),a.null),r(`TSTypeParameterDeclaration`).bases(`Declaration`).build(`params`).field(`params`,[r(`TSTypeParameter`)]),r(`TSInstantiationExpression`).bases(`Expression`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,r(`Expression`)),r(`TSTypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[r(`TSType`)]),r(`TSEnumDeclaration`).bases(`Declaration`).build(`id`,`members`).field(`id`,r(`Identifier`)).field(`const`,Boolean,a.false).field(`declare`,Boolean,a.false).field(`members`,[r(`TSEnumMember`)]).field(`initializer`,i(r(`Expression`),null),a.null),r(`TSTypeAliasDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`typeAnnotation`).field(`id`,r(`Identifier`)).field(`declare`,Boolean,a.false).field(`typeAnnotation`,r(`TSType`)),r(`TSModuleBlock`).bases(`Node`).build(`body`).field(`body`,[r(`Statement`)]),r(`TSModuleDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,i(o,s)).field(`declare`,Boolean,a.false).field(`global`,Boolean,a.false).field(`body`,i(r(`TSModuleBlock`),r(`TSModuleDeclaration`),null),a.null),r(`TSImportType`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`argument`,`qualifier`,`typeParameters`).field(`argument`,o).field(`qualifier`,i(s,void 0),a.undefined),r(`TSImportEqualsDeclaration`).bases(`Declaration`).build(`id`,`moduleReference`).field(`id`,r(`Identifier`)).field(`isExport`,Boolean,a.false).field(`moduleReference`,i(s,r(`TSExternalModuleReference`))),r(`TSExternalModuleReference`).bases(`Declaration`).build(`expression`).field(`expression`,o),r(`TSExportAssignment`).bases(`Statement`).build(`expression`).field(`expression`,r(`Expression`)),r(`TSNamespaceExportDeclaration`).bases(`Declaration`).build(`id`).field(`id`,r(`Identifier`)),r(`TSInterfaceBody`).bases(`Node`).build(`body`).field(`body`,[l]),r(`TSExpressionWithTypeArguments`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,s),r(`TSInterfaceDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`body`).field(`id`,s).field(`declare`,Boolean,a.false).field(`extends`,i([r(`TSExpressionWithTypeArguments`)],null),a.null).field(`body`,r(`TSInterfaceBody`)),r(`TSParameterProperty`).bases(`Pattern`).build(`parameter`).field(`accessibility`,i(`public`,`private`,`protected`,void 0),a.undefined).field(`readonly`,Boolean,a.false).field(`parameter`,i(r(`Identifier`),r(`AssignmentPattern`))),r(`ClassProperty`).field(`access`,i(`public`,`private`,`protected`,void 0),a.undefined),r(`ClassAccessorProperty`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`),r(`ClassBody`).field(`body`,[i(r(`MethodDefinition`),r(`VariableDeclarator`),r(`ClassPropertyDefinition`),r(`ClassProperty`),r(`ClassPrivateProperty`),r(`ClassAccessorProperty`),r(`ClassMethod`),r(`ClassPrivateMethod`),r(`StaticBlock`),r(`TSDeclareMethod`),l)])}let xX;(function(e){})(xX||={});const{astNodesAreEquivalent:SX,builders:CX,builtInTypes:wX,defineMethod:hae,eachField:gae,finalize:TX,getBuilderName:EX,getFieldNames:DX,getFieldValue:OX,getSupertypeNames:_ae,namedTypes:vae,NodePath:kX,Path:yae,PathVisitor:AX,someField:jX,Type:bae,use:MX,visit:NX}=cX([_X,vX,yX,fae,mae,bX]);Object.assign(xX,vae);var xae=RY((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),PX=RY((e=>{var t=xae(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),FX=RY((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s(function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;)if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}else for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++;for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n});e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})),IX=RY((e=>{var t=FX(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),LX=RY((e=>{var t=FX();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r})),RX=RY((e=>{var t=PX(),n=FX(),r=IX().ArraySet,i=LX().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=n.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new a(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(t.source=e.source,r!=null&&(t.source=n.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(t.name=e.name)),i.addMapping(t)}),e.sources.forEach(function(t){var a=t;r!==null&&(a=n.relative(r,t)),i._sources.has(a)||i._sources.add(a);var o=e.sourceContentFor(t);o!=null&&i.setSourceContent(t,o)}),i},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);!this._skipValidation&&this._validateMapping(t,r,i,a)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a}))},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`;if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a})),Sae=RY((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),zX=RY((e=>{function t(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l,!1)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}return r}function n(e){let n=t.toString();return Function(`return ${n}`)()(e)}let r=new WeakMap;e.quickSort=function(e,t,i=0){let a=r.get(t);a===void 0&&(a=n(t),r.set(t,a)),a(e,t,i,e.length-1)}})),Cae=RY((e=>{var t=FX(),n=Sae(),r=IX().ArraySet,i=PX(),a=zX().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new d(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}for(var c=this.sourceRoot,l=e.bind(i),u=this._names,d=this._sources,f=this._sourceMapURL,p=0,m=s.length;p<m;p++){var h=s[p],g=h.source===null?null:d.at(h.source);g!==null&&(g=t.computeSourceURL(c,g,f)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let l=t.compareByGeneratedPositionsDeflatedNoLine;function u(e,t){let n=e.length,r=e.length-t;if(!(r<=1))if(r==2){let n=e[t],r=e[t+1];l(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(l(t,r)<=0)break;e[n-1]=r,e[n]=t}else a(e,l,t)}s.prototype._parseMappings=function(e,n){var r=1,o=0,s=0,l=0,d=0,f=0,p=e.length,m=0,h={},g=[],_=[],v,y,b,x;let S=0;for(;m<p;)if(e.charAt(m)===`;`)r++,m++,o=0,u(_,S),S=_.length;else if(e.charAt(m)===`,`)m++;else{for(v=new c,v.generatedLine=r,b=m;b<p&&!this._charIsMappingSeparator(e,b);b++);for(e.slice(m,b),y=[];m<b;)i.decode(e,m,h),x=h.value,m=h.rest,y.push(x);if(y.length===2)throw Error(`Found a source, but no line and column`);if(y.length===3)throw Error(`Found a source and line, but no column`);if(v.generatedColumn=o+y[0],o=v.generatedColumn,y.length>1&&(v.source=d+y[1],d+=y[1],v.originalLine=s+y[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+y[3],l=v.originalColumn,y.length>4&&(v.name=f+y[4],f+=y[4])),_.push(v),typeof v.originalLine==`number`){let e=v.source;for(;g.length<=e;)g.push(null);g[e]===null&&(g[e]=[]),g[e].push(v)}}u(_,S),this.__generatedMappings=_;for(var C=0;C<g.length;C++)g[C]!=null&&a(g[C],t.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function d(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}d.prototype=Object.create(o.prototype),d.prototype.constructor=o,d.prototype._version=3,Object.defineProperty(d.prototype,`sources`,{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||r===``)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},d.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l!==null&&(l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=d})),BX=RY((e=>{var t=RX().SourceMapGenerator,n=FX(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o})),VX=iae(RY((e=>{e.SourceMapGenerator=RX().SourceMapGenerator,e.SourceMapConsumer=Cae().SourceMapConsumer,e.SourceNode=BX().SourceNode}))());const HX=xX,UX=VX.SourceMapConsumer,WX=VX.SourceMapGenerator,GX=Object.prototype.hasOwnProperty;function KX(){return`
|
|
@@ -1056,7 +1056,7 @@ Having many files run with the default project is known to cause performance iss
|
|
|
1056
1056
|
|
|
1057
1057
|
See https://tseslint.com/allowdefaultproject-glob-too-wide
|
|
1058
1058
|
`;function t(t){if(t?.length)for(let n of t){if(n===`*`)throw Error(`allowDefaultProject contains the overly wide '*'.${e.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`);if(n.includes(`**`))throw Error(`allowDefaultProject glob '${n}' contains a disallowed '**'.${e.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`)}}})),x8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.addCandidateTSConfigRootDir=n,e.clearCandidateTSConfigRootDirs=r,e.getInferredTSConfigRootDir=i;let t=new Set;function n(e){t.add(e)}function r(){t.clear()}function i(){let e=[...t];switch(e.length){case 0:return process.cwd();case 1:return e[0];default:throw Error([`No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present:`,...e.map(e=>` - ${e}`),`You'll need to explicitly set tsconfigRootDir in your parser options.`,`See: https://tseslint.com/parser-tsconfigrootdir`].join(`
|
|
1059
|
-
`))}}})),FSe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExpiringCache=e.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=void 0,e.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=30;let t=[0,0];e.ExpiringCache=class{#e;#t=new Map;constructor(e){this.#e=e}clear(){this.#t.clear()}get(e){let t=this.#t.get(e);if(t?.value!=null){if(this.#e===`Infinity`||process.hrtime(t.lastSeen)[0]<this.#e)return t.value;this.#t.delete(e)}}set(e,n){return this.#t.set(e,{lastSeen:this.#e===`Infinity`?t:process.hrtime(),value:n}),this}}})),ISe=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!==`default`&&n(i,t,a[o]);return r(i,t),i}})(),a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.getProjectConfigFiles=u;let o=a(y2()),s=i(t(`node:fs`)),c=i(t(`node:path`)),l=(0,o.default)(`typescript-eslint:typescript-estree:parseSettings:getProjectConfigFiles`);function u(e,t){if(t!==!0)return t==null||t===!1?null:Array.isArray(t)?t:[t];l(`Looking for tsconfig.json at or above file: %s`,e.filePath);let n=c.dirname(e.filePath),r=[n];do{l(`Checking tsconfig.json path: %s`,n);let t=c.join(n,`tsconfig.json`),i=e.tsconfigMatchCache.get(n)??(s.existsSync(t)&&t);if(i){for(let t of r)e.tsconfigMatchCache.set(t,i);return[i]}n=c.dirname(n),r.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)}})),LSe=a((e=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.inferSingleRun=i;let r=n(t(`node:path`));function i(e){return e?.extraFileExtensions?.length&&e.project||e?.project==null&&!e?.projectService||e.programs!=null||process.env.TSESTREE_SINGLE_RUN===`false`?!1:process.env.TSESTREE_SINGLE_RUN===`true`?!0:!e.disallowAutomaticSingleRunInference&&(process.env.CI===`true`||[`node_modules/.bin/eslint`,`node_modules/eslint/bin/eslint.js`].some(e=>process.argv.length>1&&process.argv[1].endsWith(r.default.normalize(e))))?!process.argv.includes(`--fix`):!1}})),S8=a(((e,t)=>{let n=`[^\\\\/]`,r=`[^/]`,i=`(?:\\/|$)`,a=`(?:^|\\/)`,o=`\\.{1,2}${i}`,s={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:r,END_ANCHOR:i,DOTS_SLASH:o,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${a}${o})`,NO_DOT_SLASH:`(?!\\.{0,1}${i})`,NO_DOTS_SLASH:`(?!${o})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${r}*?`,START_ANCHOR:a,SEP:`/`},c={...s,SLASH_LITERAL:`[\\\\/]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`,SEP:`\\`};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?c:s}}})),C8=a((e=>{let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=S8();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),RSe=a(((e,t)=>{let n=C8(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=S8(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,ee=!1,j=!1,te=!1,M=!1,N=!1,ne=!1,P=!1,F=!1,I=!1,L=0,R,z,B={value:``,depth:0,isGlob:!1},re=()=>D>=x,ie=()=>E.charCodeAt(D+1),V=()=>(R=z,E.charCodeAt(++D));for(;D<x;){z=V();let e;if(z===a){ne=B.backslashes=!0,z=V(),z===u&&(N=!0);continue}if(N===!0||z===u){for(L++;re()!==!0&&(z=V());){if(z===a){ne=B.backslashes=!0,V();continue}if(z===u){L++;continue}if(N!==!0&&z===s&&(z=V())===s){if(A=B.isBrace=!0,j=B.isGlob=!0,I=!0,S===!0)continue;break}if(N!==!0&&z===o){if(A=B.isBrace=!0,j=B.isGlob=!0,I=!0,S===!0)continue;break}if(z===h&&(L--,L===0)){N=!1,A=B.isBrace=!0,I=!0;break}}if(S===!0)continue;break}if(z===l){if(C.push(D),w.push(B),B={value:``,depth:0,isGlob:!1},I===!0)continue;if(R===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(z===p||z===i||z===r||z===m||z===c)&&ie()===d){if(j=B.isGlob=!0,te=B.isExtglob=!0,I=!0,z===c&&D===O&&(F=!0),S===!0){for(;re()!==!0&&(z=V());){if(z===a){ne=B.backslashes=!0,z=V();continue}if(z===g){j=B.isGlob=!0,I=!0;break}}continue}break}if(z===r){if(R===r&&(M=B.isGlobstar=!0),j=B.isGlob=!0,I=!0,S===!0)continue;break}if(z===m){if(j=B.isGlob=!0,I=!0,S===!0)continue;break}if(z===f){for(;re()!==!0&&(e=V());){if(e===a){ne=B.backslashes=!0,V();continue}if(e===_){ee=B.isBracket=!0,j=B.isGlob=!0,I=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&z===c&&D===O){P=B.negated=!0,O++;continue}if(b.noparen!==!0&&z===d){if(j=B.isGlob=!0,S===!0){for(;re()!==!0&&(z=V());){if(z===d){ne=B.backslashes=!0,z=V();continue}if(z===g){I=!0;break}}continue}break}if(j===!0){if(I=!0,S===!0)continue;break}}b.noext===!0&&(te=!1,j=!1);let ae=E,oe=``,se=``;O>0&&(oe=E.slice(0,O),E=E.slice(O),k-=O),ae&&j===!0&&k>0?(ae=E.slice(0,k),se=E.slice(k)):j===!0?(ae=``,se=E):ae=E,ae&&ae!==``&&ae!==`/`&&ae!==E&&v(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),b.unescape===!0&&(se&&=n.removeBackslashes(se),ae&&ne===!0&&(ae=n.removeBackslashes(ae)));let ce={prefix:oe,input:e,start:O,base:ae,glob:se,isBrace:A,isBracket:ee,isGlob:j,isExtglob:te,isGlobstar:M,negated:P,negatedExtglob:F};if(b.tokens===!0&&(ce.maxDepth=0,v(z)||w.push(B),ce.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=oe):w[n].value=a,y(w[n]),ce.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),ce.maxDepth+=w[w.length-1].depth)}ce.slashes=C,ce.parts=T}return ce}})),zSe=a(((e,t)=>{let n=S8(),r=C8(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(!(!a||r!==a.repeat(r.length)||i!==a.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0){a=!1;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return`${n.length===1?r.escapeRegex(n[0]):`[${n.map(e=>r.escapeRegex(e)).join(``)}]`}*`},_=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},v=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};for(let e of i){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(_(e)>r)return{risky:!0}}return{risky:!1}},y=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d={...t},f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=n.globChars(d.windows),b=n.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:ee,START_ANCHOR:j}=_,te=e=>`(${g}(?:(?!${j}${e.dot?T:x}).)*?)`,M=d.dot?``:E,N=d.dot?k:A,ne=d.bash===!0?te(d):ee;d.capture&&(ne=`(${ne})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let P={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,P),p=e.length;let F=[],I=[],L=[],R=m,z,B=()=>P.index===p-1,re=P.peek=(t=1)=>e[P.index+t],ie=P.advance=()=>e[++P.index]||``,V=()=>e.slice(P.index+1),ae=(e=``,t=0)=>{P.consumed+=e,P.index+=t},oe=e=>{P.output+=e.output==null?e.value:e.output,ae(e.value)},se=()=>{let e=1;for(;re()===`!`&&(re(2)!==`(`||re(3)===`?`);)ie(),P.start++,e++;return e%2==0?!1:(P.negated=!0,P.start++,!0)},ce=e=>{P[e]++,L.push(e)},le=e=>{P[e]--,L.pop()},ue=e=>{if(R.type===`globstar`){let t=P.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||F.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(P.output=P.output.slice(0,-R.output.length),R.type=`star`,R.value=`*`,R.output=ne,P.output+=R.output)}if(F.length&&e.type!==`paren`&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&oe(e),R&&R.type===`text`&&e.type===`text`){R.output=(R.output||R.value)+e.value,R.value+=e.value;return}e.prev=R,h.push(e),R=e},de=(e,t)=>{let n={...b[t],conditions:1,inner:``};n.prev=R,n.parens=P.parens,n.output=P.output,n.startIndex=P.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;ce(`parens`),ue({type:e,value:t,output:P.output?``:w}),ue({type:`paren`,extglob:!0,value:ie(),output:r}),F.push(n)},fe=n=>{let i=e.slice(n.startIndex,P.index+1),a=v(e.slice(n.startIndex+2,P.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:w)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;P.output=n.output+t.output,P.backtrack=!0,ue({type:`paren`,extglob:!0,value:z,output:``}),le(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=ne;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=te(d)),(e!==ne||B()||/^\)+$/.test(V()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=V())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${y(s,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(P.negatedExtglob=!0)}ue({type:`paren`,extglob:!0,value:z,output:o}),le(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?N+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?ne:``):ne:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(P.output=e,P):(P.output=r.wrapOutput(i,P,t),P)}for(;!B();){if(z=ie(),z===`\0`)continue;if(z===`\\`){let e=re();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){z+=`\\`,ue({type:`text`,value:z});continue}let t=/^\\+/.exec(V()),n=0;if(t&&t[0].length>2&&(n=t[0].length,P.index+=n,n%2!=0&&(z+=`\\`)),d.unescape===!0?z=ie():z+=ie(),P.brackets===0){ue({type:`text`,value:z});continue}}if(P.brackets>0&&(z!==`]`||R.value===`[`||R.value===`[^`)){if(d.posix!==!1&&z===`:`){let e=R.value.slice(1);if(e.includes(`[`)&&(R.posix=!0,e.includes(`:`))){let e=R.value.lastIndexOf(`[`),t=R.value.slice(0,e),n=a[R.value.slice(e+2)];if(n){R.value=t+n,P.backtrack=!0,ie(),!m.output&&h.indexOf(R)===1&&(m.output=w);continue}}}(z===`[`&&re()!==`:`||z===`-`&&re()===`]`)&&(z=`\\${z}`),z===`]`&&(R.value===`[`||R.value===`[^`)&&(z=`\\${z}`),d.posix===!0&&z===`!`&&R.value===`[`&&(z=`^`),R.value+=z,oe({value:z});continue}if(P.quotes===1&&z!==`"`){z=r.escapeRegex(z),R.value+=z,oe({value:z});continue}if(z===`"`){P.quotes=P.quotes===1?0:1,d.keepQuotes===!0&&ue({type:`text`,value:z});continue}if(z===`(`){ce(`parens`),ue({type:`paren`,value:z});continue}if(z===`)`){if(P.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=F[F.length-1];if(e&&P.parens===e.parens+1){fe(F.pop());continue}ue({type:`paren`,value:z,output:P.parens?`)`:`\\)`}),le(`parens`);continue}if(z===`[`){if(d.nobracket===!0||!V().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));z=`\\${z}`}else ce(`brackets`);ue({type:`bracket`,value:z});continue}if(z===`]`){if(d.nobracket===!0||R&&R.type===`bracket`&&R.value.length===1){ue({type:`text`,value:z,output:`\\${z}`});continue}if(P.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));ue({type:`text`,value:z,output:`\\${z}`});continue}le(`brackets`);let e=R.value.slice(1);if(R.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(z=`/${z}`),R.value+=z,oe({value:z}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(R.value);if(P.output=P.output.slice(0,-R.value.length),d.literalBrackets===!0){P.output+=t,R.value=t;continue}R.value=`(${g}${t}|${R.value})`,P.output+=R.value;continue}if(z===`{`&&d.nobrace!==!0){ce(`braces`);let e={type:`brace`,value:z,output:`(`,outputIndex:P.output.length,tokensIndex:P.tokens.length};I.push(e),ue(e);continue}if(z===`}`){let e=I[I.length-1];if(d.nobrace===!0||!e){ue({type:`text`,value:z,output:z});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),P.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=P.output.slice(0,e.outputIndex),r=P.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,z=t=`\\}`,P.output=n;for(let e of r)P.output+=e.output||e.value}ue({type:`brace`,value:z,output:t}),le(`braces`),I.pop();continue}if(z===`|`){F.length>0&&F[F.length-1].conditions++,ue({type:`text`,value:z});continue}if(z===`,`){let e=z,t=I[I.length-1];t&&L[L.length-1]===`braces`&&(t.comma=!0,e=`|`),ue({type:`comma`,value:z,output:e});continue}if(z===`/`){if(R.type===`dot`&&P.index===P.start+1){P.start=P.index+1,P.consumed=``,P.output=``,h.pop(),R=m;continue}ue({type:`slash`,value:z,output:C});continue}if(z===`.`){if(P.braces>0&&R.type===`dot`){R.value===`.`&&(R.output=x);let e=I[I.length-1];R.type=`dots`,R.output+=z,R.value+=z,e.dots=!0;continue}if(P.braces+P.parens===0&&R.type!==`bos`&&R.type!==`slash`){ue({type:`text`,value:z,output:x});continue}ue({type:`dot`,value:z,output:x});continue}if(z===`?`){if(!(R&&R.value===`(`)&&d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`qmark`,z);continue}if(R&&R.type===`paren`){let e=re(),t=z;(R.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(V()))&&(t=`\\${z}`),ue({type:`text`,value:z,output:t});continue}if(d.dot!==!0&&(R.type===`slash`||R.type===`bos`)){ue({type:`qmark`,value:z,output:A});continue}ue({type:`qmark`,value:z,output:k});continue}if(z===`!`){if(d.noextglob!==!0&&re()===`(`&&(re(2)!==`?`||!/[!=<:]/.test(re(3)))){de(`negate`,z);continue}if(d.nonegate!==!0&&P.index===0){se();continue}}if(z===`+`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`plus`,z);continue}if(R&&R.value===`(`||d.regex===!1){ue({type:`plus`,value:z,output:S});continue}if(R&&(R.type===`bracket`||R.type===`paren`||R.type===`brace`)||P.parens>0){ue({type:`plus`,value:z});continue}ue({type:`plus`,value:S});continue}if(z===`@`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){ue({type:`at`,extglob:!0,value:z,output:``});continue}ue({type:`text`,value:z});continue}if(z!==`*`){(z===`$`||z===`^`)&&(z=`\\${z}`);let e=o.exec(V());e&&(z+=e[0],P.index+=e[0].length),ue({type:`text`,value:z});continue}if(R&&(R.type===`globstar`||R.star===!0)){R.type=`star`,R.star=!0,R.value+=z,R.output=ne,P.backtrack=!0,P.globstar=!0,ae(z);continue}let t=V();if(d.noextglob!==!0&&/^\([^?]/.test(t)){de(`star`,z);continue}if(R.type===`star`){if(d.noglobstar===!0){ae(z);continue}let n=R.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){ue({type:`star`,value:z,output:``});continue}let o=P.braces>0&&(n.type===`comma`||n.type===`brace`),s=F.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){ue({type:`star`,value:z,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[P.index+4];if(n&&n!==`/`)break;t=t.slice(3),ae(`/**`,3)}if(n.type===`bos`&&B()){R.type=`globstar`,R.value+=z,R.output=te(d),P.output=R.output,P.globstar=!0,ae(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&B()){P.output=P.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=te(d)+(d.strictSlashes?`)`:`|$)`),R.value+=z,P.globstar=!0,P.output+=n.output+R.output,ae(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;P.output=P.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=`${te(d)}${C}|${C}${e})`,R.value+=z,P.output+=n.output+R.output,P.globstar=!0,ae(z+ie()),ue({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){R.type=`globstar`,R.value+=z,R.output=`(?:^|${C}|${te(d)}${C})`,P.output=R.output,P.globstar=!0,ae(z+ie()),ue({type:`slash`,value:`/`,output:``});continue}P.output=P.output.slice(0,-R.output.length),R.type=`globstar`,R.output=te(d),R.value+=z,P.output+=R.output,P.globstar=!0,ae(z);continue}let n={type:`star`,value:z,output:ne};if(d.bash===!0){n.output=`.*?`,(R.type===`bos`||R.type===`slash`)&&(n.output=M+n.output),ue(n);continue}if(R&&(R.type===`bracket`||R.type===`paren`)&&d.regex===!0){n.output=z,ue(n);continue}(P.index===P.start||R.type===`slash`||R.type===`dot`)&&(R.type===`dot`?(P.output+=D,R.output+=D):d.dot===!0?(P.output+=O,R.output+=O):(P.output+=M,R.output+=M),re()!==`*`&&(P.output+=w,R.output+=w)),ue(n)}for(;P.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));P.output=r.escapeLast(P.output,`[`),le(`brackets`)}for(;P.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));P.output=r.escapeLast(P.output,`(`),le(`parens`)}for(;P.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));P.output=r.escapeLast(P.output,`{`),le(`braces`)}if(d.strictSlashes!==!0&&(R.type===`star`||R.type===`bracket`)&&ue({type:`maybe_slash`,value:``,output:`${C}?`}),P.backtrack===!0){P.output=``;for(let e of P.tokens)P.output+=e.output==null?e.value:e.output,e.suffix&&(P.output+=e.suffix)}return P};y.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=y})),BSe=a(((e,t)=>{let n=RSe(),r=zSe(),i=C8(),a=S8(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,{...t,fastpaths:!1}),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s})),VSe=a(((e,t)=>{let n=BSe(),r=C8();function i(e,t,i=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:r.isWindows()}),n(e,t,i)}Object.assign(i,n),t.exports=i})),HSe=a((e=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));let u=l(t(`path`)),d=l(t(`fs`));function f(e){let t=(0,u.normalize)(e);return t.length>1&&t[t.length-1]===u.sep&&(t=t.substring(0,t.length-1)),t}let p=/[\\/]/g;function m(e,t){return e.replace(p,t)}let h=/^[a-z]:[\\/]$/i;function g(e){return e===`/`||h.test(e)}function _(e,t){let{resolvePaths:n,normalizePath:r,pathSeparator:i}=t,a=process.platform===`win32`&&e.includes(`/`)||e.startsWith(`.`);return n&&(e=(0,u.resolve)(e)),(r||a)&&(e=f(e)),e===`.`?``:m(e[e.length-1]===i?e:e+i,i)}function v(e,t){return t+e}function y(e,t){return function(n,r){return r.startsWith(e)?r.slice(e.length)+n:m((0,u.relative)(e,r),t.pathSeparator)+t.pathSeparator+n}}function b(e){return e}function x(e,t,n){return t+e+n}function S(e,t){let{relativePaths:n,includeBasePath:r}=t;return n&&e?y(e,t):r?v:b}function C(e){return function(t,n){n.push(t.substring(e.length)||`.`)}}function w(e){return function(t,n,r){let i=t.substring(e.length)||`.`;r.every(e=>e(i,!0))&&n.push(i)}}let T=(e,t)=>{t.push(e||`.`)},E=(e,t,n)=>{let r=e||`.`;n.every(e=>e(r,!0))&&t.push(r)},D=()=>{};function O(e,t){let{includeDirs:n,filters:r,relativePaths:i}=t;return n?i?r&&r.length?w(e):C(e):r&&r.length?E:T:D}let k=(e,t,n,r)=>{r.every(t=>t(e,!1))&&n.files++},A=(e,t,n,r)=>{r.every(t=>t(e,!1))&&t.push(e)},ee=(e,t,n,r)=>{n.files++},j=(e,t)=>{t.push(e)},te=()=>{};function M(e){let{excludeFiles:t,filters:n,onlyCounts:r}=e;return t?te:n&&n.length?r?k:A:r?ee:j}let N=e=>e,ne=()=>[``].slice(0,0);function P(e){return e.group?ne:N}let F=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},I=()=>{};function L(e){return e.group?F:I}let R=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue(),i.realpath(e,(o,s)=>{if(o)return r.dequeue(a?null:o,t);i.stat(s,(i,o)=>{if(i)return r.dequeue(a?null:i,t);if(o.isDirectory()&&re(e,s,t))return r.dequeue(null,t);n(o,s),r.dequeue(null,t)})})},z=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue();try{let r=i.realpathSync(e),a=i.statSync(r);if(a.isDirectory()&&re(e,r,t))return;n(a,r)}catch(e){if(!a)throw e}};function B(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?z:R}function re(e,t,n){if(n.options.useRealPaths)return ie(t,n);let r=(0,u.dirname)(e),i=1;for(;r!==n.root&&i<2;){let e=n.symlinks.get(r);e&&(e===t||e.startsWith(t)||t.startsWith(e))?i++:r=(0,u.dirname)(r)}return n.symlinks.set(e,t),i>1}function ie(e,t){return t.visited.includes(e+t.options.pathSeparator)}let V=e=>e.counts,ae=e=>e.groups,oe=e=>e.paths,se=e=>e.paths.slice(0,e.options.maxFiles),ce=(e,t,n)=>(fe(t,n,e.counts,e.options.suppressErrors),null),le=(e,t,n)=>(fe(t,n,e.paths,e.options.suppressErrors),null),ue=(e,t,n)=>(fe(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),de=(e,t,n)=>(fe(t,n,e.groups,e.options.suppressErrors),null);function fe(e,t,n,r){t(e&&!r?e:null,n)}function pe(e,t){let{onlyCounts:n,group:r,maxFiles:i}=e;return n?t?V:ce:r?t?ae:de:i?t?se:ue:t?oe:le}let me={withFileTypes:!0},he=(e,t,n,r,i)=>{if(e.queue.enqueue(),r<0)return e.queue.dequeue(null,e);let{fs:a}=e;e.visited.push(t),e.counts.directories++,a.readdir(t||`.`,me,(t,a=[])=>{i(a,n,r),e.queue.dequeue(e.options.suppressErrors?null:t,e)})},ge=(e,t,n,r,i)=>{let{fs:a}=e;if(r<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=a.readdirSync(t||`.`,me)}catch(t){if(!e.options.suppressErrors)throw t}i(o,n,r)};function _e(e){return e?ge:he}var ve=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},ye=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},be=class{aborted=!1;abort(){this.aborted=!0}},xe=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=pe(t,this.isSynchronous),this.root=_(e,t),this.state={root:g(this.root)?this.root:this.root.slice(0,-1),paths:[``].slice(0,0),groups:[],counts:new ye,options:t,queue:new ve((e,t)=>this.callbackInvoker(t,e,n)),symlinks:new Map,visited:[``].slice(0,0),controller:new be,fs:t.fs||d},this.joinPath=S(this.root,t),this.pushDirectory=O(this.root,t),this.pushFile=M(t),this.getArray=P(t),this.groupFiles=L(t),this.resolveSymlink=B(t,this.isSynchronous),this.walkDirectory=_e(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:r,options:{filters:i,resolveSymlinks:a,excludeSymlinks:o,exclude:s,maxFiles:c,signal:l,useRealPaths:d,pathSeparator:f},controller:p}=this.state;if(p.aborted||l&&l.aborted||c&&r.length>c)return;let m=this.getArray(this.state.paths);for(let c=0;c<e.length;++c){let l=e[c];if(l.isFile()||l.isSymbolicLink()&&!a&&!o){let e=this.joinPath(l.name,t);this.pushFile(e,m,this.state.counts,i)}else if(l.isDirectory()){let e=x(l.name,t,this.state.options.pathSeparator);if(s&&s(l.name,e))continue;this.pushDirectory(e,r,i),this.walkDirectory(this.state,e,e,n-1,this.walk)}else if(this.resolveSymlink&&l.isSymbolicLink()){let e=v(l.name,t);this.resolveSymlink(e,this.state,(t,r)=>{if(t.isDirectory()){if(r=_(r,this.state.options),s&&s(l.name,d?r:e+f))return;this.walkDirectory(this.state,r,d?r:e+f,n-1,this.walk)}else{r=d?r:e;let t=(0,u.basename)(r),n=_((0,u.dirname)(r),this.state.options);r=this.joinPath(t,n),this.pushFile(r,m,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,m)}};function H(e,t){return new Promise((n,r)=>{Se(e,t,(e,t)=>{if(e)return r(e);n(t)})})}function Se(e,t,n){new xe(e,t,n).start()}function Ce(e,t){return new xe(e,t).start()}var we=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return H(this.root,this.options)}withCallback(e){Se(this.root,this.options,e)}sync(){return Ce(this.root,this.options)}};let Te=null;try{t.resolve(`picomatch`),Te=VSe()}catch{}e.fdir=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:u.sep,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new we(e||`.`,this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new we(e||`.`,this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Te;if(!n)throw Error(`Please specify a glob function to use glob matching.`);var r=this.globCache[e.join(`\0`)];return r||(r=n(e,...t),this.globCache[e.join(`\0`)]=r),this.options.filters.push(e=>r(e)),this}}})),w8=a((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));let u=t(`fs`),d=t(`path`),f=t(`url`),p=HSe(),m=VSe();m=l(m);let h=Array.isArray,g=/\\/g,_=process.platform===`win32`,v=/^(\/?\.\.)+$/;function y(e,t={}){let n=e.length,r=Array(n),i=Array(n),a,o;for(a=0;a<n;a++){let n=T(e[a]);r[a]=n;let s=n.length,c=Array(s);for(o=0;o<s;o++)c[o]=(0,m.default)(n[o],t);i[a]=c}return e=>{let s=e.split(`/`);if(s[0]===`..`&&v.test(e))return!0;for(a=0;a<n;a++){let e=r[a],n=i[a],c=s.length,l=Math.min(c,e.length);for(o=0;o<l;){let r=e[o];if(r.includes(`/`))return!0;if(!n[o](s[o]))break;if(!t.noglobstar&&r===`**`)return!0;o++}if(o===c)return!0}return!1}}let b=/^[A-Z]:\/$/i,x=_?e=>b.test(e):e=>e===`/`;function S(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let t=e.length+ +!x(e);return(e,n)=>e.slice(t,n?-1:void 0)||`.`}let r=t.slice(e.length+1);return r?(e,t)=>{if(e===`.`)return r;let n=`${r}/${e}`;return t?n.slice(0,-1):n}:(e,t)=>t&&e!==`.`?e.slice(0,-1):e}return n?t=>d.posix.relative(e,t)||`.`:n=>d.posix.relative(e,`${t}/${n}`)||`.`}function C(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return e=>`${n}/${e}`}return n=>{let r=d.posix.relative(e,`${t}/${n}`);return n[n.length-1]===`/`&&r!==``?`${r}/`:r||`.`}}let w={parts:!0};function T(e){let t=m.default.scan(e,w);return t.parts?.length?t.parts:[e]}let E=/\\(?![()[\]{}!+@])/g;function D(e){return j(e)}function O(e){return te(e).replace(E,`/`)}let k=_?O:D,A=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,ee=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,j=e=>e.replace(A,`\\$&`),te=e=>e.replace(ee,`\\$&`),M=_?te:j;function N(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=m.default.scan(e);return n.isGlob||n.negated}function ne(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString(`es`)}]`,...e)}function P(e){return typeof e==`string`?[e]:e??[]}let F=/^(\/?\.\.)+/,I=/\\(?=[()[\]{}!*+?@|])/g;function L(e,t,n,r){let i=t.cwd,a=e;e[e.length-1]===`/`&&(a=e.slice(0,-1)),a[a.length-1]!==`*`&&t.expandDirectories&&(a+=`/**`);let o=M(i);a=(0,d.isAbsolute)(a.replace(I,``))?d.posix.relative(o,a):d.posix.normalize(a);let s=F.exec(a)?.[0],c=T(a);if(s){let e=(s.length+1)/3,t=0,r=o.split(`/`);for(;t<e&&c[t+e]===r[r.length+t-e];)a=a.slice(0,(e-t-1)*3)+a.slice((e-t)*3+c[t+e].length+1)||`.`,t++;let l=d.posix.join(i,s.slice(t*3));l[0]!==`.`&&n.root.length>l.length&&(n.root=l,n.depthOffset=-e+t)}if(!r&&n.depthOffset>=0){n.commonPath??=c;let e=[],t=Math.min(n.commonPath.length,c.length);for(let r=0;r<t;r++){let t=c[r];if(t===`**`&&!c[r+1]){e.pop();break}if(r===c.length-1||t!==n.commonPath[r]||N(t))break;e.push(t)}n.depthOffset=e.length,n.commonPath=e,n.root=e.length>0?d.posix.join(i,...e):i}return a}function R(e,t,n){let r=[],i=[];for(let t of e.ignore)t&&(t[0]!==`!`||t[1]===`(`)&&i.push(L(t,e,n,!0));for(let a of t)a&&(a[0]!==`!`||a[1]===`(`?r.push(L(a,e,n,!1)):(a[1]!==`!`||a[2]===`(`)&&i.push(L(a.slice(1),e,n,!0)));return{match:r,ignore:i}}function z(e,t){let n=e.cwd,r={root:n,depthOffset:0},i=R(e,t,r);e.debug&&ne(`internal processing patterns:`,i);let{absolute:a,caseSensitiveMatch:o,debug:s,dot:c,followSymbolicLinks:l,onlyDirectories:u}=e,d=r.root.replace(g,``),f={dot:c,nobrace:e.braceExpansion===!1,nocase:!o,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},h=(0,m.default)(i.match,f),_=(0,m.default)(i.ignore,f),v=y(i.match,f),b=S(n,d,a),x=a?b:S(n,d,!0),w=(e,t)=>{let n=x(t,!0);return n!==`.`&&!v(n)||_(n)},T;e.deep!==void 0&&(T=Math.round(e.deep-r.depthOffset));let E=new p.fdir({filters:[s?(e,t)=>{let n=b(e,t),r=h(n)&&!_(n);return r&&ne(`matched ${n}`),r}:(e,t)=>{let n=b(e,t);return h(n)&&!_(n)}],exclude:s?(e,t)=>{let n=w(e,t);return ne(`${n?`skipped`:`crawling`} ${t}`),n}:w,fs:e.fs,pathSeparator:`/`,relativePaths:!a,resolvePaths:a,includeBasePath:a,resolveSymlinks:l,excludeSymlinks:!l,excludeFiles:u,includeDirs:u||!e.onlyFiles,maxDepth:T,signal:e.signal}).crawl(d);return e.debug&&ne(`internal properties:`,{...r,root:d}),[E,n!==d&&!a&&C(n,d)]}function B(e,t){if(t)for(let n=e.length-1;n>=0;n--)e[n]=t(e[n]);return e}let re={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function ie(e){let t={...re,...e};return t.cwd=(t.cwd instanceof URL?(0,f.fileURLToPath)(t.cwd):(0,d.resolve)(t.cwd)).replace(g,`/`),t.ignore=P(t.ignore),t.fs&&={readdir:t.fs.readdir||u.readdir,readdirSync:t.fs.readdirSync||u.readdirSync,realpath:t.fs.realpath||u.realpath,realpathSync:t.fs.realpathSync||u.realpathSync,stat:t.fs.stat||u.stat,statSync:t.fs.statSync||u.statSync},t.debug&&ne(`globbing with options:`,t),t}function V(e,t={}){if(e&&t?.patterns)throw Error(`Cannot pass patterns as both an argument and an option`);let n=h(e)||typeof e==`string`,r=P((n?e:e.patterns)??`**/*`),i=ie(n?t:e);return r.length>0?z(i,r):[]}async function ae(e,t){let[n,r]=V(e,t);return n?B(await n.withPromise(),r):[]}function oe(e,t){let[n,r]=V(e,t);return n?B(n.sync(),r):[]}e.convertPathToPattern=k,e.escapePath=M,e.glob=ae,e.globSync=oe,e.isDynamicPattern=N})),USe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.clearGlobCache=c,e.resolveProjectList=l,e.clearGlobResolutionCache=d;let n=t(y2()),r=w8(),i=G6(),a=FSe(),o=(0,n.default)(`typescript-eslint:typescript-estree:parseSettings:resolveProjectList`),s=null;function c(){s?.clear()}function l(e){let t=[];if(e.project!=null)for(let n of e.project)typeof n==`string`&&t.push(n);if(t.length===0)return new Map;let n=(e.projectFolderIgnoreList??[`**/node_modules/**`]).filter(e=>typeof e==`string`),c=u({project:t,projectFolderIgnoreList:n,tsconfigRootDir:e.tsconfigRootDir});if(s==null)s=new a.ExpiringCache(e.singleRun?`Infinity`:e.cacheLifetime?.glob??a.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);else{let e=s.get(c);if(e)return e}let l=t.filter(e=>!(0,r.isDynamicPattern)(e)),d=t.filter(e=>(0,r.isDynamicPattern)(e)),f=[];d.length>0&&(f=d.flatMap(t=>(0,r.globSync)(t,{cwd:e.tsconfigRootDir,expandDirectories:!1,ignore:n})));let p=new Map([...l,...f].map(t=>[(0,i.getCanonicalFileName)((0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)),(0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)]));return o(`parserOptions.project (excluding ignored) matched projects: %s`,p),s.set(c,p),p}function u({project:e,projectFolderIgnoreList:t,tsconfigRootDir:n}){let r={tsconfigRootDir:n,project:e,projectFolderIgnoreList:[...t].sort()};return(0,i.createHash)(JSON.stringify(r))}function d(){s?.clear(),s=null}})),WSe=a(((e,t)=>{t.exports={name:`@typescript-eslint/typescript-estree`,version:`8.59.1`,description:`A parser that converts TypeScript source code into an ESTree compatible form`,files:[`dist`,`!**/*.tsbuildinfo`,`README.md`,`LICENSE`],type:`commonjs`,exports:{".":{types:`./dist/index.d.ts`,default:`./dist/index.js`},"./package.json":`./package.json`,"./use-at-your-own-risk":{types:`./dist/use-at-your-own-risk.d.ts`,default:`./dist/use-at-your-own-risk.js`}},types:`./dist/index.d.ts`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`},repository:{type:`git`,url:`https://github.com/typescript-eslint/typescript-eslint.git`,directory:`packages/typescript-estree`},bugs:{url:`https://github.com/typescript-eslint/typescript-eslint/issues`},homepage:`https://typescript-eslint.io/packages/typescript-estree`,license:`MIT`,keywords:[`ast`,`estree`,`ecmascript`,`javascript`,`typescript`,`parser`,`syntax`],dependencies:{debug:`^4.4.3`,minimatch:`^10.2.2`,semver:`^7.7.3`,tinyglobby:`^0.2.15`,"ts-api-utils":`^2.5.0`,"@typescript-eslint/project-service":`8.59.1`,"@typescript-eslint/tsconfig-utils":`8.59.1`,"@typescript-eslint/types":`8.59.1`,"@typescript-eslint/visitor-keys":`8.59.1`},devDependencies:{"@vitest/coverage-v8":`^4.0.18`,eslint:`^10.0.0`,glob:`^11.1.0`,rimraf:`^5.0.10`,typescript:`>=4.8.4 <6.1.0`,vitest:`^4.0.18`,yaml:`^2.8.2`},peerDependencies:{typescript:`>=4.8.4 <6.1.0`},funding:{type:`opencollective`,url:`https://opencollective.com/typescript-eslint`},nx:{name:`typescript-estree`,includedScripts:[`clean`],targets:{lint:{command:`eslint`}}},scripts:{build:`pnpm exec nx build`,clean:`rimraf dist/ coverage/`,format:`pnpm -w run format`,lint:`pnpm -w exec nx lint`,test:`pnpm -w exec nx test`,typecheck:`pnpm -w exec nx typecheck`}}})),GSe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.version=void 0,e.version=WSe().version})),KSe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.SUPPORTED_TYPESCRIPT_VERSIONS=void 0,e.warnAboutTSVersion=f;let a=i(u8()),o=r(U6()),s=GSe();e.SUPPORTED_TYPESCRIPT_VERSIONS=`>=4.8.4 <6.1.0`;let c=[],l=o.version,u=a.default.satisfies(l,[e.SUPPORTED_TYPESCRIPT_VERSIONS,...c].join(` || `)),d=!1;function f(t,n){if(!(u||d)){if(n||!(typeof process>`u`)&&process.stdout?.isTTY){let n=`=============`,r=[n,`
|
|
1059
|
+
`))}}})),FSe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExpiringCache=e.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=void 0,e.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=30;let t=[0,0];e.ExpiringCache=class{#e;#t=new Map;constructor(e){this.#e=e}clear(){this.#t.clear()}get(e){let t=this.#t.get(e);if(t?.value!=null){if(this.#e===`Infinity`||process.hrtime(t.lastSeen)[0]<this.#e)return t.value;this.#t.delete(e)}}set(e,n){return this.#t.set(e,{lastSeen:this.#e===`Infinity`?t:process.hrtime(),value:n}),this}}})),ISe=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!==`default`&&n(i,t,a[o]);return r(i,t),i}})(),a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.getProjectConfigFiles=u;let o=a(y2()),s=i(t(`node:fs`)),c=i(t(`node:path`)),l=(0,o.default)(`typescript-eslint:typescript-estree:parseSettings:getProjectConfigFiles`);function u(e,t){if(t!==!0)return t==null||t===!1?null:Array.isArray(t)?t:[t];l(`Looking for tsconfig.json at or above file: %s`,e.filePath);let n=c.dirname(e.filePath),r=[n];do{l(`Checking tsconfig.json path: %s`,n);let t=c.join(n,`tsconfig.json`),i=e.tsconfigMatchCache.get(n)??(s.existsSync(t)&&t);if(i){for(let t of r)e.tsconfigMatchCache.set(t,i);return[i]}n=c.dirname(n),r.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)}})),LSe=a((e=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.inferSingleRun=i;let r=n(t(`node:path`));function i(e){return e?.extraFileExtensions?.length&&e.project||e?.project==null&&!e?.projectService||e.programs!=null||process.env.TSESTREE_SINGLE_RUN===`false`?!1:process.env.TSESTREE_SINGLE_RUN===`true`?!0:!e.disallowAutomaticSingleRunInference&&(process.env.CI===`true`||[`node_modules/.bin/eslint`,`node_modules/eslint/bin/eslint.js`].some(e=>process.argv.length>1&&process.argv[1].endsWith(r.default.normalize(e))))?!process.argv.includes(`--fix`):!1}})),S8=a(((e,t)=>{let n=`[^\\\\/]`,r=`[^/]`,i=`(?:\\/|$)`,a=`(?:^|\\/)`,o=`\\.{1,2}${i}`,s={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:r,END_ANCHOR:i,DOTS_SLASH:o,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${a}${o})`,NO_DOT_SLASH:`(?!\\.{0,1}${i})`,NO_DOTS_SLASH:`(?!${o})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${r}*?`,START_ANCHOR:a,SEP:`/`},c={...s,SLASH_LITERAL:`[\\\\/]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`,SEP:`\\`};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?c:s}}})),C8=a((e=>{let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=S8();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),RSe=a(((e,t)=>{let n=C8(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=S8(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,ee=!1,j=!1,te=!1,M=!1,N=!1,ne=!1,P=!1,F=!1,I=!1,L=0,R,z,B={value:``,depth:0,isGlob:!1},re=()=>D>=x,ie=()=>E.charCodeAt(D+1),V=()=>(R=z,E.charCodeAt(++D));for(;D<x;){z=V();let e;if(z===a){ne=B.backslashes=!0,z=V(),z===u&&(N=!0);continue}if(N===!0||z===u){for(L++;re()!==!0&&(z=V());){if(z===a){ne=B.backslashes=!0,V();continue}if(z===u){L++;continue}if(N!==!0&&z===s&&(z=V())===s){if(A=B.isBrace=!0,j=B.isGlob=!0,I=!0,S===!0)continue;break}if(N!==!0&&z===o){if(A=B.isBrace=!0,j=B.isGlob=!0,I=!0,S===!0)continue;break}if(z===h&&(L--,L===0)){N=!1,A=B.isBrace=!0,I=!0;break}}if(S===!0)continue;break}if(z===l){if(C.push(D),w.push(B),B={value:``,depth:0,isGlob:!1},I===!0)continue;if(R===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(z===p||z===i||z===r||z===m||z===c)&&ie()===d){if(j=B.isGlob=!0,te=B.isExtglob=!0,I=!0,z===c&&D===O&&(F=!0),S===!0){for(;re()!==!0&&(z=V());){if(z===a){ne=B.backslashes=!0,z=V();continue}if(z===g){j=B.isGlob=!0,I=!0;break}}continue}break}if(z===r){if(R===r&&(M=B.isGlobstar=!0),j=B.isGlob=!0,I=!0,S===!0)continue;break}if(z===m){if(j=B.isGlob=!0,I=!0,S===!0)continue;break}if(z===f){for(;re()!==!0&&(e=V());){if(e===a){ne=B.backslashes=!0,V();continue}if(e===_){ee=B.isBracket=!0,j=B.isGlob=!0,I=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&z===c&&D===O){P=B.negated=!0,O++;continue}if(b.noparen!==!0&&z===d){if(j=B.isGlob=!0,S===!0){for(;re()!==!0&&(z=V());){if(z===d){ne=B.backslashes=!0,z=V();continue}if(z===g){I=!0;break}}continue}break}if(j===!0){if(I=!0,S===!0)continue;break}}b.noext===!0&&(te=!1,j=!1);let ae=E,oe=``,se=``;O>0&&(oe=E.slice(0,O),E=E.slice(O),k-=O),ae&&j===!0&&k>0?(ae=E.slice(0,k),se=E.slice(k)):j===!0?(ae=``,se=E):ae=E,ae&&ae!==``&&ae!==`/`&&ae!==E&&v(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),b.unescape===!0&&(se&&=n.removeBackslashes(se),ae&&ne===!0&&(ae=n.removeBackslashes(ae)));let ce={prefix:oe,input:e,start:O,base:ae,glob:se,isBrace:A,isBracket:ee,isGlob:j,isExtglob:te,isGlobstar:M,negated:P,negatedExtglob:F};if(b.tokens===!0&&(ce.maxDepth=0,v(z)||w.push(B),ce.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=oe):w[n].value=a,y(w[n]),ce.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),ce.maxDepth+=w[w.length-1].depth)}ce.slashes=C,ce.parts=T}return ce}})),zSe=a(((e,t)=>{let n=S8(),r=C8(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(!(!a||r!==a.repeat(r.length)||i!==a.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0){a=!1;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return`${n.length===1?r.escapeRegex(n[0]):`[${n.map(e=>r.escapeRegex(e)).join(``)}]`}*`},_=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},v=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};for(let e of i){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(_(e)>r)return{risky:!0}}return{risky:!1}},y=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d={...t},f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=n.globChars(d.windows),b=n.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:ee,START_ANCHOR:j}=_,te=e=>`(${g}(?:(?!${j}${e.dot?T:x}).)*?)`,M=d.dot?``:E,N=d.dot?k:A,ne=d.bash===!0?te(d):ee;d.capture&&(ne=`(${ne})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let P={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,P),p=e.length;let F=[],I=[],L=[],R=m,z,B=()=>P.index===p-1,re=P.peek=(t=1)=>e[P.index+t],ie=P.advance=()=>e[++P.index]||``,V=()=>e.slice(P.index+1),ae=(e=``,t=0)=>{P.consumed+=e,P.index+=t},oe=e=>{P.output+=e.output==null?e.value:e.output,ae(e.value)},se=()=>{let e=1;for(;re()===`!`&&(re(2)!==`(`||re(3)===`?`);)ie(),P.start++,e++;return e%2==0?!1:(P.negated=!0,P.start++,!0)},ce=e=>{P[e]++,L.push(e)},le=e=>{P[e]--,L.pop()},ue=e=>{if(R.type===`globstar`){let t=P.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||F.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(P.output=P.output.slice(0,-R.output.length),R.type=`star`,R.value=`*`,R.output=ne,P.output+=R.output)}if(F.length&&e.type!==`paren`&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&oe(e),R&&R.type===`text`&&e.type===`text`){R.output=(R.output||R.value)+e.value,R.value+=e.value;return}e.prev=R,h.push(e),R=e},de=(e,t)=>{let n={...b[t],conditions:1,inner:``};n.prev=R,n.parens=P.parens,n.output=P.output,n.startIndex=P.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;ce(`parens`),ue({type:e,value:t,output:P.output?``:w}),ue({type:`paren`,extglob:!0,value:ie(),output:r}),F.push(n)},fe=n=>{let i=e.slice(n.startIndex,P.index+1),a=v(e.slice(n.startIndex+2,P.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:w)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;P.output=n.output+t.output,P.backtrack=!0,ue({type:`paren`,extglob:!0,value:z,output:``}),le(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=ne;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=te(d)),(e!==ne||B()||/^\)+$/.test(V()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=V())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${y(s,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(P.negatedExtglob=!0)}ue({type:`paren`,extglob:!0,value:z,output:o}),le(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?N+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?ne:``):ne:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(P.output=e,P):(P.output=r.wrapOutput(i,P,t),P)}for(;!B();){if(z=ie(),z===`\0`)continue;if(z===`\\`){let e=re();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){z+=`\\`,ue({type:`text`,value:z});continue}let t=/^\\+/.exec(V()),n=0;if(t&&t[0].length>2&&(n=t[0].length,P.index+=n,n%2!=0&&(z+=`\\`)),d.unescape===!0?z=ie():z+=ie(),P.brackets===0){ue({type:`text`,value:z});continue}}if(P.brackets>0&&(z!==`]`||R.value===`[`||R.value===`[^`)){if(d.posix!==!1&&z===`:`){let e=R.value.slice(1);if(e.includes(`[`)&&(R.posix=!0,e.includes(`:`))){let e=R.value.lastIndexOf(`[`),t=R.value.slice(0,e),n=a[R.value.slice(e+2)];if(n){R.value=t+n,P.backtrack=!0,ie(),!m.output&&h.indexOf(R)===1&&(m.output=w);continue}}}(z===`[`&&re()!==`:`||z===`-`&&re()===`]`)&&(z=`\\${z}`),z===`]`&&(R.value===`[`||R.value===`[^`)&&(z=`\\${z}`),d.posix===!0&&z===`!`&&R.value===`[`&&(z=`^`),R.value+=z,oe({value:z});continue}if(P.quotes===1&&z!==`"`){z=r.escapeRegex(z),R.value+=z,oe({value:z});continue}if(z===`"`){P.quotes=P.quotes===1?0:1,d.keepQuotes===!0&&ue({type:`text`,value:z});continue}if(z===`(`){ce(`parens`),ue({type:`paren`,value:z});continue}if(z===`)`){if(P.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=F[F.length-1];if(e&&P.parens===e.parens+1){fe(F.pop());continue}ue({type:`paren`,value:z,output:P.parens?`)`:`\\)`}),le(`parens`);continue}if(z===`[`){if(d.nobracket===!0||!V().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));z=`\\${z}`}else ce(`brackets`);ue({type:`bracket`,value:z});continue}if(z===`]`){if(d.nobracket===!0||R&&R.type===`bracket`&&R.value.length===1){ue({type:`text`,value:z,output:`\\${z}`});continue}if(P.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));ue({type:`text`,value:z,output:`\\${z}`});continue}le(`brackets`);let e=R.value.slice(1);if(R.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(z=`/${z}`),R.value+=z,oe({value:z}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(R.value);if(P.output=P.output.slice(0,-R.value.length),d.literalBrackets===!0){P.output+=t,R.value=t;continue}R.value=`(${g}${t}|${R.value})`,P.output+=R.value;continue}if(z===`{`&&d.nobrace!==!0){ce(`braces`);let e={type:`brace`,value:z,output:`(`,outputIndex:P.output.length,tokensIndex:P.tokens.length};I.push(e),ue(e);continue}if(z===`}`){let e=I[I.length-1];if(d.nobrace===!0||!e){ue({type:`text`,value:z,output:z});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),P.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=P.output.slice(0,e.outputIndex),r=P.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,z=t=`\\}`,P.output=n;for(let e of r)P.output+=e.output||e.value}ue({type:`brace`,value:z,output:t}),le(`braces`),I.pop();continue}if(z===`|`){F.length>0&&F[F.length-1].conditions++,ue({type:`text`,value:z});continue}if(z===`,`){let e=z,t=I[I.length-1];t&&L[L.length-1]===`braces`&&(t.comma=!0,e=`|`),ue({type:`comma`,value:z,output:e});continue}if(z===`/`){if(R.type===`dot`&&P.index===P.start+1){P.start=P.index+1,P.consumed=``,P.output=``,h.pop(),R=m;continue}ue({type:`slash`,value:z,output:C});continue}if(z===`.`){if(P.braces>0&&R.type===`dot`){R.value===`.`&&(R.output=x);let e=I[I.length-1];R.type=`dots`,R.output+=z,R.value+=z,e.dots=!0;continue}if(P.braces+P.parens===0&&R.type!==`bos`&&R.type!==`slash`){ue({type:`text`,value:z,output:x});continue}ue({type:`dot`,value:z,output:x});continue}if(z===`?`){if(!(R&&R.value===`(`)&&d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`qmark`,z);continue}if(R&&R.type===`paren`){let e=re(),t=z;(R.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(V()))&&(t=`\\${z}`),ue({type:`text`,value:z,output:t});continue}if(d.dot!==!0&&(R.type===`slash`||R.type===`bos`)){ue({type:`qmark`,value:z,output:A});continue}ue({type:`qmark`,value:z,output:k});continue}if(z===`!`){if(d.noextglob!==!0&&re()===`(`&&(re(2)!==`?`||!/[!=<:]/.test(re(3)))){de(`negate`,z);continue}if(d.nonegate!==!0&&P.index===0){se();continue}}if(z===`+`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`plus`,z);continue}if(R&&R.value===`(`||d.regex===!1){ue({type:`plus`,value:z,output:S});continue}if(R&&(R.type===`bracket`||R.type===`paren`||R.type===`brace`)||P.parens>0){ue({type:`plus`,value:z});continue}ue({type:`plus`,value:S});continue}if(z===`@`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){ue({type:`at`,extglob:!0,value:z,output:``});continue}ue({type:`text`,value:z});continue}if(z!==`*`){(z===`$`||z===`^`)&&(z=`\\${z}`);let e=o.exec(V());e&&(z+=e[0],P.index+=e[0].length),ue({type:`text`,value:z});continue}if(R&&(R.type===`globstar`||R.star===!0)){R.type=`star`,R.star=!0,R.value+=z,R.output=ne,P.backtrack=!0,P.globstar=!0,ae(z);continue}let t=V();if(d.noextglob!==!0&&/^\([^?]/.test(t)){de(`star`,z);continue}if(R.type===`star`){if(d.noglobstar===!0){ae(z);continue}let n=R.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){ue({type:`star`,value:z,output:``});continue}let o=P.braces>0&&(n.type===`comma`||n.type===`brace`),s=F.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){ue({type:`star`,value:z,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[P.index+4];if(n&&n!==`/`)break;t=t.slice(3),ae(`/**`,3)}if(n.type===`bos`&&B()){R.type=`globstar`,R.value+=z,R.output=te(d),P.output=R.output,P.globstar=!0,ae(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&B()){P.output=P.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=te(d)+(d.strictSlashes?`)`:`|$)`),R.value+=z,P.globstar=!0,P.output+=n.output+R.output,ae(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;P.output=P.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=`${te(d)}${C}|${C}${e})`,R.value+=z,P.output+=n.output+R.output,P.globstar=!0,ae(z+ie()),ue({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){R.type=`globstar`,R.value+=z,R.output=`(?:^|${C}|${te(d)}${C})`,P.output=R.output,P.globstar=!0,ae(z+ie()),ue({type:`slash`,value:`/`,output:``});continue}P.output=P.output.slice(0,-R.output.length),R.type=`globstar`,R.output=te(d),R.value+=z,P.output+=R.output,P.globstar=!0,ae(z);continue}let n={type:`star`,value:z,output:ne};if(d.bash===!0){n.output=`.*?`,(R.type===`bos`||R.type===`slash`)&&(n.output=M+n.output),ue(n);continue}if(R&&(R.type===`bracket`||R.type===`paren`)&&d.regex===!0){n.output=z,ue(n);continue}(P.index===P.start||R.type===`slash`||R.type===`dot`)&&(R.type===`dot`?(P.output+=D,R.output+=D):d.dot===!0?(P.output+=O,R.output+=O):(P.output+=M,R.output+=M),re()!==`*`&&(P.output+=w,R.output+=w)),ue(n)}for(;P.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));P.output=r.escapeLast(P.output,`[`),le(`brackets`)}for(;P.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));P.output=r.escapeLast(P.output,`(`),le(`parens`)}for(;P.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));P.output=r.escapeLast(P.output,`{`),le(`braces`)}if(d.strictSlashes!==!0&&(R.type===`star`||R.type===`bracket`)&&ue({type:`maybe_slash`,value:``,output:`${C}?`}),P.backtrack===!0){P.output=``;for(let e of P.tokens)P.output+=e.output==null?e.value:e.output,e.suffix&&(P.output+=e.suffix)}return P};y.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=y})),BSe=a(((e,t)=>{let n=RSe(),r=zSe(),i=C8(),a=S8(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,{...t,fastpaths:!1}),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s})),VSe=a(((e,t)=>{let n=BSe(),r=C8();function i(e,t,i=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:r.isWindows()}),n(e,t,i)}Object.assign(i,n),t.exports=i})),HSe=a((e=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));let u=l(t(`path`)),d=l(t(`fs`));function f(e){let t=(0,u.normalize)(e);return t.length>1&&t[t.length-1]===u.sep&&(t=t.substring(0,t.length-1)),t}let p=/[\\/]/g;function m(e,t){return e.replace(p,t)}let h=/^[a-z]:[\\/]$/i;function g(e){return e===`/`||h.test(e)}function _(e,t){let{resolvePaths:n,normalizePath:r,pathSeparator:i}=t,a=process.platform===`win32`&&e.includes(`/`)||e.startsWith(`.`);return n&&(e=(0,u.resolve)(e)),(r||a)&&(e=f(e)),e===`.`?``:m(e[e.length-1]===i?e:e+i,i)}function v(e,t){return t+e}function y(e,t){return function(n,r){return r.startsWith(e)?r.slice(e.length)+n:m((0,u.relative)(e,r),t.pathSeparator)+t.pathSeparator+n}}function b(e){return e}function x(e,t,n){return t+e+n}function S(e,t){let{relativePaths:n,includeBasePath:r}=t;return n&&e?y(e,t):r?v:b}function C(e){return function(t,n){n.push(t.substring(e.length)||`.`)}}function w(e){return function(t,n,r){let i=t.substring(e.length)||`.`;r.every(e=>e(i,!0))&&n.push(i)}}let T=(e,t)=>{t.push(e||`.`)},E=(e,t,n)=>{let r=e||`.`;n.every(e=>e(r,!0))&&t.push(r)},D=()=>{};function O(e,t){let{includeDirs:n,filters:r,relativePaths:i}=t;return n?i?r&&r.length?w(e):C(e):r&&r.length?E:T:D}let k=(e,t,n,r)=>{r.every(t=>t(e,!1))&&n.files++},A=(e,t,n,r)=>{r.every(t=>t(e,!1))&&t.push(e)},ee=(e,t,n,r)=>{n.files++},j=(e,t)=>{t.push(e)},te=()=>{};function M(e){let{excludeFiles:t,filters:n,onlyCounts:r}=e;return t?te:n&&n.length?r?k:A:r?ee:j}let N=e=>e,ne=()=>[``].slice(0,0);function P(e){return e.group?ne:N}let F=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},I=()=>{};function L(e){return e.group?F:I}let R=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue(),i.realpath(e,(o,s)=>{if(o)return r.dequeue(a?null:o,t);i.stat(s,(i,o)=>{if(i)return r.dequeue(a?null:i,t);if(o.isDirectory()&&re(e,s,t))return r.dequeue(null,t);n(o,s),r.dequeue(null,t)})})},z=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue();try{let r=i.realpathSync(e),a=i.statSync(r);if(a.isDirectory()&&re(e,r,t))return;n(a,r)}catch(e){if(!a)throw e}};function B(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?z:R}function re(e,t,n){if(n.options.useRealPaths)return ie(t,n);let r=(0,u.dirname)(e),i=1;for(;r!==n.root&&i<2;){let e=n.symlinks.get(r);e&&(e===t||e.startsWith(t)||t.startsWith(e))?i++:r=(0,u.dirname)(r)}return n.symlinks.set(e,t),i>1}function ie(e,t){return t.visited.includes(e+t.options.pathSeparator)}let V=e=>e.counts,ae=e=>e.groups,oe=e=>e.paths,se=e=>e.paths.slice(0,e.options.maxFiles),ce=(e,t,n)=>(fe(t,n,e.counts,e.options.suppressErrors),null),le=(e,t,n)=>(fe(t,n,e.paths,e.options.suppressErrors),null),ue=(e,t,n)=>(fe(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),de=(e,t,n)=>(fe(t,n,e.groups,e.options.suppressErrors),null);function fe(e,t,n,r){t(e&&!r?e:null,n)}function pe(e,t){let{onlyCounts:n,group:r,maxFiles:i}=e;return n?t?V:ce:r?t?ae:de:i?t?se:ue:t?oe:le}let me={withFileTypes:!0},he=(e,t,n,r,i)=>{if(e.queue.enqueue(),r<0)return e.queue.dequeue(null,e);let{fs:a}=e;e.visited.push(t),e.counts.directories++,a.readdir(t||`.`,me,(t,a=[])=>{i(a,n,r),e.queue.dequeue(e.options.suppressErrors?null:t,e)})},ge=(e,t,n,r,i)=>{let{fs:a}=e;if(r<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=a.readdirSync(t||`.`,me)}catch(t){if(!e.options.suppressErrors)throw t}i(o,n,r)};function _e(e){return e?ge:he}var ve=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},ye=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},be=class{aborted=!1;abort(){this.aborted=!0}},xe=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=pe(t,this.isSynchronous),this.root=_(e,t),this.state={root:g(this.root)?this.root:this.root.slice(0,-1),paths:[``].slice(0,0),groups:[],counts:new ye,options:t,queue:new ve((e,t)=>this.callbackInvoker(t,e,n)),symlinks:new Map,visited:[``].slice(0,0),controller:new be,fs:t.fs||d},this.joinPath=S(this.root,t),this.pushDirectory=O(this.root,t),this.pushFile=M(t),this.getArray=P(t),this.groupFiles=L(t),this.resolveSymlink=B(t,this.isSynchronous),this.walkDirectory=_e(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:r,options:{filters:i,resolveSymlinks:a,excludeSymlinks:o,exclude:s,maxFiles:c,signal:l,useRealPaths:d,pathSeparator:f},controller:p}=this.state;if(p.aborted||l&&l.aborted||c&&r.length>c)return;let m=this.getArray(this.state.paths);for(let c=0;c<e.length;++c){let l=e[c];if(l.isFile()||l.isSymbolicLink()&&!a&&!o){let e=this.joinPath(l.name,t);this.pushFile(e,m,this.state.counts,i)}else if(l.isDirectory()){let e=x(l.name,t,this.state.options.pathSeparator);if(s&&s(l.name,e))continue;this.pushDirectory(e,r,i),this.walkDirectory(this.state,e,e,n-1,this.walk)}else if(this.resolveSymlink&&l.isSymbolicLink()){let e=v(l.name,t);this.resolveSymlink(e,this.state,(t,r)=>{if(t.isDirectory()){if(r=_(r,this.state.options),s&&s(l.name,d?r:e+f))return;this.walkDirectory(this.state,r,d?r:e+f,n-1,this.walk)}else{r=d?r:e;let t=(0,u.basename)(r),n=_((0,u.dirname)(r),this.state.options);r=this.joinPath(t,n),this.pushFile(r,m,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,m)}};function H(e,t){return new Promise((n,r)=>{Se(e,t,(e,t)=>{if(e)return r(e);n(t)})})}function Se(e,t,n){new xe(e,t,n).start()}function Ce(e,t){return new xe(e,t).start()}var we=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return H(this.root,this.options)}withCallback(e){Se(this.root,this.options,e)}sync(){return Ce(this.root,this.options)}};let Te=null;try{t.resolve(`picomatch`),Te=VSe()}catch{}e.fdir=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:u.sep,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new we(e||`.`,this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new we(e||`.`,this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Te;if(!n)throw Error(`Please specify a glob function to use glob matching.`);var r=this.globCache[e.join(`\0`)];return r||(r=n(e,...t),this.globCache[e.join(`\0`)]=r),this.options.filters.push(e=>r(e)),this}}})),w8=a((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));let u=t(`fs`),d=t(`path`),f=t(`url`),p=HSe(),m=VSe();m=l(m);let h=Array.isArray,g=/\\/g,_=process.platform===`win32`,v=/^(\/?\.\.)+$/;function y(e,t={}){let n=e.length,r=Array(n),i=Array(n),a,o;for(a=0;a<n;a++){let n=T(e[a]);r[a]=n;let s=n.length,c=Array(s);for(o=0;o<s;o++)c[o]=(0,m.default)(n[o],t);i[a]=c}return e=>{let s=e.split(`/`);if(s[0]===`..`&&v.test(e))return!0;for(a=0;a<n;a++){let e=r[a],n=i[a],c=s.length,l=Math.min(c,e.length);for(o=0;o<l;){let r=e[o];if(r.includes(`/`))return!0;if(!n[o](s[o]))break;if(!t.noglobstar&&r===`**`)return!0;o++}if(o===c)return!0}return!1}}let b=/^[A-Z]:\/$/i,x=_?e=>b.test(e):e=>e===`/`;function S(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let t=e.length+ +!x(e);return(e,n)=>e.slice(t,n?-1:void 0)||`.`}let r=t.slice(e.length+1);return r?(e,t)=>{if(e===`.`)return r;let n=`${r}/${e}`;return t?n.slice(0,-1):n}:(e,t)=>t&&e!==`.`?e.slice(0,-1):e}return n?t=>d.posix.relative(e,t)||`.`:n=>d.posix.relative(e,`${t}/${n}`)||`.`}function C(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return e=>`${n}/${e}`}return n=>{let r=d.posix.relative(e,`${t}/${n}`);return n[n.length-1]===`/`&&r!==``?`${r}/`:r||`.`}}let w={parts:!0};function T(e){let t=m.default.scan(e,w);return t.parts?.length?t.parts:[e]}let E=/\\(?![()[\]{}!+@])/g;function D(e){return j(e)}function O(e){return te(e).replace(E,`/`)}let k=_?O:D,A=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,ee=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,j=e=>e.replace(A,`\\$&`),te=e=>e.replace(ee,`\\$&`),M=_?te:j;function N(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=m.default.scan(e);return n.isGlob||n.negated}function ne(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString(`es`)}]`,...e)}function P(e){return typeof e==`string`?[e]:e??[]}let F=/^(\/?\.\.)+/,I=/\\(?=[()[\]{}!*+?@|])/g;function L(e,t,n,r){let i=t.cwd,a=e;e[e.length-1]===`/`&&(a=e.slice(0,-1)),a[a.length-1]!==`*`&&t.expandDirectories&&(a+=`/**`);let o=M(i);a=(0,d.isAbsolute)(a.replace(I,``))?d.posix.relative(o,a):d.posix.normalize(a);let s=F.exec(a)?.[0],c=T(a);if(s){let e=(s.length+1)/3,t=0,r=o.split(`/`);for(;t<e&&c[t+e]===r[r.length+t-e];)a=a.slice(0,(e-t-1)*3)+a.slice((e-t)*3+c[t+e].length+1)||`.`,t++;let l=d.posix.join(i,s.slice(t*3));l[0]!==`.`&&n.root.length>l.length&&(n.root=l,n.depthOffset=-e+t)}if(!r&&n.depthOffset>=0){n.commonPath??=c;let e=[],t=Math.min(n.commonPath.length,c.length);for(let r=0;r<t;r++){let t=c[r];if(t===`**`&&!c[r+1]){e.pop();break}if(r===c.length-1||t!==n.commonPath[r]||N(t))break;e.push(t)}n.depthOffset=e.length,n.commonPath=e,n.root=e.length>0?d.posix.join(i,...e):i}return a}function R(e,t,n){let r=[],i=[];for(let t of e.ignore)t&&(t[0]!==`!`||t[1]===`(`)&&i.push(L(t,e,n,!0));for(let a of t)a&&(a[0]!==`!`||a[1]===`(`?r.push(L(a,e,n,!1)):(a[1]!==`!`||a[2]===`(`)&&i.push(L(a.slice(1),e,n,!0)));return{match:r,ignore:i}}function z(e,t){let n=e.cwd,r={root:n,depthOffset:0},i=R(e,t,r);e.debug&&ne(`internal processing patterns:`,i);let{absolute:a,caseSensitiveMatch:o,debug:s,dot:c,followSymbolicLinks:l,onlyDirectories:u}=e,d=r.root.replace(g,``),f={dot:c,nobrace:e.braceExpansion===!1,nocase:!o,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},h=(0,m.default)(i.match,f),_=(0,m.default)(i.ignore,f),v=y(i.match,f),b=S(n,d,a),x=a?b:S(n,d,!0),w=(e,t)=>{let n=x(t,!0);return n!==`.`&&!v(n)||_(n)},T;e.deep!==void 0&&(T=Math.round(e.deep-r.depthOffset));let E=new p.fdir({filters:[s?(e,t)=>{let n=b(e,t),r=h(n)&&!_(n);return r&&ne(`matched ${n}`),r}:(e,t)=>{let n=b(e,t);return h(n)&&!_(n)}],exclude:s?(e,t)=>{let n=w(e,t);return ne(`${n?`skipped`:`crawling`} ${t}`),n}:w,fs:e.fs,pathSeparator:`/`,relativePaths:!a,resolvePaths:a,includeBasePath:a,resolveSymlinks:l,excludeSymlinks:!l,excludeFiles:u,includeDirs:u||!e.onlyFiles,maxDepth:T,signal:e.signal}).crawl(d);return e.debug&&ne(`internal properties:`,{...r,root:d}),[E,n!==d&&!a&&C(n,d)]}function B(e,t){if(t)for(let n=e.length-1;n>=0;n--)e[n]=t(e[n]);return e}let re={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function ie(e){let t={...re,...e};return t.cwd=(t.cwd instanceof URL?(0,f.fileURLToPath)(t.cwd):(0,d.resolve)(t.cwd)).replace(g,`/`),t.ignore=P(t.ignore),t.fs&&={readdir:t.fs.readdir||u.readdir,readdirSync:t.fs.readdirSync||u.readdirSync,realpath:t.fs.realpath||u.realpath,realpathSync:t.fs.realpathSync||u.realpathSync,stat:t.fs.stat||u.stat,statSync:t.fs.statSync||u.statSync},t.debug&&ne(`globbing with options:`,t),t}function V(e,t={}){if(e&&t?.patterns)throw Error(`Cannot pass patterns as both an argument and an option`);let n=h(e)||typeof e==`string`,r=P((n?e:e.patterns)??`**/*`),i=ie(n?t:e);return r.length>0?z(i,r):[]}async function ae(e,t){let[n,r]=V(e,t);return n?B(await n.withPromise(),r):[]}function oe(e,t){let[n,r]=V(e,t);return n?B(n.sync(),r):[]}e.convertPathToPattern=k,e.escapePath=M,e.glob=ae,e.globSync=oe,e.isDynamicPattern=N})),USe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.clearGlobCache=c,e.resolveProjectList=l,e.clearGlobResolutionCache=d;let n=t(y2()),r=w8(),i=G6(),a=FSe(),o=(0,n.default)(`typescript-eslint:typescript-estree:parseSettings:resolveProjectList`),s=null;function c(){s?.clear()}function l(e){let t=[];if(e.project!=null)for(let n of e.project)typeof n==`string`&&t.push(n);if(t.length===0)return new Map;let n=(e.projectFolderIgnoreList??[`**/node_modules/**`]).filter(e=>typeof e==`string`),c=u({project:t,projectFolderIgnoreList:n,tsconfigRootDir:e.tsconfigRootDir});if(s==null)s=new a.ExpiringCache(e.singleRun?`Infinity`:e.cacheLifetime?.glob??a.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);else{let e=s.get(c);if(e)return e}let l=t.filter(e=>!(0,r.isDynamicPattern)(e)),d=t.filter(e=>(0,r.isDynamicPattern)(e)),f=[];d.length>0&&(f=d.flatMap(t=>(0,r.globSync)(t,{cwd:e.tsconfigRootDir,expandDirectories:!1,ignore:n})));let p=new Map([...l,...f].map(t=>[(0,i.getCanonicalFileName)((0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)),(0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)]));return o(`parserOptions.project (excluding ignored) matched projects: %s`,p),s.set(c,p),p}function u({project:e,projectFolderIgnoreList:t,tsconfigRootDir:n}){let r={tsconfigRootDir:n,project:e,projectFolderIgnoreList:[...t].sort()};return(0,i.createHash)(JSON.stringify(r))}function d(){s?.clear(),s=null}})),WSe=a(((e,t)=>{t.exports={name:`@typescript-eslint/typescript-estree`,version:`8.59.2`,description:`A parser that converts TypeScript source code into an ESTree compatible form`,files:[`dist`,`!**/*.tsbuildinfo`,`README.md`,`LICENSE`],type:`commonjs`,exports:{".":{types:`./dist/index.d.ts`,default:`./dist/index.js`},"./package.json":`./package.json`,"./use-at-your-own-risk":{types:`./dist/use-at-your-own-risk.d.ts`,default:`./dist/use-at-your-own-risk.js`}},types:`./dist/index.d.ts`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`},repository:{type:`git`,url:`https://github.com/typescript-eslint/typescript-eslint.git`,directory:`packages/typescript-estree`},bugs:{url:`https://github.com/typescript-eslint/typescript-eslint/issues`},homepage:`https://typescript-eslint.io/packages/typescript-estree`,license:`MIT`,keywords:[`ast`,`estree`,`ecmascript`,`javascript`,`typescript`,`parser`,`syntax`],dependencies:{debug:`^4.4.3`,minimatch:`^10.2.2`,semver:`^7.7.3`,tinyglobby:`^0.2.15`,"ts-api-utils":`^2.5.0`,"@typescript-eslint/project-service":`8.59.2`,"@typescript-eslint/types":`8.59.2`,"@typescript-eslint/visitor-keys":`8.59.2`,"@typescript-eslint/tsconfig-utils":`8.59.2`},devDependencies:{"@vitest/coverage-v8":`^4.0.18`,eslint:`^10.0.0`,glob:`^11.1.0`,rimraf:`^5.0.10`,typescript:`>=4.8.4 <6.1.0`,vitest:`^4.0.18`,yaml:`^2.8.2`},peerDependencies:{typescript:`>=4.8.4 <6.1.0`},funding:{type:`opencollective`,url:`https://opencollective.com/typescript-eslint`},nx:{name:`typescript-estree`,includedScripts:[`clean`],targets:{lint:{command:`eslint`}}},scripts:{build:`pnpm exec nx build`,clean:`rimraf dist/ coverage/`,format:`pnpm -w run format`,lint:`pnpm -w exec nx lint`,test:`pnpm -w exec nx test`,typecheck:`pnpm -w exec nx typecheck`}}})),GSe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.version=void 0,e.version=WSe().version})),KSe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.SUPPORTED_TYPESCRIPT_VERSIONS=void 0,e.warnAboutTSVersion=f;let a=i(u8()),o=r(U6()),s=GSe();e.SUPPORTED_TYPESCRIPT_VERSIONS=`>=4.8.4 <6.1.0`;let c=[],l=o.version,u=a.default.satisfies(l,[e.SUPPORTED_TYPESCRIPT_VERSIONS,...c].join(` || `)),d=!1;function f(t,n){if(!(u||d)){if(n||!(typeof process>`u`)&&process.stdout?.isTTY){let n=`=============`,r=[n,`
|
|
1060
1060
|
`,`WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.`,`
|
|
1061
1061
|
`,`* @typescript-eslint/typescript-estree version: ${s.version}`,`* Supported TypeScript versions: ${e.SUPPORTED_TYPESCRIPT_VERSIONS}`,`* Your TypeScript version: ${l}`,`
|
|
1062
1062
|
`,`Please only submit bug reports when using the officially supported version.`,`
|
|
@@ -1068,7 +1068,7 @@ ${t.map(e=>`- ${e}`).join(`
|
|
|
1068
1068
|
`)}
|
|
1069
1069
|
${n?`...and ${n} more files\n`:``}
|
|
1070
1070
|
If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value.
|
|
1071
|
-
`)}return a;function o(){return i.service.openClientFile(n,r.codeFullText,void 0,r.tsconfigRootDir)}function s(){h(`Opening project service client file at path: %s`,n);let e=o();return!e.configFileErrors&&!e.configFileName&&!r.singleRun&&!t&&performance.now()-i.lastReloadTimestamp>250&&(h(`No config file found; reloading project service and retrying.`),i.service.reloadProjects(),e=o(),i.lastReloadTimestamp=performance.now()),e}}function y(e,t,n){return h(`No project service information available. Creating no program.`),n.getScriptInfo(e)&&(h(`Script info available. Opening client file in project service.`),n.openClientFile(e,t.codeFullText,void 0,t.tsconfigRootDir)),(0,f.createNoProgram)(t)}function b(e,t,n){h(`Retrieving script info and then program for: %s`,e);let r=n.service.getScriptInfo(e),i=n.service.getDefaultProjectForFile(r.fileName,!0).getLanguageService(!0).getProgram();if(!i){h(`Could not find project service program for: %s`,e);return}return h(`Found project service program for: %s`,e),(0,d.createProjectProgram)(t,[i])}function x(e,t,n,r){_(e.service,t.extraFileExtensions);let i=S(t.filePath,e);h(`Opening project service file for: %s at absolute path %s`,t.filePath,i);let a=C(c.default.relative(t.tsconfigRootDir,i),e.allowDefaultProject);return!n&&!a?y(i,t,e.service):(h(`Opened project service file: %o`,n&&v(r,a,i,t,e)),b(i,t,e))}function S(e,t){return c.default.isAbsolute(e)?e:c.default.join(t.service.host.getCurrentDirectory(),e)}function C(e,t){return!!t?.some(t=>(0,s.minimatch)(e,t,{dot:!0}))}})),E8=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.clearProgramCache=g,e.clearDefaultProjectMatchedFiles=v,e.parse=b,e.clearParseAndGenerateServicesCalls=C,e.parseAndGenerateServices=w;let n=t(y2()),r=wSe(),i=SSe(),a=TSe(),o=b8(),s=DSe(),c=Gxe(),l=OSe(),u=kSe(),d=qSe(),f=JSe(),p=nCe(),m=(0,n.default)(`typescript-eslint:typescript-estree:parser`),h=new Map;function g(){h.clear()}let _=new Set;function v(){_.clear()}function y(e,t){if(e.projectService){let n=(0,p.useProgramFromProjectService)(e.projectService,e,t,_);if(n)return n}return e.programs?(0,l.useProvidedPrograms)(e.programs,e):t?(0,o.createProjectProgram)(e,(0,c.getWatchProgramsForProjects)(e)):(0,s.createNoProgram)(e)}function b(e,t){let{ast:n}=x(e,t,!1);return n}function x(e,t,n){let i=(0,d.createParseSettings)(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`);let a=(0,s.createSourceFile)(i),{astMaps:o,estree:c}=(0,r.astConverter)(a,i,n);return{ast:c,esTreeNodeToTSNodeMap:o.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:o.tsNodeToESTreeNodeMap}}let S={};function C(){S={}}function w(e,t){let n=(0,d.createParseSettings)(e,t);n.singleRun&&!n.programs&&n.projects.size>0&&(n.programs={*[Symbol.iterator](){for(let e of n.projects){let t=h.get(e[0]);if(t)yield t;else{m(`Detected single-run/CLI usage, creating Program once ahead of time for project: %s`,e);let t=(0,l.createProgramFromConfigFile)(e[1]);h.set(e[0],t),yield t}}}});let o=n.programs!=null||n.projects.size>0||!!n.projectService;if(typeof t.errorOnTypeScriptSyntacticAndSemanticIssues==`boolean`&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(n.errorOnTypeScriptSyntacticAndSemanticIssues=!0),n.errorOnTypeScriptSyntacticAndSemanticIssues&&!o)throw Error(`Cannot calculate TypeScript semantic issues without a valid project.`);n.singleRun&&t.filePath&&(S[t.filePath]=(S[t.filePath]||0)+1);let{ast:s,program:c}=n.singleRun&&t.filePath&&S[t.filePath]>1&&!n.projectService?(0,a.createIsolatedProgram)(n):y(n,o),p=typeof n.preserveNodeMaps==`boolean`?n.preserveNodeMaps:!0,{astMaps:g,estree:_}=(0,r.astConverter)(s,n,p);if(c&&n.errorOnTypeScriptSyntacticAndSemanticIssues){let e=(0,f.getFirstSemanticOrSyntacticError)(c,s);if(e)throw(0,i.convertError)(e)}return{ast:_,services:(0,u.createParserServices)(g,c)}}})),D8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.clearProgramCache=void 0,e.clearCaches=o;let t=Gxe(),n=E8(),r=x8(),i=qSe(),a=USe();function o(){(0,r.clearCandidateTSConfigRootDirs)(),(0,n.clearDefaultProjectMatchedFiles)(),(0,n.clearProgramCache)(),(0,t.clearWatchCaches)(),(0,i.clearTSConfigMatchCache)(),(0,i.clearTSServerProjectService)(),(0,a.clearGlobCache)()}e.clearProgramCache=o})),rCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.withoutProjectParserOptions=t;function t(e){let{EXPERIMENTAL_useProjectService:t,project:n,projectService:r,...i}=e;return i}})),O8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.withoutProjectParserOptions=e.version=e.typescriptVersionIsAtLeast=e.simpleTraverse=e.clearCandidateTSConfigRootDirs=e.addCandidateTSConfigRootDir=e.parseAndGenerateServices=e.parse=e.TSError=e.createProgram=e.getCanonicalFileName=void 0,n(D8(),e),n(v8(),e);var r=G6();Object.defineProperty(e,`getCanonicalFileName`,{enumerable:!0,get:function(){return r.getCanonicalFileName}});var i=OSe();Object.defineProperty(e,`createProgram`,{enumerable:!0,get:function(){return i.createProgramFromConfigFile}}),n(f8(),e);var a=m8();Object.defineProperty(e,`TSError`,{enumerable:!0,get:function(){return a.TSError}});var o=E8();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(e,`parseAndGenerateServices`,{enumerable:!0,get:function(){return o.parseAndGenerateServices}});var s=x8();Object.defineProperty(e,`addCandidateTSConfigRootDir`,{enumerable:!0,get:function(){return s.addCandidateTSConfigRootDir}}),Object.defineProperty(e,`clearCandidateTSConfigRootDirs`,{enumerable:!0,get:function(){return s.clearCandidateTSConfigRootDirs}});var c=CSe();Object.defineProperty(e,`simpleTraverse`,{enumerable:!0,get:function(){return c.simpleTraverse}}),n(p8(),e);var l=d8();Object.defineProperty(e,`typescriptVersionIsAtLeast`,{enumerable:!0,get:function(){return l.typescriptVersionIsAtLeast}});var u=GSe();Object.defineProperty(e,`version`,{enumerable:!0,get:function(){return u.version}});var d=rCe();Object.defineProperty(e,`withoutProjectParserOptions`,{enumerable:!0,get:function(){return d.withoutProjectParserOptions}})})),iCe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=d,e.parseForESLint=f;let n=z6(),r=O8(),i=k3(),a=t(y2()),o=U6(),s=(0,a.default)(`typescript-eslint:parser:parser`);function c(e,t=!1){return typeof e==`boolean`?e:t}let l=/lib\.(.+)\.d\.[cm]?ts$/;function u(e){if(e.lib)return e.lib.map(e=>l.exec(e.toLowerCase())?.[1]).filter(e=>!!e);let t=r.typescriptVersionIsAtLeast[`6.0`]?o.ScriptTarget.LatestStandard:o.ScriptTarget.ES5;switch(e.target??t){case o.ScriptTarget.ES2015:return[`es6`];case o.ScriptTarget.ES2016:return[`es2016.full`];case o.ScriptTarget.ES2017:return[`es2017.full`];case o.ScriptTarget.ES2018:return[`es2018.full`];case o.ScriptTarget.ES2019:return[`es2019.full`];case o.ScriptTarget.ES2020:return[`es2020.full`];case o.ScriptTarget.ES2021:return[`es2021.full`];case o.ScriptTarget.ES2022:return[`es2022.full`];case o.ScriptTarget.ES2023:return[`es2023.full`];case o.ScriptTarget.ES2024:return[`es2024.full`];case o.ScriptTarget.ES2025:return[`es2025.full`];case o.ScriptTarget.ESNext:return[`esnext.full`];default:return[`lib`]}}function d(e,t){return f(e,t).ast}function f(e,t){t=!t||typeof t!=`object`?{}:{...t},t.sourceType!==`module`&&t.sourceType!==`script`&&(t.sourceType=`script`),typeof t.ecmaFeatures!=`object`&&(t.ecmaFeatures={});let a=c(t.warnOnUnsupportedTypeScriptVersion,!0),o={jsx:c(t.ecmaFeatures.jsx),...!a&&{loggerFn:!1},...t,errorOnTypeScriptSyntacticAndSemanticIssues:!1,comment:!0,loc:!0,range:!0,tokens:!0},l={globalReturn:t.ecmaFeatures.globalReturn,jsxFragmentName:t.jsxFragmentName,jsxPragma:t.jsxPragma,lib:t.lib,sourceType:t.sourceType},{ast:d,services:f}=(0,r.parseAndGenerateServices)(e,o);if(d.sourceType=t.sourceType,f.program){let e=f.program.getCompilerOptions();l.lib??(l.lib=u(e),s(`Resolved libs from program: %o`,l.lib)),l.jsxPragma===void 0&&e.jsxFactory!=null&&(l.jsxPragma=e.jsxFactory.split(`.`)[0].trim(),s(`Resolved jsxPragma from program: %s`,l.jsxPragma)),l.jsxFragmentName===void 0&&e.jsxFragmentFactory!=null&&(l.jsxFragmentName=e.jsxFragmentFactory.split(`.`)[0].trim(),s(`Resolved jsxFragmentName from program: %s`,l.jsxFragmentName))}let p=(0,n.analyze)(d,l);return f.emitDecoratorMetadata??=t.emitDecoratorMetadata===!0,f.experimentalDecorators??=t.experimentalDecorators===!0,f.isolatedDeclarations??=t.isolatedDeclarations===!0,{ast:d,scopeManager:p,services:f,visitorKeys:i.visitorKeys}}})),aCe=a(((e,t)=>{t.exports={name:`@typescript-eslint/parser`,version:`8.59.1`,description:`An ESLint custom parser which leverages TypeScript ESTree`,files:[`dist`,`!**/*.tsbuildinfo`,`README.md`,`LICENSE`],type:`commonjs`,exports:{".":{types:`./dist/index.d.ts`,default:`./dist/index.js`},"./package.json":`./package.json`},engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`},repository:{type:`git`,url:`https://github.com/typescript-eslint/typescript-eslint.git`,directory:`packages/parser`},bugs:{url:`https://github.com/typescript-eslint/typescript-eslint/issues`},homepage:`https://typescript-eslint.io/packages/parser`,license:`MIT`,keywords:[`ast`,`ecmascript`,`javascript`,`typescript`,`parser`,`syntax`,`eslint`],peerDependencies:{eslint:`^8.57.0 || ^9.0.0 || ^10.0.0`,typescript:`>=4.8.4 <6.1.0`},dependencies:{debug:`^4.4.3`,"@typescript-eslint/types":`8.59.1`,"@typescript-eslint/scope-manager":`8.59.1`,"@typescript-eslint/typescript-estree":`8.59.1`,"@typescript-eslint/visitor-keys":`8.59.1`},devDependencies:{"@vitest/coverage-v8":`^4.0.18`,eslint:`^10.0.0`,glob:`^11.1.0`,rimraf:`^5.0.10`,typescript:`>=4.8.4 <6.1.0`,vitest:`^4.0.18`},funding:{type:`opencollective`,url:`https://opencollective.com/typescript-eslint`},nx:{name:`parser`,includedScripts:[`clean`],targets:{lint:{command:`eslint`}}},scripts:{build:`pnpm exec nx build`,clean:`rimraf dist/ coverage/`,format:`pnpm -w run format`,lint:`pnpm -w exec nx lint`,test:`pnpm -w exec nx test`,typecheck:`pnpm -w exec nx typecheck`}}})),k8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.meta=e.version=e.withoutProjectParserOptions=e.createProgram=e.clearCaches=e.parseForESLint=e.parse=void 0;var t=iCe();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return t.parse}}),Object.defineProperty(e,`parseForESLint`,{enumerable:!0,get:function(){return t.parseForESLint}});var n=O8();Object.defineProperty(e,`clearCaches`,{enumerable:!0,get:function(){return n.clearCaches}}),Object.defineProperty(e,`createProgram`,{enumerable:!0,get:function(){return n.createProgram}}),Object.defineProperty(e,`withoutProjectParserOptions`,{enumerable:!0,get:function(){return n.withoutProjectParserOptions}}),e.version=aCe().version,e.meta={name:`typescript-eslint/parser`,version:e.version}})),oCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isParenthesized=e.hasSideEffect=e.getStringIfConstant=e.getStaticValue=e.getPropertyName=e.getFunctionNameWithKind=e.getFunctionHeadLocation=void 0;let i=r(H2());e.getFunctionHeadLocation=i.getFunctionHeadLocation,e.getFunctionNameWithKind=i.getFunctionNameWithKind,e.getPropertyName=i.getPropertyName,e.getStaticValue=i.getStaticValue,e.getStringIfConstant=i.getStringIfConstant,e.hasSideEffect=i.hasSideEffect,e.isParenthesized=i.isParenthesized})),sCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.PatternMatcher=void 0,e.PatternMatcher=r(H2()).PatternMatcher})),cCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isNotSemicolonToken=e.isSemicolonToken=e.isNotOpeningParenToken=e.isOpeningParenToken=e.isNotOpeningBracketToken=e.isOpeningBracketToken=e.isNotOpeningBraceToken=e.isOpeningBraceToken=e.isNotCommentToken=e.isCommentToken=e.isNotCommaToken=e.isCommaToken=e.isNotColonToken=e.isColonToken=e.isNotClosingParenToken=e.isClosingParenToken=e.isNotClosingBracketToken=e.isClosingBracketToken=e.isNotClosingBraceToken=e.isClosingBraceToken=e.isNotArrowToken=e.isArrowToken=void 0;let i=r(H2());e.isArrowToken=i.isArrowToken,e.isNotArrowToken=i.isNotArrowToken,e.isClosingBraceToken=i.isClosingBraceToken,e.isNotClosingBraceToken=i.isNotClosingBraceToken,e.isClosingBracketToken=i.isClosingBracketToken,e.isNotClosingBracketToken=i.isNotClosingBracketToken,e.isClosingParenToken=i.isClosingParenToken,e.isNotClosingParenToken=i.isNotClosingParenToken,e.isColonToken=i.isColonToken,e.isNotColonToken=i.isNotColonToken,e.isCommaToken=i.isCommaToken,e.isNotCommaToken=i.isNotCommaToken,e.isCommentToken=i.isCommentToken,e.isNotCommentToken=i.isNotCommentToken,e.isOpeningBraceToken=i.isOpeningBraceToken,e.isNotOpeningBraceToken=i.isNotOpeningBraceToken,e.isOpeningBracketToken=i.isOpeningBracketToken,e.isNotOpeningBracketToken=i.isNotOpeningBracketToken,e.isOpeningParenToken=i.isOpeningParenToken,e.isNotOpeningParenToken=i.isNotOpeningParenToken,e.isSemicolonToken=i.isSemicolonToken,e.isNotSemicolonToken=i.isNotSemicolonToken})),lCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ReferenceTracker=void 0;let i=r(H2());i.ReferenceTracker.READ,i.ReferenceTracker.CALL,i.ReferenceTracker.CONSTRUCT,i.ReferenceTracker.ESM,e.ReferenceTracker=i.ReferenceTracker})),A8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getInnermostScope=e.findVariable=void 0;let i=r(H2());e.findVariable=i.findVariable,e.getInnermostScope=i.getInnermostScope})),uCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(oCe(),e),n(sCe(),e),n(cCe(),e),n(lCe(),e),n(A8(),e)})),dCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isNotTokenOfTypeWithConditions=e.isTokenOfTypeWithConditions=e.isNodeOfTypeWithConditions=e.isNodeOfTypes=e.isNodeOfType=void 0,e.isNodeOfType=e=>t=>t?.type===e,e.isNodeOfTypes=e=>t=>!!t&&e.includes(t.type),e.isNodeOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isTokenOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isNotTokenOfTypeWithConditions=(t,n)=>r=>!(0,e.isTokenOfTypeWithConditions)(t,n)(r)})),fCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LINEBREAK_MATCHER=void 0,e.isTokenOnSameLine=t,e.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/;function t(e,t){return e.loc.end.line===t.loc.start.line}})),pCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TSESTree=e.AST_TOKEN_TYPES=e.AST_NODE_TYPES=void 0;var t=A3();Object.defineProperty(e,`AST_NODE_TYPES`,{enumerable:!0,get:function(){return t.AST_NODE_TYPES}}),Object.defineProperty(e,`AST_TOKEN_TYPES`,{enumerable:!0,get:function(){return t.AST_TOKEN_TYPES}}),Object.defineProperty(e,`TSESTree`,{enumerable:!0,get:function(){return t.TSESTree}})})),mCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLoop=e.isImportKeyword=e.isTypeKeyword=e.isAwaitKeyword=e.isAwaitExpression=e.isIdentifier=e.isConstructor=e.isClassOrTypeElement=e.isTSConstructorType=e.isTSFunctionType=e.isFunctionOrFunctionType=e.isFunctionType=e.isFunction=e.isVariableDeclarator=e.isTypeAssertion=e.isLogicalOrOperator=e.isOptionalCallExpression=e.isNotNonNullAssertionPunctuator=e.isNonNullAssertionPunctuator=e.isNotOptionalChainPunctuator=e.isOptionalChainPunctuator=void 0,e.isSetter=a;let t=pCe(),n=dCe();e.isOptionalChainPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`?.`}),e.isNotOptionalChainPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`?.`}),e.isNonNullAssertionPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`!`}),e.isNotNonNullAssertionPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`!`}),e.isOptionalCallExpression=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.CallExpression,{optional:!0}),e.isLogicalOrOperator=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.LogicalExpression,{operator:`||`}),e.isTypeAssertion=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion]),e.isVariableDeclarator=(0,n.isNodeOfType)(t.AST_NODE_TYPES.VariableDeclarator);let r=[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression];e.isFunction=(0,n.isNodeOfTypes)(r);let i=[t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructorType,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature];e.isFunctionType=(0,n.isNodeOfTypes)(i),e.isFunctionOrFunctionType=(0,n.isNodeOfTypes)([...r,...i]),e.isTSFunctionType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSFunctionType),e.isTSConstructorType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSConstructorType),e.isClassOrTypeElement=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.PropertyDefinition,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.MethodDefinition,t.AST_NODE_TYPES.TSAbstractPropertyDefinition,t.AST_NODE_TYPES.TSAbstractMethodDefinition,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSIndexSignature,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSMethodSignature,t.AST_NODE_TYPES.TSPropertySignature]),e.isConstructor=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.MethodDefinition,{kind:`constructor`});function a(e){return!!e&&(e.type===t.AST_NODE_TYPES.MethodDefinition||e.type===t.AST_NODE_TYPES.Property)&&e.kind===`set`}e.isIdentifier=(0,n.isNodeOfType)(t.AST_NODE_TYPES.Identifier),e.isAwaitExpression=(0,n.isNodeOfType)(t.AST_NODE_TYPES.AwaitExpression),e.isAwaitKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:`await`}),e.isTypeKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:`type`}),e.isImportKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Keyword,{value:`import`}),e.isLoop=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.DoWhileStatement,t.AST_NODE_TYPES.ForStatement,t.AST_NODE_TYPES.ForInStatement,t.AST_NODE_TYPES.ForOfStatement,t.AST_NODE_TYPES.WhileStatement])})),j8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(uCe(),e),n(dCe(),e),n(fCe(),e),n(mCe(),e)})),hCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),gCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),_Ce=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),M8=a(((e,t)=>{let{FileEnumerator:n}=sye(),{ESLint:r,shouldUseFlatConfig:i}=x3(),{LegacyESLint:a}=uye();t.exports={builtinRules:E4(),FlatESLint:r,shouldUseFlatConfig:i,FileEnumerator:n,LegacyESLint:a}})),vCe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.FlatESLint=void 0;let n=w3(),r=t(M8());e.FlatESLint=class extends (r.default.FlatESLint??n.ESLint){}})),yCe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyESLint=void 0;let n=w3(),r=t(M8());function i(){throw Error(`LegacyESLint is not available with the current version of ESLint.`)}var a=class{static configType=`eslintrc`;static version=n.ESLint.version;constructor(){i()}static getErrorResults(){i()}static outputFixes(){i()}};e.LegacyESLint=class extends (r.default.LegacyESLint??a){}})),bCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyESLint=e.ESLint=e.FlatESLint=void 0;var t=vCe();Object.defineProperty(e,`FlatESLint`,{enumerable:!0,get:function(){return t.FlatESLint}});var n=vCe();Object.defineProperty(e,`ESLint`,{enumerable:!0,get:function(){return n.FlatESLint}});var r=yCe();Object.defineProperty(e,`LegacyESLint`,{enumerable:!0,get:function(){return r.LegacyESLint}})})),xCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Linter=void 0;let t=w3();e.Linter=class extends t.Linter{}})),SCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),CCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),wCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),TCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ECe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RuleTester=void 0;let t=w3();e.RuleTester=class extends t.RuleTester{}})),DCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Scope=void 0;let i=r(z6());var a;(function(e){e.ScopeType=i.ScopeType,e.DefinitionType=i.DefinitionType})(a||(e.Scope=a={}))})),N8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SourceCode=void 0;let t=w3();e.SourceCode=class extends t.SourceCode{}})),OCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(gCe(),e),n(_Ce(),e),n(bCe(),e),n(xCe(),e),n(SCe(),e),n(CCe(),e),n(wCe(),e),n(TCe(),e),n(ECe(),e),n(DCe(),e),n(N8(),e)})),kCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArray=t;function t(e){return Array.isArray(e)}})),ACe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),jCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(kCe(),e),n(ACe(),e)})),P8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.TSUtils=e.TSESLint=e.JSONSchema=e.ESLintUtils=e.ASTUtils=void 0,e.ASTUtils=r(j8()),e.ESLintUtils=r(c1()),e.JSONSchema=r(hCe()),e.TSESLint=r(OCe()),i(pCe(),e),e.TSUtils=r(jCe())})),MCe=a(((e,t)=>{t.exports=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`)})),NCe=a(((e,t)=>{t.exports=MCe()})),PCe=a(((e,t)=>{let n=NCe(),r=/\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i,i=new RegExp(n.map(e=>`<${e}\\b[^>]*>`).join(`|`),`i`);t.exports=e=>r.test(e)||i.test(e)})),FCe=a(((e,t)=>{var n=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,r=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;t.exports=e=function(e){return e.replace(n,function(e){return`-`+e.toLowerCase()})},e.reverse=function(e){return e.replace(r,function(e){return e.slice(1).toUpperCase()})}})),ICe=a(((e,t)=>{t.exports={properties:`-epub-caption-side.-epub-hyphens.-epub-text-combine.-epub-text-emphasis.-epub-text-emphasis-color.-epub-text-emphasis-style.-epub-text-orientation.-epub-text-transform.-epub-word-break.-epub-writing-mode.-internal-text-autosizing-status.accelerator.accent-color.-wap-accesskey.additive-symbols.align-content.-webkit-align-content.align-items.-webkit-align-items.align-self.-webkit-align-self.alignment-baseline.all.alt.-webkit-alt.anchor-default.anchor-name.anchor-scroll.animation.animation-composition.animation-delay.-moz-animation-delay.-ms-animation-delay.-webkit-animation-delay.animation-direction.-moz-animation-direction.-ms-animation-direction.-webkit-animation-direction.animation-duration.-moz-animation-duration.-ms-animation-duration.-webkit-animation-duration.animation-fill-mode.-moz-animation-fill-mode.-ms-animation-fill-mode.-webkit-animation-fill-mode.animation-iteration-count.-moz-animation-iteration-count.-ms-animation-iteration-count.-webkit-animation-iteration-count.-moz-animation.-ms-animation.animation-name.-moz-animation-name.-ms-animation-name.-webkit-animation-name.animation-play-state.-moz-animation-play-state.-ms-animation-play-state.-webkit-animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.-moz-animation-timing-function.-ms-animation-timing-function.-webkit-animation-timing-function.-webkit-animation-trigger.-webkit-animation.app-region.-webkit-app-region.appearance.-moz-appearance.-webkit-appearance.ascent-override.aspect-ratio.-webkit-aspect-ratio.audio-level.azimuth.backdrop-filter.-webkit-backdrop-filter.backface-visibility.-moz-backface-visibility.-ms-backface-visibility.-webkit-backface-visibility.background.background-attachment.-webkit-background-attachment.background-blend-mode.background-clip.-moz-background-clip.-webkit-background-clip.background-color.-webkit-background-color.-webkit-background-composite.background-image.-webkit-background-image.-moz-background-inline-policy.background-origin.-moz-background-origin.-webkit-background-origin.background-position.-webkit-background-position.background-position-x.-webkit-background-position-x.background-position-y.-webkit-background-position-y.background-repeat.-webkit-background-repeat.background-repeat-x.background-repeat-y.background-size.-moz-background-size.-webkit-background-size.-webkit-background.base-palette.baseline-shift.baseline-source.behavior.-moz-binding.block-ellipsis.-ms-block-progression.block-size.block-step.block-step-align.block-step-insert.block-step-round.block-step-size.bookmark-label.bookmark-level.bookmark-state.border.-webkit-border-after-color.-webkit-border-after-style.-webkit-border-after.-webkit-border-after-width.-webkit-border-before-color.-webkit-border-before-style.-webkit-border-before.-webkit-border-before-width.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.-moz-border-bottom-colors.border-bottom-left-radius.-webkit-border-bottom-left-radius.border-bottom-right-radius.-webkit-border-bottom-right-radius.border-bottom-style.border-bottom-width.border-boundary.border-collapse.border-color.-moz-border-end-color.-webkit-border-end-color.border-end-end-radius.-moz-border-end.border-end-start-radius.-moz-border-end-style.-webkit-border-end-style.-webkit-border-end.-moz-border-end-width.-webkit-border-end-width.-webkit-border-fit.-webkit-border-horizontal-spacing.border-image.-moz-border-image.-o-border-image.border-image-outset.-webkit-border-image-outset.border-image-repeat.-webkit-border-image-repeat.border-image-slice.-webkit-border-image-slice.border-image-source.-webkit-border-image-source.-webkit-border-image.border-image-width.-webkit-border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.-moz-border-left-colors.border-left-style.border-left-width.border-radius.-moz-border-radius-bottomleft.-moz-border-radius-bottomright.-moz-border-radius.-moz-border-radius-topleft.-moz-border-radius-topright.-webkit-border-radius.border-right.border-right-color.-moz-border-right-colors.border-right-style.border-right-width.border-spacing.-moz-border-start-color.-webkit-border-start-color.border-start-end-radius.-moz-border-start.border-start-start-radius.-moz-border-start-style.-webkit-border-start-style.-webkit-border-start.-moz-border-start-width.-webkit-border-start-width.border-style.border-top.border-top-color.-moz-border-top-colors.border-top-left-radius.-webkit-border-top-left-radius.border-top-right-radius.-webkit-border-top-right-radius.border-top-style.border-top-width.-webkit-border-vertical-spacing.border-width.bottom.-moz-box-align.-webkit-box-align.box-decoration-break.-webkit-box-decoration-break.-moz-box-direction.-webkit-box-direction.-webkit-box-flex-group.-moz-box-flex.-webkit-box-flex.-webkit-box-lines.-moz-box-ordinal-group.-webkit-box-ordinal-group.-moz-box-orient.-webkit-box-orient.-moz-box-pack.-webkit-box-pack.-webkit-box-reflect.box-shadow.-moz-box-shadow.-webkit-box-shadow.box-sizing.-moz-box-sizing.-webkit-box-sizing.box-snap.break-after.break-before.break-inside.buffered-rendering.caption-side.caret.caret-animation.caret-color.caret-shape.chains.clear.clip.clip-path.-webkit-clip-path.clip-rule.color.color-adjust.-webkit-color-correction.-apple-color-filter.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.-webkit-column-axis.-webkit-column-break-after.-webkit-column-break-before.-webkit-column-break-inside.column-count.-moz-column-count.-webkit-column-count.column-fill.-moz-column-fill.-webkit-column-fill.column-gap.-moz-column-gap.-webkit-column-gap.column-progression.-webkit-column-progression.column-rule.column-rule-color.-moz-column-rule-color.-webkit-column-rule-color.-moz-column-rule.column-rule-style.-moz-column-rule-style.-webkit-column-rule-style.-webkit-column-rule.column-rule-width.-moz-column-rule-width.-webkit-column-rule-width.column-span.-moz-column-span.-webkit-column-span.column-width.-moz-column-width.-webkit-column-width.columns.-moz-columns.-webkit-columns.-webkit-composition-fill-color.-webkit-composition-frame-color.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.-ms-content-zoom-chaining.-ms-content-zoom-limit-max.-ms-content-zoom-limit-min.-ms-content-zoom-limit.-ms-content-zoom-snap.-ms-content-zoom-snap-points.-ms-content-zoom-snap-type.-ms-content-zooming.continue.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.-webkit-cursor-visibility.cx.cy.d.-apple-dashboard-region.-webkit-dashboard-region.descent-override.direction.display.display-align.dominant-baseline.elevation.empty-cells.enable-background.epub-caption-side.epub-hyphens.epub-text-combine.epub-text-emphasis.epub-text-emphasis-color.epub-text-emphasis-style.epub-text-orientation.epub-text-transform.epub-word-break.epub-writing-mode.fallback.field-sizing.fill.fill-break.fill-color.fill-image.fill-opacity.fill-origin.fill-position.fill-repeat.fill-rule.fill-size.filter.-ms-filter.-webkit-filter.flex.-ms-flex-align.-webkit-flex-align.flex-basis.-webkit-flex-basis.flex-direction.-ms-flex-direction.-webkit-flex-direction.flex-flow.-ms-flex-flow.-webkit-flex-flow.flex-grow.-webkit-flex-grow.-ms-flex-item-align.-webkit-flex-item-align.-ms-flex-line-pack.-webkit-flex-line-pack.-ms-flex.-ms-flex-negative.-ms-flex-order.-webkit-flex-order.-ms-flex-pack.-webkit-flex-pack.-ms-flex-positive.-ms-flex-preferred-size.flex-shrink.-webkit-flex-shrink.-webkit-flex.flex-wrap.-ms-flex-wrap.-webkit-flex-wrap.float.float-defer.-moz-float-edge.float-offset.float-reference.flood-color.flood-opacity.flow.flow-from.-ms-flow-from.-webkit-flow-from.flow-into.-ms-flow-into.-webkit-flow-into.font.font-display.font-family.font-feature-settings.-moz-font-feature-settings.-ms-font-feature-settings.-webkit-font-feature-settings.font-kerning.-webkit-font-kerning.font-language-override.-moz-font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.-webkit-font-size-delta.-webkit-font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.-webkit-font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.font-width.footnote-display.footnote-policy.-moz-force-broken-image-icon.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.-webkit-grid-after.grid-area.grid-auto-columns.-webkit-grid-auto-columns.grid-auto-flow.-webkit-grid-auto-flow.grid-auto-rows.-webkit-grid-auto-rows.-webkit-grid-before.grid-column.-ms-grid-column-align.grid-column-end.grid-column-gap.-ms-grid-column.-ms-grid-column-span.grid-column-start.-webkit-grid-column.-ms-grid-columns.-webkit-grid-columns.-webkit-grid-end.grid-gap.grid-row.-ms-grid-row-align.grid-row-end.grid-row-gap.-ms-grid-row.-ms-grid-row-span.grid-row-start.-webkit-grid-row.-ms-grid-rows.-webkit-grid-rows.-webkit-grid-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.-ms-high-contrast-adjust.-webkit-highlight.hyphenate-character.-webkit-hyphenate-character.-webkit-hyphenate-limit-after.-webkit-hyphenate-limit-before.hyphenate-limit-chars.-ms-hyphenate-limit-chars.hyphenate-limit-last.hyphenate-limit-lines.-ms-hyphenate-limit-lines.-webkit-hyphenate-limit-lines.hyphenate-limit-zone.-ms-hyphenate-limit-zone.hyphens.-moz-hyphens.-ms-hyphens.-webkit-hyphens.image-orientation.-moz-image-region.image-rendering.image-resolution.-ms-ime-align.ime-mode.inherits.initial-letter.initial-letter-align.-webkit-initial-letter.initial-letter-wrap.initial-value.inline-size.inline-sizing.input-format.-wap-input-format.-wap-input-required.input-security.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.-ms-interpolation-mode.isolation.justify-content.-webkit-justify-content.justify-items.-webkit-justify-items.justify-self.-webkit-justify-self.kerning.layout-flow.layout-grid.layout-grid-char.layout-grid-line.layout-grid-mode.layout-grid-type.left.letter-spacing.lighting-color.-webkit-line-align.-webkit-line-box-contain.line-break.-webkit-line-break.line-clamp.-webkit-line-clamp.line-gap-override.line-grid.-webkit-line-grid-snap.-webkit-line-grid.line-height.line-height-step.line-increment.line-padding.line-snap.-webkit-line-snap.-o-link.-o-link-source.list-style.list-style-image.list-style-position.list-style-type.-webkit-locale.-webkit-logical-height.-webkit-logical-width.margin.-webkit-margin-after-collapse.-webkit-margin-after.-webkit-margin-before-collapse.-webkit-margin-before.margin-block.margin-block-end.margin-block-start.margin-bottom.-webkit-margin-bottom-collapse.margin-break.-webkit-margin-collapse.-moz-margin-end.-webkit-margin-end.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.-moz-margin-start.-webkit-margin-start.margin-top.-webkit-margin-top-collapse.margin-trim.marker.marker-end.marker-knockout-left.marker-knockout-right.marker-mid.marker-offset.marker-pattern.marker-segment.marker-side.marker-start.marks.-wap-marquee-dir.-webkit-marquee-direction.-webkit-marquee-increment.-wap-marquee-loop.-webkit-marquee-repetition.-wap-marquee-speed.-webkit-marquee-speed.-wap-marquee-style.-webkit-marquee-style.-webkit-marquee.mask.-webkit-mask-attachment.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.-webkit-mask-box-image-outset.-webkit-mask-box-image-repeat.-webkit-mask-box-image-slice.-webkit-mask-box-image-source.-webkit-mask-box-image.-webkit-mask-box-image-width.mask-clip.-webkit-mask-clip.mask-composite.-webkit-mask-composite.mask-image.-webkit-mask-image.mask-mode.mask-origin.-webkit-mask-origin.mask-position.-webkit-mask-position.mask-position-x.-webkit-mask-position-x.mask-position-y.-webkit-mask-position-y.mask-repeat.-webkit-mask-repeat.-webkit-mask-repeat-x.-webkit-mask-repeat-y.mask-size.-webkit-mask-size.mask-source-type.-webkit-mask-source-type.mask-type.-webkit-mask.-webkit-match-nearest-mail-blockquote-color.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-lines.-webkit-max-logical-height.-webkit-max-logical-width.max-width.max-zoom.min-block-size.min-height.min-inline-size.min-intrinsic-sizing.-webkit-min-logical-height.-webkit-min-logical-width.min-width.min-zoom.mix-blend-mode.motion.motion-offset.motion-path.motion-rotation.nav-down.nav-index.nav-left.nav-right.nav-up.-webkit-nbsp-mode.negative.object-fit.-o-object-fit.object-position.-o-object-position.object-view-box.offset.offset-anchor.offset-block-end.offset-block-start.offset-distance.offset-inline-end.offset-inline-start.offset-path.offset-position.offset-rotate.offset-rotation.opacity.-moz-opacity.-webkit-opacity.order.-webkit-order.-moz-orient.orientation.orphans.-moz-osx-font-smoothing.outline.outline-color.-moz-outline-color.-moz-outline.outline-offset.-moz-outline-offset.-moz-outline-radius-bottomleft.-moz-outline-radius-bottomright.-moz-outline-radius.-moz-outline-radius-topleft.-moz-outline-radius-topright.outline-style.-moz-outline-style.outline-width.-moz-outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-clip-margin-block.overflow-clip-margin-block-end.overflow-clip-margin-block-start.overflow-clip-margin-bottom.overflow-clip-margin-inline.overflow-clip-margin-inline-end.overflow-clip-margin-inline-start.overflow-clip-margin-left.overflow-clip-margin-right.overflow-clip-margin-top.overflow-inline.-webkit-overflow-scrolling.-ms-overflow-style.overflow-wrap.overflow-x.overflow-y.overlay.override-colors.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.pad.padding.-webkit-padding-after.-webkit-padding-before.padding-block.padding-block-end.padding-block-start.padding-bottom.-moz-padding-end.-webkit-padding-end.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.-moz-padding-start.-webkit-padding-start.padding-top.page.page-break-after.page-break-before.page-break-inside.page-orientation.paint-order.pause.pause-after.pause-before.-apple-pay-button-style.-apple-pay-button-type.pen-action.perspective.-moz-perspective.-ms-perspective.perspective-origin.-moz-perspective-origin.-ms-perspective-origin.-webkit-perspective-origin.perspective-origin-x.-webkit-perspective-origin-x.perspective-origin-y.-webkit-perspective-origin-y.-webkit-perspective.pitch.pitch-range.place-content.place-items.place-self.play-during.pointer-events.position.position-animation.position-fallback.position-fallback-bounds.position-try.position-try-options.position-try-order.prefix.print-color-adjust.-webkit-print-color-adjust.property-name.quotes.r.range.-webkit-region-break-after.-webkit-region-break-before.-webkit-region-break-inside.region-fragment.-webkit-region-fragment.-webkit-region-overflow.resize.rest.rest-after.rest-before.richness.right.rotate.row-gap.-webkit-rtl-ordering.ruby-align.ruby-merge.ruby-overhang.ruby-position.-webkit-ruby-position.running.rx.ry.scale.scroll-behavior.-ms-scroll-chaining.-ms-scroll-limit.-ms-scroll-limit-x-max.-ms-scroll-limit-x-min.-ms-scroll-limit-y-max.-ms-scroll-limit-y-min.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.-ms-scroll-rails.scroll-snap-align.scroll-snap-coordinate.-webkit-scroll-snap-coordinate.scroll-snap-destination.-webkit-scroll-snap-destination.scroll-snap-margin.scroll-snap-margin-bottom.scroll-snap-margin-left.scroll-snap-margin-right.scroll-snap-margin-top.scroll-snap-points-x.-ms-scroll-snap-points-x.-webkit-scroll-snap-points-x.scroll-snap-points-y.-ms-scroll-snap-points-y.-webkit-scroll-snap-points-y.scroll-snap-stop.scroll-snap-type.-ms-scroll-snap-type.-webkit-scroll-snap-type.scroll-snap-type-x.scroll-snap-type-y.-ms-scroll-snap-x.-ms-scroll-snap-y.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.-ms-scroll-translation.scrollbar-arrow-color.scrollbar-base-color.scrollbar-color.scrollbar-dark-shadow-color.scrollbar-darkshadow-color.scrollbar-face-color.scrollbar-gutter.scrollbar-highlight-color.scrollbar-shadow-color.scrollbar-track-color.scrollbar-width.scrollbar3d-light-color.scrollbar3dlight-color.shape-image-threshold.-webkit-shape-image-threshold.shape-inside.-webkit-shape-inside.shape-margin.-webkit-shape-margin.shape-outside.-webkit-shape-outside.-webkit-shape-padding.shape-rendering.size.size-adjust.snap-height.solid-color.solid-opacity.spatial-navigation-action.spatial-navigation-contain.spatial-navigation-function.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.src.-moz-stack-sizing.stop-color.stop-opacity.stress.string-set.stroke.stroke-align.stroke-alignment.stroke-break.stroke-color.stroke-dash-corner.stroke-dash-justify.stroke-dashadjust.stroke-dasharray.stroke-dashcorner.stroke-dashoffset.stroke-image.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-origin.stroke-position.stroke-repeat.stroke-size.stroke-width.suffix.supported-color-schemes.-webkit-svg-shadow.symbols.syntax.system.tab-size.-moz-tab-size.-o-tab-size.-o-table-baseline.table-layout.-webkit-tap-highlight-color.text-align.text-align-all.text-align-last.-moz-text-align-last.text-anchor.text-autospace.-moz-text-blink.text-box-edge.text-box-trim.-ms-text-combine-horizontal.text-combine-upright.-webkit-text-combine.text-decoration.text-decoration-blink.text-decoration-color.-moz-text-decoration-color.-webkit-text-decoration-color.text-decoration-line.-moz-text-decoration-line.text-decoration-line-through.-webkit-text-decoration-line.text-decoration-none.text-decoration-overline.text-decoration-skip.text-decoration-skip-box.text-decoration-skip-ink.text-decoration-skip-inset.text-decoration-skip-self.text-decoration-skip-spaces.-webkit-text-decoration-skip.text-decoration-style.-moz-text-decoration-style.-webkit-text-decoration-style.text-decoration-thickness.text-decoration-trim.text-decoration-underline.-webkit-text-decoration.-webkit-text-decorations-in-effect.text-emphasis.text-emphasis-color.-webkit-text-emphasis-color.text-emphasis-position.-webkit-text-emphasis-position.text-emphasis-skip.text-emphasis-style.-webkit-text-emphasis-style.-webkit-text-emphasis.-webkit-text-fill-color.text-group-align.text-indent.text-justify.text-justify-trim.text-kashida.text-kashida-space.text-line-through.text-line-through-color.text-line-through-mode.text-line-through-style.text-line-through-width.text-orientation.-webkit-text-orientation.text-overflow.text-overline.text-overline-color.text-overline-mode.text-overline-style.text-overline-width.text-rendering.-webkit-text-security.text-shadow.text-size-adjust.-moz-text-size-adjust.-ms-text-size-adjust.-webkit-text-size-adjust.text-spacing.text-spacing-trim.-webkit-text-stroke-color.-webkit-text-stroke.-webkit-text-stroke-width.text-transform.text-underline.text-underline-color.text-underline-mode.text-underline-offset.text-underline-position.-webkit-text-underline-position.text-underline-style.text-underline-width.text-wrap.text-wrap-mode.text-wrap-style.-webkit-text-zoom.timeline-scope.top.touch-action.touch-action-delay.-ms-touch-action.-webkit-touch-callout.-ms-touch-select.-apple-trailing-word.transform.transform-box.-moz-transform.-ms-transform.-o-transform.transform-origin.-moz-transform-origin.-ms-transform-origin.-o-transform-origin.-webkit-transform-origin.transform-origin-x.-webkit-transform-origin-x.transform-origin-y.-webkit-transform-origin-y.transform-origin-z.-webkit-transform-origin-z.transform-style.-moz-transform-style.-ms-transform-style.-webkit-transform-style.-webkit-transform.transition.transition-behavior.transition-delay.-moz-transition-delay.-ms-transition-delay.-o-transition-delay.-webkit-transition-delay.transition-duration.-moz-transition-duration.-ms-transition-duration.-o-transition-duration.-webkit-transition-duration.-moz-transition.-ms-transition.-o-transition.transition-property.-moz-transition-property.-ms-transition-property.-o-transition-property.-webkit-transition-property.transition-timing-function.-moz-transition-timing-function.-ms-transition-timing-function.-o-transition-timing-function.-webkit-transition-timing-function.-webkit-transition.translate.uc-alt-skin.uc-skin.unicode-bidi.unicode-range.-webkit-user-drag.-moz-user-focus.-moz-user-input.-moz-user-modify.-webkit-user-modify.user-select.-moz-user-select.-ms-user-select.-webkit-user-select.user-zoom.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.viewport-fill.viewport-fill-opacity.viewport-fit.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.white-space-collapse.white-space-trim.-webkit-widget-region.widows.width.will-change.-moz-window-dragging.-moz-window-shadow.word-break.word-space-transform.word-spacing.word-wrap.wrap-after.wrap-before.wrap-flow.-ms-wrap-flow.-webkit-wrap-flow.wrap-inside.-ms-wrap-margin.-webkit-wrap-margin.-webkit-wrap-padding.-webkit-wrap-shape-inside.-webkit-wrap-shape-outside.wrap-through.-ms-wrap-through.-webkit-wrap-through.-webkit-wrap.writing-mode.-webkit-writing-mode.x.y.z-index.zoom`.split(`.`)}})),LCe=a(((e,t)=>{t.exports.all=ICe().properties})),RCe=F4(),zCe=r(k8(),1),F8=P8(),BCe=r(PCe(),1),VCe=r(FCe(),1),HCe=LCe(),I8=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,L8=/\n/g,UCe=/^\s*/,WCe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GCe=/^:\s*/,R8=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,KCe=/^[;\s]*/,qCe=/^\s+|\s+$/g,z8=`
|
|
1071
|
+
`)}return a;function o(){return i.service.openClientFile(n,r.codeFullText,void 0,r.tsconfigRootDir)}function s(){h(`Opening project service client file at path: %s`,n);let e=o();return!e.configFileErrors&&!e.configFileName&&!r.singleRun&&!t&&performance.now()-i.lastReloadTimestamp>250&&(h(`No config file found; reloading project service and retrying.`),i.service.reloadProjects(),e=o(),i.lastReloadTimestamp=performance.now()),e}}function y(e,t,n){return h(`No project service information available. Creating no program.`),n.getScriptInfo(e)&&(h(`Script info available. Opening client file in project service.`),n.openClientFile(e,t.codeFullText,void 0,t.tsconfigRootDir)),(0,f.createNoProgram)(t)}function b(e,t,n){h(`Retrieving script info and then program for: %s`,e);let r=n.service.getScriptInfo(e),i=n.service.getDefaultProjectForFile(r.fileName,!0).getLanguageService(!0).getProgram();if(!i){h(`Could not find project service program for: %s`,e);return}return h(`Found project service program for: %s`,e),(0,d.createProjectProgram)(t,[i])}function x(e,t,n,r){_(e.service,t.extraFileExtensions);let i=S(t.filePath,e);h(`Opening project service file for: %s at absolute path %s`,t.filePath,i);let a=C(c.default.relative(t.tsconfigRootDir,i),e.allowDefaultProject);return!n&&!a?y(i,t,e.service):(h(`Opened project service file: %o`,n&&v(r,a,i,t,e)),b(i,t,e))}function S(e,t){return c.default.isAbsolute(e)?e:c.default.join(t.service.host.getCurrentDirectory(),e)}function C(e,t){return!!t?.some(t=>(0,s.minimatch)(e,t,{dot:!0}))}})),E8=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.clearProgramCache=g,e.clearDefaultProjectMatchedFiles=v,e.parse=b,e.clearParseAndGenerateServicesCalls=C,e.parseAndGenerateServices=w;let n=t(y2()),r=wSe(),i=SSe(),a=TSe(),o=b8(),s=DSe(),c=Gxe(),l=OSe(),u=kSe(),d=qSe(),f=JSe(),p=nCe(),m=(0,n.default)(`typescript-eslint:typescript-estree:parser`),h=new Map;function g(){h.clear()}let _=new Set;function v(){_.clear()}function y(e,t){if(e.projectService){let n=(0,p.useProgramFromProjectService)(e.projectService,e,t,_);if(n)return n}return e.programs?(0,l.useProvidedPrograms)(e.programs,e):t?(0,o.createProjectProgram)(e,(0,c.getWatchProgramsForProjects)(e)):(0,s.createNoProgram)(e)}function b(e,t){let{ast:n}=x(e,t,!1);return n}function x(e,t,n){let i=(0,d.createParseSettings)(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`);let a=(0,s.createSourceFile)(i),{astMaps:o,estree:c}=(0,r.astConverter)(a,i,n);return{ast:c,esTreeNodeToTSNodeMap:o.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:o.tsNodeToESTreeNodeMap}}let S={};function C(){S={}}function w(e,t){let n=(0,d.createParseSettings)(e,t);n.singleRun&&!n.programs&&n.projects.size>0&&(n.programs={*[Symbol.iterator](){for(let e of n.projects){let t=h.get(e[0]);if(t)yield t;else{m(`Detected single-run/CLI usage, creating Program once ahead of time for project: %s`,e);let t=(0,l.createProgramFromConfigFile)(e[1]);h.set(e[0],t),yield t}}}});let o=n.programs!=null||n.projects.size>0||!!n.projectService;if(typeof t.errorOnTypeScriptSyntacticAndSemanticIssues==`boolean`&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(n.errorOnTypeScriptSyntacticAndSemanticIssues=!0),n.errorOnTypeScriptSyntacticAndSemanticIssues&&!o)throw Error(`Cannot calculate TypeScript semantic issues without a valid project.`);n.singleRun&&t.filePath&&(S[t.filePath]=(S[t.filePath]||0)+1);let{ast:s,program:c}=n.singleRun&&t.filePath&&S[t.filePath]>1&&!n.projectService?(0,a.createIsolatedProgram)(n):y(n,o),p=typeof n.preserveNodeMaps==`boolean`?n.preserveNodeMaps:!0,{astMaps:g,estree:_}=(0,r.astConverter)(s,n,p);if(c&&n.errorOnTypeScriptSyntacticAndSemanticIssues){let e=(0,f.getFirstSemanticOrSyntacticError)(c,s);if(e)throw(0,i.convertError)(e)}return{ast:_,services:(0,u.createParserServices)(g,c)}}})),D8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.clearProgramCache=void 0,e.clearCaches=o;let t=Gxe(),n=E8(),r=x8(),i=qSe(),a=USe();function o(){(0,r.clearCandidateTSConfigRootDirs)(),(0,n.clearDefaultProjectMatchedFiles)(),(0,n.clearProgramCache)(),(0,t.clearWatchCaches)(),(0,i.clearTSConfigMatchCache)(),(0,i.clearTSServerProjectService)(),(0,a.clearGlobCache)()}e.clearProgramCache=o})),rCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.withoutProjectParserOptions=t;function t(e){let{EXPERIMENTAL_useProjectService:t,project:n,projectService:r,...i}=e;return i}})),O8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.withoutProjectParserOptions=e.version=e.typescriptVersionIsAtLeast=e.simpleTraverse=e.clearCandidateTSConfigRootDirs=e.addCandidateTSConfigRootDir=e.parseAndGenerateServices=e.parse=e.TSError=e.createProgram=e.getCanonicalFileName=void 0,n(D8(),e),n(v8(),e);var r=G6();Object.defineProperty(e,`getCanonicalFileName`,{enumerable:!0,get:function(){return r.getCanonicalFileName}});var i=OSe();Object.defineProperty(e,`createProgram`,{enumerable:!0,get:function(){return i.createProgramFromConfigFile}}),n(f8(),e);var a=m8();Object.defineProperty(e,`TSError`,{enumerable:!0,get:function(){return a.TSError}});var o=E8();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(e,`parseAndGenerateServices`,{enumerable:!0,get:function(){return o.parseAndGenerateServices}});var s=x8();Object.defineProperty(e,`addCandidateTSConfigRootDir`,{enumerable:!0,get:function(){return s.addCandidateTSConfigRootDir}}),Object.defineProperty(e,`clearCandidateTSConfigRootDirs`,{enumerable:!0,get:function(){return s.clearCandidateTSConfigRootDirs}});var c=CSe();Object.defineProperty(e,`simpleTraverse`,{enumerable:!0,get:function(){return c.simpleTraverse}}),n(p8(),e);var l=d8();Object.defineProperty(e,`typescriptVersionIsAtLeast`,{enumerable:!0,get:function(){return l.typescriptVersionIsAtLeast}});var u=GSe();Object.defineProperty(e,`version`,{enumerable:!0,get:function(){return u.version}});var d=rCe();Object.defineProperty(e,`withoutProjectParserOptions`,{enumerable:!0,get:function(){return d.withoutProjectParserOptions}})})),iCe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=d,e.parseForESLint=f;let n=z6(),r=O8(),i=k3(),a=t(y2()),o=U6(),s=(0,a.default)(`typescript-eslint:parser:parser`);function c(e,t=!1){return typeof e==`boolean`?e:t}let l=/lib\.(.+)\.d\.[cm]?ts$/;function u(e){if(e.lib)return e.lib.map(e=>l.exec(e.toLowerCase())?.[1]).filter(e=>!!e);let t=r.typescriptVersionIsAtLeast[`6.0`]?o.ScriptTarget.LatestStandard:o.ScriptTarget.ES5;switch(e.target??t){case o.ScriptTarget.ES2015:return[`es6`];case o.ScriptTarget.ES2016:return[`es2016.full`];case o.ScriptTarget.ES2017:return[`es2017.full`];case o.ScriptTarget.ES2018:return[`es2018.full`];case o.ScriptTarget.ES2019:return[`es2019.full`];case o.ScriptTarget.ES2020:return[`es2020.full`];case o.ScriptTarget.ES2021:return[`es2021.full`];case o.ScriptTarget.ES2022:return[`es2022.full`];case o.ScriptTarget.ES2023:return[`es2023.full`];case o.ScriptTarget.ES2024:return[`es2024.full`];case o.ScriptTarget.ES2025:return[`es2025.full`];case o.ScriptTarget.ESNext:return[`esnext.full`];default:return[`lib`]}}function d(e,t){return f(e,t).ast}function f(e,t){t=!t||typeof t!=`object`?{}:{...t},t.sourceType!==`module`&&t.sourceType!==`script`&&(t.sourceType=`script`),typeof t.ecmaFeatures!=`object`&&(t.ecmaFeatures={});let a=c(t.warnOnUnsupportedTypeScriptVersion,!0),o={jsx:c(t.ecmaFeatures.jsx),...!a&&{loggerFn:!1},...t,errorOnTypeScriptSyntacticAndSemanticIssues:!1,comment:!0,loc:!0,range:!0,tokens:!0},l={globalReturn:t.ecmaFeatures.globalReturn,jsxFragmentName:t.jsxFragmentName,jsxPragma:t.jsxPragma,lib:t.lib,sourceType:t.sourceType},{ast:d,services:f}=(0,r.parseAndGenerateServices)(e,o);if(d.sourceType=t.sourceType,f.program){let e=f.program.getCompilerOptions();l.lib??(l.lib=u(e),s(`Resolved libs from program: %o`,l.lib)),l.jsxPragma===void 0&&e.jsxFactory!=null&&(l.jsxPragma=e.jsxFactory.split(`.`)[0].trim(),s(`Resolved jsxPragma from program: %s`,l.jsxPragma)),l.jsxFragmentName===void 0&&e.jsxFragmentFactory!=null&&(l.jsxFragmentName=e.jsxFragmentFactory.split(`.`)[0].trim(),s(`Resolved jsxFragmentName from program: %s`,l.jsxFragmentName))}let p=(0,n.analyze)(d,l);return f.emitDecoratorMetadata??=t.emitDecoratorMetadata===!0,f.experimentalDecorators??=t.experimentalDecorators===!0,f.isolatedDeclarations??=t.isolatedDeclarations===!0,{ast:d,scopeManager:p,services:f,visitorKeys:i.visitorKeys}}})),aCe=a(((e,t)=>{t.exports={name:`@typescript-eslint/parser`,version:`8.59.2`,description:`An ESLint custom parser which leverages TypeScript ESTree`,files:[`dist`,`!**/*.tsbuildinfo`,`README.md`,`LICENSE`],type:`commonjs`,exports:{".":{types:`./dist/index.d.ts`,default:`./dist/index.js`},"./package.json":`./package.json`},engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`},repository:{type:`git`,url:`https://github.com/typescript-eslint/typescript-eslint.git`,directory:`packages/parser`},bugs:{url:`https://github.com/typescript-eslint/typescript-eslint/issues`},homepage:`https://typescript-eslint.io/packages/parser`,license:`MIT`,keywords:[`ast`,`ecmascript`,`javascript`,`typescript`,`parser`,`syntax`,`eslint`],peerDependencies:{eslint:`^8.57.0 || ^9.0.0 || ^10.0.0`,typescript:`>=4.8.4 <6.1.0`},dependencies:{debug:`^4.4.3`,"@typescript-eslint/scope-manager":`8.59.2`,"@typescript-eslint/types":`8.59.2`,"@typescript-eslint/typescript-estree":`8.59.2`,"@typescript-eslint/visitor-keys":`8.59.2`},devDependencies:{"@vitest/coverage-v8":`^4.0.18`,eslint:`^10.0.0`,glob:`^11.1.0`,rimraf:`^5.0.10`,typescript:`>=4.8.4 <6.1.0`,vitest:`^4.0.18`},funding:{type:`opencollective`,url:`https://opencollective.com/typescript-eslint`},nx:{name:`parser`,includedScripts:[`clean`],targets:{lint:{command:`eslint`}}},scripts:{build:`pnpm exec nx build`,clean:`rimraf dist/ coverage/`,format:`pnpm -w run format`,lint:`pnpm -w exec nx lint`,test:`pnpm -w exec nx test`,typecheck:`pnpm -w exec nx typecheck`}}})),k8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.meta=e.version=e.withoutProjectParserOptions=e.createProgram=e.clearCaches=e.parseForESLint=e.parse=void 0;var t=iCe();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return t.parse}}),Object.defineProperty(e,`parseForESLint`,{enumerable:!0,get:function(){return t.parseForESLint}});var n=O8();Object.defineProperty(e,`clearCaches`,{enumerable:!0,get:function(){return n.clearCaches}}),Object.defineProperty(e,`createProgram`,{enumerable:!0,get:function(){return n.createProgram}}),Object.defineProperty(e,`withoutProjectParserOptions`,{enumerable:!0,get:function(){return n.withoutProjectParserOptions}}),e.version=aCe().version,e.meta={name:`typescript-eslint/parser`,version:e.version}})),oCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isParenthesized=e.hasSideEffect=e.getStringIfConstant=e.getStaticValue=e.getPropertyName=e.getFunctionNameWithKind=e.getFunctionHeadLocation=void 0;let i=r(H2());e.getFunctionHeadLocation=i.getFunctionHeadLocation,e.getFunctionNameWithKind=i.getFunctionNameWithKind,e.getPropertyName=i.getPropertyName,e.getStaticValue=i.getStaticValue,e.getStringIfConstant=i.getStringIfConstant,e.hasSideEffect=i.hasSideEffect,e.isParenthesized=i.isParenthesized})),sCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.PatternMatcher=void 0,e.PatternMatcher=r(H2()).PatternMatcher})),cCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isNotSemicolonToken=e.isSemicolonToken=e.isNotOpeningParenToken=e.isOpeningParenToken=e.isNotOpeningBracketToken=e.isOpeningBracketToken=e.isNotOpeningBraceToken=e.isOpeningBraceToken=e.isNotCommentToken=e.isCommentToken=e.isNotCommaToken=e.isCommaToken=e.isNotColonToken=e.isColonToken=e.isNotClosingParenToken=e.isClosingParenToken=e.isNotClosingBracketToken=e.isClosingBracketToken=e.isNotClosingBraceToken=e.isClosingBraceToken=e.isNotArrowToken=e.isArrowToken=void 0;let i=r(H2());e.isArrowToken=i.isArrowToken,e.isNotArrowToken=i.isNotArrowToken,e.isClosingBraceToken=i.isClosingBraceToken,e.isNotClosingBraceToken=i.isNotClosingBraceToken,e.isClosingBracketToken=i.isClosingBracketToken,e.isNotClosingBracketToken=i.isNotClosingBracketToken,e.isClosingParenToken=i.isClosingParenToken,e.isNotClosingParenToken=i.isNotClosingParenToken,e.isColonToken=i.isColonToken,e.isNotColonToken=i.isNotColonToken,e.isCommaToken=i.isCommaToken,e.isNotCommaToken=i.isNotCommaToken,e.isCommentToken=i.isCommentToken,e.isNotCommentToken=i.isNotCommentToken,e.isOpeningBraceToken=i.isOpeningBraceToken,e.isNotOpeningBraceToken=i.isNotOpeningBraceToken,e.isOpeningBracketToken=i.isOpeningBracketToken,e.isNotOpeningBracketToken=i.isNotOpeningBracketToken,e.isOpeningParenToken=i.isOpeningParenToken,e.isNotOpeningParenToken=i.isNotOpeningParenToken,e.isSemicolonToken=i.isSemicolonToken,e.isNotSemicolonToken=i.isNotSemicolonToken})),lCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ReferenceTracker=void 0;let i=r(H2());i.ReferenceTracker.READ,i.ReferenceTracker.CALL,i.ReferenceTracker.CONSTRUCT,i.ReferenceTracker.ESM,e.ReferenceTracker=i.ReferenceTracker})),A8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getInnermostScope=e.findVariable=void 0;let i=r(H2());e.findVariable=i.findVariable,e.getInnermostScope=i.getInnermostScope})),uCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(oCe(),e),n(sCe(),e),n(cCe(),e),n(lCe(),e),n(A8(),e)})),dCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isNotTokenOfTypeWithConditions=e.isTokenOfTypeWithConditions=e.isNodeOfTypeWithConditions=e.isNodeOfTypes=e.isNodeOfType=void 0,e.isNodeOfType=e=>t=>t?.type===e,e.isNodeOfTypes=e=>t=>!!t&&e.includes(t.type),e.isNodeOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isTokenOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isNotTokenOfTypeWithConditions=(t,n)=>r=>!(0,e.isTokenOfTypeWithConditions)(t,n)(r)})),fCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LINEBREAK_MATCHER=void 0,e.isTokenOnSameLine=t,e.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/;function t(e,t){return e.loc.end.line===t.loc.start.line}})),pCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TSESTree=e.AST_TOKEN_TYPES=e.AST_NODE_TYPES=void 0;var t=A3();Object.defineProperty(e,`AST_NODE_TYPES`,{enumerable:!0,get:function(){return t.AST_NODE_TYPES}}),Object.defineProperty(e,`AST_TOKEN_TYPES`,{enumerable:!0,get:function(){return t.AST_TOKEN_TYPES}}),Object.defineProperty(e,`TSESTree`,{enumerable:!0,get:function(){return t.TSESTree}})})),mCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLoop=e.isImportKeyword=e.isTypeKeyword=e.isAwaitKeyword=e.isAwaitExpression=e.isIdentifier=e.isConstructor=e.isClassOrTypeElement=e.isTSConstructorType=e.isTSFunctionType=e.isFunctionOrFunctionType=e.isFunctionType=e.isFunction=e.isVariableDeclarator=e.isTypeAssertion=e.isLogicalOrOperator=e.isOptionalCallExpression=e.isNotNonNullAssertionPunctuator=e.isNonNullAssertionPunctuator=e.isNotOptionalChainPunctuator=e.isOptionalChainPunctuator=void 0,e.isSetter=a;let t=pCe(),n=dCe();e.isOptionalChainPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`?.`}),e.isNotOptionalChainPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`?.`}),e.isNonNullAssertionPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`!`}),e.isNotNonNullAssertionPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:`!`}),e.isOptionalCallExpression=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.CallExpression,{optional:!0}),e.isLogicalOrOperator=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.LogicalExpression,{operator:`||`}),e.isTypeAssertion=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion]),e.isVariableDeclarator=(0,n.isNodeOfType)(t.AST_NODE_TYPES.VariableDeclarator);let r=[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression];e.isFunction=(0,n.isNodeOfTypes)(r);let i=[t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructorType,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature];e.isFunctionType=(0,n.isNodeOfTypes)(i),e.isFunctionOrFunctionType=(0,n.isNodeOfTypes)([...r,...i]),e.isTSFunctionType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSFunctionType),e.isTSConstructorType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSConstructorType),e.isClassOrTypeElement=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.PropertyDefinition,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.MethodDefinition,t.AST_NODE_TYPES.TSAbstractPropertyDefinition,t.AST_NODE_TYPES.TSAbstractMethodDefinition,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSIndexSignature,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSMethodSignature,t.AST_NODE_TYPES.TSPropertySignature]),e.isConstructor=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.MethodDefinition,{kind:`constructor`});function a(e){return!!e&&(e.type===t.AST_NODE_TYPES.MethodDefinition||e.type===t.AST_NODE_TYPES.Property)&&e.kind===`set`}e.isIdentifier=(0,n.isNodeOfType)(t.AST_NODE_TYPES.Identifier),e.isAwaitExpression=(0,n.isNodeOfType)(t.AST_NODE_TYPES.AwaitExpression),e.isAwaitKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:`await`}),e.isTypeKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:`type`}),e.isImportKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Keyword,{value:`import`}),e.isLoop=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.DoWhileStatement,t.AST_NODE_TYPES.ForStatement,t.AST_NODE_TYPES.ForInStatement,t.AST_NODE_TYPES.ForOfStatement,t.AST_NODE_TYPES.WhileStatement])})),j8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(uCe(),e),n(dCe(),e),n(fCe(),e),n(mCe(),e)})),hCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),gCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),_Ce=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),M8=a(((e,t)=>{let{FileEnumerator:n}=sye(),{ESLint:r,shouldUseFlatConfig:i}=x3(),{LegacyESLint:a}=uye();t.exports={builtinRules:E4(),FlatESLint:r,shouldUseFlatConfig:i,FileEnumerator:n,LegacyESLint:a}})),vCe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.FlatESLint=void 0;let n=w3(),r=t(M8());e.FlatESLint=class extends (r.default.FlatESLint??n.ESLint){}})),yCe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyESLint=void 0;let n=w3(),r=t(M8());function i(){throw Error(`LegacyESLint is not available with the current version of ESLint.`)}var a=class{static configType=`eslintrc`;static version=n.ESLint.version;constructor(){i()}static getErrorResults(){i()}static outputFixes(){i()}};e.LegacyESLint=class extends (r.default.LegacyESLint??a){}})),bCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyESLint=e.ESLint=e.FlatESLint=void 0;var t=vCe();Object.defineProperty(e,`FlatESLint`,{enumerable:!0,get:function(){return t.FlatESLint}});var n=vCe();Object.defineProperty(e,`ESLint`,{enumerable:!0,get:function(){return n.FlatESLint}});var r=yCe();Object.defineProperty(e,`LegacyESLint`,{enumerable:!0,get:function(){return r.LegacyESLint}})})),xCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Linter=void 0;let t=w3();e.Linter=class extends t.Linter{}})),SCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),CCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),wCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),TCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ECe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RuleTester=void 0;let t=w3();e.RuleTester=class extends t.RuleTester{}})),DCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Scope=void 0;let i=r(z6());var a;(function(e){e.ScopeType=i.ScopeType,e.DefinitionType=i.DefinitionType})(a||(e.Scope=a={}))})),N8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SourceCode=void 0;let t=w3();e.SourceCode=class extends t.SourceCode{}})),OCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(gCe(),e),n(_Ce(),e),n(bCe(),e),n(xCe(),e),n(SCe(),e),n(CCe(),e),n(wCe(),e),n(TCe(),e),n(ECe(),e),n(DCe(),e),n(N8(),e)})),kCe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArray=t;function t(e){return Array.isArray(e)}})),ACe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),jCe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(kCe(),e),n(ACe(),e)})),P8=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.TSUtils=e.TSESLint=e.JSONSchema=e.ESLintUtils=e.ASTUtils=void 0,e.ASTUtils=r(j8()),e.ESLintUtils=r(c1()),e.JSONSchema=r(hCe()),e.TSESLint=r(OCe()),i(pCe(),e),e.TSUtils=r(jCe())})),MCe=a(((e,t)=>{t.exports=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`)})),NCe=a(((e,t)=>{t.exports=MCe()})),PCe=a(((e,t)=>{let n=NCe(),r=/\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i,i=new RegExp(n.map(e=>`<${e}\\b[^>]*>`).join(`|`),`i`);t.exports=e=>r.test(e)||i.test(e)})),FCe=a(((e,t)=>{var n=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,r=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;t.exports=e=function(e){return e.replace(n,function(e){return`-`+e.toLowerCase()})},e.reverse=function(e){return e.replace(r,function(e){return e.slice(1).toUpperCase()})}})),ICe=a(((e,t)=>{t.exports={properties:`-epub-caption-side.-epub-hyphens.-epub-text-combine.-epub-text-emphasis.-epub-text-emphasis-color.-epub-text-emphasis-style.-epub-text-orientation.-epub-text-transform.-epub-word-break.-epub-writing-mode.-internal-text-autosizing-status.accelerator.accent-color.-wap-accesskey.additive-symbols.align-content.-webkit-align-content.align-items.-webkit-align-items.align-self.-webkit-align-self.alignment-baseline.all.alt.-webkit-alt.anchor-default.anchor-name.anchor-scroll.animation.animation-composition.animation-delay.-moz-animation-delay.-ms-animation-delay.-webkit-animation-delay.animation-direction.-moz-animation-direction.-ms-animation-direction.-webkit-animation-direction.animation-duration.-moz-animation-duration.-ms-animation-duration.-webkit-animation-duration.animation-fill-mode.-moz-animation-fill-mode.-ms-animation-fill-mode.-webkit-animation-fill-mode.animation-iteration-count.-moz-animation-iteration-count.-ms-animation-iteration-count.-webkit-animation-iteration-count.-moz-animation.-ms-animation.animation-name.-moz-animation-name.-ms-animation-name.-webkit-animation-name.animation-play-state.-moz-animation-play-state.-ms-animation-play-state.-webkit-animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.-moz-animation-timing-function.-ms-animation-timing-function.-webkit-animation-timing-function.-webkit-animation-trigger.-webkit-animation.app-region.-webkit-app-region.appearance.-moz-appearance.-webkit-appearance.ascent-override.aspect-ratio.-webkit-aspect-ratio.audio-level.azimuth.backdrop-filter.-webkit-backdrop-filter.backface-visibility.-moz-backface-visibility.-ms-backface-visibility.-webkit-backface-visibility.background.background-attachment.-webkit-background-attachment.background-blend-mode.background-clip.-moz-background-clip.-webkit-background-clip.background-color.-webkit-background-color.-webkit-background-composite.background-image.-webkit-background-image.-moz-background-inline-policy.background-origin.-moz-background-origin.-webkit-background-origin.background-position.-webkit-background-position.background-position-x.-webkit-background-position-x.background-position-y.-webkit-background-position-y.background-repeat.-webkit-background-repeat.background-repeat-x.background-repeat-y.background-size.-moz-background-size.-webkit-background-size.-webkit-background.base-palette.baseline-shift.baseline-source.behavior.-moz-binding.block-ellipsis.-ms-block-progression.block-size.block-step.block-step-align.block-step-insert.block-step-round.block-step-size.bookmark-label.bookmark-level.bookmark-state.border.-webkit-border-after-color.-webkit-border-after-style.-webkit-border-after.-webkit-border-after-width.-webkit-border-before-color.-webkit-border-before-style.-webkit-border-before.-webkit-border-before-width.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.-moz-border-bottom-colors.border-bottom-left-radius.-webkit-border-bottom-left-radius.border-bottom-right-radius.-webkit-border-bottom-right-radius.border-bottom-style.border-bottom-width.border-boundary.border-collapse.border-color.-moz-border-end-color.-webkit-border-end-color.border-end-end-radius.-moz-border-end.border-end-start-radius.-moz-border-end-style.-webkit-border-end-style.-webkit-border-end.-moz-border-end-width.-webkit-border-end-width.-webkit-border-fit.-webkit-border-horizontal-spacing.border-image.-moz-border-image.-o-border-image.border-image-outset.-webkit-border-image-outset.border-image-repeat.-webkit-border-image-repeat.border-image-slice.-webkit-border-image-slice.border-image-source.-webkit-border-image-source.-webkit-border-image.border-image-width.-webkit-border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.-moz-border-left-colors.border-left-style.border-left-width.border-radius.-moz-border-radius-bottomleft.-moz-border-radius-bottomright.-moz-border-radius.-moz-border-radius-topleft.-moz-border-radius-topright.-webkit-border-radius.border-right.border-right-color.-moz-border-right-colors.border-right-style.border-right-width.border-spacing.-moz-border-start-color.-webkit-border-start-color.border-start-end-radius.-moz-border-start.border-start-start-radius.-moz-border-start-style.-webkit-border-start-style.-webkit-border-start.-moz-border-start-width.-webkit-border-start-width.border-style.border-top.border-top-color.-moz-border-top-colors.border-top-left-radius.-webkit-border-top-left-radius.border-top-right-radius.-webkit-border-top-right-radius.border-top-style.border-top-width.-webkit-border-vertical-spacing.border-width.bottom.-moz-box-align.-webkit-box-align.box-decoration-break.-webkit-box-decoration-break.-moz-box-direction.-webkit-box-direction.-webkit-box-flex-group.-moz-box-flex.-webkit-box-flex.-webkit-box-lines.-moz-box-ordinal-group.-webkit-box-ordinal-group.-moz-box-orient.-webkit-box-orient.-moz-box-pack.-webkit-box-pack.-webkit-box-reflect.box-shadow.-moz-box-shadow.-webkit-box-shadow.box-sizing.-moz-box-sizing.-webkit-box-sizing.box-snap.break-after.break-before.break-inside.buffered-rendering.caption-side.caret.caret-animation.caret-color.caret-shape.chains.clear.clip.clip-path.-webkit-clip-path.clip-rule.color.color-adjust.-webkit-color-correction.-apple-color-filter.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.-webkit-column-axis.-webkit-column-break-after.-webkit-column-break-before.-webkit-column-break-inside.column-count.-moz-column-count.-webkit-column-count.column-fill.-moz-column-fill.-webkit-column-fill.column-gap.-moz-column-gap.-webkit-column-gap.column-progression.-webkit-column-progression.column-rule.column-rule-color.-moz-column-rule-color.-webkit-column-rule-color.-moz-column-rule.column-rule-style.-moz-column-rule-style.-webkit-column-rule-style.-webkit-column-rule.column-rule-width.-moz-column-rule-width.-webkit-column-rule-width.column-span.-moz-column-span.-webkit-column-span.column-width.-moz-column-width.-webkit-column-width.columns.-moz-columns.-webkit-columns.-webkit-composition-fill-color.-webkit-composition-frame-color.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.-ms-content-zoom-chaining.-ms-content-zoom-limit-max.-ms-content-zoom-limit-min.-ms-content-zoom-limit.-ms-content-zoom-snap.-ms-content-zoom-snap-points.-ms-content-zoom-snap-type.-ms-content-zooming.continue.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.-webkit-cursor-visibility.cx.cy.d.-apple-dashboard-region.-webkit-dashboard-region.descent-override.direction.display.display-align.dominant-baseline.elevation.empty-cells.enable-background.epub-caption-side.epub-hyphens.epub-text-combine.epub-text-emphasis.epub-text-emphasis-color.epub-text-emphasis-style.epub-text-orientation.epub-text-transform.epub-word-break.epub-writing-mode.fallback.field-sizing.fill.fill-break.fill-color.fill-image.fill-opacity.fill-origin.fill-position.fill-repeat.fill-rule.fill-size.filter.-ms-filter.-webkit-filter.flex.-ms-flex-align.-webkit-flex-align.flex-basis.-webkit-flex-basis.flex-direction.-ms-flex-direction.-webkit-flex-direction.flex-flow.-ms-flex-flow.-webkit-flex-flow.flex-grow.-webkit-flex-grow.-ms-flex-item-align.-webkit-flex-item-align.-ms-flex-line-pack.-webkit-flex-line-pack.-ms-flex.-ms-flex-negative.-ms-flex-order.-webkit-flex-order.-ms-flex-pack.-webkit-flex-pack.-ms-flex-positive.-ms-flex-preferred-size.flex-shrink.-webkit-flex-shrink.-webkit-flex.flex-wrap.-ms-flex-wrap.-webkit-flex-wrap.float.float-defer.-moz-float-edge.float-offset.float-reference.flood-color.flood-opacity.flow.flow-from.-ms-flow-from.-webkit-flow-from.flow-into.-ms-flow-into.-webkit-flow-into.font.font-display.font-family.font-feature-settings.-moz-font-feature-settings.-ms-font-feature-settings.-webkit-font-feature-settings.font-kerning.-webkit-font-kerning.font-language-override.-moz-font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.-webkit-font-size-delta.-webkit-font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.-webkit-font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.font-width.footnote-display.footnote-policy.-moz-force-broken-image-icon.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.-webkit-grid-after.grid-area.grid-auto-columns.-webkit-grid-auto-columns.grid-auto-flow.-webkit-grid-auto-flow.grid-auto-rows.-webkit-grid-auto-rows.-webkit-grid-before.grid-column.-ms-grid-column-align.grid-column-end.grid-column-gap.-ms-grid-column.-ms-grid-column-span.grid-column-start.-webkit-grid-column.-ms-grid-columns.-webkit-grid-columns.-webkit-grid-end.grid-gap.grid-row.-ms-grid-row-align.grid-row-end.grid-row-gap.-ms-grid-row.-ms-grid-row-span.grid-row-start.-webkit-grid-row.-ms-grid-rows.-webkit-grid-rows.-webkit-grid-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.-ms-high-contrast-adjust.-webkit-highlight.hyphenate-character.-webkit-hyphenate-character.-webkit-hyphenate-limit-after.-webkit-hyphenate-limit-before.hyphenate-limit-chars.-ms-hyphenate-limit-chars.hyphenate-limit-last.hyphenate-limit-lines.-ms-hyphenate-limit-lines.-webkit-hyphenate-limit-lines.hyphenate-limit-zone.-ms-hyphenate-limit-zone.hyphens.-moz-hyphens.-ms-hyphens.-webkit-hyphens.image-orientation.-moz-image-region.image-rendering.image-resolution.-ms-ime-align.ime-mode.inherits.initial-letter.initial-letter-align.-webkit-initial-letter.initial-letter-wrap.initial-value.inline-size.inline-sizing.input-format.-wap-input-format.-wap-input-required.input-security.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.-ms-interpolation-mode.isolation.justify-content.-webkit-justify-content.justify-items.-webkit-justify-items.justify-self.-webkit-justify-self.kerning.layout-flow.layout-grid.layout-grid-char.layout-grid-line.layout-grid-mode.layout-grid-type.left.letter-spacing.lighting-color.-webkit-line-align.-webkit-line-box-contain.line-break.-webkit-line-break.line-clamp.-webkit-line-clamp.line-gap-override.line-grid.-webkit-line-grid-snap.-webkit-line-grid.line-height.line-height-step.line-increment.line-padding.line-snap.-webkit-line-snap.-o-link.-o-link-source.list-style.list-style-image.list-style-position.list-style-type.-webkit-locale.-webkit-logical-height.-webkit-logical-width.margin.-webkit-margin-after-collapse.-webkit-margin-after.-webkit-margin-before-collapse.-webkit-margin-before.margin-block.margin-block-end.margin-block-start.margin-bottom.-webkit-margin-bottom-collapse.margin-break.-webkit-margin-collapse.-moz-margin-end.-webkit-margin-end.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.-moz-margin-start.-webkit-margin-start.margin-top.-webkit-margin-top-collapse.margin-trim.marker.marker-end.marker-knockout-left.marker-knockout-right.marker-mid.marker-offset.marker-pattern.marker-segment.marker-side.marker-start.marks.-wap-marquee-dir.-webkit-marquee-direction.-webkit-marquee-increment.-wap-marquee-loop.-webkit-marquee-repetition.-wap-marquee-speed.-webkit-marquee-speed.-wap-marquee-style.-webkit-marquee-style.-webkit-marquee.mask.-webkit-mask-attachment.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.-webkit-mask-box-image-outset.-webkit-mask-box-image-repeat.-webkit-mask-box-image-slice.-webkit-mask-box-image-source.-webkit-mask-box-image.-webkit-mask-box-image-width.mask-clip.-webkit-mask-clip.mask-composite.-webkit-mask-composite.mask-image.-webkit-mask-image.mask-mode.mask-origin.-webkit-mask-origin.mask-position.-webkit-mask-position.mask-position-x.-webkit-mask-position-x.mask-position-y.-webkit-mask-position-y.mask-repeat.-webkit-mask-repeat.-webkit-mask-repeat-x.-webkit-mask-repeat-y.mask-size.-webkit-mask-size.mask-source-type.-webkit-mask-source-type.mask-type.-webkit-mask.-webkit-match-nearest-mail-blockquote-color.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-lines.-webkit-max-logical-height.-webkit-max-logical-width.max-width.max-zoom.min-block-size.min-height.min-inline-size.min-intrinsic-sizing.-webkit-min-logical-height.-webkit-min-logical-width.min-width.min-zoom.mix-blend-mode.motion.motion-offset.motion-path.motion-rotation.nav-down.nav-index.nav-left.nav-right.nav-up.-webkit-nbsp-mode.negative.object-fit.-o-object-fit.object-position.-o-object-position.object-view-box.offset.offset-anchor.offset-block-end.offset-block-start.offset-distance.offset-inline-end.offset-inline-start.offset-path.offset-position.offset-rotate.offset-rotation.opacity.-moz-opacity.-webkit-opacity.order.-webkit-order.-moz-orient.orientation.orphans.-moz-osx-font-smoothing.outline.outline-color.-moz-outline-color.-moz-outline.outline-offset.-moz-outline-offset.-moz-outline-radius-bottomleft.-moz-outline-radius-bottomright.-moz-outline-radius.-moz-outline-radius-topleft.-moz-outline-radius-topright.outline-style.-moz-outline-style.outline-width.-moz-outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-clip-margin-block.overflow-clip-margin-block-end.overflow-clip-margin-block-start.overflow-clip-margin-bottom.overflow-clip-margin-inline.overflow-clip-margin-inline-end.overflow-clip-margin-inline-start.overflow-clip-margin-left.overflow-clip-margin-right.overflow-clip-margin-top.overflow-inline.-webkit-overflow-scrolling.-ms-overflow-style.overflow-wrap.overflow-x.overflow-y.overlay.override-colors.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.pad.padding.-webkit-padding-after.-webkit-padding-before.padding-block.padding-block-end.padding-block-start.padding-bottom.-moz-padding-end.-webkit-padding-end.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.-moz-padding-start.-webkit-padding-start.padding-top.page.page-break-after.page-break-before.page-break-inside.page-orientation.paint-order.pause.pause-after.pause-before.-apple-pay-button-style.-apple-pay-button-type.pen-action.perspective.-moz-perspective.-ms-perspective.perspective-origin.-moz-perspective-origin.-ms-perspective-origin.-webkit-perspective-origin.perspective-origin-x.-webkit-perspective-origin-x.perspective-origin-y.-webkit-perspective-origin-y.-webkit-perspective.pitch.pitch-range.place-content.place-items.place-self.play-during.pointer-events.position.position-animation.position-fallback.position-fallback-bounds.position-try.position-try-options.position-try-order.prefix.print-color-adjust.-webkit-print-color-adjust.property-name.quotes.r.range.-webkit-region-break-after.-webkit-region-break-before.-webkit-region-break-inside.region-fragment.-webkit-region-fragment.-webkit-region-overflow.resize.rest.rest-after.rest-before.richness.right.rotate.row-gap.-webkit-rtl-ordering.ruby-align.ruby-merge.ruby-overhang.ruby-position.-webkit-ruby-position.running.rx.ry.scale.scroll-behavior.-ms-scroll-chaining.-ms-scroll-limit.-ms-scroll-limit-x-max.-ms-scroll-limit-x-min.-ms-scroll-limit-y-max.-ms-scroll-limit-y-min.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.-ms-scroll-rails.scroll-snap-align.scroll-snap-coordinate.-webkit-scroll-snap-coordinate.scroll-snap-destination.-webkit-scroll-snap-destination.scroll-snap-margin.scroll-snap-margin-bottom.scroll-snap-margin-left.scroll-snap-margin-right.scroll-snap-margin-top.scroll-snap-points-x.-ms-scroll-snap-points-x.-webkit-scroll-snap-points-x.scroll-snap-points-y.-ms-scroll-snap-points-y.-webkit-scroll-snap-points-y.scroll-snap-stop.scroll-snap-type.-ms-scroll-snap-type.-webkit-scroll-snap-type.scroll-snap-type-x.scroll-snap-type-y.-ms-scroll-snap-x.-ms-scroll-snap-y.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.-ms-scroll-translation.scrollbar-arrow-color.scrollbar-base-color.scrollbar-color.scrollbar-dark-shadow-color.scrollbar-darkshadow-color.scrollbar-face-color.scrollbar-gutter.scrollbar-highlight-color.scrollbar-shadow-color.scrollbar-track-color.scrollbar-width.scrollbar3d-light-color.scrollbar3dlight-color.shape-image-threshold.-webkit-shape-image-threshold.shape-inside.-webkit-shape-inside.shape-margin.-webkit-shape-margin.shape-outside.-webkit-shape-outside.-webkit-shape-padding.shape-rendering.size.size-adjust.snap-height.solid-color.solid-opacity.spatial-navigation-action.spatial-navigation-contain.spatial-navigation-function.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.src.-moz-stack-sizing.stop-color.stop-opacity.stress.string-set.stroke.stroke-align.stroke-alignment.stroke-break.stroke-color.stroke-dash-corner.stroke-dash-justify.stroke-dashadjust.stroke-dasharray.stroke-dashcorner.stroke-dashoffset.stroke-image.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-origin.stroke-position.stroke-repeat.stroke-size.stroke-width.suffix.supported-color-schemes.-webkit-svg-shadow.symbols.syntax.system.tab-size.-moz-tab-size.-o-tab-size.-o-table-baseline.table-layout.-webkit-tap-highlight-color.text-align.text-align-all.text-align-last.-moz-text-align-last.text-anchor.text-autospace.-moz-text-blink.text-box-edge.text-box-trim.-ms-text-combine-horizontal.text-combine-upright.-webkit-text-combine.text-decoration.text-decoration-blink.text-decoration-color.-moz-text-decoration-color.-webkit-text-decoration-color.text-decoration-line.-moz-text-decoration-line.text-decoration-line-through.-webkit-text-decoration-line.text-decoration-none.text-decoration-overline.text-decoration-skip.text-decoration-skip-box.text-decoration-skip-ink.text-decoration-skip-inset.text-decoration-skip-self.text-decoration-skip-spaces.-webkit-text-decoration-skip.text-decoration-style.-moz-text-decoration-style.-webkit-text-decoration-style.text-decoration-thickness.text-decoration-trim.text-decoration-underline.-webkit-text-decoration.-webkit-text-decorations-in-effect.text-emphasis.text-emphasis-color.-webkit-text-emphasis-color.text-emphasis-position.-webkit-text-emphasis-position.text-emphasis-skip.text-emphasis-style.-webkit-text-emphasis-style.-webkit-text-emphasis.-webkit-text-fill-color.text-group-align.text-indent.text-justify.text-justify-trim.text-kashida.text-kashida-space.text-line-through.text-line-through-color.text-line-through-mode.text-line-through-style.text-line-through-width.text-orientation.-webkit-text-orientation.text-overflow.text-overline.text-overline-color.text-overline-mode.text-overline-style.text-overline-width.text-rendering.-webkit-text-security.text-shadow.text-size-adjust.-moz-text-size-adjust.-ms-text-size-adjust.-webkit-text-size-adjust.text-spacing.text-spacing-trim.-webkit-text-stroke-color.-webkit-text-stroke.-webkit-text-stroke-width.text-transform.text-underline.text-underline-color.text-underline-mode.text-underline-offset.text-underline-position.-webkit-text-underline-position.text-underline-style.text-underline-width.text-wrap.text-wrap-mode.text-wrap-style.-webkit-text-zoom.timeline-scope.top.touch-action.touch-action-delay.-ms-touch-action.-webkit-touch-callout.-ms-touch-select.-apple-trailing-word.transform.transform-box.-moz-transform.-ms-transform.-o-transform.transform-origin.-moz-transform-origin.-ms-transform-origin.-o-transform-origin.-webkit-transform-origin.transform-origin-x.-webkit-transform-origin-x.transform-origin-y.-webkit-transform-origin-y.transform-origin-z.-webkit-transform-origin-z.transform-style.-moz-transform-style.-ms-transform-style.-webkit-transform-style.-webkit-transform.transition.transition-behavior.transition-delay.-moz-transition-delay.-ms-transition-delay.-o-transition-delay.-webkit-transition-delay.transition-duration.-moz-transition-duration.-ms-transition-duration.-o-transition-duration.-webkit-transition-duration.-moz-transition.-ms-transition.-o-transition.transition-property.-moz-transition-property.-ms-transition-property.-o-transition-property.-webkit-transition-property.transition-timing-function.-moz-transition-timing-function.-ms-transition-timing-function.-o-transition-timing-function.-webkit-transition-timing-function.-webkit-transition.translate.uc-alt-skin.uc-skin.unicode-bidi.unicode-range.-webkit-user-drag.-moz-user-focus.-moz-user-input.-moz-user-modify.-webkit-user-modify.user-select.-moz-user-select.-ms-user-select.-webkit-user-select.user-zoom.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.viewport-fill.viewport-fill-opacity.viewport-fit.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.white-space-collapse.white-space-trim.-webkit-widget-region.widows.width.will-change.-moz-window-dragging.-moz-window-shadow.word-break.word-space-transform.word-spacing.word-wrap.wrap-after.wrap-before.wrap-flow.-ms-wrap-flow.-webkit-wrap-flow.wrap-inside.-ms-wrap-margin.-webkit-wrap-margin.-webkit-wrap-padding.-webkit-wrap-shape-inside.-webkit-wrap-shape-outside.wrap-through.-ms-wrap-through.-webkit-wrap-through.-webkit-wrap.writing-mode.-webkit-writing-mode.x.y.z-index.zoom`.split(`.`)}})),LCe=a(((e,t)=>{t.exports.all=ICe().properties})),RCe=F4(),zCe=r(k8(),1),F8=P8(),BCe=r(PCe(),1),VCe=r(FCe(),1),HCe=LCe(),I8=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,L8=/\n/g,UCe=/^\s*/,WCe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GCe=/^:\s*/,R8=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,KCe=/^[;\s]*/,qCe=/^\s+|\s+$/g,z8=`
|
|
1072
1072
|
`,B8=`/`,JCe=`*`,V8=``,YCe=`comment`,XCe=`declaration`;function ZCe(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(L8);t&&(n+=t.length);var i=e.lastIndexOf(z8);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(UCe)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(!(B8!=e.charAt(0)||JCe!=e.charAt(1))){for(var n=2;V8!=e.charAt(n)&&(JCe!=e.charAt(n)||B8!=e.charAt(n+1));)++n;if(n+=2,V8===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:YCe,comment:o})}}function f(){var e=a(),t=c(WCe);if(t){if(d(),!c(GCe))return s(`property missing ':'`);var n=c(R8),r=e({type:XCe,property:QCe(t[0].replace(I8,V8)),value:n?QCe(n[0].replace(I8,V8)):V8});return c(KCe),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function QCe(e){return e?e.replace(qCe,V8):V8}function $Ce(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=ZCe(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var ewe=Object.getOwnPropertyNames,H8=(e,t)=>function(){return e&&(t=(0,e[ewe(e)[0]])(e=0)),t},U8=(e,t)=>function(){return t||(0,e[ewe(e)[0]])((t={exports:{}}).exports,t),t.exports};function W8(e){return typeof e.getSourceCode==`function`?e.getSourceCode():e.sourceCode}function G8(e,t){let n=W8(e);return typeof n.getScope==`function`?n.getScope(t):typeof e.getScope==`function`?e.getScope():e.sourceCode.getScope(t)}function K8(e,t){return F8.ASTUtils.findVariable(G8(e,t),t)}function q8(e,t,n){typeof e.markVariableAsUsed==`function`?e.markVariableAsUsed(t):W8(e).markVariableAsUsed(t,n)}var J8=H8({"src/compat.ts"(){}});function twe(e,t){return e.parent?i5(e.parent,t):null}function Y8(e,t){if(e.type===`Identifier`){let n=K8(t,e);if(!n)return e;let r=n.defs[0];switch(r?.type){case`FunctionName`:case`ClassName`:case`ImportBinding`:return r.node;case`Variable`:if((r.node.parent.kind===`const`||n.references.every(e=>e.init||e.isReadOnly()))&&r.node.id.type===`Identifier`&&r.node.init)return Y8(r.node.init,t)}}return e}function nwe(e,t=!1){if(e.type===`TSAsExpression`||e.type===`TSNonNullExpression`||e.type===`TSSatisfiesExpression`){let n=t?e.parent:e.expression;if(n)return nwe(n,t)}return e}function rwe(e,t,n){let r=i5(e,e=>e===t||n(e));return r===t&&!n(e)?null:r}function X8(e,t,n,r){let i=r.join(`, `),a=n.specifiers.slice().reverse().find(e=>e.type===`ImportSpecifier`);if(a)return e.insertTextAfter(a,`, ${i}`);let o=n.specifiers.find(e=>e.type===`ImportDefaultSpecifier`||e.type===`ImportNamespaceSpecifier`);if(o)return e.insertTextAfter(o,`, { ${i} }`);if(n.specifiers.length===0){let[r,a]=t.getFirstTokens(n,{count:2});return a?.value===`{`?e.insertTextAfter(a,` ${i} `):r?e.insertTextAfter(r,` { ${i} } from`):null}return null}function iwe(e,t,n,r,i,a=!1){let o=r.join(`, `),s=t.ast,c=i??s.body.find(e=>e.type===`ImportDeclaration`);return c?e.insertTextBeforeRange((dwe(c,t)??c).range,`import ${a?`type `:``}{ ${o} } from "${n}";
|
|
1073
1073
|
`):e.insertTextBeforeRange([0,0],`import ${a?`type `:``}{ ${o} } from "${n}";
|
|
1074
1074
|
`)}function Z8(e,t,n,r=!0){let i=n.parent;if(i.specifiers.length===1&&r)return e.remove(i);let a=t.getTokenAfter(n);return a?.value===`,`?e.removeRange([n.range[0],a.range[1]]):e.remove(n)}function Q8(e){return e.name.type===`JSXNamespacedName`?`${e.name.namespace.name}:${e.name.name.name}`:e.name.name}function*awe(e){for(let t of e)if(t.type===`JSXSpreadAttribute`&&t.argument.type===`ObjectExpression`)for(let e of t.argument.properties)e.type===`Property`&&(e.key.type===`Identifier`?yield[e.key.name,e.key]:e.key.type===`Literal`&&(yield[String(e.key.value),e.key]));else t.type===`JSXAttribute`&&(yield[Q8(t),t.name])}function $8(e,t){for(let[n]of awe(e))if(n===t)return!0;return!1}function e5(e,t){return e.find(e=>e.type!==`JSXSpreadAttribute`&&t===Q8(e))}var owe,t5,swe,n5,r5,i5,cwe,a5,lwe,o5,s5,uwe,dwe,c5,l5=H8({"src/utils.ts"(){J8(),owe=/^[a-z]/,t5=e=>owe.test(e),swe=/[pP]rops/,n5=e=>swe.test(e),r5=e=>{if(e.length===0)return``;if(e.length===1)return`'${e[0]}'`;if(e.length===2)return`'${e[0]}' and '${e[1]}'`;{let t=e.length-1;return`${e.slice(0,t).map(e=>`'${e}'`).join(`, `)}, and '${e[t]}'`}},i5=(e,t)=>{let n=e;for(;n;){if(t(n))return n;n=n.parent}return null},cwe=[`FunctionExpression`,`ArrowFunctionExpression`,`FunctionDeclaration`],a5=e=>!!e&&cwe.includes(e.type),lwe=[`Program`].concat(cwe),o5=e=>!!e&&lwe.includes(e.type),s5=e=>e?.type===`JSXElement`||e?.type===`JSXFragment`,uwe=e=>(e.type===`FunctionDeclaration`||e.type===`FunctionExpression`)&&e.id!=null?e.id.name:e.parent?.type===`VariableDeclarator`&&e.parent.id.type===`Identifier`?e.parent.id.name:null,dwe=(e,t)=>t.getCommentsBefore(e).find(t=>t.loc.end.line>=e.loc.start.line-1),c5=(e=/^solid-js(?:\/?|\b)/)=>{let t=new Map;return{matchImport:(e,n)=>(Array.isArray(e)?e:[e]).find(e=>t.get(e)===n),handleImportDeclaration:n=>{if(e.test(n.source.value))for(let e of n.specifiers)e.type===`ImportSpecifier`&&t.set(e.imported.name,e.local.name)}}}}}),fwe,u5,d5,f5,pwe=H8({"src/rules/components-return-once.ts"(){l5(),J8(),fwe=F8.ESLintUtils.RuleCreator.withoutDocs,u5=e=>{if(!e)return!0;switch(e.type){case`Literal`:return[null,void 0,!1,``].includes(e.value);case`JSXFragment`:return!e.children||e.children.every(u5);default:return!1}},d5=e=>e.end.line-e.start.line+1,f5=fwe({meta:{type:`problem`,docs:{description:`Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX.`,url:`https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/components-return-once.md`},fixable:`code`,schema:[],messages:{noEarlyReturn:`Solid components run once, so an early return breaks reactivity. Move the condition inside a JSX element, such as a fragment or <Show />.`,noConditionalReturn:`Solid components run once, so a conditional return breaks reactivity. Move the condition inside a JSX element, such as a fragment or <Show />.`}},defaultOptions:[],create(e){let t=[],n=t=>{let n=W8(e).getText(t);return t.type===`JSXElement`||t.type===`JSXFragment`?n:`{${n}}`},r=()=>t[t.length-1],i=e=>{let n;if(e.body.type===`BlockStatement`){let t=e.body.body.findLast(e=>!e.type.endsWith(`Declaration`));t&&t.type===`ReturnStatement`&&(n=t)}t.push({isComponent:!1,lastReturn:n,earlyReturns:[]})},a=i=>{if((uwe(i)?.match(/^[a-z]/)||i.parent?.type===`JSXExpressionContainer`||i.parent?.type===`CallExpression`&&i.parent.arguments.some(e=>e===i)&&!i.parent.callee.name?.match(/^[A-Z]/))&&(r().isComponent=!1),r().isComponent){r().earlyReturns.forEach(t=>{e.report({node:t,messageId:`noEarlyReturn`})});let t=r().lastReturn?.argument;if(t?.type===`ConditionalExpression`){let r=W8(e);e.report({node:t.parent,messageId:`noConditionalReturn`,fix:e=>{let{test:i,consequent:a,alternate:o}=t,s=[{test:i,consequent:a}],c=o;for(;c.type===`ConditionalExpression`;)s.push({test:c.test,consequent:c.consequent}),c=c.alternate;if(s.length>=2){let i=u5(c)?``:` fallback={${r.getText(c)}}`;return e.replaceText(t,`<Switch${i}>
|
|
@@ -1084,7 +1084,7 @@ ${p} return (`),yield r.insertTextAfter(e,`);
|
|
|
1084
1084
|
`,n);if(e>=0){n=e+1;continue}return`unknown`}if(t.startsWith(`/*`,n)){let e=t.indexOf(`*/`,n);if(e>=0){n=e+2;continue}return`unknown`}n++}return r==null?`unknown`:t.slice(r)}function Ge(e,t,n){let r=e.defs.indexOf(t);if(!(r<0))if(e.defs.splice(r,1),e.defs.length===0){Ke(e.references,n),e.references.forEach(e=>{e.init&&=!1,e.resolved=null}),n.variables.splice(n.variables.indexOf(e),1);let t=e.name;e===n.set.get(t)&&n.set.delete(t)}else{let n=e.identifiers.indexOf(t.name);n>=0&&e.identifiers.splice(n,1)}}function Ke(e,t){let n=t;for(;n;)qe(n.through,e),n=n.upper}function qe(e,t){e.push(...t),e.sort((e,t)=>e.identifier.range[0]-t.identifier.range[0])}function Je(e,t){if(e.resolved)if(e.resolved.defs.some(t=>t.name===e.identifier)){let n=t.variables.indexOf(e.resolved);n>=0&&t.variables.splice(n,1);let r=e.identifier.name;e.resolved===t.set.get(r)&&t.set.delete(r)}else{let t=e.resolved.references.indexOf(e);t>=0&&e.resolved.references.splice(t,1)}let n=t;for(;n;){let t=n.references.indexOf(e);t>=0&&n.references.splice(t,1);let r=n.through.indexOf(e);r>=0&&n.through.splice(r,1),n=n.upper}}function Ye(e,t){for(let n of t.childScopes)Ye(e,n);for(;t.references[0];)Je(t.references[0],t);let n=t.upper;if(n){let e=n.childScopes.indexOf(t);e>=0&&n.childScopes.splice(e,1)}let r=e.scopes.indexOf(t);r>=0&&e.scopes.splice(r,1)}let Xe=/^([\s\S]*?(?:\s|\)))(\bin\b|\bof\b)([\s\S]*)$/u,Ze=/^(\s*\()([\s\S]*?)(\)\s*)$/u,U={},Qe=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/u,$e=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?'\]|\["[^"]*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/u;function et(e){let t=Xe.exec(e);if(t!=null){let e=t[1],n=Ze.exec(e);return{aliases:e,hasParens:!!n,aliasesWithBrackets:n?`${n[1].slice(0,-1)}[${n[2]}]${n[3].slice(1)}`:`[${e.slice(0,-1)}]`,delimiter:t[2]||``,iterator:t[3]}}return{aliases:``,hasParens:!1,aliasesWithBrackets:``,delimiter:``,iterator:e}}function tt(e,t){let n=ne(e,{range:t.range},e=>e.range[0]);for(;n>=0;){let t=e[n];if(t.type===`Punctuator`&&t.value===`,`)return t;--n}return null}function nt(e,t){let n=e.getLocation(0),r=new w(`Expected to be ${t}, but got empty.`,void 0,0,n.line,n.column);throw He(r,e),r}function rt(e,t){throw new w(`Unexpected token '${e}'.`,void 0,t.range[0],t.loc.start.line,t.loc.start.column)}function at(e,t,n){if(w.isParseError(e)){let r=n.getOffsetWithGap(t.length);e.index>=r&&(e.message=`Unexpected end of expression.`)}throw e}function ot(e,t,n){return st(e,t,n)}function st(e,t,n,r){try{let i=ft(e,n);return r?.preFixLocationProcess?.(i),ze(i,t),i}catch(e){let n=w.normalize(e);throw n?(He(n,t),n):e}}let W=/[\w).+\-_$\]]/u;function ct(e){let t=[],n=!1,r=!1,i=!1,a=!1,o=0,s=0,c=0,l=0,u=0,d=0;for(let f=0;f<e.length;f++)if(d=u,u=e.charCodeAt(f),n)u===39&&d!==92&&(n=!1);else if(r)u===34&&d!==92&&(r=!1);else if(i)u===96&&d!==92&&(i=!1);else if(a)u===47&&d!==92&&(a=!1);else if(u===124&&e.charCodeAt(f+1)!==124&&e.charCodeAt(f-1)!==124&&!o&&!s&&!c)t.push(e.slice(l,f)),l=f+1;else{switch(u){case 34:r=!0;break;case 39:n=!0;break;case 96:i=!0;break;case 40:c++;break;case 41:c--;break;case 91:s++;break;case 93:s--;break;case 123:o++;break;case 125:o--;break}if(u===47){let t=f-1,n;for(;t>=0&&(n=e.charAt(t),n===` `);t--);(!n||!W.test(n))&&(a=!0)}}return t.push(e.slice(l)),t}function lt(e,t,n,r=!1){B(`[script] parse expression: "0(%s)"`,e);try{let i=ot(`0(${e})`,t.getSubCalculatorShift(-2),n),{ast:a}=i,o=a.tokens??[],s=a.comments??[],c=Le(i,n),l=a.body[0].expression,u=l.arguments[0];if(!r&&!u)return nt(t,`an expression`);if(u?.type===`SpreadElement`)return rt(`...`,u);if(l.arguments[1]){let e=l.arguments[1];return rt(`,`,tt(o,e)||e)}return o.shift(),o.shift(),o.pop(),{expression:u,tokens:o,comments:s,references:c,variables:[]}}catch(n){return at(n,e,t)}}function ut(e,t,n){B(`[script] parse filter: "%s"`,e);try{let r={type:`VFilter`,parent:null,range:[0,0],loc:{},callee:null,arguments:[]},i=[],a=[],o=[],s=e.indexOf(`(`),c=s===-1?e:e.slice(0,s),l=s===-1?null:e.slice(s);if(c.trim()){let e=/^\s*/u.exec(c)[0],a=t.getSubCalculatorShift(e.length),{ast:o}=ot(`"${c.trim()}"`,a,n),s=o.body[0].expression;if(s.type!==`Literal`){let{loc:e,range:t}=o.tokens[0];return rt(`"`,{range:[t[1]-1,t[1]],loc:{start:{line:e.end.line,column:e.end.column-1},end:e.end}})}r.callee={type:`Identifier`,parent:r,range:[s.range[0],a.getOffsetWithGap(c.trim().length)],loc:{start:s.loc.start,end:a.getLocation(c.trim().length)},name:String(s.value)},i.push({type:`Identifier`,value:c.trim(),range:r.callee.range,loc:r.callee.loc})}else return nt(t,`a filter name`);if(l!=null){let e=ot(`0${l}`,t.getSubCalculatorAfter(s).getSubCalculatorShift(-1),n),{ast:c}=e,u=c.body[0].expression;if(c.tokens.shift(),u.type!==`CallExpression`||u.callee.type!==`Literal`){let e=1;for(let t of c.tokens.slice(1)){if(e===0)return rt(t.value,t);t.type===`Punctuator`&&t.value===`(`&&(e+=1),t.type===`Punctuator`&&t.value===`)`&&--e}let t=c.tokens.at(-1);return rt(t.value,t)}for(let e of u.arguments)e.parent=r,r.arguments.push(e);i.push(...c.tokens),a.push(...c.comments),o.push(...Le(e,n))}let u=i[0],d=i.at(-1);return r.range=[u.range[0],d.range[1]],r.loc={start:u.loc.start,end:d.loc.end},{expression:r,tokens:i,comments:a,references:o,variables:[]}}catch(n){return at(n,e,t)}}function dt(e){return e===`espree`?H():t(e)}function ft(e,t){let n=typeof t.parser==`string`?dt(t.parser):de(t.parser)?t.parser:H(),r=fe(n)?n.parseForESLint(e,t):n.parse(e,t);return r.ast==null?{ast:r}:r}function pt(e,t,n,r){let i={...r,ecmaVersion:r.ecmaVersion??Oe},a=null,o,s,c=e.children[0];if(c?.type===`VText`){let[n,r]=c.range;if(o=t.slice(n,r),s=n,a=Ue(e),a){let e=`${a.defineTypes.map(e=>e.define).join(`;`)};\n`;o=e+o,s-=e.length}}else o=``,s=e.startTag.range[1];let l=n.createOffsetLocationCalculator(s),u=ot(o,l,i);if(a){a.postprocess({result:u,isRemoveTarget(e){return e.range[1]<=c.range[0]},getTypeDefScope(e){return e.globalScope.childScopes.find(e=>e.type===`module`)??e.globalScope}});let e=[u.ast.body[0],u.ast.tokens?.[0],u.ast.comments?.[0]].filter(e=>!!e).sort((e,t)=>e.range[0]-t.range[0]).find(e=>!!e);e&&u.ast.range[0]!==e.range[0]&&(u.ast.range[0]=e.range[0],u.ast.start!=null&&(u.ast.start=e.start),u.ast.loc.start={...e.loc.start})}if(u.ast.tokens!=null){let t=e.startTag,n=e.endTag;u.ast.tokens.unshift({type:`Punctuator`,range:t.range,loc:t.loc,value:`<script>`}),n!=null&&u.ast.tokens.push({type:`Punctuator`,range:n.range,loc:n.loc,value:`<\/script>`})}return u}function mt(e,t,n,{allowEmpty:r=!1,allowFilters:i=!1}={}){B(`[script] parse expression: "%s"`,e);let[a,...o]=i&&(n.vueFeatures?.filter??!0)?ct(e):[e];if(o.length===0)return lt(e,t,n,r);let s=lt(a,t,n);if(!s.expression)return s;let c=s;c.expression={type:`VFilterSequenceExpression`,parent:null,expression:s.expression,filters:[],range:[...s.expression.range],loc:{...s.expression.loc}},c.expression.expression.parent=c.expression;let l=a.length;for(let e of o){c.tokens.push(Ve({type:`Punctuator`,value:`|`,range:[l,l+1],loc:{}},t));let r=ut(e,t.getSubCalculatorShift(l+1),n);r&&(r.expression&&(c.expression.filters.push(r.expression),r.expression.parent=c.expression),c.tokens.push(...r.tokens),c.comments.push(...r.comments),c.references.push(...r.references)),l+=1+e.length}let u=c.tokens.at(-1);return c.expression.range[1]=u.range[1],c.expression.loc.end=u.loc.end,c}function ht(e,t,n){if(e.trim()===``&&nt(t,`'<alias> in <expression>'`),gt(n))return _t(e,t,n);let r=et(e);if(!r.aliases.trim())return nt(t,`an alias`);try{B(`[script] parse v-for expression: "for(%s%s%s);"`,r.aliasesWithBrackets,r.delimiter,r.iterator);let e=ot(`for(let ${r.aliasesWithBrackets}${r.delimiter}${r.iterator});`,t.getSubCalculatorShift(r.hasParens?-8:-9),n),{ast:i}=e,a=i.tokens??[],o=i.comments??[],s=Re(e,`v-for`,n),c=s.references,l=s.variables,u=i.body[0],d=u.left.declarations[0].id.elements,f=u.right;if(!r.hasParens&&!d.length)return nt(t,`an alias`);a.shift(),a.shift(),a.shift(),a.pop(),a.pop();let p=u.left.range[1]-1,m=a.findIndex(e=>e.range[0]===p);if(r.hasParens){let e=a[0];e!=null&&(e.value=`(`);let t=a[m];t!=null&&(t.value=`)`)}else a.splice(m,1),a.shift();let h=a[0]||u.left,g=a[a.length-1]||u.right,_={type:`VForExpression`,range:[h.range[0],g.range[1]],loc:{start:h.loc.start,end:g.loc.end},parent:U,left:d,right:f};for(let e of d)e!=null&&(e.parent=_);return f.parent=_,{expression:_,tokens:a,comments:o,references:c,variables:l}}catch(n){return at(n,e,t)}}function gt(e){let t=Se(e);return t!=null&&t<=5}function _t(e,t,n){let r=et(e);if(!r.aliases.trim())return nt(t,`an alias`);try{let e=[],i=[],a=vt(r.aliasesWithBrackets,t.getSubCalculatorShift(r.hasParens?0:-1),n);if(r.hasParens){let e=a.tokens[0];e!=null&&(e.value=`(`);let t=a.tokens.at(-1);t!=null&&(t.value=`)`)}else a.tokens.shift(),a.tokens.pop();e.push(...a.tokens),i.push(...a.comments);let{left:o,variables:s}=a;if(!r.hasParens&&!o.length)return nt(t,`an alias`);let c=r.aliases.length,l=c+r.delimiter.length;e.push(Ve({type:r.delimiter===`in`?`Keyword`:`Identifier`,value:r.delimiter,start:c,end:l,loc:{},range:[c,l]},t));let u=yt(r.iterator,t.getSubCalculatorShift(l),n);e.push(...u.tokens),i.push(...u.comments);let{right:d,references:f}=u,p=e[0],m=e.at(-1)||p,h={type:`VForExpression`,range:[p.range[0],m.range[1]],loc:{start:p.loc.start,end:m.loc.end},parent:U,left:o,right:d};for(let e of o)e!=null&&(e.parent=h);return d.parent=h,{expression:h,tokens:e,comments:i,references:f,variables:s}}catch(n){return at(n,e,t)}}function vt(e,t,n){let r=ot(`0(${e})`,t.getSubCalculatorShift(-2),n),{ast:i}=r,a=i.tokens??[],o=i.comments??[],s=Le(r,n).map(l),c=i.body[0].expression.arguments[0].elements.filter(e=>{if(e==null||e.type===`Identifier`)return!0;let t=a.find(t=>e.range[0]<=t.range[0]&&t.range[1]<=e.range[1]);return rt(t.value,t)});return a.shift(),a.shift(),a.pop(),{left:c,tokens:a,comments:o,variables:s};function l(e){let t={id:e.id,kind:`v-for`,references:[]};return Object.defineProperty(t,`references`,{enumerable:!1}),t}}function yt(e,t,n){let r=ot(`0(${e})`,t.getSubCalculatorShift(-2),n),{ast:i}=r,a=i.tokens??[],o=i.comments??[],s=Le(r,n),c=i.body[0].expression.arguments[0];if(!c)return nt(t,`an expression`);if(c?.type===`SpreadElement`)return rt(`...`,c);let l=c;return a.shift(),a.shift(),a.pop(),{right:l,tokens:a,comments:o,references:s}}function bt(e,t,n){return Qe.test(e)||$e.test(e)?lt(e,t,n):xt(e,t,n)}function xt(e,t,n){B(`[script] parse v-on expression: "void function($event){%s}"`,e),e.trim()===``&&nt(t,`statements`);try{let r=ot(`void function($event){${e}}`,t.getSubCalculatorShift(-22),n),{ast:i}=r,a=Le(r,n),o=i.body[0].expression.argument.body,s=o.body,c=s[0],l=s.at(-1),u={type:`VOnExpression`,range:[c==null?o.range[0]+1:c.range[0],l==null?o.range[1]-1:l.range[1]],loc:{start:c==null?t.getLocation(1):c.loc.start,end:l==null?t.getLocation(e.length+1):l.loc.end},parent:U,body:s},d=i.tokens??[],f=i.comments??[];for(let e of s)e.parent=u;return d.splice(0,6),d.pop(),{expression:u,tokens:d,comments:f,references:a,variables:[]}}catch(n){return at(n,e,t)}}function St(e,t,n){B(`[script] parse slot-scope expression: "void function(%s) {}"`,e),e.trim()===``&&nt(t,`an identifier or an array/object pattern`);try{let r=ot(`void function(${e}) {}`,t.getSubCalculatorShift(-14),n),{ast:i}=r,a=i.body[0].expression.argument,o=a.params;if(o.length===0)return{expression:null,tokens:[],comments:[],references:[],variables:[]};let s=i.tokens??[],c=i.comments??[],l=Re(r,`scope`,n),u=l.references,d=l.variables,f=o[0],p=o.at(-1),m={type:`VSlotScopeExpression`,range:[f.range[0],p.range[1]],loc:{start:f.loc.start,end:p.loc.end},parent:U,params:a.params};for(let e of o)e.parent=m;return s.shift(),s.shift(),s.shift(),s.pop(),s.pop(),s.pop(),{expression:m,tokens:s,comments:c,references:u,variables:d}}catch(n){return at(n,e,t)}}function Ct(e,t,n){B(`[script] parse generic definition: "void function<%s>() {}"`,e),e.trim()===``&&nt(t,`a type parameter`);function r(e){let{ast:t}=e;return t.body[0].expression.argument.typeParameters?.params}try{let i=[],a=`void function<${e}>(){}`,o=st(a,t.getSubCalculatorShift(-14),{...n,project:void 0,projectService:void 0},{preFixLocationProcess(e){let t=r(e);if(t)for(let e of t)i.push(a.slice(e.range[0],e.range[1]))}}),{ast:s}=o,c=r(o);if(!c||c.length===0)return{expression:null,tokens:[],comments:[],references:[],variables:[]};let l=s.tokens??[],u=s.comments??[],d=Re(o,`generic`,n),f=d.references,p=d.variables,m=c[0],h=c.at(-1),g={type:`VGenericExpression`,range:[m.range[0],h.range[1]],loc:{start:m.loc.start,end:h.loc.end},parent:U,params:c,rawParams:i};for(let e of c)e.parent=g;return l.shift(),l.shift(),l.shift(),l.pop(),l.pop(),l.pop(),l.pop(),l.pop(),{expression:g,tokens:l,comments:u,references:f,variables:p}}catch(n){return at(n,e,t)}}function wt(e,t,n){if(e==null)return;let r=ne(e.tokens,t,Ot),i=P(e.tokens,t,kt)-r;e.tokens.splice(r,i,...n)}function Tt(e,t,n){if(e==null)return;let r=ne(e.tokens,t,Ot);if(e.tokens.length===r||t.range[0]<e.tokens[r].range[0]){let n=e.tokens[r-1],i=n.value,a=t.range[0]-n.range[0],o={type:n.type,range:[t.range[0],n.range[1]],loc:{start:{...t.loc.start},end:{...n.loc.end}},value:i.slice(a)};n.range[1]=t.range[0],n.loc.end={...t.loc.start},n.value=i.slice(0,a),e.tokens.splice(r,0,o)}let i=P(e.tokens,t,kt);if(i===0||t.range[1]<e.tokens[i].range[1]){let n=e.tokens[i],r=n.value,a=n.range[1]-n.range[0]-(n.range[1]-t.range[1]),o={type:n.type,range:[t.range[1],n.range[1]],loc:{start:{...t.loc.end},end:{...n.loc.end}},value:r.slice(a)};n.range[1]=t.range[1],n.loc.end={...t.loc.end},n.value=r.slice(0,a),e.tokens.splice(i+1,0,o),i++}let a=i-r;e.tokens.splice(r,a,...n)}function Et(e,t){if(e==null||t.length===0)return;let n=ne(e.comments,t[0],Ot);e.comments.splice(n,0,...t)}function Dt(e,t,n,r,i){return{type:e,range:[t,n],loc:{start:i.getLocFromIndex(t),end:i.getLocFromIndex(n)},value:r}}function Ot(e){return e.range[0]}function kt(e){return e.range[1]}function At(e,t){if(e==null)return;let n=ne(e.errors,t,jt);e.errors.splice(n,0,t)}function jt(e){return e.index}let Mt=/^[.:@#]/u,Nt={":":`bind`,".":`bind`,"@":`on`,"#":`slot`},Pt=/^[\s\r\n=/>]$/u;function Ft(e,t){return t?e.rawName:e.name}function It(e,t){let{name:n,rawName:r,range:[i],loc:{start:{column:a,line:o}}}=e,s={type:`VDirectiveKey`,range:e.range,loc:e.loc,parent:e.parent,name:null,argument:null,modifiers:[]},c=0;function l(e,t,c){return{type:`VIdentifier`,parent:s,range:[i+e,i+t],loc:{start:{column:a+e,line:o},end:{column:a+t,line:o}},name:c||n.slice(e,t),rawName:r.slice(e,t)}}if(Mt.test(n)){let e=n[0];s.name=l(0,1,Nt[e]),c=1}else{let e=n.indexOf(`:`);e!==-1&&(s.name=l(0,e),c=e+1)}if(s.name!=null&&n[c]===`[`){let e=n.slice(c).lastIndexOf(`]`);e!==-1&&(s.argument=l(c,c+e+1),c=c+e+1+ +(n[c+e+1]===`.`))}let u=n.slice(c).split(`.`).map(e=>{let r=l(c,c+e.length);return e===``&&c<n.length&&At(t,new w(`Unexpected token '${n[c]}'`,void 0,i+c,o,a+c)),c+=e.length+1,r});if(s.name==null?s.name=u.shift():s.argument==null&&u[0].name!==``&&(s.argument=u.shift()??null),s.modifiers=u.filter(Rt),s.name.name===`v-`&&At(t,new w(`Unexpected token '${n[s.name.range[1]-i]}'`,void 0,s.name.range[1],s.name.loc.end.line,s.name.loc.end.column)),s.name.rawName===`.`&&!s.modifiers.some(Lt)){let e=(s.argument||s.name).range[1]-i,t=l(e,e,`prop`);s.modifiers.unshift(t)}return s}function Lt(e){return e.name===`prop`}function Rt(e){return e.name!==``}function zt(e){let{name:t,argument:n,modifiers:r}=e,i=t.range[1]-t.range[0]===1,a=[];i?a.push({type:`Punctuator`,range:t.range,loc:t.loc,value:t.rawName}):(a.push({type:`HTMLIdentifier`,range:t.range,loc:t.loc,value:t.rawName}),n&&a.push({type:`Punctuator`,range:[t.range[1],n.range[0]],loc:{start:t.loc.end,end:n.loc.start},value:`:`})),n&&a.push({type:`HTMLIdentifier`,range:n.range,loc:n.loc,value:n.rawName});let o=n||t;for(let e of r)e.rawName!==``&&(a.push({type:`Punctuator`,range:[o.range[1],e.range[0]],loc:{start:o.loc.end,end:e.loc.start},value:`.`},{type:`HTMLIdentifier`,range:e.range,loc:e.loc,value:e.rawName}),o=e);return a}function Bt(e,t,n,r){let{argument:i}=e;if(!(i!=null&&i.type===`VIdentifier`&&i.name.startsWith(`[`)&&i.name.endsWith(`]`)))return;let{rawName:a,range:o,loc:s}=i;try{let{comments:i,expression:c,references:l,tokens:u}=mt(a.slice(1,-1),r.getSubCalculatorAfter(o[0]+1),n);e.argument={type:`VExpressionContainer`,range:o,loc:s,parent:e,expression:c,references:l},c!=null&&(c.parent=e.argument),u.unshift(Dt(`Punctuator`,o[0],o[0]+1,`[`,r)),u.push(Dt(`Punctuator`,o[1]-1,o[1],`]`,r)),wt(t,e.argument,u),Et(t,i)}catch(n){if(B(`[template] Parse error: %s`,n),w.isParseError(n))e.argument={type:`VExpressionContainer`,range:o,loc:s,parent:e,expression:null,references:[]},At(t,n);else throw n}}function Vt(e,t,n,r){let i=It(e,t);return wt(t,i,zt(i)),i.name.name.startsWith(`v-`)&&(i.name.name=i.name.name.slice(2)),i.name.rawName.startsWith(`v-`)&&(i.name.rawName=i.name.rawName.slice(2)),Bt(i,t,n,r),i}function Ht(e,t,n,r,i,a,o){let s=e[i.range[0]],c=s===`"`||s===`'`,l=r.getSubCalculatorAfter(i.range[0]+ +!!c),u=Ut(t,a,o),d;return d=c&&i.value===``?{expression:null,tokens:[],comments:[],variables:[],references:[]}:u===`for`?ht(i.value,l,t):u===`on`&&o.argument!=null?bt(i.value,l,t):u===`slot`?St(i.value,l,t):u===`bind`?mt(i.value,l,t,{allowFilters:!0}):u===`generic`?Ct(i.value,l,n):mt(i.value,l,t),c&&(d.tokens.unshift(Dt(`Punctuator`,i.range[0],i.range[0]+1,s,r)),d.tokens.push(Dt(`Punctuator`,i.range[1]-1,i.range[1],s,r))),d}function Ut(e,t,n){let r=n.name.name;return r===`for`?`for`:r===`on`?`on`:r===`slot`||r===`slot-scope`||r===`scope`&&Ft(t,me(e))===`template`?`slot`:r===`bind`?`bind`:r===`generic`&&t.parent.type===`VDocumentFragment`&&Ft(t,me(e))===`script`&&ie(t)&&le(t)?`generic`:null}function Wt(e,t){let n=t;for(;n?.type===`VElement`;){for(let t of n.variables)if(t.id.name===e.id.name){e.variable=t,t.references.push(e);return}n=n.parent}}function Gt(e,t,n,r,i){B(`[template] convert to directive: %s="%s" %j`,i.key.name,i.value?.value,i.range);let a=oe(i),o=i;o.directive=!0,o.key=Vt(i.key,a,t,r);let{argument:s}=o.key;if(s?.type===`VIdentifier`&&s.name.startsWith(`[`)){let t=e[s.range[1]];(t==null||Pt.test(t))&&At(a,new w(`Dynamic argument cannot contain the '${t==null?`EOF`:JSON.stringify(t).slice(1,-1)}' character.`,void 0,s.range[1],s.loc.end.line,s.loc.end.column))}if(i.value==null){o.key.name.name===`bind`&&Kt(o,t,r);return}try{let s=Ht(e,t,n,r,i.value,i.parent.parent,o.key);o.value={type:`VExpressionContainer`,range:i.value.range,loc:i.value.loc,parent:o,expression:s.expression,references:s.references},s.expression!=null&&(s.expression.parent=o.value);for(let e of s.variables)i.parent.parent.variables.push(e);wt(a,i.value,s.tokens),Et(a,s.comments)}catch(e){if(B(`[template] Parse error: %s`,e),w.isParseError(e))o.value={type:`VExpressionContainer`,range:i.value.range,loc:i.value.loc,parent:o,expression:null,references:[]},At(a,e);else throw e}}function Kt(e,t,n){if(e.key.name.name!==`bind`||e.key.argument==null||e.key.argument.type!==`VIdentifier`)return;let r=e.key.argument,i=te(r.rawName),a=null;try{a=ot(i,n.getSubCalculatorAfter(r.range[0]),t)}catch(e){B(`[template] Parse error: %s`,e)}if(a==null||a.ast.body.length!==1||a.ast.body[0].type!==`ExpressionStatement`||a.ast.body[0].expression.type!==`Identifier`)return;let o=a.ast.body[0].expression;o.range[1]=r.range[1],o.loc.end={...r.loc.end},o.end!=null&&(o.end=r.end),e.value={type:`VExpressionContainer`,range:[...r.range],loc:{start:{...r.loc.start},end:{...r.loc.end}},parent:e,expression:o,references:[{id:o,mode:`r`,variable:null}]},o.parent=e.value}function qt(e,t,n,r){let i=[r.startToken.range[1],r.endToken.range[0]];B(`[template] convert mustache {{%s}} %j`,r.value,i);let a=oe(n);try{let o=t.getSubCalculatorAfter(i[0]),s=mt(r.value,o,e,{allowEmpty:!0,allowFilters:!0});n.expression=s.expression??null,n.references=s.references,s.expression!=null&&(s.expression.parent=n),wt(a,{range:i},s.tokens),Et(a,s.comments)}catch(e){if(B(`[template] Parse error: %s`,e),w.isParseError(e))At(a,e);else throw e}}function Jt(e){let t=e.parent;for(;t!=null&&t.type!==`VElement`;)t=t.parent;if(t!=null)for(let n of e.references)Wt(n,t)}let Yt=new Map([[`attributename`,`attributeName`],[`attributetype`,`attributeType`],[`basefrequency`,`baseFrequency`],[`baseprofile`,`baseProfile`],[`calcmode`,`calcMode`],[`clippathunits`,`clipPathUnits`],[`diffuseconstant`,`diffuseConstant`],[`edgemode`,`edgeMode`],[`filterunits`,`filterUnits`],[`glyphref`,`glyphRef`],[`gradienttransform`,`gradientTransform`],[`gradientunits`,`gradientUnits`],[`kernelmatrix`,`kernelMatrix`],[`kernelunitlength`,`kernelUnitLength`],[`keypoints`,`keyPoints`],[`keysplines`,`keySplines`],[`keytimes`,`keyTimes`],[`lengthadjust`,`lengthAdjust`],[`limitingconeangle`,`limitingConeAngle`],[`markerheight`,`markerHeight`],[`markerunits`,`markerUnits`],[`markerwidth`,`markerWidth`],[`maskcontentunits`,`maskContentUnits`],[`maskunits`,`maskUnits`],[`numoctaves`,`numOctaves`],[`pathlength`,`pathLength`],[`patterncontentunits`,`patternContentUnits`],[`patterntransform`,`patternTransform`],[`patternunits`,`patternUnits`],[`pointsatx`,`pointsAtX`],[`pointsaty`,`pointsAtY`],[`pointsatz`,`pointsAtZ`],[`preservealpha`,`preserveAlpha`],[`preserveaspectratio`,`preserveAspectRatio`],[`primitiveunits`,`primitiveUnits`],[`refx`,`refX`],[`refy`,`refY`],[`repeatcount`,`repeatCount`],[`repeatdur`,`repeatDur`],[`requiredextensions`,`requiredExtensions`],[`requiredfeatures`,`requiredFeatures`],[`specularconstant`,`specularConstant`],[`specularexponent`,`specularExponent`],[`spreadmethod`,`spreadMethod`],[`startoffset`,`startOffset`],[`stddeviation`,`stdDeviation`],[`stitchtiles`,`stitchTiles`],[`surfacescale`,`surfaceScale`],[`systemlanguage`,`systemLanguage`],[`tablevalues`,`tableValues`],[`targetx`,`targetX`],[`targety`,`targetY`],[`textlength`,`textLength`],[`viewbox`,`viewBox`],[`viewtarget`,`viewTarget`],[`xchannelselector`,`xChannelSelector`],[`ychannelselector`,`yChannelSelector`],[`zoomandpan`,`zoomAndPan`]]),Xt=new Map([[`definitionurl`,`definitionUrl`]]),Zt=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),Qt=new Set([`colgroup`,`li`,`options`,`p`,`td`,`tfoot`,`th`,`thead`,`tr`,`source`]),$t=new Set(`address.article.aside.base.blockquote.body.caption.col.colgroup.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.legend.li.menuitem.meta.optgroup.option.param.rp.rt.source.style.summary.tbody.td.tfoot.th.thead.title.tr.track`.split(`.`)),en=new Set([`title`,`textarea`]),tn=new Set([`style`,`xmp`,`iframe`,`noembed`,`noframes`,`noscript`,`script`]),nn=new Set(`a.altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.animation.audio.canvas.circle.clipPath.color-profile.cursor.defs.desc.discard.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.handler.hatch.hatchpath.hkern.iframe.image.line.linearGradient.listener.marker.mask.mesh.meshgradient.meshpatch.meshrow.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.prefetch.radialGradient.rect.script.set.solidColor.solidcolor.stop.style.svg.switch.symbol.tbreak.text.textArea.textPath.title.tref.tspan.unknown.use.video.view.vkern`.split(`.`)),rn=new Map;for(let e of nn)/[A-Z]/.test(e)&&rn.set(e.toLowerCase(),e);let an=Object.freeze({});function on(e,t){return e+t.value}var sn=class{tokenizer;currentToken;attribute;attributeNames;expressionStartToken;expressionTokens;tokens;comments;get text(){return this.tokenizer.text}get errors(){return this.tokenizer.errors}get state(){return this.tokenizer.state}set state(e){this.tokenizer.state=e}get namespace(){return this.tokenizer.namespace}set namespace(e){this.tokenizer.namespace=e}get expressionEnabled(){return this.tokenizer.expressionEnabled}set expressionEnabled(e){this.tokenizer.expressionEnabled=e}constructor(e){this.tokenizer=e,this.currentToken=null,this.attribute=null,this.attributeNames=new Set,this.expressionStartToken=null,this.expressionTokens=[],this.tokens=[],this.comments=[]}nextToken(){let e=null,t=null;for(;t==null&&(e=this.tokenizer.nextToken())!=null;)t=this[e.type](e);return t==null&&e==null&&this.currentToken!=null&&(t=this.commit()),t}commit(){(0,m.default)(this.currentToken!=null||this.expressionStartToken!=null);let e=this.currentToken;if(this.currentToken=null,this.attribute=null,this.expressionStartToken!=null){let t=this.expressionStartToken,n=this.expressionTokens.at(-1)||t,r=this.expressionTokens.reduce(on,t.value);if(this.expressionStartToken=null,this.expressionTokens=[],e==null)e={type:`Text`,range:[t.range[0],n.range[1]],loc:{start:t.loc.start,end:n.loc.end},value:r};else if(e.type===`Text`)e.range[1]=n.range[1],e.loc.end=n.loc.end,e.value+=r;else throw Error(`unreachable`)}return e}reportParseError(e,t){let n=w.fromCode(t,e.range[0],e.loc.start.line,e.loc.start.column);this.errors.push(n),B(`[html] syntax error:`,n.message)}processComment(e){return this.comments.push(e),this.currentToken?.type===`Text`?this.commit():null}processText(e){this.tokens.push(e);let t=null;if(this.expressionStartToken!=null){if((this.expressionTokens.at(-1)||this.expressionStartToken).range[1]===e.range[0])return this.expressionTokens.push(e),null;t=this.commit()}else if(this.currentToken!=null){if(this.currentToken.type===`Text`&&this.currentToken.range[1]===e.range[0])return this.currentToken.value+=e.value,this.currentToken.range[1]=e.range[1],this.currentToken.loc.end=e.loc.end,null;t=this.commit()}return(0,m.default)(this.currentToken==null),this.currentToken={type:`Text`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},value:e.value},t}HTMLAssociation(e){if(this.tokens.push(e),this.attribute!=null){if(this.attribute.range[1]=e.range[1],this.attribute.loc.end=e.loc.end,this.currentToken==null||this.currentToken.type!==`StartTag`)throw Error(`unreachable`);this.currentToken.range[1]=e.range[1],this.currentToken.loc.end=e.loc.end}return null}HTMLBogusComment(e){return this.processComment(e)}HTMLCDataText(e){return this.processText(e)}HTMLComment(e){return this.processComment(e)}HTMLEndTagOpen(e){this.tokens.push(e);let t=null;return(this.currentToken!=null||this.expressionStartToken!=null)&&(t=this.commit()),this.currentToken={type:`EndTag`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},name:e.value},t}HTMLIdentifier(e){if(this.tokens.push(e),this.currentToken==null||this.currentToken.type===`Text`||this.currentToken.type===`Mustache`)throw Error(`unreachable`);return this.currentToken.type===`EndTag`?(this.reportParseError(e,`end-tag-with-attributes`),null):(this.attributeNames.has(e.value)&&this.reportParseError(e,`duplicate-attribute`),this.attributeNames.add(e.value),this.attribute={type:`VAttribute`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},parent:an,directive:!1,key:{type:`VIdentifier`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},parent:an,name:e.value,rawName:this.text.slice(e.range[0],e.range[1])},value:null},this.attribute.key.parent=this.attribute,this.currentToken.range[1]=e.range[1],this.currentToken.loc.end=e.loc.end,this.currentToken.attributes.push(this.attribute),null)}HTMLLiteral(e){if(this.tokens.push(e),this.attribute!=null){if(this.attribute.range[1]=e.range[1],this.attribute.loc.end=e.loc.end,this.attribute.value={type:`VLiteral`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},parent:this.attribute,value:e.value},this.currentToken==null||this.currentToken.type!==`StartTag`)throw Error(`unreachable`);this.currentToken.range[1]=e.range[1],this.currentToken.loc.end=e.loc.end}return null}HTMLRCDataText(e){return this.processText(e)}HTMLRawText(e){return this.processText(e)}HTMLSelfClosingTagClose(e){if(this.tokens.push(e),this.currentToken==null||this.currentToken.type===`Text`)throw Error(`unreachable`);return this.currentToken.type===`StartTag`?this.currentToken.selfClosing=!0:this.reportParseError(e,`end-tag-with-trailing-solidus`),this.currentToken.range[1]=e.range[1],this.currentToken.loc.end=e.loc.end,this.commit()}HTMLTagClose(e){if(this.tokens.push(e),this.currentToken==null||this.currentToken.type===`Text`)throw Error(`unreachable`);return this.currentToken.range[1]=e.range[1],this.currentToken.loc.end=e.loc.end,this.commit()}HTMLTagOpen(e){this.tokens.push(e);let t=null;return(this.currentToken!=null||this.expressionStartToken!=null)&&(t=this.commit()),this.currentToken={type:`StartTag`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},name:e.value,rawName:this.text.slice(e.range[0]+1,e.range[1]),selfClosing:!1,attributes:[]},this.attribute=null,this.attributeNames.clear(),t}HTMLText(e){return this.processText(e)}HTMLWhitespace(e){return this.processText(e)}VExpressionStart(e){if(this.expressionStartToken!=null)return this.processText(e);let t=this.currentToken!=null&&this.currentToken.range[1]!==e.range[0]?this.commit():null;return this.tokens.push(e),this.expressionStartToken=e,t}VExpressionEnd(e){if(this.expressionStartToken==null)return this.processText(e);let t=this.expressionStartToken,n=this.expressionTokens.at(-1)||t;if(e.range[0]===t.range[1]){this.tokens.pop(),this.expressionStartToken=null;let n=this.processText(t);return this.processText(e),n}if(n.range[1]!==e.range[0]){let t=this.commit();return this.processText(e),t}let r=this.expressionTokens.reduce(on,``);this.tokens.push(e),this.expressionStartToken=null,this.expressionTokens=[];let i=this.currentToken==null?null:this.commit();return this.currentToken={type:`Mustache`,range:[t.range[0],e.range[1]],loc:{start:t.loc.start,end:e.loc.end},value:r,startToken:t,endToken:e},i||this.commit()}};let cn=/^(?:v-|[.:@#]).*[^.:@#]$/u,ln=/^d[dt]$/u,un=Object.freeze({});function dn(e,t){return t?e.rawName:e.name}function fn(e,t){if(e.namespace===T.MathML){let n=dn(e,t);return n===`mi`||n===`mo`||n===`mn`||n===`ms`||n===`mtext`}return!1}function pn(e,t){if(e.namespace===T.MathML)return dn(e,t)===`annotation-xml`&&e.startTag.attributes.some(e=>e.directive===!1&&e.key.name===`encoding`&&e.value!=null&&(e.value.value===`text/html`||e.value.value===`application/xhtml+xml`));if(e.namespace===T.SVG){let n=dn(e,t);return n===`foreignObject`||n===`desc`||n===`title`}return!1}function mn(e,t){return t===T.SVG&&rn.get(e)||e}function hn(e,t){return t===T.SVG?Yt.get(e)||e:t===T.MathML&&Xt.get(e)||e}function gn(e){let t=(e.type===`VElement`?e.endTag:null)||e.children.at(-1);t!=null&&(e.range[1]=t.range[1],e.loc.end=t.loc.end)}var _n=class{tokenizer;locationCalculator;baseParserOptions;isSFC;document;elementStack;vPreElement;postProcessesForScript=[];get text(){return this.tokenizer.text}get tokens(){return this.tokenizer.tokens}get comments(){return this.tokenizer.comments}get errors(){return this.tokenizer.errors}get namespace(){return this.tokenizer.namespace}set namespace(e){this.tokenizer.namespace=e}get expressionEnabled(){return this.tokenizer.expressionEnabled}set expressionEnabled(e){this.tokenizer.expressionEnabled=e}get currentNode(){return this.elementStack.at(-1)||this.document}get isInVPreElement(){return this.vPreElement!=null}constructor(e,t){this.tokenizer=new sn(e),this.locationCalculator=new z(e.gaps,e.lineTerminators),this.baseParserOptions=t,this.isSFC=me(t),this.document={type:`VDocumentFragment`,range:[0,0],loc:{start:{line:1,column:0},end:{line:1,column:0}},parent:null,children:[],tokens:this.tokens,comments:this.comments,errors:this.errors},this.elementStack=[],this.vPreElement=null,this.postProcessesForScript=[]}parse(){let e=null;for(;(e=this.tokenizer.nextToken())!=null;)this[e.type](e);this.popElementStackUntil(0),gn(this.document);let t=this.document,n={...this.baseParserOptions,parser:he(this.baseParserOptions.parser,function*(){yield`<template>`,yield ge(t)}),project:void 0,projectService:void 0},r={...this.baseParserOptions,parser:he(this.baseParserOptions.parser,()=>ge(t))};for(let e of this.postProcessesForScript)e(n,r);return this.postProcessesForScript=[],t}reportParseError(e,t){let n=w.fromCode(t,e.range[0],e.loc.start.line,e.loc.start.column);this.errors.push(n),B(`[html] syntax error:`,n.message)}popElementStack(){(0,m.default)(this.elementStack.length>=1);let e=this.elementStack.pop();gn(e);let t=this.currentNode;this.namespace=t.type===`VElement`?t.namespace:T.HTML,this.vPreElement===e&&(this.vPreElement=null,this.expressionEnabled=!0),this.elementStack.length===0&&(this.expressionEnabled=!1)}popElementStackUntil(e){for(;this.elementStack.length>e;)this.popElementStack()}getTagName(e){return dn(e,this.isSFC)}detectNamespace(e){let t=this.getTagName(e),n=this.namespace;if(n===T.MathML||n===T.SVG){let e=this.currentNode;if(e.type===`VElement`){if(e.namespace===T.MathML&&this.getTagName(e)===`annotation-xml`&&t===`svg`)return T.SVG;(pn(e,this.isSFC)||fn(e,this.isSFC)&&t!==`mglyph`&&t!==`malignmark`)&&(n=T.HTML)}}if(n===T.HTML){if(t===`svg`)return T.SVG;if(t===`math`)return T.MathML}if(t===`template`){let t=e.attributes.find(e=>e.key.name===`xmlns`)?.value?.value;if(t===T.HTML||t===T.MathML||t===T.SVG)return t}return n}closeCurrentElementIfNecessary(e){let t=this.currentNode;if(t.type!==`VElement`)return;let n=this.getTagName(e),r=this.getTagName(t);r===`p`&&$t.has(n)&&this.popElementStack(),r===n&&Qt.has(n)&&this.popElementStack(),ln.test(r)&&ln.test(n)&&this.popElementStack()}processAttribute(e,t){if(this.needConvertToDirective(e)){this.postProcessesForScript.push((t,n)=>{Gt(this.text,t,n,this.locationCalculator,e)});return}e.key.name=hn(e.key.name,t);let n=this.getTagName(e.key),r=e.value?.value;(n===`xmlns`&&r!==t||n===`xmlns:xlink`&&r!==T.XLink)&&this.reportParseError(e,`x-invalid-namespace`)}needConvertToDirective(e){let t=e.parent.parent,n=this.getTagName(t),r=this.getTagName(e.key);return r===`generic`&&t.parent.type===`VDocumentFragment`&&ie(t)&&le(t)?!0:this.expressionEnabled||r===`v-pre`&&!this.isInVPreElement?cn.test(r)||r===`slot-scope`||n===`template`&&r===`scope`:!1}processTemplateText(e,n){let r=new(typeof n==`function`?n:t(n))(e.value,this.text,{startingLine:e.loc.start.line,startingColumn:e.loc.start.column}),i=this.tokenizer;this.tokenizer=r;let a=null;for(;(a=r.nextToken())!=null;)this[a.type](a);this.tokenizer=i;let o=ne(this.tokenizer.tokens,e,e=>e.range[0]),s=P(this.tokenizer.tokens,e,e=>e.range[1])-o;this.tokenizer.tokens.splice(o,s,...r.tokens),this.tokenizer.comments.push(...r.comments),this.tokenizer.errors.push(...r.errors)}StartTag(e){B(`[html] StartTag %j`,e),this.closeCurrentElementIfNecessary(e);let t=this.currentNode,n=this.detectNamespace(e),r={type:`VElement`,range:[e.range[0],e.range[1]],loc:{start:e.loc.start,end:e.loc.end},parent:t,name:mn(e.name,n),rawName:e.rawName,namespace:n,startTag:{type:`VStartTag`,range:e.range,loc:e.loc,parent:un,selfClosing:e.selfClosing,attributes:e.attributes},children:[],endTag:null,variables:[]},i=!this.isInVPreElement&&e.attributes.some(e=>this.getTagName(e.key)===`v-pre`);i&&(this.expressionEnabled=!1),t.children.push(r),r.startTag.parent=r;for(let t of e.attributes)t.parent=r.startTag,this.processAttribute(t,n);this.postProcessesForScript.push(()=>{for(let e of r.startTag.attributes)e.directive&&(e.key.argument?.type===`VExpressionContainer`&&Jt(e.key.argument),e.value!=null&&Jt(e.value))});let a=n===T.HTML&&Zt.has(this.getTagName(r));if(e.selfClosing&&!a&&n===T.HTML&&this.reportParseError(e,`non-void-html-element-start-tag-with-trailing-solidus`),e.selfClosing||a){this.expressionEnabled=!this.isInVPreElement;return}if(this.elementStack.push(r),i&&((0,m.default)(this.vPreElement===null),this.vPreElement=r),this.namespace=n,n===T.HTML){let e=this.getTagName(r);if(r.parent.type===`VDocumentFragment`){let t=r.startTag.attributes.find(e=>!e.directive&&e.key.name===`lang`)?.value?.value;e===`template`?(this.expressionEnabled=!0,t&&t!==`html`&&(this.tokenizer.state=`RAWTEXT`,this.expressionEnabled=!1)):this.isSFC?(!t||t!==`html`)&&(this.tokenizer.state=`RAWTEXT`):(en.has(e)&&(this.tokenizer.state=`RCDATA`),tn.has(e)&&(this.tokenizer.state=`RAWTEXT`))}else en.has(e)&&(this.tokenizer.state=`RCDATA`),tn.has(e)&&(this.tokenizer.state=`RAWTEXT`)}}EndTag(e){B(`[html] EndTag %j`,e);let t=this.elementStack.findLastIndex(t=>t.name.toLowerCase()===e.name);if(t===-1){this.reportParseError(e,`x-invalid-end-tag`);return}let n=this.elementStack[t];n.endTag={type:`VEndTag`,range:e.range,loc:e.loc,parent:n},this.popElementStackUntil(t)}Text(e){B(`[html] Text %j`,e);let t=this.currentNode;if(e.value&&t.type===`VElement`&&t.name===`template`&&t.parent.type===`VDocumentFragment`){let n=t.startTag.attributes.find(e=>e.key.name===`lang`)?.value?.value;if(n&&n!==`html`){let t=this.baseParserOptions.templateTokenizer?.[n];if(t){this.processTemplateText(e,t);return}}}t.children.push({type:`VText`,range:e.range,loc:e.loc,parent:t,value:e.value})}Mustache(e){B(`[html] Mustache %j`,e);let t=this.currentNode,n={type:`VExpressionContainer`,range:e.range,loc:e.loc,parent:t,expression:null,references:[]};t.children.push(n),this.postProcessesForScript.push(t=>{qt(t,this.locationCalculator,n,e),Jt(n)})}};let vn=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),yn=[{length:32,entities:{"CounterClockwiseContourIntegral;":[8755]}},{length:25,entities:{"ClockwiseContourIntegral;":[8754],"DoubleLongLeftRightArrow;":[10234]}},{length:24,entities:{"NotNestedGreaterGreater;":[10914,824]}},{length:23,entities:{"DiacriticalDoubleAcute;":[733],"NotSquareSupersetEqual;":[8931]}},{length:22,entities:{"CloseCurlyDoubleQuote;":[8221],"DoubleContourIntegral;":[8751],"FilledVerySmallSquare;":[9642],"NegativeVeryThinSpace;":[8203],"NotPrecedesSlantEqual;":[8928],"NotRightTriangleEqual;":[8941],"NotSucceedsSlantEqual;":[8929]}},{length:21,entities:{"CapitalDifferentialD;":[8517],"DoubleLeftRightArrow;":[8660],"DoubleLongRightArrow;":[10233],"EmptyVerySmallSquare;":[9643],"NestedGreaterGreater;":[8811],"NotDoubleVerticalBar;":[8742],"NotGreaterSlantEqual;":[10878,824],"NotLeftTriangleEqual;":[8940],"NotSquareSubsetEqual;":[8930],"OpenCurlyDoubleQuote;":[8220],"ReverseUpEquilibrium;":[10607]}},{length:20,entities:{"DoubleLongLeftArrow;":[10232],"DownLeftRightVector;":[10576],"LeftArrowRightArrow;":[8646],"NegativeMediumSpace;":[8203],"NotGreaterFullEqual;":[8807,824],"NotRightTriangleBar;":[10704,824],"RightArrowLeftArrow;":[8644],"SquareSupersetEqual;":[8850],"leftrightsquigarrow;":[8621]}},{length:19,entities:{"DownRightTeeVector;":[10591],"DownRightVectorBar;":[10583],"LongLeftRightArrow;":[10231],"Longleftrightarrow;":[10234],"NegativeThickSpace;":[8203],"NotLeftTriangleBar;":[10703,824],"PrecedesSlantEqual;":[8828],"ReverseEquilibrium;":[8651],"RightDoubleBracket;":[10215],"RightDownTeeVector;":[10589],"RightDownVectorBar;":[10581],"RightTriangleEqual;":[8885],"SquareIntersection;":[8851],"SucceedsSlantEqual;":[8829],"blacktriangleright;":[9656],"longleftrightarrow;":[10231]}},{length:18,entities:{"DoubleUpDownArrow;":[8661],"DoubleVerticalBar;":[8741],"DownLeftTeeVector;":[10590],"DownLeftVectorBar;":[10582],"FilledSmallSquare;":[9724],"GreaterSlantEqual;":[10878],"LeftDoubleBracket;":[10214],"LeftDownTeeVector;":[10593],"LeftDownVectorBar;":[10585],"LeftTriangleEqual;":[8884],"NegativeThinSpace;":[8203],"NotGreaterGreater;":[8811,824],"NotLessSlantEqual;":[10877,824],"NotNestedLessLess;":[10913,824],"NotReverseElement;":[8716],"NotSquareSuperset;":[8848,824],"NotTildeFullEqual;":[8775],"RightAngleBracket;":[10217],"RightUpDownVector;":[10575],"SquareSubsetEqual;":[8849],"VerticalSeparator;":[10072],"blacktriangledown;":[9662],"blacktriangleleft;":[9666],"leftrightharpoons;":[8651],"rightleftharpoons;":[8652],"twoheadrightarrow;":[8608]}},{length:17,entities:{"DiacriticalAcute;":[180],"DiacriticalGrave;":[96],"DiacriticalTilde;":[732],"DoubleRightArrow;":[8658],"DownArrowUpArrow;":[8693],"EmptySmallSquare;":[9723],"GreaterEqualLess;":[8923],"GreaterFullEqual;":[8807],"LeftAngleBracket;":[10216],"LeftUpDownVector;":[10577],"LessEqualGreater;":[8922],"NonBreakingSpace;":[160],"NotPrecedesEqual;":[10927,824],"NotRightTriangle;":[8939],"NotSucceedsEqual;":[10928,824],"NotSucceedsTilde;":[8831,824],"NotSupersetEqual;":[8841],"RightTriangleBar;":[10704],"RightUpTeeVector;":[10588],"RightUpVectorBar;":[10580],"UnderParenthesis;":[9181],"UpArrowDownArrow;":[8645],"circlearrowright;":[8635],"downharpoonright;":[8642],"ntrianglerighteq;":[8941],"rightharpoondown;":[8641],"rightrightarrows;":[8649],"twoheadleftarrow;":[8606],"vartriangleright;":[8883]}},{length:16,entities:{"CloseCurlyQuote;":[8217],"ContourIntegral;":[8750],"DoubleDownArrow;":[8659],"DoubleLeftArrow;":[8656],"DownRightVector;":[8641],"LeftRightVector;":[10574],"LeftTriangleBar;":[10703],"LeftUpTeeVector;":[10592],"LeftUpVectorBar;":[10584],"LowerRightArrow;":[8600],"NotGreaterEqual;":[8817],"NotGreaterTilde;":[8821],"NotHumpDownHump;":[8782,824],"NotLeftTriangle;":[8938],"NotSquareSubset;":[8847,824],"OverParenthesis;":[9180],"RightDownVector;":[8642],"ShortRightArrow;":[8594],"UpperRightArrow;":[8599],"bigtriangledown;":[9661],"circlearrowleft;":[8634],"curvearrowright;":[8631],"downharpoonleft;":[8643],"leftharpoondown;":[8637],"leftrightarrows;":[8646],"nLeftrightarrow;":[8654],"nleftrightarrow;":[8622],"ntrianglelefteq;":[8940],"rightleftarrows;":[8644],"rightsquigarrow;":[8605],"rightthreetimes;":[8908],"straightepsilon;":[1013],"trianglerighteq;":[8885],"vartriangleleft;":[8882]}},{length:15,entities:{"DiacriticalDot;":[729],"DoubleRightTee;":[8872],"DownLeftVector;":[8637],"GreaterGreater;":[10914],"HorizontalLine;":[9472],"InvisibleComma;":[8291],"InvisibleTimes;":[8290],"LeftDownVector;":[8643],"LeftRightArrow;":[8596],"Leftrightarrow;":[8660],"LessSlantEqual;":[10877],"LongRightArrow;":[10230],"Longrightarrow;":[10233],"LowerLeftArrow;":[8601],"NestedLessLess;":[8810],"NotGreaterLess;":[8825],"NotLessGreater;":[8824],"NotSubsetEqual;":[8840],"NotVerticalBar;":[8740],"OpenCurlyQuote;":[8216],"ReverseElement;":[8715],"RightTeeVector;":[10587],"RightVectorBar;":[10579],"ShortDownArrow;":[8595],"ShortLeftArrow;":[8592],"SquareSuperset;":[8848],"TildeFullEqual;":[8773],"UpperLeftArrow;":[8598],"ZeroWidthSpace;":[8203],"curvearrowleft;":[8630],"doublebarwedge;":[8966],"downdownarrows;":[8650],"hookrightarrow;":[8618],"leftleftarrows;":[8647],"leftrightarrow;":[8596],"leftthreetimes;":[8907],"longrightarrow;":[10230],"looparrowright;":[8620],"nshortparallel;":[8742],"ntriangleright;":[8939],"rightarrowtail;":[8611],"rightharpoonup;":[8640],"trianglelefteq;":[8884],"upharpoonright;":[8638]}},{length:14,entities:{"ApplyFunction;":[8289],"DifferentialD;":[8518],"DoubleLeftTee;":[10980],"DoubleUpArrow;":[8657],"LeftTeeVector;":[10586],"LeftVectorBar;":[10578],"LessFullEqual;":[8806],"LongLeftArrow;":[10229],"Longleftarrow;":[10232],"NotEqualTilde;":[8770,824],"NotTildeEqual;":[8772],"NotTildeTilde;":[8777],"Poincareplane;":[8460],"PrecedesEqual;":[10927],"PrecedesTilde;":[8830],"RightArrowBar;":[8677],"RightTeeArrow;":[8614],"RightTriangle;":[8883],"RightUpVector;":[8638],"SucceedsEqual;":[10928],"SucceedsTilde;":[8831],"SupersetEqual;":[8839],"UpEquilibrium;":[10606],"VerticalTilde;":[8768],"VeryThinSpace;":[8202],"bigtriangleup;":[9651],"blacktriangle;":[9652],"divideontimes;":[8903],"fallingdotseq;":[8786],"hookleftarrow;":[8617],"leftarrowtail;":[8610],"leftharpoonup;":[8636],"longleftarrow;":[10229],"looparrowleft;":[8619],"measuredangle;":[8737],"ntriangleleft;":[8938],"shortparallel;":[8741],"smallsetminus;":[8726],"triangleright;":[9657],"upharpoonleft;":[8639],"varsubsetneqq;":[10955,65024],"varsupsetneqq;":[10956,65024]}},{length:13,entities:{"DownArrowBar;":[10515],"DownTeeArrow;":[8615],"ExponentialE;":[8519],"GreaterEqual;":[8805],"GreaterTilde;":[8819],"HilbertSpace;":[8459],"HumpDownHump;":[8782],"Intersection;":[8898],"LeftArrowBar;":[8676],"LeftTeeArrow;":[8612],"LeftTriangle;":[8882],"LeftUpVector;":[8639],"NotCongruent;":[8802],"NotHumpEqual;":[8783,824],"NotLessEqual;":[8816],"NotLessTilde;":[8820],"Proportional;":[8733],"RightCeiling;":[8969],"RoundImplies;":[10608],"ShortUpArrow;":[8593],"SquareSubset;":[8847],"UnderBracket;":[9141],"VerticalLine;":[124],"blacklozenge;":[10731],"exponentiale;":[8519],"risingdotseq;":[8787],"triangledown;":[9663],"triangleleft;":[9667],"varsubsetneq;":[8842,65024],"varsupsetneq;":[8843,65024]}},{length:12,entities:{"CircleMinus;":[8854],"CircleTimes;":[8855],"Equilibrium;":[8652],"GreaterLess;":[8823],"LeftCeiling;":[8968],"LessGreater;":[8822],"MediumSpace;":[8287],"NotLessLess;":[8810,824],"NotPrecedes;":[8832],"NotSucceeds;":[8833],"NotSuperset;":[8835,8402],"OverBracket;":[9140],"RightVector;":[8640],"Rrightarrow;":[8667],"RuleDelayed;":[10740],"SmallCircle;":[8728],"SquareUnion;":[8852],"SubsetEqual;":[8838],"UpDownArrow;":[8597],"Updownarrow;":[8661],"VerticalBar;":[8739],"backepsilon;":[1014],"blacksquare;":[9642],"circledcirc;":[8858],"circleddash;":[8861],"curlyeqprec;":[8926],"curlyeqsucc;":[8927],"diamondsuit;":[9830],"eqslantless;":[10901],"expectation;":[8496],"nRightarrow;":[8655],"nrightarrow;":[8603],"preccurlyeq;":[8828],"precnapprox;":[10937],"quaternions;":[8461],"straightphi;":[981],"succcurlyeq;":[8829],"succnapprox;":[10938],"thickapprox;":[8776],"updownarrow;":[8597]}},{length:11,entities:{"Bernoullis;":[8492],"CirclePlus;":[8853],"EqualTilde;":[8770],"Fouriertrf;":[8497],"ImaginaryI;":[8520],"Laplacetrf;":[8466],"LeftVector;":[8636],"Lleftarrow;":[8666],"NotElement;":[8713],"NotGreater;":[8815],"Proportion;":[8759],"RightArrow;":[8594],"RightFloor;":[8971],"Rightarrow;":[8658],"ThickSpace;":[8287,8202],"TildeEqual;":[8771],"TildeTilde;":[8776],"UnderBrace;":[9183],"UpArrowBar;":[10514],"UpTeeArrow;":[8613],"circledast;":[8859],"complement;":[8705],"curlywedge;":[8911],"eqslantgtr;":[10902],"gtreqqless;":[10892],"lessapprox;":[10885],"lesseqqgtr;":[10891],"lmoustache;":[9136],"longmapsto;":[10236],"mapstodown;":[8615],"mapstoleft;":[8612],"nLeftarrow;":[8653],"nleftarrow;":[8602],"nsubseteqq;":[10949,824],"nsupseteqq;":[10950,824],"precapprox;":[10935],"rightarrow;":[8594],"rmoustache;":[9137],"sqsubseteq;":[8849],"sqsupseteq;":[8850],"subsetneqq;":[10955],"succapprox;":[10936],"supsetneqq;":[10956],"upuparrows;":[8648],"varepsilon;":[1013],"varnothing;":[8709]}},{length:10,entities:{"Backslash;":[8726],"CenterDot;":[183],"CircleDot;":[8857],"Congruent;":[8801],"Coproduct;":[8720],"DoubleDot;":[168],"DownArrow;":[8595],"DownBreve;":[785],"Downarrow;":[8659],"HumpEqual;":[8783],"LeftArrow;":[8592],"LeftFloor;":[8970],"Leftarrow;":[8656],"LessTilde;":[8818],"Mellintrf;":[8499],"MinusPlus;":[8723],"NotCupCap;":[8813],"NotExists;":[8708],"NotSubset;":[8834,8402],"OverBrace;":[9182],"PlusMinus;":[177],"Therefore;":[8756],"ThinSpace;":[8201],"TripleDot;":[8411],"UnionPlus;":[8846],"backprime;":[8245],"backsimeq;":[8909],"bigotimes;":[10754],"centerdot;":[183],"checkmark;":[10003],"complexes;":[8450],"dotsquare;":[8865],"downarrow;":[8595],"gtrapprox;":[10886],"gtreqless;":[8923],"gvertneqq;":[8809,65024],"heartsuit;":[9829],"leftarrow;":[8592],"lesseqgtr;":[8922],"lvertneqq;":[8808,65024],"ngeqslant;":[10878,824],"nleqslant;":[10877,824],"nparallel;":[8742],"nshortmid;":[8740],"nsubseteq;":[8840],"nsupseteq;":[8841],"pitchfork;":[8916],"rationals;":[8474],"spadesuit;":[9824],"subseteqq;":[10949],"subsetneq;":[8842],"supseteqq;":[10950],"supsetneq;":[8843],"therefore;":[8756],"triangleq;":[8796],"varpropto;":[8733]}},{length:9,entities:{"DDotrahd;":[10513],"DotEqual;":[8784],"Integral;":[8747],"LessLess;":[10913],"NotEqual;":[8800],"NotTilde;":[8769],"PartialD;":[8706],"Precedes;":[8826],"RightTee;":[8866],"Succeeds;":[8827],"SuchThat;":[8715],"Superset;":[8835],"Uarrocir;":[10569],"UnderBar;":[95],"andslope;":[10840],"angmsdaa;":[10664],"angmsdab;":[10665],"angmsdac;":[10666],"angmsdad;":[10667],"angmsdae;":[10668],"angmsdaf;":[10669],"angmsdag;":[10670],"angmsdah;":[10671],"angrtvbd;":[10653],"approxeq;":[8778],"awconint;":[8755],"backcong;":[8780],"barwedge;":[8965],"bbrktbrk;":[9142],"bigoplus;":[10753],"bigsqcup;":[10758],"biguplus;":[10756],"bigwedge;":[8896],"boxminus;":[8863],"boxtimes;":[8864],"bsolhsub;":[10184],"capbrcup;":[10825],"circledR;":[174],"circledS;":[9416],"cirfnint;":[10768],"clubsuit;":[9827],"cupbrcap;":[10824],"curlyvee;":[8910],"cwconint;":[8754],"doteqdot;":[8785],"dotminus;":[8760],"drbkarow;":[10512],"dzigrarr;":[10239],"elinters;":[9191],"emptyset;":[8709],"eqvparsl;":[10725],"fpartint;":[10765],"geqslant;":[10878],"gesdotol;":[10884],"gnapprox;":[10890],"hksearow;":[10533],"hkswarow;":[10534],"imagline;":[8464],"imagpart;":[8465],"infintie;":[10717],"integers;":[8484],"intercal;":[8890],"intlarhk;":[10775],"laemptyv;":[10676],"ldrushar;":[10571],"leqslant;":[10877],"lesdotor;":[10883],"llcorner;":[8990],"lnapprox;":[10889],"lrcorner;":[8991],"lurdshar;":[10570],"mapstoup;":[8613],"multimap;":[8888],"naturals;":[8469],"ncongdot;":[10861,824],"notindot;":[8949,824],"otimesas;":[10806],"parallel;":[8741],"plusacir;":[10787],"pointint;":[10773],"precneqq;":[10933],"precnsim;":[8936],"profalar;":[9006],"profline;":[8978],"profsurf;":[8979],"raemptyv;":[10675],"realpart;":[8476],"rppolint;":[10770],"rtriltri;":[10702],"scpolint;":[10771],"setminus;":[8726],"shortmid;":[8739],"smeparsl;":[10724],"sqsubset;":[8847],"sqsupset;":[8848],"subseteq;":[8838],"succneqq;":[10934],"succnsim;":[8937],"supseteq;":[8839],"thetasym;":[977],"thicksim;":[8764],"timesbar;":[10801],"triangle;":[9653],"triminus;":[10810],"trpezium;":[9186],"ulcorner;":[8988],"urcorner;":[8989],"varkappa;":[1008],"varsigma;":[962],"vartheta;":[977]}},{length:8,entities:{"Because;":[8757],"Cayleys;":[8493],"Cconint;":[8752],"Cedilla;":[184],"Diamond;":[8900],"DownTee;":[8868],"Element;":[8712],"Epsilon;":[917],"Implies;":[8658],"LeftTee;":[8867],"NewLine;":[10],"NoBreak;":[8288],"NotLess;":[8814],"Omicron;":[927],"OverBar;":[8254],"Product;":[8719],"UpArrow;":[8593],"Uparrow;":[8657],"Upsilon;":[933],"alefsym;":[8501],"angrtvb;":[8894],"angzarr;":[9084],"asympeq;":[8781],"backsim;":[8765],"because;":[8757],"bemptyv;":[10672],"between;":[8812],"bigcirc;":[9711],"bigodot;":[10752],"bigstar;":[9733],"bnequiv;":[8801,8421],"boxplus;":[8862],"ccupssm;":[10832],"cemptyv;":[10674],"cirscir;":[10690],"coloneq;":[8788],"congdot;":[10861],"cudarrl;":[10552],"cudarrr;":[10549],"cularrp;":[10557],"curarrm;":[10556],"dbkarow;":[10511],"ddagger;":[8225],"ddotseq;":[10871],"demptyv;":[10673],"diamond;":[8900],"digamma;":[989],"dotplus;":[8724],"dwangle;":[10662],"epsilon;":[949],"eqcolon;":[8789],"equivDD;":[10872],"gesdoto;":[10882],"gtquest;":[10876],"gtrless;":[8823],"harrcir;":[10568],"intprod;":[10812],"isindot;":[8949],"larrbfs;":[10527],"larrsim;":[10611],"lbrksld;":[10639],"lbrkslu;":[10637],"ldrdhar;":[10599],"lesdoto;":[10881],"lessdot;":[8918],"lessgtr;":[8822],"lesssim;":[8818],"lotimes;":[10804],"lozenge;":[9674],"ltquest;":[10875],"luruhar;":[10598],"maltese;":[10016],"minusdu;":[10794],"napprox;":[8777],"natural;":[9838],"nearrow;":[8599],"nexists;":[8708],"notinva;":[8713],"notinvb;":[8951],"notinvc;":[8950],"notniva;":[8716],"notnivb;":[8958],"notnivc;":[8957],"npolint;":[10772],"npreceq;":[10927,824],"nsqsube;":[8930],"nsqsupe;":[8931],"nsubset;":[8834,8402],"nsucceq;":[10928,824],"nsupset;":[8835,8402],"nvinfin;":[10718],"nvltrie;":[8884,8402],"nvrtrie;":[8885,8402],"nwarrow;":[8598],"olcross;":[10683],"omicron;":[959],"orderof;":[8500],"orslope;":[10839],"pertenk;":[8241],"planckh;":[8462],"pluscir;":[10786],"plussim;":[10790],"plustwo;":[10791],"precsim;":[8830],"quatint;":[10774],"questeq;":[8799],"rarrbfs;":[10528],"rarrsim;":[10612],"rbrksld;":[10638],"rbrkslu;":[10640],"rdldhar;":[10601],"realine;":[8475],"rotimes;":[10805],"ruluhar;":[10600],"searrow;":[8600],"simplus;":[10788],"simrarr;":[10610],"subedot;":[10947],"submult;":[10945],"subplus;":[10943],"subrarr;":[10617],"succsim;":[8831],"supdsub;":[10968],"supedot;":[10948],"suphsol;":[10185],"suphsub;":[10967],"suplarr;":[10619],"supmult;":[10946],"supplus;":[10944],"swarrow;":[8601],"topfork;":[10970],"triplus;":[10809],"tritime;":[10811],"uparrow;":[8593],"upsilon;":[965],"uwangle;":[10663],"vzigzag;":[10650],"zigrarr;":[8669]}},{length:7,entities:{"Aacute;":[193],"Abreve;":[258],"Agrave;":[192],"Assign;":[8788],"Atilde;":[195],"Barwed;":[8966],"Bumpeq;":[8782],"Cacute;":[262],"Ccaron;":[268],"Ccedil;":[199],"Colone;":[10868],"Conint;":[8751],"CupCap;":[8781],"Dagger;":[8225],"Dcaron;":[270],"DotDot;":[8412],"Dstrok;":[272],"Eacute;":[201],"Ecaron;":[282],"Egrave;":[200],"Exists;":[8707],"ForAll;":[8704],"Gammad;":[988],"Gbreve;":[286],"Gcedil;":[290],"HARDcy;":[1066],"Hstrok;":[294],"Iacute;":[205],"Igrave;":[204],"Itilde;":[296],"Jsercy;":[1032],"Kcedil;":[310],"Lacute;":[313],"Lambda;":[923],"Lcaron;":[317],"Lcedil;":[315],"Lmidot;":[319],"Lstrok;":[321],"Nacute;":[323],"Ncaron;":[327],"Ncedil;":[325],"Ntilde;":[209],"Oacute;":[211],"Odblac;":[336],"Ograve;":[210],"Oslash;":[216],"Otilde;":[213],"Otimes;":[10807],"Racute;":[340],"Rarrtl;":[10518],"Rcaron;":[344],"Rcedil;":[342],"SHCHcy;":[1065],"SOFTcy;":[1068],"Sacute;":[346],"Scaron;":[352],"Scedil;":[350],"Square;":[9633],"Subset;":[8912],"Supset;":[8913],"Tcaron;":[356],"Tcedil;":[354],"Tstrok;":[358],"Uacute;":[218],"Ubreve;":[364],"Udblac;":[368],"Ugrave;":[217],"Utilde;":[360],"Vdashl;":[10982],"Verbar;":[8214],"Vvdash;":[8874],"Yacute;":[221],"Zacute;":[377],"Zcaron;":[381],"aacute;":[225],"abreve;":[259],"agrave;":[224],"andand;":[10837],"angmsd;":[8737],"angsph;":[8738],"apacir;":[10863],"approx;":[8776],"atilde;":[227],"barvee;":[8893],"barwed;":[8965],"becaus;":[8757],"bernou;":[8492],"bigcap;":[8898],"bigcup;":[8899],"bigvee;":[8897],"bkarow;":[10509],"bottom;":[8869],"bowtie;":[8904],"boxbox;":[10697],"bprime;":[8245],"brvbar;":[166],"bullet;":[8226],"bumpeq;":[8783],"cacute;":[263],"capand;":[10820],"capcap;":[10827],"capcup;":[10823],"capdot;":[10816],"ccaron;":[269],"ccedil;":[231],"circeq;":[8791],"cirmid;":[10991],"colone;":[8788],"commat;":[64],"compfn;":[8728],"conint;":[8750],"coprod;":[8720],"copysr;":[8471],"cularr;":[8630],"cupcap;":[10822],"cupcup;":[10826],"cupdot;":[8845],"curarr;":[8631],"curren;":[164],"cylcty;":[9005],"dagger;":[8224],"daleth;":[8504],"dcaron;":[271],"dfisht;":[10623],"divide;":[247],"divonx;":[8903],"dlcorn;":[8990],"dlcrop;":[8973],"dollar;":[36],"drcorn;":[8991],"drcrop;":[8972],"dstrok;":[273],"eacute;":[233],"easter;":[10862],"ecaron;":[283],"ecolon;":[8789],"egrave;":[232],"egsdot;":[10904],"elsdot;":[10903],"emptyv;":[8709],"emsp13;":[8196],"emsp14;":[8197],"eparsl;":[10723],"eqcirc;":[8790],"equals;":[61],"equest;":[8799],"female;":[9792],"ffilig;":[64259],"ffllig;":[64260],"forall;":[8704],"frac12;":[189],"frac13;":[8531],"frac14;":[188],"frac15;":[8533],"frac16;":[8537],"frac18;":[8539],"frac23;":[8532],"frac25;":[8534],"frac34;":[190],"frac35;":[8535],"frac38;":[8540],"frac45;":[8536],"frac56;":[8538],"frac58;":[8541],"frac78;":[8542],"gacute;":[501],"gammad;":[989],"gbreve;":[287],"gesdot;":[10880],"gesles;":[10900],"gtlPar;":[10645],"gtrarr;":[10616],"gtrdot;":[8919],"gtrsim;":[8819],"hairsp;":[8202],"hamilt;":[8459],"hardcy;":[1098],"hearts;":[9829],"hellip;":[8230],"hercon;":[8889],"homtht;":[8763],"horbar;":[8213],"hslash;":[8463],"hstrok;":[295],"hybull;":[8259],"hyphen;":[8208],"iacute;":[237],"igrave;":[236],"iiiint;":[10764],"iinfin;":[10716],"incare;":[8453],"inodot;":[305],"intcal;":[8890],"iquest;":[191],"isinsv;":[8947],"itilde;":[297],"jsercy;":[1112],"kappav;":[1008],"kcedil;":[311],"kgreen;":[312],"lAtail;":[10523],"lacute;":[314],"lagran;":[8466],"lambda;":[955],"langle;":[10216],"larrfs;":[10525],"larrhk;":[8617],"larrlp;":[8619],"larrpl;":[10553],"larrtl;":[8610],"latail;":[10521],"lbrace;":[123],"lbrack;":[91],"lcaron;":[318],"lcedil;":[316],"ldquor;":[8222],"lesdot;":[10879],"lesges;":[10899],"lfisht;":[10620],"lfloor;":[8970],"lharul;":[10602],"llhard;":[10603],"lmidot;":[320],"lmoust;":[9136],"loplus;":[10797],"lowast;":[8727],"lowbar;":[95],"lparlt;":[10643],"lrhard;":[10605],"lsaquo;":[8249],"lsquor;":[8218],"lstrok;":[322],"lthree;":[8907],"ltimes;":[8905],"ltlarr;":[10614],"ltrPar;":[10646],"mapsto;":[8614],"marker;":[9646],"mcomma;":[10793],"midast;":[42],"midcir;":[10992],"middot;":[183],"minusb;":[8863],"minusd;":[8760],"mnplus;":[8723],"models;":[8871],"mstpos;":[8766],"nVDash;":[8879],"nVdash;":[8878],"nacute;":[324],"nbumpe;":[8783,824],"ncaron;":[328],"ncedil;":[326],"nearhk;":[10532],"nequiv;":[8802],"nesear;":[10536],"nexist;":[8708],"nltrie;":[8940],"notinE;":[8953,824],"nparsl;":[11005,8421],"nprcue;":[8928],"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrtrie;":[8941],"nsccue;":[8929],"nsimeq;":[8772],"ntilde;":[241],"numero;":[8470],"nvDash;":[8877],"nvHarr;":[10500],"nvdash;":[8876],"nvlArr;":[10498],"nvrArr;":[10499],"nwarhk;":[10531],"nwnear;":[10535],"oacute;":[243],"odblac;":[337],"odsold;":[10684],"ograve;":[242],"ominus;":[8854],"origof;":[8886],"oslash;":[248],"otilde;":[245],"otimes;":[8855],"parsim;":[10995],"percnt;":[37],"period;":[46],"permil;":[8240],"phmmat;":[8499],"planck;":[8463],"plankv;":[8463],"plusdo;":[8724],"plusdu;":[10789],"plusmn;":[177],"preceq;":[10927],"primes;":[8473],"prnsim;":[8936],"propto;":[8733],"prurel;":[8880],"puncsp;":[8200],"qprime;":[8279],"rAtail;":[10524],"racute;":[341],"rangle;":[10217],"rarrap;":[10613],"rarrfs;":[10526],"rarrhk;":[8618],"rarrlp;":[8620],"rarrpl;":[10565],"rarrtl;":[8611],"ratail;":[10522],"rbrace;":[125],"rbrack;":[93],"rcaron;":[345],"rcedil;":[343],"rdquor;":[8221],"rfisht;":[10621],"rfloor;":[8971],"rharul;":[10604],"rmoust;":[9137],"roplus;":[10798],"rpargt;":[10644],"rsaquo;":[8250],"rsquor;":[8217],"rthree;":[8908],"rtimes;":[8906],"sacute;":[347],"scaron;":[353],"scedil;":[351],"scnsim;":[8937],"searhk;":[10533],"seswar;":[10537],"sfrown;":[8994],"shchcy;":[1097],"sigmaf;":[962],"sigmav;":[962],"simdot;":[10858],"smashp;":[10803],"softcy;":[1100],"solbar;":[9023],"spades;":[9824],"sqcaps;":[8851,65024],"sqcups;":[8852,65024],"sqsube;":[8849],"sqsupe;":[8850],"square;":[9633],"squarf;":[9642],"ssetmn;":[8726],"ssmile;":[8995],"sstarf;":[8902],"subdot;":[10941],"subset;":[8834],"subsim;":[10951],"subsub;":[10965],"subsup;":[10963],"succeq;":[10928],"supdot;":[10942],"supset;":[8835],"supsim;":[10952],"supsub;":[10964],"supsup;":[10966],"swarhk;":[10534],"swnwar;":[10538],"target;":[8982],"tcaron;":[357],"tcedil;":[355],"telrec;":[8981],"there4;":[8756],"thetav;":[977],"thinsp;":[8201],"thksim;":[8764],"timesb;":[8864],"timesd;":[10800],"topbot;":[9014],"topcir;":[10993],"tprime;":[8244],"tridot;":[9708],"tstrok;":[359],"uacute;":[250],"ubreve;":[365],"udblac;":[369],"ufisht;":[10622],"ugrave;":[249],"ulcorn;":[8988],"ulcrop;":[8975],"urcorn;":[8989],"urcrop;":[8974],"utilde;":[361],"vangrt;":[10652],"varphi;":[981],"varrho;":[1009],"veebar;":[8891],"vellip;":[8942],"verbar;":[124],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"wedbar;":[10847],"wedgeq;":[8793],"weierp;":[8472],"wreath;":[8768],"xoplus;":[10753],"xotime;":[10754],"xsqcup;":[10758],"xuplus;":[10756],"xwedge;":[8896],"yacute;":[253],"zacute;":[378],"zcaron;":[382],"zeetrf;":[8488]}},{length:6,entities:{"AElig;":[198],Aacute:[193],"Acirc;":[194],Agrave:[192],"Alpha;":[913],"Amacr;":[256],"Aogon;":[260],"Aring;":[197],Atilde:[195],"Breve;":[728],Ccedil:[199],"Ccirc;":[264],"Colon;":[8759],"Cross;":[10799],"Dashv;":[10980],"Delta;":[916],Eacute:[201],"Ecirc;":[202],Egrave:[200],"Emacr;":[274],"Eogon;":[280],"Equal;":[10869],"Gamma;":[915],"Gcirc;":[284],"Hacek;":[711],"Hcirc;":[292],"IJlig;":[306],Iacute:[205],"Icirc;":[206],Igrave:[204],"Imacr;":[298],"Iogon;":[302],"Iukcy;":[1030],"Jcirc;":[308],"Jukcy;":[1028],"Kappa;":[922],Ntilde:[209],"OElig;":[338],Oacute:[211],"Ocirc;":[212],Ograve:[210],"Omacr;":[332],"Omega;":[937],Oslash:[216],Otilde:[213],"Prime;":[8243],"RBarr;":[10512],"Scirc;":[348],"Sigma;":[931],"THORN;":[222],"TRADE;":[8482],"TSHcy;":[1035],"Theta;":[920],"Tilde;":[8764],Uacute:[218],"Ubrcy;":[1038],"Ucirc;":[219],Ugrave:[217],"Umacr;":[362],"Union;":[8899],"Uogon;":[370],"UpTee;":[8869],"Uring;":[366],"VDash;":[8875],"Vdash;":[8873],"Wcirc;":[372],"Wedge;":[8896],Yacute:[221],"Ycirc;":[374],aacute:[225],"acirc;":[226],"acute;":[180],"aelig;":[230],agrave:[224],"aleph;":[8501],"alpha;":[945],"amacr;":[257],"amalg;":[10815],"angle;":[8736],"angrt;":[8735],"angst;":[197],"aogon;":[261],"aring;":[229],"asymp;":[8776],atilde:[227],"awint;":[10769],"bcong;":[8780],"bdquo;":[8222],"bepsi;":[1014],"blank;":[9251],"blk12;":[9618],"blk14;":[9617],"blk34;":[9619],"block;":[9608],"boxDL;":[9559],"boxDR;":[9556],"boxDl;":[9558],"boxDr;":[9555],"boxHD;":[9574],"boxHU;":[9577],"boxHd;":[9572],"boxHu;":[9575],"boxUL;":[9565],"boxUR;":[9562],"boxUl;":[9564],"boxUr;":[9561],"boxVH;":[9580],"boxVL;":[9571],"boxVR;":[9568],"boxVh;":[9579],"boxVl;":[9570],"boxVr;":[9567],"boxdL;":[9557],"boxdR;":[9554],"boxdl;":[9488],"boxdr;":[9484],"boxhD;":[9573],"boxhU;":[9576],"boxhd;":[9516],"boxhu;":[9524],"boxuL;":[9563],"boxuR;":[9560],"boxul;":[9496],"boxur;":[9492],"boxvH;":[9578],"boxvL;":[9569],"boxvR;":[9566],"boxvh;":[9532],"boxvl;":[9508],"boxvr;":[9500],"breve;":[728],brvbar:[166],"bsemi;":[8271],"bsime;":[8909],"bsolb;":[10693],"bumpE;":[10926],"bumpe;":[8783],"caret;":[8257],"caron;":[711],"ccaps;":[10829],ccedil:[231],"ccirc;":[265],"ccups;":[10828],"cedil;":[184],"check;":[10003],"clubs;":[9827],"colon;":[58],"comma;":[44],"crarr;":[8629],"cross;":[10007],"csube;":[10961],"csupe;":[10962],"ctdot;":[8943],"cuepr;":[8926],"cuesc;":[8927],"cupor;":[10821],curren:[164],"cuvee;":[8910],"cuwed;":[8911],"cwint;":[8753],"dashv;":[8867],"dblac;":[733],"ddarr;":[8650],"delta;":[948],"dharl;":[8643],"dharr;":[8642],"diams;":[9830],"disin;":[8946],divide:[247],"doteq;":[8784],"dtdot;":[8945],"dtrif;":[9662],"duarr;":[8693],"duhar;":[10607],"eDDot;":[10871],eacute:[233],"ecirc;":[234],"efDot;":[8786],egrave:[232],"emacr;":[275],"empty;":[8709],"eogon;":[281],"eplus;":[10865],"epsiv;":[1013],"eqsim;":[8770],"equiv;":[8801],"erDot;":[8787],"erarr;":[10609],"esdot;":[8784],"exist;":[8707],"fflig;":[64256],"filig;":[64257],"fjlig;":[102,106],"fllig;":[64258],"fltns;":[9649],"forkv;":[10969],frac12:[189],frac14:[188],frac34:[190],"frasl;":[8260],"frown;":[8994],"gamma;":[947],"gcirc;":[285],"gescc;":[10921],"gimel;":[8503],"gneqq;":[8809],"gnsim;":[8935],"grave;":[96],"gsime;":[10894],"gsiml;":[10896],"gtcir;":[10874],"gtdot;":[8919],"harrw;":[8621],"hcirc;":[293],"hoarr;":[8703],iacute:[237],"icirc;":[238],"iexcl;":[161],igrave:[236],"iiint;":[8749],"iiota;":[8489],"ijlig;":[307],"imacr;":[299],"image;":[8465],"imath;":[305],"imped;":[437],"infin;":[8734],"iogon;":[303],"iprod;":[10812],iquest:[191],"isinE;":[8953],"isins;":[8948],"isinv;":[8712],"iukcy;":[1110],"jcirc;":[309],"jmath;":[567],"jukcy;":[1108],"kappa;":[954],"lAarr;":[8666],"lBarr;":[10510],"langd;":[10641],"laquo;":[171],"larrb;":[8676],"lates;":[10925,65024],"lbarr;":[10508],"lbbrk;":[10098],"lbrke;":[10635],"lceil;":[8968],"ldquo;":[8220],"lescc;":[10920],"lhard;":[8637],"lharu;":[8636],"lhblk;":[9604],"llarr;":[8647],"lltri;":[9722],"lneqq;":[8808],"lnsim;":[8934],"loang;":[10220],"loarr;":[8701],"lobrk;":[10214],"lopar;":[10629],"lrarr;":[8646],"lrhar;":[8651],"lrtri;":[8895],"lsime;":[10893],"lsimg;":[10895],"lsquo;":[8216],"ltcir;":[10873],"ltdot;":[8918],"ltrie;":[8884],"ltrif;":[9666],"mDDot;":[8762],"mdash;":[8212],"micro;":[181],middot:[183],"minus;":[8722],"mumap;":[8888],"nabla;":[8711],"napid;":[8779,824],"napos;":[329],"natur;":[9838],"nbump;":[8782,824],"ncong;":[8775],"ndash;":[8211],"neArr;":[8663],"nearr;":[8599],"nedot;":[8784,824],"nesim;":[8770,824],"ngeqq;":[8807,824],"ngsim;":[8821],"nhArr;":[8654],"nharr;":[8622],"nhpar;":[10994],"nlArr;":[8653],"nlarr;":[8602],"nleqq;":[8806,824],"nless;":[8814],"nlsim;":[8820],"nltri;":[8938],"notin;":[8713],"notni;":[8716],"npart;":[8706,824],"nprec;":[8832],"nrArr;":[8655],"nrarr;":[8603],"nrtri;":[8939],"nsime;":[8772],"nsmid;":[8740],"nspar;":[8742],"nsubE;":[10949,824],"nsube;":[8840],"nsucc;":[8833],"nsupE;":[10950,824],"nsupe;":[8841],ntilde:[241],"numsp;":[8199],"nvsim;":[8764,8402],"nwArr;":[8662],"nwarr;":[8598],oacute:[243],"ocirc;":[244],"odash;":[8861],"oelig;":[339],"ofcir;":[10687],ograve:[242],"ohbar;":[10677],"olarr;":[8634],"olcir;":[10686],"oline;":[8254],"omacr;":[333],"omega;":[969],"operp;":[10681],"oplus;":[8853],"orarr;":[8635],"order;":[8500],oslash:[248],otilde:[245],"ovbar;":[9021],"parsl;":[11005],"phone;":[9742],"plusb;":[8862],"pluse;":[10866],plusmn:[177],"pound;":[163],"prcue;":[8828],"prime;":[8242],"prnap;":[10937],"prsim;":[8830],"quest;":[63],"rAarr;":[8667],"rBarr;":[10511],"radic;":[8730],"rangd;":[10642],"range;":[10661],"raquo;":[187],"rarrb;":[8677],"rarrc;":[10547],"rarrw;":[8605],"ratio;":[8758],"rbarr;":[10509],"rbbrk;":[10099],"rbrke;":[10636],"rceil;":[8969],"rdquo;":[8221],"reals;":[8477],"rhard;":[8641],"rharu;":[8640],"rlarr;":[8644],"rlhar;":[8652],"rnmid;":[10990],"roang;":[10221],"roarr;":[8702],"robrk;":[10215],"ropar;":[10630],"rrarr;":[8649],"rsquo;":[8217],"rtrie;":[8885],"rtrif;":[9656],"sbquo;":[8218],"sccue;":[8829],"scirc;":[349],"scnap;":[10938],"scsim;":[8831],"sdotb;":[8865],"sdote;":[10854],"seArr;":[8664],"searr;":[8600],"setmn;":[8726],"sharp;":[9839],"sigma;":[963],"simeq;":[8771],"simgE;":[10912],"simlE;":[10911],"simne;":[8774],"slarr;":[8592],"smile;":[8995],"smtes;":[10924,65024],"sqcap;":[8851],"sqcup;":[8852],"sqsub;":[8847],"sqsup;":[8848],"srarr;":[8594],"starf;":[9733],"strns;":[175],"subnE;":[10955],"subne;":[8842],"supnE;":[10956],"supne;":[8843],"swArr;":[8665],"swarr;":[8601],"szlig;":[223],"theta;":[952],"thkap;":[8776],"thorn;":[254],"tilde;":[732],"times;":[215],"trade;":[8482],"trisb;":[10701],"tshcy;":[1115],"twixt;":[8812],uacute:[250],"ubrcy;":[1118],"ucirc;":[251],"udarr;":[8645],"udhar;":[10606],ugrave:[249],"uharl;":[8639],"uharr;":[8638],"uhblk;":[9600],"ultri;":[9720],"umacr;":[363],"uogon;":[371],"uplus;":[8846],"upsih;":[978],"uring;":[367],"urtri;":[9721],"utdot;":[8944],"utrif;":[9652],"uuarr;":[8648],"vBarv;":[10985],"vDash;":[8872],"varpi;":[982],"vdash;":[8866],"veeeq;":[8794],"vltri;":[8882],"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vprop;":[8733],"vrtri;":[8883],"wcirc;":[373],"wedge;":[8743],"xcirc;":[9711],"xdtri;":[9661],"xhArr;":[10234],"xharr;":[10231],"xlArr;":[10232],"xlarr;":[10229],"xodot;":[10752],"xrArr;":[10233],"xrarr;":[10230],"xutri;":[9651],yacute:[253],"ycirc;":[375]}},{length:5,entities:{AElig:[198],Acirc:[194],"Aopf;":[120120],Aring:[197],"Ascr;":[119964],"Auml;":[196],"Barv;":[10983],"Beta;":[914],"Bopf;":[120121],"Bscr;":[8492],"CHcy;":[1063],"COPY;":[169],"Cdot;":[266],"Copf;":[8450],"Cscr;":[119966],"DJcy;":[1026],"DScy;":[1029],"DZcy;":[1039],"Darr;":[8609],"Dopf;":[120123],"Dscr;":[119967],Ecirc:[202],"Edot;":[278],"Eopf;":[120124],"Escr;":[8496],"Esim;":[10867],"Euml;":[203],"Fopf;":[120125],"Fscr;":[8497],"GJcy;":[1027],"Gdot;":[288],"Gopf;":[120126],"Gscr;":[119970],"Hopf;":[8461],"Hscr;":[8459],"IEcy;":[1045],"IOcy;":[1025],Icirc:[206],"Idot;":[304],"Iopf;":[120128],"Iota;":[921],"Iscr;":[8464],"Iuml;":[207],"Jopf;":[120129],"Jscr;":[119973],"KHcy;":[1061],"KJcy;":[1036],"Kopf;":[120130],"Kscr;":[119974],"LJcy;":[1033],"Lang;":[10218],"Larr;":[8606],"Lopf;":[120131],"Lscr;":[8466],"Mopf;":[120132],"Mscr;":[8499],"NJcy;":[1034],"Nopf;":[8469],"Nscr;":[119977],Ocirc:[212],"Oopf;":[120134],"Oscr;":[119978],"Ouml;":[214],"Popf;":[8473],"Pscr;":[119979],"QUOT;":[34],"Qopf;":[8474],"Qscr;":[119980],"Rang;":[10219],"Rarr;":[8608],"Ropf;":[8477],"Rscr;":[8475],"SHcy;":[1064],"Sopf;":[120138],"Sqrt;":[8730],"Sscr;":[119982],"Star;":[8902],THORN:[222],"TScy;":[1062],"Topf;":[120139],"Tscr;":[119983],"Uarr;":[8607],Ucirc:[219],"Uopf;":[120140],"Upsi;":[978],"Uscr;":[119984],"Uuml;":[220],"Vbar;":[10987],"Vert;":[8214],"Vopf;":[120141],"Vscr;":[119985],"Wopf;":[120142],"Wscr;":[119986],"Xopf;":[120143],"Xscr;":[119987],"YAcy;":[1071],"YIcy;":[1031],"YUcy;":[1070],"Yopf;":[120144],"Yscr;":[119988],"Yuml;":[376],"ZHcy;":[1046],"Zdot;":[379],"Zeta;":[918],"Zopf;":[8484],"Zscr;":[119989],acirc:[226],acute:[180],aelig:[230],"andd;":[10844],"andv;":[10842],"ange;":[10660],"aopf;":[120146],"apid;":[8779],"apos;":[39],aring:[229],"ascr;":[119990],"auml;":[228],"bNot;":[10989],"bbrk;":[9141],"beta;":[946],"beth;":[8502],"bnot;":[8976],"bopf;":[120147],"boxH;":[9552],"boxV;":[9553],"boxh;":[9472],"boxv;":[9474],"bscr;":[119991],"bsim;":[8765],"bsol;":[92],"bull;":[8226],"bump;":[8782],"caps;":[8745,65024],"cdot;":[267],cedil:[184],"cent;":[162],"chcy;":[1095],"cirE;":[10691],"circ;":[710],"cire;":[8791],"comp;":[8705],"cong;":[8773],"copf;":[120148],"copy;":[169],"cscr;":[119992],"csub;":[10959],"csup;":[10960],"cups;":[8746,65024],"dArr;":[8659],"dHar;":[10597],"darr;":[8595],"dash;":[8208],"diam;":[8900],"djcy;":[1106],"dopf;":[120149],"dscr;":[119993],"dscy;":[1109],"dsol;":[10742],"dtri;":[9663],"dzcy;":[1119],"eDot;":[8785],"ecir;":[8790],ecirc:[234],"edot;":[279],"emsp;":[8195],"ensp;":[8194],"eopf;":[120150],"epar;":[8917],"epsi;":[949],"escr;":[8495],"esim;":[8770],"euml;":[235],"euro;":[8364],"excl;":[33],"flat;":[9837],"fnof;":[402],"fopf;":[120151],"fork;":[8916],"fscr;":[119995],"gdot;":[289],"geqq;":[8807],"gesl;":[8923,65024],"gjcy;":[1107],"gnap;":[10890],"gneq;":[10888],"gopf;":[120152],"gscr;":[8458],"gsim;":[8819],"gtcc;":[10919],"gvnE;":[8809,65024],"hArr;":[8660],"half;":[189],"harr;":[8596],"hbar;":[8463],"hopf;":[120153],"hscr;":[119997],icirc:[238],"iecy;":[1077],iexcl:[161],"imof;":[8887],"iocy;":[1105],"iopf;":[120154],"iota;":[953],"iscr;":[119998],"isin;":[8712],"iuml;":[239],"jopf;":[120155],"jscr;":[119999],"khcy;":[1093],"kjcy;":[1116],"kopf;":[120156],"kscr;":[12e4],"lArr;":[8656],"lHar;":[10594],"lang;":[10216],laquo:[171],"larr;":[8592],"late;":[10925],"lcub;":[123],"ldca;":[10550],"ldsh;":[8626],"leqq;":[8806],"lesg;":[8922,65024],"ljcy;":[1113],"lnap;":[10889],"lneq;":[10887],"lopf;":[120157],"lozf;":[10731],"lpar;":[40],"lscr;":[120001],"lsim;":[8818],"lsqb;":[91],"ltcc;":[10918],"ltri;":[9667],"lvnE;":[8808,65024],"macr;":[175],"male;":[9794],"malt;":[10016],micro:[181],"mlcp;":[10971],"mldr;":[8230],"mopf;":[120158],"mscr;":[120002],"nGtv;":[8811,824],"nLtv;":[8810,824],"nang;":[8736,8402],"napE;":[10864,824],"nbsp;":[160],"ncap;":[10819],"ncup;":[10818],"ngeq;":[8817],"nges;":[10878,824],"ngtr;":[8815],"nisd;":[8954],"njcy;":[1114],"nldr;":[8229],"nleq;":[8816],"nles;":[10877,824],"nmid;":[8740],"nopf;":[120159],"npar;":[8742],"npre;":[10927,824],"nsce;":[10928,824],"nscr;":[120003],"nsim;":[8769],"nsub;":[8836],"nsup;":[8837],"ntgl;":[8825],"ntlg;":[8824],"nvap;":[8781,8402],"nvge;":[8805,8402],"nvgt;":[62,8402],"nvle;":[8804,8402],"nvlt;":[60,8402],"oast;":[8859],"ocir;":[8858],ocirc:[244],"odiv;":[10808],"odot;":[8857],"ogon;":[731],"oint;":[8750],"omid;":[10678],"oopf;":[120160],"opar;":[10679],"ordf;":[170],"ordm;":[186],"oror;":[10838],"oscr;":[8500],"osol;":[8856],"ouml;":[246],"para;":[182],"part;":[8706],"perp;":[8869],"phiv;":[981],"plus;":[43],"popf;":[120161],pound:[163],"prap;":[10935],"prec;":[8826],"prnE;":[10933],"prod;":[8719],"prop;":[8733],"pscr;":[120005],"qint;":[10764],"qopf;":[120162],"qscr;":[120006],"quot;":[34],"rArr;":[8658],"rHar;":[10596],"race;":[8765,817],"rang;":[10217],raquo:[187],"rarr;":[8594],"rcub;":[125],"rdca;":[10551],"rdsh;":[8627],"real;":[8476],"rect;":[9645],"rhov;":[1009],"ring;":[730],"ropf;":[120163],"rpar;":[41],"rscr;":[120007],"rsqb;":[93],"rtri;":[9657],"scap;":[10936],"scnE;":[10934],"sdot;":[8901],"sect;":[167],"semi;":[59],"sext;":[10038],"shcy;":[1096],"sime;":[8771],"simg;":[10910],"siml;":[10909],"smid;":[8739],"smte;":[10924],"solb;":[10692],"sopf;":[120164],"spar;":[8741],"squf;":[9642],"sscr;":[120008],"star;":[9734],"subE;":[10949],"sube;":[8838],"succ;":[8827],"sung;":[9834],"sup1;":[185],"sup2;":[178],"sup3;":[179],"supE;":[10950],"supe;":[8839],szlig:[223],"tbrk;":[9140],"tdot;":[8411],thorn:[254],times:[215],"tint;":[8749],"toea;":[10536],"topf;":[120165],"tosa;":[10537],"trie;":[8796],"tscr;":[120009],"tscy;":[1094],"uArr;":[8657],"uHar;":[10595],"uarr;":[8593],ucirc:[251],"uopf;":[120166],"upsi;":[965],"uscr;":[120010],"utri;":[9653],"uuml;":[252],"vArr;":[8661],"vBar;":[10984],"varr;":[8597],"vert;":[124],"vopf;":[120167],"vscr;":[120011],"wopf;":[120168],"wscr;":[120012],"xcap;":[8898],"xcup;":[8899],"xmap;":[10236],"xnis;":[8955],"xopf;":[120169],"xscr;":[120013],"xvee;":[8897],"yacy;":[1103],"yicy;":[1111],"yopf;":[120170],"yscr;":[120014],"yucy;":[1102],"yuml;":[255],"zdot;":[380],"zeta;":[950],"zhcy;":[1078],"zopf;":[120171],"zscr;":[120015],"zwnj;":[8204]}},{length:4,entities:{"AMP;":[38],"Acy;":[1040],"Afr;":[120068],"And;":[10835],Auml:[196],"Bcy;":[1041],"Bfr;":[120069],COPY:[169],"Cap;":[8914],"Cfr;":[8493],"Chi;":[935],"Cup;":[8915],"Dcy;":[1044],"Del;":[8711],"Dfr;":[120071],"Dot;":[168],"ENG;":[330],"ETH;":[208],"Ecy;":[1069],"Efr;":[120072],"Eta;":[919],Euml:[203],"Fcy;":[1060],"Ffr;":[120073],"Gcy;":[1043],"Gfr;":[120074],"Hat;":[94],"Hfr;":[8460],"Icy;":[1048],"Ifr;":[8465],"Int;":[8748],Iuml:[207],"Jcy;":[1049],"Jfr;":[120077],"Kcy;":[1050],"Kfr;":[120078],"Lcy;":[1051],"Lfr;":[120079],"Lsh;":[8624],"Map;":[10501],"Mcy;":[1052],"Mfr;":[120080],"Ncy;":[1053],"Nfr;":[120081],"Not;":[10988],"Ocy;":[1054],"Ofr;":[120082],Ouml:[214],"Pcy;":[1055],"Pfr;":[120083],"Phi;":[934],"Psi;":[936],QUOT:[34],"Qfr;":[120084],"REG;":[174],"Rcy;":[1056],"Rfr;":[8476],"Rho;":[929],"Rsh;":[8625],"Scy;":[1057],"Sfr;":[120086],"Sub;":[8912],"Sum;":[8721],"Sup;":[8913],"Tab;":[9],"Tau;":[932],"Tcy;":[1058],"Tfr;":[120087],"Ucy;":[1059],"Ufr;":[120088],Uuml:[220],"Vcy;":[1042],"Vee;":[8897],"Vfr;":[120089],"Wfr;":[120090],"Xfr;":[120091],"Ycy;":[1067],"Yfr;":[120092],"Zcy;":[1047],"Zfr;":[8488],"acE;":[8766,819],"acd;":[8767],"acy;":[1072],"afr;":[120094],"amp;":[38],"and;":[8743],"ang;":[8736],"apE;":[10864],"ape;":[8778],"ast;":[42],auml:[228],"bcy;":[1073],"bfr;":[120095],"bne;":[61,8421],"bot;":[8869],"cap;":[8745],cent:[162],"cfr;":[120096],"chi;":[967],"cir;":[9675],copy:[169],"cup;":[8746],"dcy;":[1076],"deg;":[176],"dfr;":[120097],"die;":[168],"div;":[247],"dot;":[729],"ecy;":[1101],"efr;":[120098],"egs;":[10902],"ell;":[8467],"els;":[10901],"eng;":[331],"eta;":[951],"eth;":[240],euml:[235],"fcy;":[1092],"ffr;":[120099],"gEl;":[10892],"gap;":[10886],"gcy;":[1075],"gel;":[8923],"geq;":[8805],"ges;":[10878],"gfr;":[120100],"ggg;":[8921],"glE;":[10898],"gla;":[10917],"glj;":[10916],"gnE;":[8809],"gne;":[10888],"hfr;":[120101],"icy;":[1080],"iff;":[8660],"ifr;":[120102],"int;":[8747],iuml:[239],"jcy;":[1081],"jfr;":[120103],"kcy;":[1082],"kfr;":[120104],"lEg;":[10891],"lap;":[10885],"lat;":[10923],"lcy;":[1083],"leg;":[8922],"leq;":[8804],"les;":[10877],"lfr;":[120105],"lgE;":[10897],"lnE;":[8808],"lne;":[10887],"loz;":[9674],"lrm;":[8206],"lsh;":[8624],macr:[175],"map;":[8614],"mcy;":[1084],"mfr;":[120106],"mho;":[8487],"mid;":[8739],"nGg;":[8921,824],"nGt;":[8811,8402],"nLl;":[8920,824],"nLt;":[8810,8402],"nap;":[8777],nbsp:[160],"ncy;":[1085],"nfr;":[120107],"ngE;":[8807,824],"nge;":[8817],"ngt;":[8815],"nis;":[8956],"niv;":[8715],"nlE;":[8806,824],"nle;":[8816],"nlt;":[8814],"not;":[172],"npr;":[8832],"nsc;":[8833],"num;":[35],"ocy;":[1086],"ofr;":[120108],"ogt;":[10689],"ohm;":[937],"olt;":[10688],"ord;":[10845],ordf:[170],ordm:[186],"orv;":[10843],ouml:[246],"par;":[8741],para:[182],"pcy;":[1087],"pfr;":[120109],"phi;":[966],"piv;":[982],"prE;":[10931],"pre;":[10927],"psi;":[968],"qfr;":[120110],quot:[34],"rcy;":[1088],"reg;":[174],"rfr;":[120111],"rho;":[961],"rlm;":[8207],"rsh;":[8625],"scE;":[10932],"sce;":[10928],"scy;":[1089],sect:[167],"sfr;":[120112],"shy;":[173],"sim;":[8764],"smt;":[10922],"sol;":[47],"squ;":[9633],"sub;":[8834],"sum;":[8721],sup1:[185],sup2:[178],sup3:[179],"sup;":[8835],"tau;":[964],"tcy;":[1090],"tfr;":[120113],"top;":[8868],"ucy;":[1091],"ufr;":[120114],"uml;":[168],uuml:[252],"vcy;":[1074],"vee;":[8744],"vfr;":[120115],"wfr;":[120116],"xfr;":[120117],"ycy;":[1099],"yen;":[165],"yfr;":[120118],yuml:[255],"zcy;":[1079],"zfr;":[120119],"zwj;":[8205]}},{length:3,entities:{AMP:[38],"DD;":[8517],ETH:[208],"GT;":[62],"Gg;":[8921],"Gt;":[8811],"Im;":[8465],"LT;":[60],"Ll;":[8920],"Lt;":[8810],"Mu;":[924],"Nu;":[925],"Or;":[10836],"Pi;":[928],"Pr;":[10939],REG:[174],"Re;":[8476],"Sc;":[10940],"Xi;":[926],"ac;":[8766],"af;":[8289],amp:[38],"ap;":[8776],"dd;":[8518],deg:[176],"ee;":[8519],"eg;":[10906],"el;":[10905],eth:[240],"gE;":[8807],"ge;":[8805],"gg;":[8811],"gl;":[8823],"gt;":[62],"ic;":[8291],"ii;":[8520],"in;":[8712],"it;":[8290],"lE;":[8806],"le;":[8804],"lg;":[8822],"ll;":[8810],"lt;":[60],"mp;":[8723],"mu;":[956],"ne;":[8800],"ni;":[8715],not:[172],"nu;":[957],"oS;":[9416],"or;":[8744],"pi;":[960],"pm;":[177],"pr;":[8826],reg:[174],"rx;":[8478],"sc;":[8827],shy:[173],uml:[168],"wp;":[8472],"wr;":[8768],"xi;":[958],yen:[165]}},{length:2,entities:{GT:[62],LT:[60],gt:[62],lt:[60]}}],bn=65533;function xn(e){return e===9||e===10||e===12||e===13||e===32}function Sn(e){return e>=65&&e<=90}function Cn(e){return e>=97&&e<=122}function wn(e){return Cn(e)||Sn(e)}function Tn(e){return e>=48&&e<=57}function En(e){return e>=65&&e<=70}function G(e){return e>=97&&e<=102}function Dn(e){return Tn(e)||En(e)||G(e)}function On(e){return e>=0&&e<=31||e>=127&&e<=159}function kn(e){return e>=55296&&e<=57343}function An(e){return e>=56320&&e<=57343}function jn(e){return e>=64976&&e<=65007||(e&65534)==65534&&e<=1114111}function Mn(e){return e+32}var Nn=class{text;gaps;lineTerminators;parserOptions;lastCodePoint;lastCodePointRaw;offset;column;line;returnState;vExpressionScriptState=null;reconsuming;buffer;crStartOffset;crCode;committedToken;provisionalToken;currentToken;lastTagOpenToken;tokenStartOffset;tokenStartLine;tokenStartColumn;state;errors;namespace;expressionEnabled;constructor(e,t){B(`[html] the source code length: %d`,e.length),this.text=e,this.gaps=[],this.lineTerminators=[],this.parserOptions=t||{},this.lastCodePoint=this.lastCodePointRaw=0,this.offset=-1,this.column=-1,this.line=1,this.state=`DATA`,this.returnState=`DATA`,this.reconsuming=!1,this.buffer=[],this.crStartOffset=-1,this.crCode=0,this.errors=[],this.committedToken=null,this.provisionalToken=null,this.currentToken=null,this.lastTagOpenToken=null,this.tokenStartOffset=-1,this.tokenStartColumn=-1,this.tokenStartLine=1,this.namespace=T.HTML,this.expressionEnabled=!1}nextToken(){let e=this.lastCodePoint;for(;this.committedToken==null&&(e!==-1||this.reconsuming)&&!(this.provisionalToken!=null&&!this.isProvisionalState()&&(this.commitProvisionalToken(),this.committedToken!=null));)this.reconsuming?(this.reconsuming=!1,e=this.lastCodePoint):e=this.consumeNextCodePoint(),B(`[html] parse`,e,this.state),this.state=this[this.state](e);{let e=this.consumeCommittedToken();if(e!=null)return e}if((0,m.default)(e===-1),this.currentToken!=null){this.endToken();let e=this.consumeCommittedToken();if(e!=null)return e}return this.currentToken}consumeCommittedToken(){let e=this.committedToken;return this.committedToken=null,e}consumeNextCodePoint(){if(this.offset>=this.text.length)return this.lastCodePoint=this.lastCodePointRaw=-1,-1;if(this.offset+=this.lastCodePoint>=65536?2:1,this.offset>=this.text.length)return this.advanceLocation(),this.lastCodePoint=this.lastCodePointRaw=-1,-1;let e=this.text.codePointAt(this.offset);return kn(this.text.charCodeAt(this.offset))&&!An(this.text.charCodeAt(this.offset+1))&&this.reportParseError(`surrogate-in-input-stream`),jn(e)&&this.reportParseError(`noncharacter-in-input-stream`),On(e)&&!xn(e)&&e!==0&&this.reportParseError(`control-character-in-input-stream`),this.lastCodePointRaw===13&&e===10?(this.lastCodePoint=this.lastCodePointRaw=10,this.gaps.push(this.offset),this.consumeNextCodePoint()):(this.advanceLocation(),this.lastCodePoint=this.lastCodePointRaw=e,e===13?(this.lastCodePoint=10,10):e)}advanceLocation(){this.lastCodePointRaw===10?(this.lineTerminators.push(this.offset),this.line+=1,this.column=0):this.column+=this.lastCodePoint>=65536?2:1}reconsumeAs(e){return this.reconsuming=!0,e}reportParseError(e){let t=w.fromCode(e,this.offset,this.line,this.column);this.errors.push(t),B(`[html] syntax error:`,t.message)}setStartTokenMark(){this.tokenStartOffset=this.offset,this.tokenStartLine=this.line,this.tokenStartColumn=this.column}clearStartTokenMark(){this.tokenStartOffset=-1}startToken(e){this.tokenStartOffset===-1&&this.setStartTokenMark();let t=this.tokenStartOffset,n=this.tokenStartLine,r=this.tokenStartColumn;return this.currentToken!=null&&this.endToken(),this.tokenStartOffset=-1,B(`[html] start token: %d %s`,t,(this.currentToken={type:e,range:[t,-1],loc:{start:{line:n,column:r},end:{line:-1,column:-1}},value:``}).type),this.currentToken}endToken(){if(this.currentToken==null)throw Error(`Invalid state`);this.tokenStartOffset===-1&&this.setStartTokenMark();let e=this.currentToken,t=this.tokenStartOffset,n=this.tokenStartLine,r=this.tokenStartColumn,i=this.isProvisionalState();return this.currentToken=null,this.tokenStartOffset=-1,e.range[1]=t,e.loc.end.line=n,e.loc.end.column=r,e.range[0]===t&&!i?(B(`[html] abandon token: %j %s %j`,e.range,e.type,e.value),null):(i?(this.provisionalToken!=null&&this.commitProvisionalToken(),this.provisionalToken=e,B(`[html] provisional-commit token: %j %s %j`,e.range,e.type,e.value)):this.commitToken(e),e)}commitToken(e){(0,m.default)(this.committedToken==null,`Invalid state: the commited token existed already.`),B(`[html] commit token: %j %j %s %j`,e.range,e.loc,e.type,e.value),this.committedToken=e,e.type===`HTMLTagOpen`&&(this.lastTagOpenToken=e)}isProvisionalState(){return this.state.startsWith(`RCDATA_`)||this.state.startsWith(`RAWTEXT_`)}commitProvisionalToken(){(0,m.default)(this.provisionalToken!=null,`Invalid state: the provisional token was not found.`);let e=this.provisionalToken;this.provisionalToken=null,e.range[0]<e.range[1]&&this.commitToken(e)}rollbackProvisionalToken(){(0,m.default)(this.currentToken!=null),(0,m.default)(this.provisionalToken!=null);let e=this.currentToken;B(`[html] rollback token: %d %s`,e.range[0],e.type),this.currentToken=this.provisionalToken,this.provisionalToken=null}appendTokenValue(e,t){let n=this.currentToken;if(n==null||t!=null&&n.type!==t){let e=t?`"${t}" type`:`any token`,r=n?`"${n.type}" type`:`no token`;throw Error(`Tokenizer: Invalid state. Expected ${e}, but got ${r}.`)}n.value+=String.fromCodePoint(e)}isAppropriateEndTagOpen(){return this.currentToken!=null&&this.lastTagOpenToken!=null&&this.currentToken.type===`HTMLEndTagOpen`&&this.currentToken.value===this.lastTagOpenToken.value}DATA(e){for(this.clearStartTokenMark();;){let t=xn(e)?`HTMLWhitespace`:`HTMLText`;if(this.currentToken!=null&&this.currentToken.type!==t)return this.endToken(),this.reconsumeAs(this.state);if(this.currentToken??this.startToken(t),e===38)return this.returnState=`DATA`,`CHARACTER_REFERENCE`;if(e===60)return this.setStartTokenMark(),`TAG_OPEN`;if(e===123&&this.expressionEnabled)return this.setStartTokenMark(),this.returnState=`DATA`,`V_EXPRESSION_START`;if(e===125&&this.expressionEnabled)return this.setStartTokenMark(),this.returnState=`DATA`,`V_EXPRESSION_END`;if(e===-1)return`DATA`;e===0&&this.reportParseError(`unexpected-null-character`),this.appendTokenValue(e,t),e=this.consumeNextCodePoint()}}RCDATA(e){for(this.clearStartTokenMark();;){let t=xn(e)?`HTMLWhitespace`:`HTMLRCDataText`;if(this.currentToken!=null&&this.currentToken.type!==t)return this.endToken(),this.reconsumeAs(this.state);if(this.currentToken??this.startToken(t),e===38)return this.returnState=`RCDATA`,`CHARACTER_REFERENCE`;if(e===60)return this.setStartTokenMark(),`RCDATA_LESS_THAN_SIGN`;if(e===123&&this.expressionEnabled)return this.setStartTokenMark(),this.returnState=`RCDATA`,`V_EXPRESSION_START`;if(e===125&&this.expressionEnabled)return this.setStartTokenMark(),this.returnState=`RCDATA`,`V_EXPRESSION_END`;if(e===-1)return`DATA`;e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),this.appendTokenValue(e,t),e=this.consumeNextCodePoint()}}RAWTEXT(e){for(this.clearStartTokenMark();;){let t=xn(e)?`HTMLWhitespace`:`HTMLRawText`;if(this.currentToken!=null&&this.currentToken.type!==t)return this.endToken(),this.reconsumeAs(this.state);if(this.currentToken??this.startToken(t),e===60)return this.setStartTokenMark(),`RAWTEXT_LESS_THAN_SIGN`;if(e===123&&this.expressionEnabled)return this.setStartTokenMark(),this.returnState=`RAWTEXT`,`V_EXPRESSION_START`;if(e===125&&this.expressionEnabled)return this.setStartTokenMark(),this.returnState=`RAWTEXT`,`V_EXPRESSION_END`;if(e===-1)return`DATA`;e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),this.appendTokenValue(e,t),e=this.consumeNextCodePoint()}}TAG_OPEN(e){return e===33?`MARKUP_DECLARATION_OPEN`:e===47?`END_TAG_OPEN`:wn(e)?(this.startToken(`HTMLTagOpen`),this.reconsumeAs(`TAG_NAME`)):e===63?(this.reportParseError(`unexpected-question-mark-instead-of-tag-name`),this.startToken(`HTMLBogusComment`),this.reconsumeAs(`BOGUS_COMMENT`)):e===-1?(this.clearStartTokenMark(),this.reportParseError(`eof-before-tag-name`),this.appendTokenValue(60,`HTMLText`),`DATA`):(this.reportParseError(`invalid-first-character-of-tag-name`),this.appendTokenValue(60,`HTMLText`),this.reconsumeAs(`DATA`))}END_TAG_OPEN(e){return wn(e)?(this.startToken(`HTMLEndTagOpen`),this.reconsumeAs(`TAG_NAME`)):e===62?(this.endToken(),this.reportParseError(`missing-end-tag-name`),`DATA`):e===-1?(this.clearStartTokenMark(),this.reportParseError(`eof-before-tag-name`),this.appendTokenValue(60,`HTMLText`),this.appendTokenValue(47,`HTMLText`),`DATA`):(this.reportParseError(`invalid-first-character-of-tag-name`),this.startToken(`HTMLBogusComment`),this.reconsumeAs(`BOGUS_COMMENT`))}TAG_NAME(e){for(;;){if(xn(e))return this.endToken(),`BEFORE_ATTRIBUTE_NAME`;if(e===47)return this.endToken(),this.setStartTokenMark(),`SELF_CLOSING_START_TAG`;if(e===62)return this.startToken(`HTMLTagClose`),`DATA`;if(e===-1)return this.reportParseError(`eof-in-tag`),`DATA`;e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),this.appendTokenValue(Sn(e)?Mn(e):e,null),e=this.consumeNextCodePoint()}}RCDATA_LESS_THAN_SIGN(e){return e===47?(this.buffer=[],`RCDATA_END_TAG_OPEN`):(this.appendTokenValue(60,`HTMLRCDataText`),this.reconsumeAs(`RCDATA`))}RCDATA_END_TAG_OPEN(e){return wn(e)?(this.startToken(`HTMLEndTagOpen`),this.reconsumeAs(`RCDATA_END_TAG_NAME`)):(this.appendTokenValue(60,`HTMLRCDataText`),this.appendTokenValue(47,`HTMLRCDataText`),this.reconsumeAs(`RCDATA`))}RCDATA_END_TAG_NAME(e){for(;;){if(xn(e)&&this.isAppropriateEndTagOpen())return this.endToken(),`BEFORE_ATTRIBUTE_NAME`;if(e===47&&this.isAppropriateEndTagOpen())return this.endToken(),this.setStartTokenMark(),`SELF_CLOSING_START_TAG`;if(e===62&&this.isAppropriateEndTagOpen())return this.startToken(`HTMLTagClose`),`DATA`;if(!wn(e)){this.rollbackProvisionalToken(),this.appendTokenValue(60,`HTMLRCDataText`),this.appendTokenValue(47,`HTMLRCDataText`);for(let e of this.buffer)this.appendTokenValue(e,`HTMLRCDataText`);return this.reconsumeAs(`RCDATA`)}this.appendTokenValue(Sn(e)?Mn(e):e,`HTMLEndTagOpen`),this.buffer.push(e),e=this.consumeNextCodePoint()}}RAWTEXT_LESS_THAN_SIGN(e){return e===47?(this.buffer=[],`RAWTEXT_END_TAG_OPEN`):(this.appendTokenValue(60,`HTMLRawText`),this.reconsumeAs(`RAWTEXT`))}RAWTEXT_END_TAG_OPEN(e){return wn(e)?(this.startToken(`HTMLEndTagOpen`),this.reconsumeAs(`RAWTEXT_END_TAG_NAME`)):(this.appendTokenValue(60,`HTMLRawText`),this.appendTokenValue(47,`HTMLRawText`),this.reconsumeAs(`RAWTEXT`))}RAWTEXT_END_TAG_NAME(e){for(;;){if(e===47&&this.isAppropriateEndTagOpen())return this.endToken(),this.setStartTokenMark(),`SELF_CLOSING_START_TAG`;if(e===62&&this.isAppropriateEndTagOpen())return this.startToken(`HTMLTagClose`),`DATA`;if(xn(e)&&this.isAppropriateEndTagOpen())return this.endToken(),`BEFORE_ATTRIBUTE_NAME`;if(!wn(e)&&!t.call(this,e)){this.rollbackProvisionalToken(),this.appendTokenValue(60,`HTMLRawText`),this.appendTokenValue(47,`HTMLRawText`);for(let e of this.buffer)this.appendTokenValue(e,`HTMLRawText`);return this.reconsumeAs(`RAWTEXT`)}this.appendTokenValue(Sn(e)?Mn(e):e,`HTMLEndTagOpen`),this.buffer.push(e),e=this.consumeNextCodePoint()}function t(e){return this.currentToken&&this.lastTagOpenToken?.value.startsWith(this.currentToken.value+String.fromCodePoint(e))}}BEFORE_ATTRIBUTE_NAME(e){for(;xn(e);)e=this.consumeNextCodePoint();return e===47||e===62||e===-1?this.reconsumeAs(`AFTER_ATTRIBUTE_NAME`):e===61?(this.reportParseError(`unexpected-equals-sign-before-attribute-name`),this.startToken(`HTMLIdentifier`),this.appendTokenValue(e,`HTMLIdentifier`),`ATTRIBUTE_NAME`):(this.startToken(`HTMLIdentifier`),this.reconsumeAs(`ATTRIBUTE_NAME`))}ATTRIBUTE_NAME(e){for(;;){if(xn(e)||e===47||e===62||e===-1)return this.endToken(),this.reconsumeAs(`AFTER_ATTRIBUTE_NAME`);if(e===61)return this.startToken(`HTMLAssociation`),`BEFORE_ATTRIBUTE_VALUE`;e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),(e===34||e===39||e===60)&&this.reportParseError(`unexpected-character-in-attribute-name`),this.appendTokenValue(Sn(e)?Mn(e):e,`HTMLIdentifier`),e=this.consumeNextCodePoint()}}AFTER_ATTRIBUTE_NAME(e){for(;xn(e);)e=this.consumeNextCodePoint();return e===47?(this.setStartTokenMark(),`SELF_CLOSING_START_TAG`):e===61?(this.startToken(`HTMLAssociation`),`BEFORE_ATTRIBUTE_VALUE`):e===62?(this.startToken(`HTMLTagClose`),`DATA`):e===-1?(this.reportParseError(`eof-in-tag`),`DATA`):(this.startToken(`HTMLIdentifier`),this.reconsumeAs(`ATTRIBUTE_NAME`))}BEFORE_ATTRIBUTE_VALUE(e){for(this.endToken();xn(e);)e=this.consumeNextCodePoint();return e===62?(this.reportParseError(`missing-attribute-value`),this.startToken(`HTMLTagClose`),`DATA`):(this.startToken(`HTMLLiteral`),e===34?`ATTRIBUTE_VALUE_DOUBLE_QUOTED`:e===39?`ATTRIBUTE_VALUE_SINGLE_QUOTED`:this.reconsumeAs(`ATTRIBUTE_VALUE_UNQUOTED`))}ATTRIBUTE_VALUE_DOUBLE_QUOTED(e){for(;;){if(e===34)return`AFTER_ATTRIBUTE_VALUE_QUOTED`;if(e===38)return this.returnState=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,`CHARACTER_REFERENCE`;if(e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),e===-1)return this.reportParseError(`eof-in-tag`),`DATA`;this.appendTokenValue(e,`HTMLLiteral`),e=this.consumeNextCodePoint()}}ATTRIBUTE_VALUE_SINGLE_QUOTED(e){for(;;){if(e===39)return`AFTER_ATTRIBUTE_VALUE_QUOTED`;if(e===38)return this.returnState=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,`CHARACTER_REFERENCE`;if(e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),e===-1)return this.reportParseError(`eof-in-tag`),`DATA`;this.appendTokenValue(e,`HTMLLiteral`),e=this.consumeNextCodePoint()}}ATTRIBUTE_VALUE_UNQUOTED(e){for(;;){if(xn(e))return this.endToken(),`BEFORE_ATTRIBUTE_NAME`;if(e===38)return this.returnState=`ATTRIBUTE_VALUE_UNQUOTED`,`CHARACTER_REFERENCE`;if(e===62)return this.startToken(`HTMLTagClose`),`DATA`;if(e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),(e===34||e===39||e===60||e===61||e===96)&&this.reportParseError(`unexpected-character-in-unquoted-attribute-value`),e===-1)return this.reportParseError(`eof-in-tag`),`DATA`;this.appendTokenValue(e,`HTMLLiteral`),e=this.consumeNextCodePoint()}}AFTER_ATTRIBUTE_VALUE_QUOTED(e){return this.endToken(),xn(e)?`BEFORE_ATTRIBUTE_NAME`:e===47?(this.setStartTokenMark(),`SELF_CLOSING_START_TAG`):e===62?(this.startToken(`HTMLTagClose`),`DATA`):e===-1?(this.reportParseError(`eof-in-tag`),`DATA`):(this.reportParseError(`missing-whitespace-between-attributes`),this.reconsumeAs(`BEFORE_ATTRIBUTE_NAME`))}SELF_CLOSING_START_TAG(e){return e===62?(this.startToken(`HTMLSelfClosingTagClose`),`DATA`):e===-1?(this.reportParseError(`eof-in-tag`),`DATA`):(this.reportParseError(`unexpected-solidus-in-tag`),this.clearStartTokenMark(),this.reconsumeAs(`BEFORE_ATTRIBUTE_NAME`))}BOGUS_COMMENT(e){for(;;){if(e===62||e===-1)return`DATA`;e===0&&(e=bn),this.appendTokenValue(e,null),e=this.consumeNextCodePoint()}}MARKUP_DECLARATION_OPEN(e){return e===45&&this.text[this.offset+1]===`-`?(this.offset+=1,this.column+=1,this.startToken(`HTMLComment`),`COMMENT_START`):e===68&&this.text.slice(this.offset+1,this.offset+7)===`OCTYPE`?(this.startToken(`HTMLBogusComment`),this.appendTokenValue(e,`HTMLBogusComment`),`BOGUS_COMMENT`):e===91&&this.text.slice(this.offset+1,this.offset+7)===`CDATA[`?(this.offset+=6,this.column+=6,this.namespace===T.HTML?(this.reportParseError(`cdata-in-html-content`),this.startToken(`HTMLBogusComment`).value=`[CDATA[`,`BOGUS_COMMENT`):(this.startToken(`HTMLCDataText`),`CDATA_SECTION`)):(this.reportParseError(`incorrectly-opened-comment`),this.startToken(`HTMLBogusComment`),this.reconsumeAs(`BOGUS_COMMENT`))}COMMENT_START(e){return e===45?`COMMENT_START_DASH`:e===62?(this.reportParseError(`abrupt-closing-of-empty-comment`),`DATA`):this.reconsumeAs(`COMMENT`)}COMMENT_START_DASH(e){return e===45?`COMMENT_END`:e===62?(this.reportParseError(`abrupt-closing-of-empty-comment`),`DATA`):e===-1?(this.reportParseError(`eof-in-comment`),`DATA`):(this.appendTokenValue(45,`HTMLComment`),this.reconsumeAs(`COMMENT`))}COMMENT(e){for(;;){if(e===60)return this.appendTokenValue(60,`HTMLComment`),`COMMENT_LESS_THAN_SIGN`;if(e===45)return`COMMENT_END_DASH`;if(e===0&&(this.reportParseError(`unexpected-null-character`),e=bn),e===-1)return this.reportParseError(`eof-in-comment`),`DATA`;this.appendTokenValue(e,`HTMLComment`),e=this.consumeNextCodePoint()}}COMMENT_LESS_THAN_SIGN(e){for(;;){if(e===33)return this.appendTokenValue(e,`HTMLComment`),`COMMENT_LESS_THAN_SIGN_BANG`;if(e!==60)return this.reconsumeAs(`COMMENT`);this.appendTokenValue(e,`HTMLComment`),e=this.consumeNextCodePoint()}}COMMENT_LESS_THAN_SIGN_BANG(e){return e===45?`COMMENT_LESS_THAN_SIGN_BANG_DASH`:this.reconsumeAs(`COMMENT`)}COMMENT_LESS_THAN_SIGN_BANG_DASH(e){return e===45?`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`:this.reconsumeAs(`COMMENT_END_DASH`)}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH(e){return e!==62&&e!==-1&&this.reportParseError(`nested-comment`),this.reconsumeAs(`COMMENT_END`)}COMMENT_END_DASH(e){return e===45?`COMMENT_END`:e===-1?(this.reportParseError(`eof-in-comment`),`DATA`):(this.appendTokenValue(45,`HTMLComment`),this.reconsumeAs(`COMMENT`))}COMMENT_END(e){for(;;){if(e===62)return`DATA`;if(e===33)return`COMMENT_END_BANG`;if(e===-1)return this.reportParseError(`eof-in-comment`),`DATA`;if(this.appendTokenValue(45,`HTMLComment`),e!==45)return this.appendTokenValue(45,`HTMLComment`),this.reconsumeAs(`COMMENT`);e=this.consumeNextCodePoint()}}COMMENT_END_BANG(e){return e===45?(this.appendTokenValue(45,`HTMLComment`),this.appendTokenValue(33,`HTMLComment`),`COMMENT_END_DASH`):e===62?(this.reportParseError(`incorrectly-closed-comment`),`DATA`):e===-1?(this.reportParseError(`eof-in-comment`),`DATA`):(this.appendTokenValue(45,`HTMLComment`),this.appendTokenValue(33,`HTMLComment`),this.reconsumeAs(`COMMENT`))}CDATA_SECTION(e){for(;;){if(e===93)return`CDATA_SECTION_BRACKET`;if(e===-1)return this.reportParseError(`eof-in-cdata`),`DATA`;this.appendTokenValue(e,`HTMLCDataText`),e=this.consumeNextCodePoint()}}CDATA_SECTION_BRACKET(e){return e===93?`CDATA_SECTION_END`:(this.appendTokenValue(93,`HTMLCDataText`),this.reconsumeAs(`CDATA_SECTION`))}CDATA_SECTION_END(e){for(;;){if(e===62)return`DATA`;if(e!==93)return this.appendTokenValue(93,`HTMLCDataText`),this.appendTokenValue(93,`HTMLCDataText`),this.reconsumeAs(`CDATA_SECTION`);this.appendTokenValue(93,`HTMLCDataText`),e=this.consumeNextCodePoint()}}CHARACTER_REFERENCE(e){return this.crStartOffset=this.offset-1,this.buffer=[38],Tn(e)||wn(e)?this.reconsumeAs(`NAMED_CHARACTER_REFERENCE`):e===35?(this.buffer.push(e),`NUMERIC_CHARACTER_REFERENCE`):this.reconsumeAs(`CHARACTER_REFERENCE_END`)}NAMED_CHARACTER_REFERENCE(e){for(let e of yn){let t=e.length,n=e.entities,r=this.text.slice(this.offset,this.offset+t),i=n[r];if(i==null)continue;let a=r.endsWith(`;`),o=this.text.codePointAt(this.offset+1);if(this.offset+=t-1,this.column+=t-1,this.returnState.startsWith(`ATTR`)&&!a&&o!=null&&(o===61||wn(o)||Tn(o)))for(let e of r)this.buffer.push(e.codePointAt(0));else a||this.reportParseError(`missing-semicolon-after-character-reference`),this.buffer=i;return`CHARACTER_REFERENCE_END`}for(let e of this.buffer)this.appendTokenValue(e,null);return this.appendTokenValue(e,null),`AMBIGUOUS_AMPERSAND`}AMBIGUOUS_AMPERSAND(e){for(;Tn(e)||wn(e);)this.appendTokenValue(e,null),e=this.consumeNextCodePoint();return e===59&&this.reportParseError(`unknown-named-character-reference`),this.reconsumeAs(this.returnState)}NUMERIC_CHARACTER_REFERENCE(e){return this.crCode=0,e===120||e===88?(this.buffer.push(e),`HEXADEMICAL_CHARACTER_REFERENCE_START`):this.reconsumeAs(`DECIMAL_CHARACTER_REFERENCE_START`)}HEXADEMICAL_CHARACTER_REFERENCE_START(e){return Dn(e)?this.reconsumeAs(`HEXADEMICAL_CHARACTER_REFERENCE`):(this.reportParseError(`absence-of-digits-in-numeric-character-reference`),this.reconsumeAs(`CHARACTER_REFERENCE_END`))}DECIMAL_CHARACTER_REFERENCE_START(e){return Tn(e)?this.reconsumeAs(`DECIMAL_CHARACTER_REFERENCE`):(this.reportParseError(`absence-of-digits-in-numeric-character-reference`),this.reconsumeAs(`CHARACTER_REFERENCE_END`))}HEXADEMICAL_CHARACTER_REFERENCE(e){for(;;){if(Tn(e))this.crCode=16*this.crCode+(e-48);else if(En(e))this.crCode=16*this.crCode+(e-55);else if(G(e))this.crCode=16*this.crCode+(e-87);else return e===59?`NUMERIC_CHARACTER_REFERENCE_END`:(this.reportParseError(`missing-semicolon-after-character-reference`),this.reconsumeAs(`NUMERIC_CHARACTER_REFERENCE_END`));e=this.consumeNextCodePoint()}}DECIMAL_CHARACTER_REFERENCE(e){for(;;){if(Tn(e))this.crCode=10*this.crCode+(e-48);else return e===59?`NUMERIC_CHARACTER_REFERENCE_END`:(this.reportParseError(`missing-semicolon-after-character-reference`),this.reconsumeAs(`NUMERIC_CHARACTER_REFERENCE_END`));e=this.consumeNextCodePoint()}}NUMERIC_CHARACTER_REFERENCE_END(e){let t=this.crCode;return t===0?(this.reportParseError(`null-character-reference`),t=bn):t>1114111?(this.reportParseError(`character-reference-outside-unicode-range`),t=bn):kn(t)?(this.reportParseError(`surrogate-character-reference`),t=bn):jn(t)?this.reportParseError(`noncharacter-character-reference`):(t===13||On(t)&&!xn(t))&&(this.reportParseError(`control-character-reference`),t=vn.get(t)||t),this.buffer=[t],this.reconsumeAs(`CHARACTER_REFERENCE_END`)}CHARACTER_REFERENCE_END(e){(0,m.default)(this.currentToken!=null);let t=this.currentToken,n=t.value.length;for(let e of this.buffer)this.appendTokenValue(e,null);let r=t.value.length-n;for(let e=this.crStartOffset+r;e<this.offset;++e)this.gaps.push(e);return this.reconsumeAs(this.returnState)}V_EXPRESSION_START(e){return e===123?(this.startToken(`VExpressionStart`),this.appendTokenValue(123,null),this.appendTokenValue(123,null),this.parserOptions.vueFeatures?.interpolationAsNonHTML??!0?this.text.indexOf(`}}`,this.offset+1)===-1?(this.reportParseError(`x-missing-interpolation-end`),this.returnState):(this.vExpressionScriptState={state:this.returnState},`V_EXPRESSION_DATA`):this.returnState):(this.appendTokenValue(123,null),this.reconsumeAs(this.returnState))}V_EXPRESSION_DATA(e){this.clearStartTokenMark();let t=this.vExpressionScriptState.state;for(;;){let n=xn(e)?`HTMLWhitespace`:t===`RCDATA`?`HTMLRCDataText`:t===`RAWTEXT`?`HTMLRawText`:`HTMLText`;if(this.currentToken!=null&&this.currentToken.type!==n)return this.endToken(),this.reconsumeAs(this.state);if(this.currentToken??this.startToken(n),e===38&&t!==`RAWTEXT`)return this.returnState=`V_EXPRESSION_DATA`,`CHARACTER_REFERENCE`;if(e===125)return this.setStartTokenMark(),this.returnState=`V_EXPRESSION_DATA`,`V_EXPRESSION_END`;if(e===-1)return this.reportParseError(`x-missing-interpolation-end`),`DATA`;e===0&&this.reportParseError(`unexpected-null-character`),this.appendTokenValue(e,n),e=this.consumeNextCodePoint()}}V_EXPRESSION_END(e){if(e===125){if(this.startToken(`VExpressionEnd`),this.appendTokenValue(125,null),this.appendTokenValue(125,null),this.vExpressionScriptState){let e=this.vExpressionScriptState.state;return this.vExpressionScriptState=null,e}return this.returnState}return this.appendTokenValue(125,null),this.reconsumeAs(this.returnState)}};function Pn(e,t={}){let{cache:n=new Map,getCacheKey:r}=t,i=function(t){let i=r?r(t):t;if(n.has(i))return n.get(i);let a=e.call(this,t);return n.set(i,a),a};return i.cache=n,i}function Fn(e){switch(e.type){case`identifier`:return[e.value];case`matches`:{let t=e.selectors.map(Fn);return t.every(Boolean)?L(...t):null}case`compound`:{let t=e.selectors.map(Fn).filter(Boolean);return t.length?I(...t):null}case`child`:case`descendant`:case`sibling`:case`adjacent`:return Fn(e.right);default:return null}}function In(e){switch(e.type){case`child`:case`descendant`:case`sibling`:case`adjacent`:return In(e.left)+In(e.right);case`compound`:case`not`:case`matches`:return e.selectors.reduce((e,t)=>e+In(t),0);case`attribute`:case`field`:case`nth-child`:case`nth-last-child`:return 1;default:return 0}}function Ln(e){switch(e.type){case`child`:case`descendant`:case`sibling`:case`adjacent`:return Ln(e.left)+Ln(e.right);case`compound`:case`not`:case`matches`:return e.selectors.reduce((e,t)=>e+Ln(t),0);case`identifier`:return 1;default:return 0}}function Rn(e,t){return e.attributeCount-t.attributeCount||e.identifierCount-t.identifierCount||(e.rawSelector<=t.rawSelector?-1:1)}function zn(e){try{return x.default.parse(e.replace(/:exit$/u,``))}catch(t){throw typeof t.offset==`number`?Error(`Syntax error in selector "${e}" at position ${t.offset}: ${t.message}`):t}}let Bn=Pn(e=>{let t=zn(e);return{rawSelector:e,isExit:e.endsWith(`:exit`),parsedSelector:t,listenerTypes:Fn(t),attributeCount:In(t),identifierCount:Ln(t)}});var Vn=class{emitter;esqueryOptions;currentAncestry;enterSelectorsByNodeType;exitSelectorsByNodeType;anyTypeEnterSelectors;anyTypeExitSelectors;constructor(e,t){this.emitter=e,this.esqueryOptions=t,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[];let n=typeof e.eventNames==`function`?e.eventNames():Object.keys(e._events);for(let e of n){if(typeof e==`symbol`)continue;let t=Bn(e);if(t.listenerTypes)for(let e of t.listenerTypes){let n=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType,r=n.get(e);r??n.set(e,r=[]),r.push(t)}else (t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)}this.anyTypeEnterSelectors.sort(Rn),this.anyTypeExitSelectors.sort(Rn);for(let e of this.enterSelectorsByNodeType.values())e.sort(Rn);for(let e of this.exitSelectorsByNodeType.values())e.sort(Rn)}applySelector(e,t){x.default.matches(e,t.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(t.rawSelector,e)}applySelectors(e,t){let n=(t?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e.type)||[],r=t?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,i=0,a=0;for(;i<n.length||a<r.length;)i>=n.length||a<r.length&&Rn(r[a],n[i])<0?this.applySelector(e,r[a++]):this.applySelector(e,n[i++])}enterNode(e){e.parent&&this.currentAncestry.unshift(e.parent),this.applySelectors(e,!1)}leaveNode(e){this.applySelectors(e,!0),this.currentAncestry.shift()}};function Hn(e){return e.range[0]}function Un(e,t){return ne(e,{range:[t]},Hn)}function Wn(e,t,n){if(n in t)return t[n];if(n-1 in t){let r=t[n-1],i=r>=0&&r<e.length?e[r]:null;return i&&i.range[0]>=n?r:r+1}return 0}function Gn(e,t,n){if(n in t)return t[n]-1;if(n-1 in t){let r=t[n-1],i=r>=0&&r<e.length?e[r]:null;return i&&i.range[1]>n?r-1:r}return e.length-1}var Kn=class{current;constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}},qn=class extends Kn{tokens;comments;tokenIndex;commentIndex;border;constructor(e,t,n,r,i){super(),this.tokens=e,this.comments=t,this.tokenIndex=Gn(e,n,i),this.commentIndex=Un(t,i)-1,this.border=r}moveNext(){let e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!t||e.range[1]>t.range[1])?(this.current=e,--this.tokenIndex):t?(this.current=t,--this.commentIndex):this.current=null,this.current!=null&&(this.border===-1||this.current.range[0]>=this.border)}},Jn=class extends Kn{tokens;index;indexEnd;constructor(e,t,n,r,i){super(),this.tokens=e,this.index=Gn(e,n,i),this.indexEnd=Wn(e,n,r)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],--this.index,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},Yn=class extends Kn{cursor;constructor(e){super(),this.cursor=e}moveNext(){let e=this.cursor.moveNext();return this.current=this.cursor.current,e}},Xn=class extends Yn{predicate;constructor(e,t){super(e),this.predicate=t}moveNext(){let e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}},Zn=class extends Kn{tokens;comments;tokenIndex;commentIndex;border;constructor(e,t,n,r,i){super(),this.tokens=e,this.comments=t,this.tokenIndex=Wn(e,n,r),this.commentIndex=Un(t,r),this.border=i}moveNext(){let e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,t=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!t||e.range[0]<t.range[0])?(this.current=e,this.tokenIndex+=1):t?(this.current=t,this.commentIndex+=1):this.current=null,this.current!=null&&(this.border===-1||this.current.range[1]<=this.border)}},Qn=class extends Kn{tokens;index;indexEnd;constructor(e,t,n,r,i){super(),this.tokens=e,this.index=Wn(e,n,r),this.indexEnd=Gn(e,n,i)}moveNext(){return this.index<=this.indexEnd?(this.current=this.tokens[this.index],this.index+=1,!0):!1}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}},$n=class extends Yn{count;constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0?(--this.count,super.moveNext()):!1}},er=class extends Yn{count;constructor(e,t){super(e),this.count=t}moveNext(){for(;this.count>0;)if(--this.count,!super.moveNext())return!1;return super.moveNext()}},tr=class{TokenCursor;TokenCommentCursor;constructor(e,t){this.TokenCursor=e,this.TokenCommentCursor=t}createBaseCursor(e,t,n,r,i,a){return new(a?this.TokenCommentCursor:this.TokenCursor)(e,t,n,r,i)}createCursor(e,t,n,r,i,a,o,s,c){let l=this.createBaseCursor(e,t,n,r,i,a);return o&&(l=new Xn(l,o)),s>=1&&(l=new er(l,s)),c>=0&&(l=new $n(l,c)),l}};let nr=new tr(Qn,Zn),rr=new tr(Jn,qn);var ir=class extends Qn{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i),this.index=Math.max(0,this.index-a),this.indexEnd=Math.min(e.length-1,this.indexEnd+o)}};function ar(e){return e.type===`Line`||e.type===`Block`||e.type===`Shebang`}function or(e,t){let n=Object.create(null),r=0,i=0,a=0,o=null;for(;r<e.length||i<t.length;){for(a=i<t.length?t[i].range[0]:2**53-1;r<e.length&&(o=e[r].range)[0]<a;)n[o[0]]=r,n[o[1]-1]=r,r+=1;for(a=r<e.length?e[r].range[0]:2**53-1;i<t.length&&(o=t[i].range)[0]<a;)n[o[0]]=r,n[o[1]-1]=r,i+=1}return n}function sr(e,t,n,r,i,a,o){let s=!1,c=0,l=null;return typeof o==`number`?c=o|0:typeof o==`function`?l=o:o&&(s=!!o.includeComments,c=o.skip||0,l=o.filter||null),(0,m.default)(c>=0,`options.skip should be zero or a positive integer.`),(0,m.default)(!l||typeof l==`function`,`options.filter should be a function.`),e.createCursor(t,n,r,i,a,s,l,c,-1)}function cr(e,t,n,r,i,a,o){let s=!1,c=0,l=!1,u=null;return typeof o==`number`?(c=o|0,l=!0):typeof o==`function`?u=o:o&&(s=!!o.includeComments,c=o.count||0,l=typeof o.count==`number`,u=o.filter||null),(0,m.default)(c>=0,`options.count should be zero or a positive integer.`),(0,m.default)(!u||typeof u==`function`,`options.filter should be a function.`),e.createCursor(t,n,r,i,a,s,u,0,l?c:-1)}function lr(e,t,n,r,i,a,o){return a===void 0&&o===void 0?new Qn(e,t,n,r,i):typeof a==`number`||a===void 0?new ir(e,t,n,r,i,a||0,o||0):cr(nr,e,t,n,r,i,a)}function ur(e){let t=[],n=e.getOneToken();for(;n&&ar(n);)t.push(n),n=e.getOneToken();return t}var dr=class{_tokens;_comments;_indexMap;constructor(e,t){this._tokens=e,this._comments=t,this._indexMap=or(e,t)}getTokenByRangeStart(e,t){let n=!!(t&&t.includeComments),r=nr.createBaseCursor(this._tokens,this._comments,this._indexMap,e,-1,n).getOneToken();return r?.range[0]===e?r:null}getFirstToken(e,t){return sr(nr,this._tokens,this._comments,this._indexMap,e.range[0],e.range[1],t).getOneToken()}getLastToken(e,t){return sr(rr,this._tokens,this._comments,this._indexMap,e.range[0],e.range[1],t).getOneToken()}getTokenBefore(e,t){return sr(rr,this._tokens,this._comments,this._indexMap,-1,e.range[0],t).getOneToken()}getTokenAfter(e,t){return sr(nr,this._tokens,this._comments,this._indexMap,e.range[1],-1,t).getOneToken()}getFirstTokenBetween(e,t,n){return sr(nr,this._tokens,this._comments,this._indexMap,e.range[1],t.range[0],n).getOneToken()}getLastTokenBetween(e,t,n){return sr(rr,this._tokens,this._comments,this._indexMap,e.range[1],t.range[0],n).getOneToken()}getTokenOrCommentBefore(e,t){return this.getTokenBefore(e,{includeComments:!0,skip:t})}getTokenOrCommentAfter(e,t){return this.getTokenAfter(e,{includeComments:!0,skip:t})}getFirstTokens(e,t){return cr(nr,this._tokens,this._comments,this._indexMap,e.range[0],e.range[1],t).getAllTokens()}getLastTokens(e,t){return cr(rr,this._tokens,this._comments,this._indexMap,e.range[0],e.range[1],t).getAllTokens().reverse()}getTokensBefore(e,t){return cr(rr,this._tokens,this._comments,this._indexMap,-1,e.range[0],t).getAllTokens().reverse()}getTokensAfter(e,t){return cr(nr,this._tokens,this._comments,this._indexMap,e.range[1],-1,t).getAllTokens()}getFirstTokensBetween(e,t,n){return cr(nr,this._tokens,this._comments,this._indexMap,e.range[1],t.range[0],n).getAllTokens()}getLastTokensBetween(e,t,n){return cr(rr,this._tokens,this._comments,this._indexMap,e.range[1],t.range[0],n).getAllTokens().reverse()}getTokens(e,t,n){return lr(this._tokens,this._comments,this._indexMap,e.range[0],e.range[1],t,n).getAllTokens()}getTokensBetween(e,t,n){return lr(this._tokens,this._comments,this._indexMap,e.range[1],t.range[0],n,typeof n==`number`?n:void 0).getAllTokens()}commentsExistBetween(e,t){let n=Un(this._comments,e.range[1]);return n<this._comments.length&&this._comments[n].range[1]<=t.range[0]}getCommentsBefore(e){return ur(cr(rr,this._tokens,this._comments,this._indexMap,-1,e.range[0],{includeComments:!0})).reverse()}getCommentsAfter(e){return ur(cr(nr,this._tokens,this._comments,this._indexMap,e.range[1],-1,{includeComments:!0}))}getCommentsInside(e){return this.getTokens(e,{includeComments:!0,filter:ar})}getLoc(e){return e.loc}getRange(e){return e.range}};function fr(e){return e.type===`VElement`}function pr(e){return e?e.children.filter(fr).filter(e=>e.name!==`script`&&e.name!==`template`&&e.name!==`style`):[]}function mr(e,t,n,r){let i=e.children[0],{code:a,range:o,loc:s}=i?.type===`VText`?{code:i.value,range:i.range,loc:i.loc}:{code:``,range:[e.startTag.range[1],e.endTag.range[0]],loc:{start:e.startTag.loc.end,end:e.endTag.loc.start}},c=n.getSubCalculatorAfter(o[0]);try{return hr(a,t,c,r)}catch(e){if(!(e instanceof Error))throw e;return{error:e,ast:{type:`Program`,sourceType:`module`,loc:{start:{...s.start},end:{...s.end}},range:[...o],body:[],tokens:[],comments:[]}}}}function hr(e,t,n,r){try{let i=gr(e,t,{ecmaVersion:Oe,loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,...r});return ze(i,n),i}catch(e){let t=w.normalize(e);throw t?(He(t,n),t):e}}function gr(e,t,n){let r=fe(t)?t.parseForESLint(e,n):t.parse(e,n);return r.ast==null?{ast:r}:r}function _r({text:e,customBlock:t,parsedResult:n,globalLocationCalculator:r,parserOptions:i}){let a,o;return{serCurrentNode(e){o=e},context:{getAncestors:()=>s().getAncestors(o),getDeclaredVariables:(...e)=>s().getDeclaredVariables(...e),getScope:()=>s().getScope(o),markVariableAsUsed:e=>s().markVariableAsUsed(e,o),get parserServices(){return s().parserServices},getSourceCode:s,get sourceCode(){return s()}}};function s(){if(a)return a;let o=c(),s=new(w3()).SourceCode({text:e,ast:n.ast,parserServices:{customBlock:t,parseCustomBlockElement(e,n){return mr(t,e,r,{...i,...n})},...n.services,...n.error?{parseError:n.error}:{}},scopeManager:o,visitorKeys:n.visitorKeys}),l={markVariableAsUsed:(e,t)=>br(o,t,n.ast,e),getScope:e=>yr(o,e),getAncestors:e=>vr(e),getDeclaredVariables:(...e)=>o.getDeclaredVariables(...e)};return a=new Proxy(s,{get(e,t){return s[t]||l[t]}})}function c(){if(n.scopeManager)return n.scopeManager;let e=Se(i)??ke,t=i.ecmaFeatures??{},r=i.sourceType??`script`;return ve().analyze(n.ast,{ignoreEval:!0,nodejsScope:!1,impliedStrict:t.impliedStrict,ecmaVersion:e,sourceType:r,fallback:O})}}function vr(e){let t=[];for(let n=e.parent;n;n=n.parent)t.push(n);return t.reverse()}function yr(e,t){let n=t.type!==`Program`;for(let r=t;r;r=r.parent??null){let t=e.acquire(r,n);if(t)return t.type===`function-expression-name`?t.childScopes[0]:t}return e.scopes[0]}function br(e,t,n,r){let i=yr(e,t),a=i;i.type===`global`&&i.childScopes.length>0&&i.childScopes[0].block===n&&(a=i.childScopes[0]);for(let e=a;e;e=e.upper){let t=e.variables.find(e=>e.name===r);if(t)return t.eslintUsed=!0,!0}return!1}function xr(e,t,n,r,{parserOptions:i}){let a=new Map,o=new WeakMap,s=new Map,c=new Map,l=me(i);return{defineTemplateBodyVisitor(e,n,r){if(n??={},t.templateBody==null)return n;let i=r?.templateBodyTriggerSelector??`Program:exit`,o=a.get(i);if(o==null){o=new b.default,o.setMaxListeners(0),a.set(i,o);let e=n[i];n[i]=r=>{try{typeof e==`function`&&e(r);let n=new Vn(o,{visitorKeys:E,fallback:O});ee(t.templateBody,n)}finally{n[i]=e,a.delete(i)}}}for(let t of Object.keys(e))o.on(t,e[t]);return n},defineDocumentVisitor(e,t){let r={};if(!n)return r;let i=t?.triggerSelector??`Program:exit`,a=s.get(i);if(a==null){a=new b.default,a.setMaxListeners(0),s.set(i,a);let e=r[i];r[i]=t=>{try{typeof e==`function`&&e(t),ee(n,new Vn(a,{visitorKeys:E,fallback:O}))}finally{r[i]=e,s.delete(i)}}}for(let t of Object.keys(e))a.on(t,e[t]);return r},defineCustomBlocksVisitor(t,a,o,s){if(s??={},!l)return s;i={...i};let u=pr(n).filter(e=>e.endTag&&!e.startTag.attributes.some(e=>!e.directive&&e.key.name===`src`));if(!u.length||r==null)return{};let d=a.parseForESLint??a.parse,f=c.get(d);if(f==null){f=[],c.set(d,f);let t=f,n=s[`Program:exit`];s[`Program:exit`]=o=>{try{typeof n==`function`&&n(o);for(let n of u){let o=ce(n),s=t.filter(e=>e.test(o,n));if(!s.length)continue;let c=mr(n,a,r,i),{serCurrentNode:l,context:u}=_r({text:e,customBlock:n,parsedResult:c,globalLocationCalculator:r,parserOptions:i}),d=new b.default;d.setMaxListeners(0);for(let e of s){let t={...u};t.__proto__=e.context;let n=e.create(t);for(let e of Object.keys(n??{}))d.on(e,n[e])}let f=new Vn(d,{visitorKeys:c.visitorKeys,fallback:O});ee(c.ast,{visitorKeys:c.visitorKeys,enterNode(e){l(e),f.enterNode(e)},leaveNode(e){l(e),f.leaveNode(e)}})}}finally{s[`Program:exit`]=n,c.delete(d)}}}let p=o.target,m=typeof p==`function`?p:Array.isArray(p)?e=>!!(e&&p.includes(e)):e=>p===e;return f.push({context:t,test:m,create:o.create}),s},getTemplateBodyTokenStore(){let e=n||o,t=o.get(e);return t||(t=n==null?new dr([],[]):new dr(n.tokens,n.comments),o.set(e,t)),t},getDocumentFragment(){return n}}}var Sr=class{code;remapBlocks=[];splitPunctuators=[];constructor(){this.code=``}get length(){return this.code.length}append(e,t){let n=this.code.length;this.code+=e.trimEnd(),this.remapBlocks.push({range:[n,this.code.length],offset:t-n})}appendSplitPunctuators(e){this.splitPunctuators.push(this.code.length,this.code.length+1),this.code+=`\n${e}\n`}appendCodeBlocks(e){let t=this.code.length;this.code+=e.code,this.remapBlocks.push(...e.remapBlocks.map(e=>({range:[e.range[0]+t,e.range[1]+t],offset:e.offset-t}))),this.splitPunctuators.push(...e.splitPunctuators.map(e=>e+t))}},Cr=class{callbacks=[];addCallback(e,t,n){this.callbacks.push({range:[e+t[0],e+t[1]],callback:n})}restore(e,t,n){if(this.callbacks.length===0)return;let r=new Set(this.callbacks);for(let n of t)for(let t of r)if(t.range[0]<=n.range[0]&&n.range[1]<=t.range[1]){let i=t.callback(n);if(i){let a=e.body.indexOf(n);if(a>=0){e.body.splice(a,1),e.body.push(i.statement),e.tokens.push(...i.tokens),i.statement.parent=e,r.delete(t);break}}}if(r.size){let[e]=r,t=n.getLocFromIndex(e.range[0]);throw new w(`Could not parse <script setup>. Failed to restore ExportNamedDeclaration.`,void 0,e.range[0],t.line,t.column)}}};function wr(e,t,n){try{return ft(e,t)}catch(e){let t=w.normalize(e);throw t?(He(t,n),t):e}}function Tr(e,t,n,r,i){let a={...i,ecmaVersion:i.ecmaVersion??Oe},o=Er(e,t,n,r,a);if(!o)return ot(``,r.createOffsetLocationCalculator(e.startTag.range[1]),a);let s={getFixOffset(e,t){let n=t===`start`?t=>t.range[0]<=e&&e<t.range[1]:t=>t.range[0]<e&&e<=t.range[1];for(let e of o.codeBlocks.remapBlocks)if(n(e))return e.offset;return e},getLocFromIndex:r.getLocFromIndex.bind(r)},c=wr(o.codeBlocks.code,a,s);o.postprocess&&o.postprocess(c,{scriptSetupBlockRange:o.scriptSetupBlockRange});let l=Or(c,o);if(kr(c,o,s),o.restoreASTCallbacks&&o.restoreASTCallbacks.restore(c.ast,l,r),c.ast.tokens!=null){for(let n of[e,t]){let e=n.startTag,t=n.endTag;c.ast.tokens.unshift({type:`Punctuator`,range:e.range,loc:e.loc,value:`<script>`}),t!=null&&c.ast.tokens.push({type:`Punctuator`,range:t.range,loc:t.loc,value:`<\/script>`})}c.ast.tokens.sort((e,t)=>e.range[0]-t.range[0])}c.ast.comments!=null&&c.ast.comments.sort((e,t)=>e.range[0]-t.range[0]),c.ast.body.sort((e,t)=>e.range[0]-t.range[0]);let u=c.ast.body.reduce((e,t)=>Math.min(e,t.range[0]),c.ast.range[0]);c.ast.range[0]=u,c.ast.loc.start=s.getLocFromIndex(u),c.ast.start!=null&&(c.ast.start=[e,t].reduce((e,t)=>{let n=t.children[0];return Math.min(e,n?.type===`VText`?n.range[0]:t.startTag.range[1])},c.ast.start));let d=c.ast.body.reduce((e,t)=>Math.max(e,t.range[1]),0);return c.ast.range[1]=d,c.ast.loc.end=s.getLocFromIndex(d),c.ast.end!=null&&(c.ast.end=[e,t].reduce((e,t)=>{let n=t.children[0];return Math.max(e,n?.type===`VText`?n.range[1]:t.endTag?.range[0]??t.range[1])},0)),c}function Er(e,t,n,r,i){let a=Dr(e,n,r,i),o=t.children[0];if(o==null||o.type!==`VText`)return a;let[s,c]=o.range,l=new Sr;if(l.append(n.slice(s,c),s),a==null)return{codeBlocks:l};l.appendSplitPunctuators(`;`);let u=l.length;return l.appendCodeBlocks(a.codeBlocks),{codeBlocks:l,scriptSetupBlockRange:[a.scriptSetupBlockRange[0]+u,a.scriptSetupBlockRange[1]+u],postprocess:a.postprocess,restoreASTCallbacks:a.restoreASTCallbacks}}function Dr(e,t,n,r){let i=e.children[0];if(i==null||i.type!==`VText`)return null;let[a,o]=i.range,s=t.slice(a,o),c=n.createOffsetLocationCalculator(a),{ast:l,visitorKeys:u}=wr(s,{...r,project:void 0,projectService:void 0},c),d=new Sr,f=new Sr,p=new Sr,m=new Cr,h=0;function g(e,t,n){return t<n?(e.append(s.slice(t,n),a+t),h=n,!0):!1}function _(e,t,n){g(e,t,n)&&e.appendSplitPunctuators(`;`)}function v(e){let[t,n]=T(e);_(f,h,t);let r=l.tokens,i=r.findIndex(t=>t.range[0]===e.range[0]),o=r[i];if(o?.value===`export`)if(g(f,h,o.range[0]),e.declaration)_(f,o.range[1],n),m.addCallback(a,[t,n],t=>t.type===e.declaration.type?(Be(e,u,c),Ve(o,c),e.declaration=t,t.parent=e,{statement:e,tokens:[o]}):null);else{f.appendSplitPunctuators(`(`);let s=[o],l=o.range[1];for(let t of e.specifiers)if(t.local.range[0]<t.exported.range[0]){let e=r.findIndex(e=>e.range[0]===t.local.range[0],i);E(r[e],t.local.name);let n=r[e+1];E(n,`as`),s.push(n);let a=r[e+2];E(a,t.exported.type===`Identifier`?t.exported.name:t.exported.raw),s.push(a),g(f,l,n.range[0]),g(f,n.range[1],a.range[0]),l=a.range[1]}g(f,l,n),f.appendSplitPunctuators(`)`),f.appendSplitPunctuators(`;`),m.addCallback(a,[t,n],t=>{if(t.type!==`ExpressionStatement`||t.expression.type!==`ObjectExpression`)return null;let n=[];for(let e of t.expression.properties){if(e.type!==`Property`||e.value.type!==`Identifier`)return null;n.push(e.value)}if(e.specifiers.length!==n.length)return null;let r=new Map;for(let t=0;t<e.specifiers.length;t++){let i=e.specifiers[t],a=n[t];r.set(i,a)}Be(e,u,c);for(let e of s)Ve(e,c);for(let[e,t]of r)e.local=t,t.parent=e;return{statement:e,tokens:s}})}else _(f,h,n)}for(let e of l.body)if(e.type===`ImportDeclaration`||e.type===`ExportAllDeclaration`||e.type===`ExportNamedDeclaration`&&e.source!=null){let[t,n]=T(e);_(f,h,t),_(d,t,n)}else if(e.type===`ExportDefaultDeclaration`){let[t,n]=T(e);_(f,h,t),_(p,t,n)}else e.type===`ExportNamedDeclaration`&&v(e);_(f,h,o);let y=new Sr,b=()=>{};y.appendCodeBlocks(d);let x=y.length;y.appendSplitPunctuators(`{`);let S=Ue(e);if(S){let e=y.length;for(let e of S.defineTypes)y.append(e.define,e.node.range[0]),y.appendSplitPunctuators(`;`);let t=y.length;b=(n,r)=>{let i=r.scriptSetupBlockRange[0]-x,a=[e+i,t+i];function o(e){return e.type===`BlockStatement`&&r.scriptSetupBlockRange[0]<=e.range[0]&&e.range[1]<=r.scriptSetupBlockRange[1]}S.postprocess({result:n,getTypeBlock:e=>e.body.find(o),isRemoveTarget(e){return a[0]<=e.range[0]&&e.range[1]<=a[1]},getTypeDefScope(e){return(e.globalScope.childScopes.find(e=>e.type===`module`)??e.globalScope).childScopes.find(e=>o(e.block))}})}}y.appendCodeBlocks(f),y.appendSplitPunctuators(`}`);let C=y.length;return y.appendCodeBlocks(p),{codeBlocks:y,scriptSetupBlockRange:[x,C],postprocess:b,restoreASTCallbacks:m};function T(e){let t=e.range[0],n=e.range[1];return ee(e,{visitorKeys:u,enterNode(e){t=Math.min(t,e.range[0]),n=Math.max(n,e.range[1])},leaveNode(){}}),[t,n]}function E(e,t){if(e.value===t)return;let n=new w(`Could not parse <script setup>. Expected "${t}", but it was "${e.value}".`,void 0,e.range[0],e.loc.start.line,e.loc.start.column);throw He(n,c),n}}function Or(e,{scriptSetupBlockRange:t,codeBlocks:n}){if(!t)return[];let r=null,i=[];for(let n=e.ast.body.length-1;n>=0;n--){let o=e.ast.body[n];if(o.type===`BlockStatement`){if(t[0]<=o.range[0]&&o.range[1]<=t[1]){if(r)throw Error(`Unexpected state error: An unexpected block statement was found. ${JSON.stringify(o.loc)}`);r=o,i.push(...o.body.filter(e=>!a(e))),e.ast.body.splice(n,1,...i)}}else o.type===`EmptyStatement`&&a(o)&&e.ast.body.splice(n,1)}if(e.scopeManager&&r){let t=e.scopeManager.acquire(r,!0);o(e.scopeManager,t)}return i;function a(e){return e.type===`EmptyStatement`&&n.splitPunctuators.includes(e.range[1]-1)}function o(e,t){let n=t.upper;for(let e of t.references)e.from=n,n.references.push(e);for(let e of t.variables){e.scope=n;let t=n.variables.find(t=>t.name===e.name);if(t){t.defs.push(...e.defs),t.identifiers.push(...e.identifiers),t.references.push(...e.references);for(let n of e.references)n.resolved=t}else n.variables.push(e),n.set.set(e.name,e)}let r=t.upper;if(r){let e=r.childScopes.indexOf(t);e>=0&&r.childScopes.splice(e,1)}let i=e.scopes.indexOf(t);i>=0&&e.scopes.splice(i,1)}}function kr(e,{codeBlocks:t},n){let r=e.ast.tokens??[],i=new Map,a=[];for(let e=r.length-1;e>=0;e--){let n=r[e];if(n.range[0]+1===n.range[1]&&t.splitPunctuators.includes(n.range[0])){r.splice(e,1),a.push(n.range[1]);continue}else{for(let e of a)i.set(e,n.range[1]);a.length=0}}ee(e.ast,{visitorKeys:e.visitorKeys,enterNode(e){let t=i.get(e.range[1]);t!=null&&(e.range[1]=t),e.end&&i.get(e.end)!=null&&(e.end=t)},leaveNode(){}}),ze(e,n)}let Ar=function(e){return e.Quoted=`Quoted`,e.Block=`Block`,e.Line=`Line`,e.Word=`Word`,e.Punctuator=`Punctuator`,e}({});var jr=class{text;options;cp;offset;nextOffset;reconsuming;constructor(e,t,n){B(`[css] the source code length: %d`,e.length),this.text=e,this.options={inlineComment:n?.inlineComment??!1},this.cp=0,this.offset=t-1,this.nextOffset=t,this.reconsuming=!1}nextToken(){let e;for(this.reconsuming?(e=this.cp,this.reconsuming=!1):e=this.consumeNextCodePoint();xn(e);)e=this.consumeNextCodePoint();if(e===-1)return null;let t=this.offset;return this.consumeNextToken(e,t)}nextCodePoint(){return this.nextOffset>=this.text.length?-1:this.text.codePointAt(this.nextOffset)}consumeNextCodePoint(){if(this.offset>=this.text.length||(this.offset=this.nextOffset,this.offset>=this.text.length))return this.cp=-1,-1;let e=this.text.codePointAt(this.offset);return e===13?(this.nextOffset=this.offset+1,this.text.codePointAt(this.nextOffset)===10&&this.nextOffset++,e=10):this.nextOffset=this.offset+(e>=65536?2:1),this.cp=e,e}consumeNextToken(e,t){if(e===47){let e=this.nextCodePoint();if(e===42)return this.consumeComment(t);if(e===47&&this.options.inlineComment)return this.consumeInlineComment(t)}return Nr(e)?this.consumeString(t,e):Mr(e)?{type:Ar.Punctuator,range:[t,t+1],value:String.fromCodePoint(e)}:this.consumeWord(t)}consumeWord(e){let t=this.consumeNextCodePoint();for(;!xn(t)&&!Mr(t)&&!Nr(t);)t=this.consumeNextCodePoint();this.reconsuming=!0;let n=[e,this.offset],r=this.text,i;return{type:Ar.Word,range:n,get value(){return i??=r.slice(...n)}}}consumeString(e,t){let n=null,r=this.consumeNextCodePoint();for(;r!==-1;){if(r===t){n=this.offset;break}r===92&&this.consumeNextCodePoint(),r=this.consumeNextCodePoint()}let i=this.text,a,o=[e+1,n??this.nextOffset];return{type:Ar.Quoted,range:[e,this.nextOffset],valueRange:o,get value(){return a??=i.slice(...o)},quote:String.fromCodePoint(t)}}consumeComment(e){this.consumeNextCodePoint();let t=null,n=this.consumeNextCodePoint();for(;n!==-1;){if(n===42&&(n=this.consumeNextCodePoint(),n===47)){t=this.offset-1;break}n=this.consumeNextCodePoint()}let r=[e+2,t??this.nextOffset],i=this.text,a;return{type:Ar.Block,range:[e,this.nextOffset],valueRange:r,get value(){return a??=i.slice(...r)}}}consumeInlineComment(e){this.consumeNextCodePoint();let t=null,n=this.consumeNextCodePoint();for(;n!==-1;){if(n===10){t=this.offset-1;break}n=this.consumeNextCodePoint()}let r=[e+2,t??this.nextOffset],i=this.text,a;return{type:Ar.Line,range:[e,this.nextOffset],valueRange:r,get value(){return a??=i.slice(...r)}}}};function Mr(e){return e===58||e===59||e===40||e===41||e===123||e===125||e===91||e===93||e===47||e===42}function Nr(e){return e===39||e===34}var Pr=class{reconsuming=[];tokenizer;constructor(e,t){this.tokenizer=new jr(e,0,t)}nextToken(){return this.reconsuming.shift()??this.tokenizer.nextToken()}reconsume(...e){this.reconsuming.push(...e)}};function Fr(e,t,n){let r={...n,ecmaVersion:n.ecmaVersion??Oe};for(let n of e)n.style=!0,Ir(n,t,r,{inlineComment:(ce(n)||`css`)!==`css`})}function Ir(e,t,n,r){if(e.children.length!==1)return;let i=e.children[0];if(i.type!==`VText`)return;let a=i.value;if(!/v-bind\s*(?:\(|\/)/u.test(a))return;let o=t.getSubCalculatorAfter(i.range[0]);Lr(oe(e),e,a,o,n,r)}function Lr(e,t,n,r,i,a){let o=0;for(let{range:s,exprRange:c,quote:l,openingParenOffset:u,comments:d}of Rr(n,a)){Et(e,d.map(e=>Dt(e.type,r.getOffsetWithGap(e.range[0]),r.getOffsetWithGap(e.range[1]),e.value,r)));let a={type:`VExpressionContainer`,range:[r.getOffsetWithGap(s[0]),r.getOffsetWithGap(s[1])],loc:{start:r.getLocation(s[0]),end:r.getLocation(s[1])},parent:t,expression:null,references:[]},f=r.getOffsetWithGap(u),p=[Dt(`HTMLRawText`,a.range[0],a.range[0]+6,`v-bind`,r),Dt(`Punctuator`,f,f+1,`(`,r)],m=[Dt(`Punctuator`,a.range[1]-1,a.range[1],`)`,r)];if(l){let e=r.getOffsetWithGap(c[0]-1);p.push(Dt(`Punctuator`,e,e+1,l,r));let t=r.getOffsetWithGap(c[1]);m.unshift(Dt(`Punctuator`,t,t+1,l,r))}let h=p[p.length-1];Tt(e,{range:[a.range[0],h.range[1]],loc:{start:a.loc.start,end:h.loc.end}},p);let g=m[0];Tt(e,{range:[g.range[0],a.range[1]],loc:{start:g.loc.start,end:a.loc.end}},m);let _=t.children[t.children.length-1];if(t.children.push(a),_.type===`VText`){let e={type:`VText`,range:[a.range[1],_.range[1]],loc:{start:{...a.loc.end},end:{..._.loc.end}},parent:t,value:n.slice(s[1])};t.children.push(e),_.range[1]=a.range[0],_.loc.end={...a.loc.start},_.value=n.slice(o,s[0]),o=s[1]}try{let o=mt(n.slice(...c),r.getSubCalculatorShift(c[0]),i,{allowEmpty:!1,allowFilters:!1});o.expression&&(o.expression.parent=a,a.expression=o.expression,a.references=o.references),Tt(e,{range:[h.range[1],g.range[0]],loc:{start:h.loc.end,end:g.loc.start}},o.tokens),Et(e,o.comments);for(let e of o.variables)t.variables.push(e);Jt(a)}catch(t){if(B(`[style] Parse error: %s`,t),w.isParseError(t))At(e,t);else throw t}}}function*Rr(e,t){let n=new Pr(e,t),r;for(;r=n.nextToken();){if(r.type!==Ar.Word||r.value!==`v-bind`)continue;let e=zr(n);if(!e)continue;let t=Br(n);t&&(yield{range:[r.range[0],t.closingParen.range[1]],exprRange:t.exprRange,quote:t.quote,openingParenOffset:e.openingParen.range[0],comments:[...e.comments,...t.comments]})}}function zr(e){let t=[],n;for(;n=e.nextToken();){if(n.type===Ar.Punctuator&&n.value===`(`)return{openingParen:n,comments:t};if(Vr(n)){t.push(n);continue}return e.reconsume(...t,n),null}return null}function Br(e){let t=[],n=[],r=[],i=[],a;for(;a=e.nextToken();){if(a.type===Ar.Punctuator){if(a.value===`)`&&!i.length){if(r.length===1&&r[0].type===Ar.Quoted){let e=r[0];return{exprRange:e.valueRange,quote:e.quote,closingParen:a,comments:n}}return{exprRange:[(t[0]??a).range[0],a.range[0]],quote:null,closingParen:a,comments:[]}}a.value===i[0]?i.shift():a.value===`(`&&i.unshift(`)`)}t.push(a),Vr(a)?n.push(a):r.push(a)}return e.reconsume(...t),null}function Vr(e){return e.type===Ar.Block||e.type===Ar.Line}let Hr=new Set([`template`,`slot`,`component`,`Component`,`transition`,`Transition`,`transition-group`,`TransitionGroup`,`keep-alive`,`KeepAlive`,`teleport`,`Teleport`,`suspense`,`Suspense`]),Ur=new Set([`bind`,`on`,`text`,`html`,`show`,`if`,`else`,`else-if`,`for`,`model`,`slot`,`pre`,`cloak`,`once`,`memo`,`is`]),Wr=new Set([...`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`.split(`,`),...`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`.split(`,`)]),Gr=new Set([`defineProps`,`defineEmits`,`defineExpose`,`withDefaults`,`defineOptions`,`defineSlots`,`defineModel`]);function Kr(e){return e[0].toUpperCase()+e.slice(1)}function qr(e,t,n,r){Yr(e,t,n),Xr(e,n,r)}function Jr(e){let t=new Map,n=e.globalScope;if(!n)return t;for(let e of n.variables)t.set(e.name,e);let r=n.childScopes.find(e=>e.type===`module`);for(let e of r?.variables??[])t.set(e.name,e);return t}function Yr(e,t,n){let r=Jr(e),i=new Set;function a(e){if(r.has(e))return o(e),!0;let t=te(e);if(r.has(t))return o(t),!0;let n=Kr(t);return r.has(n)?(o(n),!0):!1}function o(e){let t,n,a;typeof e==`string`?t=e:(t=e.id.name,n=e.isValueReference,a=e.isTypeReference);let o=r.get(t);if(!o||o.identifiers.length===0||i.has(t))return;i.add(t);let s=new(ve()).Reference;s.vueUsedInTemplate=!0,s.from=o.scope,s.identifier=o.identifiers[0],s.isWrite=()=>!1,s.isWriteOnly=()=>!1,s.isRead=()=>!0,s.isReadOnly=()=>!0,s.isReadWrite=()=>!1,s.isValueReference=n,s.isTypeReference=a,o.references.push(s),s.resolved=o,o.eslintUsed=!0}function s(e){for(let t of e.references.filter(e=>e.variable==null))o(t)}function c(e){if(!(e.rawName===e.name&&Wr.has(e.rawName)||Hr.has(e.rawName))&&!a(e.rawName)){let t=e.rawName.indexOf(`.`);t>0&&a(e.rawName.slice(0,t))}}function l(e){if(e.directive){if(Ur.has(e.key.name.name))return;a(`v-${e.key.name.rawName}`)}else e.key.name===`ref`&&e.value&&o(e.value.value)}t&&ee(t,{enterNode(e){e.type===`VExpressionContainer`?s(e):e.type===`VElement`?c(e):e.type===`VAttribute`&&l(e)},leaveNode(){}});for(let e of n.children)if(e.type===`VElement`){if(ie(e)){let t=ue(e);t&&s(t.value)}else if(e.name===`style`)for(let t of e.children)t.type===`VExpressionContainer`&&s(t)}}function Xr(e,t,n){let r=e.globalScope;if(!r)return;let i=new Set(n.vueFeatures?.customMacros&&Array.isArray(n.vueFeatures.customMacros)?n.vueFeatures.customMacros:[]),a=new Set,o=t.children.filter(re).find(ie);if(o&&ue(o))for(let e of o.variables)e.kind===`generic`&&a.add(e.id.name);let s=[];for(let e of r.through){if((Gr.has(e.identifier.name)||i.has(e.identifier.name))&&(e.from.type===`global`||e.from.type===`module`)){c(e);continue}if(a.has(e.identifier.name)){l(e);continue}s.push(e)}r.through=s;function c(e){Zr(r,e)}function l(e){Zr(r,e)}}function Zr(e,t){let n=t.identifier.name,r=e.set.get(n);r||(r=new(ve()).Variable,r.name=n,r.scope=e,e.variables.push(r),e.set.set(n,r)),t.resolved=r,r.references.push(t)}var Qr=`vue-eslint-parser`,$r=`10.4.0`;let ei=/^\s*</u;function ti(e,t){let n=t.filePath||`unknown.js`;return f.extname(n)===`.vue`||ei.test(e)}function ni(e,t){let n={comment:!0,loc:!0,range:!0,tokens:!0,...t},r,i,a;return ti(e,n)?{result:r,document:i,locationCalculator:a}=ii(e,n):(r=ai(e,n),i=null,a=null),r.services={...r.services,...xr(e,r.ast,i,a,{parserOptions:n})},r}function ri(e,t){return ni(e,t).ast}function ii(e,t){let n={...t,ecmaVersion:t.ecmaVersion??Oe},r=t.parser===!1,i=new Nn(e,n),a=new _n(i,n).parse(),o=new z(i.gaps,i.lineTerminators),s=a.children.filter(re),c=a.children.find(V),l=ce(c)||`html`,u=t?.templateTokenizer?.[l],d={tokens:a.tokens,comments:a.comments,errors:a.errors},f=c!=null&&(l===`html`||u)?Object.assign(c,d):void 0,p=he(t.parser,()=>ge(a)),m,h;return m=r||!s.length?ft(``,{...t,ecmaVersion:t.ecmaVersion??Oe,parser:p}):s.length===2&&(h=s.find(ie))?Tr(h,s.find(e=>e!==h),e,new R(i.lineTerminators),{...t,parser:p}):pt(s[0],e,new R(i.lineTerminators),{...t,parser:p}),(t.vueFeatures?.styleCSSVariableInjection??!0)&&Fr(a.children.filter(ae),o,{...t,parser:he(t.parser,function*(){yield`<template>`,yield ge(a)}),project:void 0,projectService:void 0}),m.ast.templateBody=f,t.eslintScopeManager&&s.some(ie)&&(m.scopeManager||=Fe(m.ast,t),qr(m.scopeManager,f,a,t)),{result:m,locationCalculator:o,document:a}}function ai(e,t){return ft(e,{...t,ecmaVersion:t.ecmaVersion??Oe,parser:he(t.parser,()=>{let e=(f.extname(t.filePath||`unknown.js`).toLowerCase()||``).slice(1);return/^[jt]sx$/u.test(e)?[e,e.slice(0,-1)]:e})})}let oi={name:Qr,version:$r};Object.defineProperty(n,`AST`,{enumerable:!0,get:function(){return j}}),n.meta=oi,n.parse=ri,n.parseForESLint=ni}))(),1);function GTe(e,t){let n=t.getTokenBefore(`startTag`in e?e.startTag:e,{includeComments:!0,filter:e=>e.type!==`HTMLWhitespace`});return n&&n.type===`HTMLComment`?[...GTe(n,t),n]:[]}function KTe(e){let t={rules:{vue:{meta:{fixable:`code`},create(t){let n=t.sourceCode,r=n.parserServices.getTemplateBodyTokenStore();return n.parserServices.defineTemplateBodyVisitor({ConditionalExpression(r){J5(t,n,r,e)},IfStatement(r){J5(t,n,r,e)},VElement(n){let i=GTe(n,r);if(i.length>0){let r=PTe(i[0]);if(r===null)return;let a=G5(r,e);t.report({node:n,message:`bati/vue-velement`,*fix(e){a?yield e.removeRange([i[0].range[0],i[0].range[1]]):(yield e.remove(n),yield e.removeRange([i[0].range[0],i[i.length-1].range[1]]))}})}}},{ImportDeclaration(e){E3(t,e)},":statement"(r){Y5(t,n,r,e)},ConditionalExpression(r){J5(t,n,r,e)},IfStatement(r){J5(t,n,r,e)},TSAsExpression(r){LTe(t,n,r,e)},TSTypeParameterInstantiation(r){RTe(t,n,r,e)},TSTypeReference(r){zTe(t,n,r,e)}})}}}};return{plugin:t,config:[{plugins:{batiVue:t},languageOptions:{parser:WTe,parserOptions:{parser:zCe,ecmaVersion:2022,sourceType:`module`}},rules:{"batiVue/vue":`error`},files:[`**/*.vue`]}]}}var qTe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"consistent-return":`off`,"@typescript-eslint/consistent-return":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/consistent-type-exports":`error`,"@typescript-eslint/consistent-type-imports":`error`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/explicit-function-return-type":`error`,"@typescript-eslint/explicit-member-accessibility":`error`,"@typescript-eslint/explicit-module-boundary-types":`error`,"init-declarations":`off`,"@typescript-eslint/init-declarations":`error`,"max-params":`off`,"@typescript-eslint/max-params":`error`,"@typescript-eslint/member-ordering":`error`,"@typescript-eslint/method-signature-style":`error`,"@typescript-eslint/naming-convention":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-import-type-side-effects":`error`,"@typescript-eslint/no-inferrable-types":`error`,"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"no-loop-func":`off`,"@typescript-eslint/no-loop-func":`error`,"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"no-restricted-imports":`off`,"@typescript-eslint/no-restricted-imports":`error`,"@typescript-eslint/no-restricted-types":`error`,"no-shadow":`off`,"@typescript-eslint/no-shadow":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-parameter-property-assignment":`error`,"@typescript-eslint/no-unnecessary-qualifier":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-type-assertion":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-private-class-members":`off`,"@typescript-eslint/no-unused-private-class-members":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-useless-empty-export":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/parameter-properties":`error`,"@typescript-eslint/prefer-as-const":`error`,"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":`error`,"@typescript-eslint/prefer-enum-initializers":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-readonly":`error`,"@typescript-eslint/prefer-readonly-parameter-types":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`,"@typescript-eslint/promise-function-async":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"@typescript-eslint/require-array-sort-compare":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"no-return-await":`off`,"@typescript-eslint/return-await":`error`,"@typescript-eslint/strict-boolean-expressions":`error`,"@typescript-eslint/strict-void-return":`error`,"@typescript-eslint/switch-exhaustiveness-check":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),JTe=a(((e,t)=>{t.exports={parser:`@typescript-eslint/parser`,parserOptions:{sourceType:`module`},plugins:[`@typescript-eslint`]}})),YTe=a(((e,t)=>{t.exports={parserOptions:{program:null,project:!1,projectService:!1},rules:{"@typescript-eslint/await-thenable":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/naming-convention":`off`,"@typescript-eslint/no-array-delete":`off`,"@typescript-eslint/no-base-to-string":`off`,"@typescript-eslint/no-confusing-void-expression":`off`,"@typescript-eslint/no-deprecated":`off`,"@typescript-eslint/no-duplicate-type-constituents":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-for-in-array":`off`,"@typescript-eslint/no-implied-eval":`off`,"@typescript-eslint/no-meaningless-void-operator":`off`,"@typescript-eslint/no-misused-promises":`off`,"@typescript-eslint/no-misused-spread":`off`,"@typescript-eslint/no-mixed-enums":`off`,"@typescript-eslint/no-redundant-type-constituents":`off`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-qualifier":`off`,"@typescript-eslint/no-unnecessary-template-expression":`off`,"@typescript-eslint/no-unnecessary-type-arguments":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unnecessary-type-conversion":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unsafe-argument":`off`,"@typescript-eslint/no-unsafe-assignment":`off`,"@typescript-eslint/no-unsafe-call":`off`,"@typescript-eslint/no-unsafe-enum-comparison":`off`,"@typescript-eslint/no-unsafe-member-access":`off`,"@typescript-eslint/no-unsafe-return":`off`,"@typescript-eslint/no-unsafe-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`off`,"@typescript-eslint/no-useless-default-assignment":`off`,"@typescript-eslint/non-nullable-type-assertion-style":`off`,"@typescript-eslint/only-throw-error":`off`,"@typescript-eslint/prefer-destructuring":`off`,"@typescript-eslint/prefer-find":`off`,"@typescript-eslint/prefer-includes":`off`,"@typescript-eslint/prefer-nullish-coalescing":`off`,"@typescript-eslint/prefer-optional-chain":`off`,"@typescript-eslint/prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-readonly":`off`,"@typescript-eslint/prefer-readonly-parameter-types":`off`,"@typescript-eslint/prefer-reduce-type-parameter":`off`,"@typescript-eslint/prefer-regexp-exec":`off`,"@typescript-eslint/prefer-return-this-type":`off`,"@typescript-eslint/prefer-string-starts-ends-with":`off`,"@typescript-eslint/promise-function-async":`off`,"@typescript-eslint/related-getter-setter-pairs":`off`,"@typescript-eslint/require-array-sort-compare":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-plus-operands":`off`,"@typescript-eslint/restrict-template-expressions":`off`,"@typescript-eslint/return-await":`off`,"@typescript-eslint/strict-boolean-expressions":`off`,"@typescript-eslint/strict-void-return":`off`,"@typescript-eslint/switch-exhaustiveness-check":`off`,"@typescript-eslint/unbound-method":`off`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`off`}}})),XTe=a(((e,t)=>{t.exports=e=>({files:e===`glob`?[`*.ts`,`*.tsx`,`*.mts`,`*.cts`]:[`**/*.ts`,`**/*.tsx`,`**/*.mts`,`**/*.cts`],rules:{"constructor-super":`off`,"getter-return":`off`,"no-class-assign":`off`,"no-const-assign":`off`,"no-dupe-args":`off`,"no-dupe-class-members":`off`,"no-dupe-keys":`off`,"no-func-assign":`off`,"no-import-assign":`off`,"no-new-native-nonconstructor":`off`,"no-new-symbol":`off`,"no-obj-calls":`off`,"no-redeclare":`off`,"no-setter-return":`off`,"no-this-before-super":`off`,"no-undef":`off`,"no-unreachable":`off`,"no-unsafe-negation":`off`,"no-var":`error`,"no-with":`off`,"prefer-const":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`}})})),ZTe=a(((e,t)=>{t.exports={overrides:[(0,(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(XTe()).default)(`glob`)]}})),QTe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`}}})),$Te=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`}}})),eEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/unbound-method":`error`}}})),tEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unified-signatures":`error`}}})),nEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),rEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),iEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`}}})),aEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}})),oEe=a(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}})),X5=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(e,t)=>({name:`typescript-eslint/base`,languageOptions:{parser:t,sourceType:`module`},plugins:{"@typescript-eslint":e}})})),Z5=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(XTe());e.default=(e,t)=>({...(0,n.default)(`minimatch`),name:`typescript-eslint/eslint-recommended`})})),sEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/all`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"consistent-return":`off`,"@typescript-eslint/consistent-return":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/consistent-type-exports":`error`,"@typescript-eslint/consistent-type-imports":`error`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/explicit-function-return-type":`error`,"@typescript-eslint/explicit-member-accessibility":`error`,"@typescript-eslint/explicit-module-boundary-types":`error`,"init-declarations":`off`,"@typescript-eslint/init-declarations":`error`,"max-params":`off`,"@typescript-eslint/max-params":`error`,"@typescript-eslint/member-ordering":`error`,"@typescript-eslint/method-signature-style":`error`,"@typescript-eslint/naming-convention":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-import-type-side-effects":`error`,"@typescript-eslint/no-inferrable-types":`error`,"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"no-loop-func":`off`,"@typescript-eslint/no-loop-func":`error`,"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"no-restricted-imports":`off`,"@typescript-eslint/no-restricted-imports":`error`,"@typescript-eslint/no-restricted-types":`error`,"no-shadow":`off`,"@typescript-eslint/no-shadow":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-parameter-property-assignment":`error`,"@typescript-eslint/no-unnecessary-qualifier":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-type-assertion":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-private-class-members":`off`,"@typescript-eslint/no-unused-private-class-members":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-useless-empty-export":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/parameter-properties":`error`,"@typescript-eslint/prefer-as-const":`error`,"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":`error`,"@typescript-eslint/prefer-enum-initializers":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-readonly":`error`,"@typescript-eslint/prefer-readonly-parameter-types":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`,"@typescript-eslint/promise-function-async":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"@typescript-eslint/require-array-sort-compare":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"no-return-await":`off`,"@typescript-eslint/return-await":`error`,"@typescript-eslint/strict-boolean-expressions":`error`,"@typescript-eslint/strict-void-return":`error`,"@typescript-eslint/switch-exhaustiveness-check":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),cEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(e,t)=>({name:`typescript-eslint/disable-type-checked`,rules:{"@typescript-eslint/await-thenable":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/naming-convention":`off`,"@typescript-eslint/no-array-delete":`off`,"@typescript-eslint/no-base-to-string":`off`,"@typescript-eslint/no-confusing-void-expression":`off`,"@typescript-eslint/no-deprecated":`off`,"@typescript-eslint/no-duplicate-type-constituents":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-for-in-array":`off`,"@typescript-eslint/no-implied-eval":`off`,"@typescript-eslint/no-meaningless-void-operator":`off`,"@typescript-eslint/no-misused-promises":`off`,"@typescript-eslint/no-misused-spread":`off`,"@typescript-eslint/no-mixed-enums":`off`,"@typescript-eslint/no-redundant-type-constituents":`off`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-qualifier":`off`,"@typescript-eslint/no-unnecessary-template-expression":`off`,"@typescript-eslint/no-unnecessary-type-arguments":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unnecessary-type-conversion":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unsafe-argument":`off`,"@typescript-eslint/no-unsafe-assignment":`off`,"@typescript-eslint/no-unsafe-call":`off`,"@typescript-eslint/no-unsafe-enum-comparison":`off`,"@typescript-eslint/no-unsafe-member-access":`off`,"@typescript-eslint/no-unsafe-return":`off`,"@typescript-eslint/no-unsafe-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`off`,"@typescript-eslint/no-useless-default-assignment":`off`,"@typescript-eslint/non-nullable-type-assertion-style":`off`,"@typescript-eslint/only-throw-error":`off`,"@typescript-eslint/prefer-destructuring":`off`,"@typescript-eslint/prefer-find":`off`,"@typescript-eslint/prefer-includes":`off`,"@typescript-eslint/prefer-nullish-coalescing":`off`,"@typescript-eslint/prefer-optional-chain":`off`,"@typescript-eslint/prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-readonly":`off`,"@typescript-eslint/prefer-readonly-parameter-types":`off`,"@typescript-eslint/prefer-reduce-type-parameter":`off`,"@typescript-eslint/prefer-regexp-exec":`off`,"@typescript-eslint/prefer-return-this-type":`off`,"@typescript-eslint/prefer-string-starts-ends-with":`off`,"@typescript-eslint/promise-function-async":`off`,"@typescript-eslint/related-getter-setter-pairs":`off`,"@typescript-eslint/require-array-sort-compare":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-plus-operands":`off`,"@typescript-eslint/restrict-template-expressions":`off`,"@typescript-eslint/return-await":`off`,"@typescript-eslint/strict-boolean-expressions":`off`,"@typescript-eslint/strict-void-return":`off`,"@typescript-eslint/switch-exhaustiveness-check":`off`,"@typescript-eslint/unbound-method":`off`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`off`},languageOptions:{parserOptions:{program:null,project:!1,projectService:!1}}})})),Q5=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/recommended`,rules:{"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`}}]})),lEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/recommended-type-checked`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`}}]})),uEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/recommended-type-checked-only`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/unbound-method":`error`}}]})),dEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/strict`,rules:{"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unified-signatures":`error`}}]})),fEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/strict-type-checked`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),pEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/strict-type-checked-only`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),mEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/stylistic`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`}}]})),hEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/stylistic-type-checked`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}]})),gEe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(X5()),r=t(Z5());e.default=(e,t)=>[(0,n.default)(e,t),(0,r.default)(e,t),{name:`typescript-eslint/stylistic-type-checked-only`,rules:{"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}]})),_Ee=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.escapeRegExp=r;let t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);function r(e=``){return e&&n.test(e)?e.replaceAll(t,`\\$&`):e}})),$5=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.getNameLocationInGlobalDirectiveComment=c,e.forEachReturnStatement=l,e.forEachChildESTree=d;let a=k3(),o=r(U6()),s=_Ee();i(j8(),e);function c(e,t,n){let r=RegExp(`[\\s,]${(0,s.escapeRegExp)(n)}(?:$|[\\s,:])`,`gu`);r.lastIndex=t.value.indexOf(`global`)+6;let i=r.exec(t.value),a=e.getLocFromIndex(t.range[0]+2+(i?i.index+1:0));return{end:{column:a.column+(i?n.length:1),line:a.line},start:a}}function l(e,t){return n(e);function n(e){switch(e.kind){case o.SyntaxKind.ReturnStatement:return t(e);case o.SyntaxKind.CaseBlock:case o.SyntaxKind.Block:case o.SyntaxKind.IfStatement:case o.SyntaxKind.DoStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:case o.SyntaxKind.WithStatement:case o.SyntaxKind.SwitchStatement:case o.SyntaxKind.CaseClause:case o.SyntaxKind.DefaultClause:case o.SyntaxKind.LabeledStatement:case o.SyntaxKind.TryStatement:case o.SyntaxKind.CatchClause:return o.forEachChild(e,n)}}}function u(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function d(e,t){function n(e){let r=t(e);if(r)return r;let i=a.visitorKeys[e.type];if(i)for(let t of i){let r=e[t];if(Array.isArray(r)){for(let e of r)if(u(e)){let t=n(e);if(t)return t}}else if(u(r)){let e=n(r);if(e)return e}}}return n(e)}})),e7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.hasBaseTypes=c,e.matchesTypeOrBaseType=l;let i=g8(),a=r(g8()),o=r(U6());function s(e,t){if(!a.isObjectType(t))return[];let n=a.isTypeReference(t)?t.target:t,r=a.isObjectFlagSet(n,o.ObjectFlags.Interface|o.ObjectFlags.Class)&&n;return r?e.getBaseTypes(r):[]}function c(e){return(0,i.isObjectType)(e)&&(0,i.isObjectFlagSet)(e,o.ObjectFlags.Interface|o.ObjectFlags.Class)}function l(e,t,n,r=new Set){return r.has(n)?!1:(r.add(n),t(n)?!0:s(e.program.getTypeChecker(),n).some(n=>l(e,t,n,r)))}})),vEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isTypeImport=r;let t=z6(),n=P8();function r(e){return e?.type===t.DefinitionType.ImportBinding&&(e.parent.importKind===`type`||e.node.type===n.AST_NODE_TYPES.ImportSpecifier&&e.node.importKind===`type`)}})),yEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.referenceContainsTypePredicate=n;let t=P8();function n(e){switch(e.type){case t.AST_NODE_TYPES.TSTypePredicate:return!0;case t.AST_NODE_TYPES.TSQualifiedName:case t.AST_NODE_TYPES.Identifier:return n(e.parent);default:return!1}}})),bEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.referenceContainsTypeQuery=n;let t=P8();function n(e){switch(e.type){case t.AST_NODE_TYPES.TSTypeQuery:return!0;case t.AST_NODE_TYPES.TSQualifiedName:case t.AST_NODE_TYPES.Identifier:return n(e.parent);default:return!1}}})),xEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.collectVariables=m;let t=z6(),n=P8(),r=vEe(),i=yEe(),a=bEe();var o=class extends t.Visitor{static RESULTS_CACHE=new WeakMap;ClassDeclaration=this.visitClass;ClassExpression=this.visitClass;ForInStatement=this.visitForInForOf;ForOfStatement=this.visitForInForOf;FunctionDeclaration=this.visitFunction;FunctionExpression=this.visitFunction;MethodDefinition=this.visitSetter;Property=this.visitSetter;TSCallSignatureDeclaration=this.visitFunctionTypeSignature;TSConstructorType=this.visitFunctionTypeSignature;TSConstructSignatureDeclaration=this.visitFunctionTypeSignature;TSDeclareFunction=this.visitFunctionTypeSignature;TSEmptyBodyFunctionExpression=this.visitFunctionTypeSignature;TSFunctionType=this.visitFunctionTypeSignature;TSMethodSignature=this.visitFunctionTypeSignature;#e;constructor(e){super({visitChildrenEvenIfSelectorExists:!0}),this.#e=e}static collectUnusedVariables(e,t){let n=this.RESULTS_CACHE.get(e);if(n)return n;let r=new this(t);r.visit(e);let i=r.collectUnusedVariables(r.getScope(e));return this.RESULTS_CACHE.set(e,i),i}Identifier(e){let t=this.getScope(e);t.type===n.TSESLint.Scope.ScopeType.function&&e.name===`this`&&`params`in t.block&&t.block.params.includes(e)&&this.markVariableAsUsed(e)}TSEnumDeclaration(e){let t=this.getScope(e);for(let e of t.variables)this.markVariableAsUsed(e)}TSMappedType(e){this.markVariableAsUsed(e.key)}TSModuleDeclaration(e){e.kind===`global`&&this.markVariableAsUsed(`global`,e.parent)}TSParameterProperty(e){let t;switch(e.parameter.type){case n.AST_NODE_TYPES.AssignmentPattern:t=e.parameter.left;break;case n.AST_NODE_TYPES.Identifier:t=e.parameter;break}this.markVariableAsUsed(t)}collectUnusedVariables(e,n={unusedVariables:new Set,usedVariables:new Set}){if(!e.functionExpressionScope)for(let r of e.variables)r instanceof t.ImplicitLibVariable||(r.eslintUsed||d(r)||u(r)||p(r)?n.usedVariables.add(r):n.unusedVariables.add(r));for(let t of e.childScopes)this.collectUnusedVariables(t,n);return n}getScope(e){let r=e.type!==n.AST_NODE_TYPES.Program,i=e;for(;i;){let e=this.#e.acquire(i,r);if(e)return e.type===t.ScopeType.functionExpressionName?e.childScopes[0]:e;i=i.parent}return this.#e.scopes[0]}markVariableAsUsed(e,t){if(typeof e!=`string`&&!(`type`in e)){e.eslintUsed=!0;return}let n,r;typeof e==`string`?(n=e,r=t):(n=e.name,r=e);let i=this.getScope(r);for(;i;){let e=i.variables.find(e=>e.name===n);if(e){e.eslintUsed=!0;return}i=i.upper}}visitClass(e){let t=this.getScope(e);for(let e of t.variables)if(e.identifiers[0]===t.block.id){this.markVariableAsUsed(e);return}}visitForInForOf(e){let t;if(e.left.type===n.AST_NODE_TYPES.VariableDeclaration){let n=this.#e.getDeclaredVariables(e.left).at(0);if(!n)return;t=n}if(e.left.type===n.AST_NODE_TYPES.Identifier&&(t=e.left),t==null)return;let r=e.body;if(e.body.type===n.AST_NODE_TYPES.BlockStatement){if(e.body.body.length!==1)return;r=e.body.body[0]}r.type===n.AST_NODE_TYPES.ReturnStatement&&this.markVariableAsUsed(t)}visitFunction(e){let t=this.getScope(e).set.get(`arguments`);t?.defs.length===0&&this.markVariableAsUsed(t)}visitFunctionTypeSignature(e){for(let t of e.params)this.visitPattern(t,e=>{this.markVariableAsUsed(e)})}visitSetter(e){if(e.kind===`set`)for(let t of e.value.params)this.visitPattern(t,e=>{this.markVariableAsUsed(e)})}};function s(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function c(e,t){let n=e.from;for(;n;){if(t.has(n.block))return!0;n=n.upper}return!1}let l=new Set([n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.FunctionDeclaration,n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration,n.AST_NODE_TYPES.TSTypeAliasDeclaration]);function u(e){for(let t of e.defs)if(t.type!==n.TSESLint.Scope.DefinitionType.Parameter&&(l.has(t.node.type)&&t.node.parent.type===n.AST_NODE_TYPES.ExportNamedDeclaration||t.node.parent.type===n.AST_NODE_TYPES.ExportDefaultDeclaration))return!0;return!1}function d(e){return e.defs.some(e=>{let t=e.node;if(t.type===n.AST_NODE_TYPES.VariableDeclarator)t=t.parent;else if(e.type===n.TSESLint.Scope.DefinitionType.Parameter)return!1;return t.parent.type.startsWith(`Export`)})}let f=new Set([`??=`,`&&=`,`||=`]);function p(e){function t(e){let t=new Set;return e.defs.forEach(e=>{e.type===n.TSESLint.Scope.DefinitionType.FunctionName&&t.add(e.node),e.type===n.TSESLint.Scope.DefinitionType.Variable&&(e.node.init?.type===n.AST_NODE_TYPES.FunctionExpression||e.node.init?.type===n.AST_NODE_TYPES.ArrowFunctionExpression)&&t.add(e.node.init)}),t}function o(e){let t=new Set;return e.defs.forEach(e=>{(e.node.type===n.AST_NODE_TYPES.TSInterfaceDeclaration||e.node.type===n.AST_NODE_TYPES.TSTypeAliasDeclaration)&&t.add(e.node)}),t}function l(e){let t=new Set;return e.defs.forEach(e=>{e.node.type===n.AST_NODE_TYPES.TSModuleDeclaration&&t.add(e.node)}),t}function u(e){let t=new Set;return e.defs.forEach(e=>{e.node.type===n.AST_NODE_TYPES.TSEnumDeclaration&&t.add(e.node)}),t}function d(e,t){for(let n of t)if(s(e.identifier,n))return!0;return!1}function p(e){let t=e.parent;return t.type===n.AST_NODE_TYPES.ExpressionStatement?!0:t.type===n.AST_NODE_TYPES.SequenceExpression?t.expressions[t.expressions.length-1]===e?p(t):!0:!1}function m(e,t){function r(e){let t=e;for(;t&&!n.ASTUtils.isFunction(t);){if(n.ASTUtils.isLoop(t))return!0;t=t.parent}return!1}let i=e.identifier,a=i.parent,o=e.from.variableScope!==e.resolved.scope.variableScope||r(i);return t&&s(i,t)?t:a.type===n.AST_NODE_TYPES.AssignmentExpression&&p(a)&&i===a.left&&!o?a.right:null}function h(e,t){function r(e,t){function r(e){let t=e;for(;t;){if(n.ASTUtils.isFunction(t))return t;t=t.parent}return null}function i(e,t){let r=e,i=e.parent;for(;i&&s(i,t);){switch(i.type){case n.AST_NODE_TYPES.SequenceExpression:if(i.expressions[i.expressions.length-1]!==r)return!1;break;case n.AST_NODE_TYPES.CallExpression:case n.AST_NODE_TYPES.NewExpression:return i.callee!==r;case n.AST_NODE_TYPES.AssignmentExpression:case n.AST_NODE_TYPES.TaggedTemplateExpression:case n.AST_NODE_TYPES.YieldExpression:return!0;default:if(i.type.endsWith(`Statement`)||i.type.endsWith(`Declaration`))return!0}r=i,i=i.parent}return!1}let a=r(e);return!!a&&s(a,t)&&i(a,t)}let i=e.identifier,a=i.parent;return e.isRead()&&(a.type===n.AST_NODE_TYPES.AssignmentExpression&&!f.has(a.operator)&&p(a)&&a.left===i||a.type===n.AST_NODE_TYPES.UpdateExpression&&p(a)||!!t&&s(i,t)&&!r(i,t))}let g=t(e),_=g.size>0,v=o(e),y=v.size>0,b=l(e),x=b.size>0,S=u(e),C=S.size>0,w=e.defs.every(r.isTypeImport),T=null;return e.references.some(e=>{let t=h(e,T);return T=m(e,T),e.isRead()&&!t&&!(!w&&((0,a.referenceContainsTypeQuery)(e.identifier)||(0,i.referenceContainsTypePredicate)(e.identifier)))&&!(_&&c(e,g))&&!(y&&d(e,v))&&!(x&&c(e,b))&&!(C&&c(e,S))})}function m(e){return o.collectUnusedVariables(e.sourceCode.ast,n.ESLintUtils.nullThrows(e.sourceCode.scopeManager,`Missing required scope manager`))}})),t7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createRule=void 0,e.createRule=P8().ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`)})),n7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getBaseTypesOfClassMember=t;function*t(e,t){let n=e.esTreeNodeToTSNodeMap.get(t);if(n.name==null)return;let r=e.program.getTypeChecker(),i=r.getSymbolAtLocation(n.name);if(i==null)return;let a=n.parent;for(let e of a.heritageClauses??[])for(let t of e.types){let a=r.getTypeAtLocation(t),o=r.getPropertyOfType(a,i.name);o!=null&&(yield{baseMemberType:r.getTypeOfSymbolAtLocation(o,n),baseType:a,heritageToken:e.token})}}})),r7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getFixOrSuggest=t;function t({fixOrSuggest:e,suggestion:t}){switch(e){case`fix`:return{fix:t.fix};case`none`:return;case`suggest`:return{suggest:[t]}}}})),SEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getFunctionHeadLoc=i;let t=P8(),n=$5();function r(e,r){if(e.type===t.AST_NODE_TYPES.ArrowFunctionExpression&&e.params.length===1){let i=t.ESLintUtils.nullThrows(r.getFirstToken(e.params[0]),t.ESLintUtils.NullThrowsReasons.MissingToken(`parameter`,`arrow function`)),a=r.getTokenBefore(i);return a&&(0,n.isOpeningParenToken)(a)?a:i}return e.id==null?t.ESLintUtils.nullThrows(r.getFirstToken(e,n.isOpeningParenToken),t.ESLintUtils.NullThrowsReasons.MissingToken(`opening parenthesis`,`function`)):t.ESLintUtils.nullThrows(r.getTokenAfter(e.id,n.isOpeningParenToken),t.ESLintUtils.NullThrowsReasons.MissingToken(`id`,`function`))}function i(e,i){let a=e.parent,o,s;if(a.type===t.AST_NODE_TYPES.MethodDefinition||a.type===t.AST_NODE_TYPES.PropertyDefinition){if(a.decorators.length>0){let e=a.decorators[a.decorators.length-1];o=t.ESLintUtils.nullThrows(i.getTokenAfter(e),t.ESLintUtils.NullThrowsReasons.MissingToken(`modifier or member name`,`class member`)).loc.start}else o=a.loc.start;s=r(e,i).loc.start}else if(a.type===t.AST_NODE_TYPES.Property)o=a.loc.start,s=r(e,i).loc.start;else if(e.type===t.AST_NODE_TYPES.ArrowFunctionExpression){let r=t.ESLintUtils.nullThrows(i.getTokenBefore(e.body,n.isArrowToken),t.ESLintUtils.NullThrowsReasons.MissingToken(`arrow token`,`arrow function`));o=r.loc.start,s=r.loc.end}else o=e.loc.start,s=r(e,i).loc.start;return{end:{...s},start:{...o}}}})),CEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.OperatorPrecedence=void 0,e.getOperatorPrecedenceForNode=i,e.getOperatorPrecedence=a,e.getBinaryOperatorPrecedence=o;let t=P8(),n=U6();var r;(function(e){e[e.Comma=0]=`Comma`,e[e.Spread=1]=`Spread`,e[e.Yield=2]=`Yield`,e[e.Assignment=3]=`Assignment`,e[e.Conditional=4]=`Conditional`,e[e.Coalesce=4]=`Coalesce`,e[e.LogicalOR=5]=`LogicalOR`,e[e.LogicalAND=6]=`LogicalAND`,e[e.BitwiseOR=7]=`BitwiseOR`,e[e.BitwiseXOR=8]=`BitwiseXOR`,e[e.BitwiseAND=9]=`BitwiseAND`,e[e.Equality=10]=`Equality`,e[e.Relational=11]=`Relational`,e[e.Shift=12]=`Shift`,e[e.Additive=13]=`Additive`,e[e.Multiplicative=14]=`Multiplicative`,e[e.Exponentiation=15]=`Exponentiation`,e[e.Unary=16]=`Unary`,e[e.Update=17]=`Update`,e[e.LeftHandSide=18]=`LeftHandSide`,e[e.Member=19]=`Member`,e[e.Primary=20]=`Primary`,e[e.Highest=20]=`Highest`,e[e.Lowest=0]=`Lowest`,e[e.Invalid=-1]=`Invalid`})(r||(e.OperatorPrecedence=r={}));function i(e){switch(e.type){case t.AST_NODE_TYPES.SpreadElement:case t.AST_NODE_TYPES.RestElement:return r.Spread;case t.AST_NODE_TYPES.YieldExpression:case t.AST_NODE_TYPES.ArrowFunctionExpression:return r.Yield;case t.AST_NODE_TYPES.ConditionalExpression:return r.Conditional;case t.AST_NODE_TYPES.SequenceExpression:return r.Comma;case t.AST_NODE_TYPES.AssignmentExpression:case t.AST_NODE_TYPES.BinaryExpression:case t.AST_NODE_TYPES.LogicalExpression:switch(e.operator){case`==`:case`+=`:case`-=`:case`**=`:case`*=`:case`/=`:case`%=`:case`<<=`:case`>>=`:case`>>>=`:case`&=`:case`^=`:case`|=`:case`||=`:case`&&=`:case`??=`:return r.Assignment;default:return o(e.operator)}case t.AST_NODE_TYPES.TSTypeAssertion:case t.AST_NODE_TYPES.TSNonNullExpression:case t.AST_NODE_TYPES.UnaryExpression:case t.AST_NODE_TYPES.AwaitExpression:return r.Unary;case t.AST_NODE_TYPES.UpdateExpression:return e.prefix?r.Unary:r.Update;case t.AST_NODE_TYPES.ChainExpression:return i(e.expression);case t.AST_NODE_TYPES.CallExpression:return r.LeftHandSide;case t.AST_NODE_TYPES.NewExpression:return e.arguments.length>0?r.Member:r.LeftHandSide;case t.AST_NODE_TYPES.TaggedTemplateExpression:case t.AST_NODE_TYPES.MemberExpression:case t.AST_NODE_TYPES.MetaProperty:return r.Member;case t.AST_NODE_TYPES.TSAsExpression:return r.Relational;case t.AST_NODE_TYPES.ThisExpression:case t.AST_NODE_TYPES.Super:case t.AST_NODE_TYPES.Identifier:case t.AST_NODE_TYPES.PrivateIdentifier:case t.AST_NODE_TYPES.Literal:case t.AST_NODE_TYPES.ArrayExpression:case t.AST_NODE_TYPES.ObjectExpression:case t.AST_NODE_TYPES.FunctionExpression:case t.AST_NODE_TYPES.ClassExpression:case t.AST_NODE_TYPES.TemplateLiteral:case t.AST_NODE_TYPES.JSXElement:case t.AST_NODE_TYPES.JSXFragment:return r.Primary;default:return r.Invalid}}function a(e,t,i){switch(e){case n.SyntaxKind.CommaListExpression:return r.Comma;case n.SyntaxKind.SpreadElement:return r.Spread;case n.SyntaxKind.YieldExpression:return r.Yield;case n.SyntaxKind.ConditionalExpression:return r.Conditional;case n.SyntaxKind.BinaryExpression:switch(t){case n.SyntaxKind.AmpersandAmpersandEqualsToken:case n.SyntaxKind.AmpersandEqualsToken:case n.SyntaxKind.AsteriskAsteriskEqualsToken:case n.SyntaxKind.AsteriskEqualsToken:case n.SyntaxKind.BarBarEqualsToken:case n.SyntaxKind.BarEqualsToken:case n.SyntaxKind.CaretEqualsToken:case n.SyntaxKind.EqualsToken:case n.SyntaxKind.GreaterThanGreaterThanEqualsToken:case n.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case n.SyntaxKind.LessThanLessThanEqualsToken:case n.SyntaxKind.MinusEqualsToken:case n.SyntaxKind.PercentEqualsToken:case n.SyntaxKind.PlusEqualsToken:case n.SyntaxKind.QuestionQuestionEqualsToken:case n.SyntaxKind.SlashEqualsToken:return r.Assignment;case n.SyntaxKind.CommaToken:return r.Comma;default:return o(t)}case n.SyntaxKind.TypeAssertionExpression:case n.SyntaxKind.NonNullExpression:case n.SyntaxKind.PrefixUnaryExpression:case n.SyntaxKind.TypeOfExpression:case n.SyntaxKind.VoidExpression:case n.SyntaxKind.DeleteExpression:case n.SyntaxKind.AwaitExpression:return r.Unary;case n.SyntaxKind.PostfixUnaryExpression:return r.Update;case n.SyntaxKind.CallExpression:return r.LeftHandSide;case n.SyntaxKind.NewExpression:return i?r.Member:r.LeftHandSide;case n.SyntaxKind.TaggedTemplateExpression:case n.SyntaxKind.PropertyAccessExpression:case n.SyntaxKind.ElementAccessExpression:case n.SyntaxKind.MetaProperty:return r.Member;case n.SyntaxKind.AsExpression:case n.SyntaxKind.SatisfiesExpression:return r.Relational;case n.SyntaxKind.ThisKeyword:case n.SyntaxKind.SuperKeyword:case n.SyntaxKind.Identifier:case n.SyntaxKind.PrivateIdentifier:case n.SyntaxKind.NullKeyword:case n.SyntaxKind.TrueKeyword:case n.SyntaxKind.FalseKeyword:case n.SyntaxKind.NumericLiteral:case n.SyntaxKind.BigIntLiteral:case n.SyntaxKind.StringLiteral:case n.SyntaxKind.ArrayLiteralExpression:case n.SyntaxKind.ObjectLiteralExpression:case n.SyntaxKind.FunctionExpression:case n.SyntaxKind.ArrowFunction:case n.SyntaxKind.ClassExpression:case n.SyntaxKind.RegularExpressionLiteral:case n.SyntaxKind.NoSubstitutionTemplateLiteral:case n.SyntaxKind.TemplateExpression:case n.SyntaxKind.ParenthesizedExpression:case n.SyntaxKind.OmittedExpression:case n.SyntaxKind.JsxElement:case n.SyntaxKind.JsxSelfClosingElement:case n.SyntaxKind.JsxFragment:return r.Primary;default:return r.Invalid}}function o(e){switch(e){case`-`:case`+`:case n.SyntaxKind.MinusToken:case n.SyntaxKind.PlusToken:return r.Additive;case`!=`:case`!==`:case`==`:case`===`:case n.SyntaxKind.EqualsEqualsEqualsToken:case n.SyntaxKind.EqualsEqualsToken:case n.SyntaxKind.ExclamationEqualsEqualsToken:case n.SyntaxKind.ExclamationEqualsToken:return r.Equality;case`??`:case n.SyntaxKind.QuestionQuestionToken:return r.Coalesce;case`*`:case`/`:case`%`:case n.SyntaxKind.AsteriskToken:case n.SyntaxKind.PercentToken:case n.SyntaxKind.SlashToken:return r.Multiplicative;case`**`:case n.SyntaxKind.AsteriskAsteriskToken:return r.Exponentiation;case`&`:case n.SyntaxKind.AmpersandToken:return r.BitwiseAND;case`&&`:case n.SyntaxKind.AmpersandAmpersandToken:return r.LogicalAND;case`^`:case n.SyntaxKind.CaretToken:return r.BitwiseXOR;case`<`:case`<=`:case`>`:case`>=`:case`in`:case`instanceof`:case n.SyntaxKind.AsKeyword:case n.SyntaxKind.GreaterThanEqualsToken:case n.SyntaxKind.GreaterThanToken:case n.SyntaxKind.InKeyword:case n.SyntaxKind.InstanceOfKeyword:case n.SyntaxKind.LessThanEqualsToken:case n.SyntaxKind.LessThanToken:return r.Relational;case`<<`:case`>>`:case`>>>`:case n.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case n.SyntaxKind.GreaterThanGreaterThanToken:case n.SyntaxKind.LessThanLessThanToken:return r.Shift;case`|`:case n.SyntaxKind.BarToken:return r.BitwiseOR;case`||`:case n.SyntaxKind.BarBarToken:return r.LogicalOR}return-1}})),wEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isNullLiteral=n;let t=P8();function n(e){return e.type===t.AST_NODE_TYPES.Literal&&e.value==null}})),i7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getStaticStringValue=r;let t=P8(),n=wEe();function r(e){switch(e.type){case t.AST_NODE_TYPES.Literal:if(e.value===null){if((0,n.isNullLiteral)(e))return String(e.value);if(`regex`in e)return`/${e.regex.pattern}/${e.regex.flags}`;if(`bigint`in e)return e.bigint}else return String(e.value);break;case t.AST_NODE_TYPES.TemplateLiteral:if(e.expressions.length===0&&e.quasis.length===1)return e.quasis[0].value.cooked;break}return null}})),TEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getStringLength=r;let t;function n(e){return/^[\u0020-\u007f]*$/u.test(e)}function r(e){return n(e)?e.length:(t??=new Intl.Segmenter,[...t.segment(e)].length)}})),EEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTextWithParentheses=n;let t=_7();function n(e,n){let r=0,i=0;if((0,t.isParenthesized)(n,e)){let a=(0,t.nullThrows)(e.getTokenBefore(n,t.isOpeningParenToken),t.NullThrowsReasons.MissingToken(`(`,`node`)),o=(0,t.nullThrows)(e.getTokenAfter(n,t.isClosingParenToken),t.NullThrowsReasons.MissingToken(`)`,`node`));r=n.range[0]-a.range[0],i=o.range[1]-n.range[1]}return e.getText(n,r,i)}})),DEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getThisExpression=n;let t=P8();function n(e){for(;;)if(e.type===t.AST_NODE_TYPES.CallExpression)e=e.callee;else if(e.type===t.AST_NODE_TYPES.ThisExpression)return e;else if(e.type===t.AST_NODE_TYPES.MemberExpression)e=e.object;else if(e.type===t.AST_NODE_TYPES.ChainExpression)e=e.expression;else break}})),OEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getWrappingFixer=n,e.getMovedNodeCode=r,e.isStrongPrecedenceNode=i;let t=P8();function n(e){let{node:n,innerNode:r=n,sourceCode:s,wrap:l}=e,u=Array.isArray(r)?r:[r];return e=>{let r=u.map(e=>{let t=s.getText(e);return(!i(e)||c(n,e))&&(t=`(${t})`),t});if(!l)return e.replaceText(n,r.join(``));let d=l(...r);return a(n)&&!t.ASTUtils.isParenthesized(n,s)&&(d=`(${d})`),/^[`([]/.test(d)&&o(n,s)&&(d=`;${d}`),e.replaceText(n,d)}}function r(e){let{destinationNode:t,nodeToMove:n,sourceCode:r}=e,o=r.getText(n);return i(n)||!a(t)?o:`(${o})`}function i(e){return e.type===t.AST_NODE_TYPES.Literal||e.type===t.AST_NODE_TYPES.Identifier||e.type===t.AST_NODE_TYPES.TSTypeReference||e.type===t.AST_NODE_TYPES.TSTypeOperator||e.type===t.AST_NODE_TYPES.ArrayExpression||e.type===t.AST_NODE_TYPES.ObjectExpression||e.type===t.AST_NODE_TYPES.MemberExpression||e.type===t.AST_NODE_TYPES.CallExpression||e.type===t.AST_NODE_TYPES.NewExpression||e.type===t.AST_NODE_TYPES.TaggedTemplateExpression||e.type===t.AST_NODE_TYPES.TSInstantiationExpression}function a(e){let n=e.parent;return n?n.type===t.AST_NODE_TYPES.UpdateExpression||n.type===t.AST_NODE_TYPES.UnaryExpression||n.type===t.AST_NODE_TYPES.BinaryExpression||n.type===t.AST_NODE_TYPES.LogicalExpression||n.type===t.AST_NODE_TYPES.ConditionalExpression||n.type===t.AST_NODE_TYPES.AwaitExpression||n.type===t.AST_NODE_TYPES.MemberExpression&&n.object===e||(n.type===t.AST_NODE_TYPES.CallExpression||n.type===t.AST_NODE_TYPES.NewExpression)&&n.callee===e||n.type===t.AST_NODE_TYPES.TaggedTemplateExpression&&n.tag===e:!1}function o(e,n){for(;;){let r=e.parent;if(r.type===t.AST_NODE_TYPES.ExpressionStatement){let e=r.parent;if(e.type===t.AST_NODE_TYPES.Program||e.type===t.AST_NODE_TYPES.BlockStatement){let i=e.body.indexOf(r),a=e.body[i-1];if(i>0&&t.ESLintUtils.nullThrows(n.getLastToken(a),`Mismatched semicolon and block`).value!==`;`)return!0}}if(!s(e))return!1;e=r}}function s(e){let n=e.parent;return n.type===t.AST_NODE_TYPES.UpdateExpression||(n.type===t.AST_NODE_TYPES.BinaryExpression||n.type===t.AST_NODE_TYPES.LogicalExpression||n.type===t.AST_NODE_TYPES.AssignmentExpression)&&e===n.left||n.type===t.AST_NODE_TYPES.ConditionalExpression&&e===n.test||n.type===t.AST_NODE_TYPES.CallExpression&&e===n.callee||n.type===t.AST_NODE_TYPES.TaggedTemplateExpression&&e===n.tag}function c(e,n){return e.parent?.type===t.AST_NODE_TYPES.ArrowFunctionExpression&&e.parent.body===e&&n.type===t.AST_NODE_TYPES.ObjectExpression}})),kEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isSymbolFromDefaultLibrary=t;function t(e,t){if(!t)return!1;let n=t.getDeclarations()??[];for(let t of n){let n=t.getSourceFile();if(e.isSourceFileDefaultLibrary(n))return!0}return!1}})),AEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromiseLike=s,e.isPromiseConstructorLike=c,e.isErrorLike=l,e.isReadonlyErrorLike=u,e.isReadonlyTypeLike=d,e.isBuiltinTypeAliasLike=f,e.isBuiltinSymbolLike=p,e.isBuiltinSymbolLikeRecurser=m;let i=r(g8()),a=r(U6()),o=kEe();function s(e,t){return p(e,t,`Promise`)}function c(e,t){return p(e,t,`PromiseConstructor`)}function l(e,t){return p(e,t,`Error`)}function u(e,t){return d(e,t,t=>{let[n]=t.aliasTypeArguments;return l(e,n)||u(e,n)})}function d(e,t,n){return f(e,t,e=>e.aliasSymbol.getName()===`Readonly`&&!!n?.(e))}function f(e,t,n){return m(e,t,t=>{let{aliasSymbol:r,aliasTypeArguments:i}=t;return!r||!i?!1:(0,o.isSymbolFromDefaultLibrary)(e,r)&&n(t)?!0:null})}function p(e,t,n){return m(e,t,t=>{let r=t.getSymbol();if(!r)return!1;let i=r.getName();return(Array.isArray(n)?n.some(e=>i===e):i===n)&&(0,o.isSymbolFromDefaultLibrary)(e,r)?!0:null})}function m(e,t,n){if(t.isIntersection())return t.types.some(t=>m(e,t,n));if(t.isUnion())return t.types.every(t=>m(e,t,n));if(i.isTypeParameter(t)){let r=t.getConstraint();return r?m(e,r,n):!1}let r=n(t);if(typeof r==`boolean`)return r;let o=t.getSymbol();if(o&&i.isSymbolFlagSet(o,a.SymbolFlags.Class|a.SymbolFlags.Interface)){let t=e.getTypeChecker(),r=t.getDeclaredTypeOfSymbol(o);for(let i of t.getBaseTypes(r))if(m(e,i,n))return!0}return!1}})),jEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getTypeFlags=s,e.isTypeFlagSet=c;let i=r(g8()),a=r(U6()),o=a.TypeFlags.Any|a.TypeFlags.Unknown;function s(e){let t=0;for(let n of i.unionConstituents(e))t|=n.flags;return t}function c(e,t,n){let r=s(e);return n&&r&o?!0:(r&t)!==0}})),MEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.containsAllTypesByName=s;let i=r(g8()),a=r(U6()),o=jEe();function s(e,t,n,r=!1){if((0,o.isTypeFlagSet)(e,a.TypeFlags.Any|a.TypeFlags.Unknown))return!t;i.isTypeReference(e)&&(e=e.target);let c=e.getSymbol();if(c&&n.has(c.name))return!0;let l=e=>s(e,t,n,r);if(i.isUnionOrIntersectionType(e))return r?e.types.some(l):e.types.every(l);let u=e.getBaseTypes();return u!=null&&(r?u.some(l):u.length>0&&u.every(l))}})),a7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getConstrainedTypeAtLocation=t;function t(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}})),NEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getContextualType=a;let i=r(U6());function a(e,t){let n=t.parent;if(i.isCallExpression(n)||i.isNewExpression(n)){if(t===n.expression)return}else if(i.isVariableDeclaration(n)||i.isPropertyDeclaration(n)||i.isParameter(n))return n.type?e.getTypeFromTypeNode(n.type):void 0;else if(i.isJsxExpression(n))return e.getContextualType(n);else if(i.isIdentifier(t)&&(i.isPropertyAssignment(n)||i.isShorthandPropertyAssignment(n)))return e.getContextualType(t);else if(i.isBinaryExpression(n)&&n.operatorToken.kind===i.SyntaxKind.EqualsToken&&n.right===t)return e.getTypeAtLocation(n.left);else if(![i.SyntaxKind.JsxExpression,i.SyntaxKind.TemplateSpan].includes(n.kind))return;return e.getContextualType(t)}})),PEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getDeclaration=t;function t(e,t){let n=e.getSymbolAtLocation(t);return n?n.getDeclarations()?.[0]??null:null}})),FEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getSourceFileOfNode=a;let i=r(U6());function a(e){for(;e.kind!==i.SyntaxKind.SourceFile;)e=e.parent;return e}})),IEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getTypeName=o;let i=r(g8()),a=r(U6());function o(e,t){if(i.isTypeFlagSet(t,a.TypeFlags.StringLike))return`string`;if(i.isTypeFlagSet(t,a.TypeFlags.TypeParameter)){let n=t.getSymbol()?.getDeclarations()?.[0];if(n!=null&&a.isTypeParameterDeclaration(n)&&n.constraint!=null)return o(e,e.getTypeFromTypeNode(n.constraint))}return t.isUnion()&&t.types.map(t=>o(e,t)).every(e=>e===`string`)||t.isIntersection()&&t.types.map(t=>o(e,t)).some(e=>e===`string`)?`string`:e.typeToString(t)}})),LEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isTypeBrandedLiteralLike=l;let i=r(g8()),a=r(U6());function o(e){return e.isLiteral()||i.isTypeFlagSet(e,a.TypeFlags.BigInt|a.TypeFlags.Number|a.TypeFlags.String|a.TypeFlags.TemplateLiteral)}function s(e){return!e.getCallSignatures().length&&!e.getConstructSignatures().length&&i.isObjectType(e)}function c(e){if(!e.isIntersection())return!1;let t=!1,n=!1;for(let r of e.types)if(s(r))n=!0;else if(o(r))t=!0;else return!1;return n&&t}function l(e){return e.isUnion()?e.types.every(c):c(e)}})),REe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTypeOfPropertyOfName=t,e.getTypeOfPropertyOfType=n;function t(e,t,n,i){if(!i||!r(i))return e.getTypeOfPropertyOfType(t,n);let a=t.getProperties().find(e=>e.escapedName===i);return a?e.getDeclaredTypeOfSymbol(a):void 0}function n(e,n,r){return t(e,n,r.getName(),r.getEscapedName())}function r(e){return i(e)||a(e)}function i(e){return e.startsWith(`__@`)}function a(e){return e.startsWith(`__#`)}})),zEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.specifierNameMatches=t;function t(e,t){typeof t==`string`&&(t=[t]);let n=e.aliasSymbol??e.getSymbol(),r=n?[n.escapedName,e.intrinsicName]:[e.intrinsicName];return!!t.some(e=>r.includes(e))}})),BEe=a((e=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.typeDeclaredInFile=a;let r=O8(),i=n(t(`node:path`));function a(e,t,n){if(e==null){let e=(0,r.getCanonicalFileName)(n.getCurrentDirectory());return t.some(t=>(0,r.getCanonicalFileName)(t.fileName).startsWith(e))}let a=(0,r.getCanonicalFileName)(i.default.join(n.getCurrentDirectory(),e));return t.some(e=>(0,r.getCanonicalFileName)(e.fileName)===a)}})),o7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.typeDeclaredInLib=t;function t(e,t){return e.length===0?!0:e.some(e=>t.isSourceFileDefaultLibrary(e))}})),s7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.typeDeclaredInPackageDeclarationFile=c;let i=r(U6());function a(e){switch(e.kind){case i.SyntaxKind.ModuleDeclaration:if(e.flags&i.NodeFlags.Namespace)break;return i.isStringLiteral(e.name)?e:void 0;case i.SyntaxKind.SourceFile:return}return a(e.parent)}function o(e,t){return t.some(t=>a(t)?.name.text===e)}function s(e,t,n){let r=e.replace(/^@([^/]+)\//,`$1__`),i=RegExp(`${e}|${r}`);return t.some(e=>{let t=n.sourceFileToPackageName.get(e.path);return t!=null&&i.test(t)&&n.isSourceFileFromExternalLibrary(e)})}function c(e,t,n,r){return o(e,t)||s(e,n,r)}})),c7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.valueMatchesSomeSpecifier=e.typeMatchesSomeSpecifier=e.typeOrValueSpecifiersSchema=void 0,e.typeMatchesSpecifier=u,e.valueMatchesSpecifier=p;let i=A3(),a=r(g8()),o=zEe(),s=BEe(),c=o7(),l=s7();e.typeOrValueSpecifiersSchema={items:{oneOf:[{type:`string`},{additionalProperties:!1,properties:{from:{enum:[`file`],type:`string`},name:{oneOf:[{type:`string`},{items:{type:`string`},minItems:1,type:`array`,uniqueItems:!0}]},path:{type:`string`}},required:[`from`,`name`],type:`object`},{additionalProperties:!1,properties:{from:{enum:[`lib`],type:`string`},name:{oneOf:[{type:`string`},{items:{type:`string`},minItems:1,type:`array`,uniqueItems:!0}]}},required:[`from`,`name`],type:`object`},{additionalProperties:!1,properties:{from:{enum:[`package`],type:`string`},name:{oneOf:[{type:`string`},{items:{type:`string`},minItems:1,type:`array`,uniqueItems:!0}]},package:{type:`string`}},required:[`from`,`name`,`package`],type:`object`}]},type:`array`};function u(e,t,n){return a.isUnionType(e)?e.types.every(e=>u(e,t,n)):!!((()=>{if(a.isIntrinsicErrorType(e))return!1;if(typeof t==`string`)return(0,o.specifierNameMatches)(e,t);if(!(0,o.specifierNameMatches)(e,t.name))return!1;let r=(e.getSymbol()??e.aliasSymbol)?.getDeclarations()??[],i=r.map(e=>e.getSourceFile());switch(t.from){case`file`:return(0,s.typeDeclaredInFile)(t.path,i,n);case`lib`:return(0,c.typeDeclaredInLib)(i,n);case`package`:return(0,l.typeDeclaredInPackageDeclarationFile)(t.package,r,i,n)}})()||a.isIntersectionType(e)&&a.intersectionConstituents(e).some(e=>u(e,t,n)))}e.typeMatchesSomeSpecifier=(e,t=[],n)=>t.some(t=>u(e,t,n));let d=e=>typeof e==`string`?[e]:e,f=e=>{if(e.type===i.AST_NODE_TYPES.Identifier||e.type===i.AST_NODE_TYPES.JSXIdentifier||e.type===i.AST_NODE_TYPES.PrivateIdentifier)return e.name;if(e.type===i.AST_NODE_TYPES.Literal&&typeof e.value==`string`)return e.value};function p(e,t,n,r){let i=f(e);if(!i)return!1;if(typeof t==`string`)return t===i;if(!d(t.name).includes(i))return!1;if(t.from===`package`){let e=(r.getSymbol()??r.aliasSymbol)?.getDeclarations()??[],i=e.map(e=>e.getSourceFile());return(0,l.typeDeclaredInPackageDeclarationFile)(t.package,e,i,n)}return!0}e.valueMatchesSomeSpecifier=(e,t=[],n,r)=>t.some(t=>p(e,t,n,r))})),VEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.readonlynessOptionsDefaults=e.readonlynessOptionsSchema=void 0,e.isTypeReadonly=m;let i=P8(),a=r(g8()),o=r(U6()),s=REe(),c=c7();var l;(function(e){e[e.UnknownType=1]=`UnknownType`,e[e.Mutable=2]=`Mutable`,e[e.Readonly=3]=`Readonly`})(l||={}),e.readonlynessOptionsSchema={additionalProperties:!1,properties:{allow:c.typeOrValueSpecifiersSchema,treatMethodsAsReadonly:{type:`boolean`}},type:`object`},e.readonlynessOptionsDefaults={allow:[],treatMethodsAsReadonly:!1};function u(e){return Object.hasOwn(e,`symbol`)}function d(e,t,n,r){let a=e.getTypeChecker();function o(t){let i=a.getTypeArguments(t);return i.length===0?l.Readonly:i.some(t=>p(e,t,n,r)===l.Mutable)?l.Mutable:l.Readonly}return a.isArrayType(t)?i.ESLintUtils.nullThrows(t.getSymbol(),i.ESLintUtils.NullThrowsReasons.MissingToken(`symbol`,`array type`)).getEscapedName()===`Array`?l.Mutable:o(t):a.isTupleType(t)?t.target.readonly?o(t):l.Mutable:l.UnknownType}function f(e,t,n,r){let c=e.getTypeChecker();function d(i){let a=c.getIndexInfoOfType(t,i);return a?a.isReadonly?a.type===t||r.has(a.type)?l.Readonly:p(e,a.type,n,r):l.Mutable:l.UnknownType}let f=t.getProperties();if(f.length){for(let e of f){if(n.treatMethodsAsReadonly){if(e.valueDeclaration!=null&&u(e.valueDeclaration)&&a.isSymbolFlagSet(e.valueDeclaration.symbol,o.SymbolFlags.Method))continue;let t=e.getDeclarations(),n=t!=null&&t.length>0?t[t.length-1]:void 0;if(n!=null&&u(n)&&a.isSymbolFlagSet(n.symbol,o.SymbolFlags.Method))continue}if(a.isPropertyReadonlyInType(t,e.getEscapedName(),c))continue;let r=o.getNameOfDeclaration(e.valueDeclaration);if(!(r&&o.isPrivateIdentifier(r)))return l.Mutable}for(let a of f){let o=i.ESLintUtils.nullThrows((0,s.getTypeOfPropertyOfType)(c,t,a),i.ESLintUtils.NullThrowsReasons.MissingToken(`property "${a.name}"`,`type`));if(!r.has(o)&&p(e,o,n,r)===l.Mutable)return l.Mutable}}let m=d(o.IndexKind.String);if(m===l.Mutable)return m;let h=d(o.IndexKind.Number);return h===l.Mutable?h:l.Readonly}function p(e,t,n,r){let i=e.getTypeChecker();if(r.add(t),t.aliasSymbol&&n.allow){let e=t.aliasSymbol;if(n.allow.some(t=>{let n=typeof t==`string`?t:t.name;return(Array.isArray(n)?n:[n]).includes(e.getName())}))return l.Readonly}if((0,c.typeMatchesSomeSpecifier)(t,n.allow,e))return l.Readonly;if(a.isUnionType(t))return a.unionConstituents(t).every(t=>r.has(t)||p(e,t,n,r)===l.Readonly)?l.Readonly:l.Mutable;if(a.isIntersectionType(t)){if(t.types.some(e=>i.isArrayType(e)||i.isTupleType(e)))return t.types.every(t=>r.has(t)||p(e,t,n,r)===l.Readonly)?l.Readonly:l.Mutable;let a=f(e,t,n,r);if(a!==l.UnknownType)return a}if(a.isConditionalType(t))return[t.root.node.trueType,t.root.node.falseType].map(i.getTypeFromTypeNode).every(t=>r.has(t)||p(e,t,n,r)===l.Readonly)?l.Readonly:l.Mutable;if(!a.isObjectType(t)||t.getCallSignatures().length>0&&t.getProperties().length===0)return l.Readonly;let o=d(e,t,n,r);if(o!==l.UnknownType)return o;let s=f(e,t,n,r);if(s!==l.UnknownType)return s;throw Error(`Unhandled type`)}function m(t,n,r=e.readonlynessOptionsDefaults){return p(t,n,r,new Set)===l.Readonly}})),l7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.isNullableType=u,e.isTypeArrayTypeOrUnionOfArrayTypes=d,e.isTypeNeverType=f,e.isTypeUnknownType=p,e.isTypeReferenceType=g,e.isTypeAnyType=_,e.isTypeAnyArrayType=v,e.isTypeUnknownArrayType=y,e.typeIsOrHasBaseType=b,e.isTypeBigIntLiteralType=x,e.isTypeTemplateLiteralType=S;let a=i(y2()),o=r(g8()),s=r(U6()),c=jEe(),l=(0,a.default)(`typescript-eslint:type-utils:predicates`);function u(e){return(0,c.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown|s.TypeFlags.Null|s.TypeFlags.Undefined|s.TypeFlags.Void)}function d(e,t){for(let n of o.unionConstituents(e))if(!t.isArrayType(n))return!1;return!0}function f(e){return(0,c.isTypeFlagSet)(e,s.TypeFlags.Never)}function p(e){return(0,c.isTypeFlagSet)(e,s.TypeFlags.Unknown)}let m=s.TypeFlags.Undefined|s.TypeFlags.Null,h=s.TypeFlags.Any|m|s.TypeFlags.Never|s.TypeFlags.Object|s.TypeFlags.Union|s.TypeFlags.Intersection;function g(e){return(e.flags&h)===0?!1:(e.objectFlags&s.ObjectFlags.Reference)!==0}function _(e){return(0,c.isTypeFlagSet)(e,s.TypeFlags.Any)?(e.intrinsicName===`error`&&l(`Found an "error" any type`),!0):!1}function v(e,t){return t.isArrayType(e)&&_(t.getTypeArguments(e)[0])}function y(e,t){return t.isArrayType(e)&&p(t.getTypeArguments(e)[0])}function b(e,t){let n=t.getSymbol();if(!e.getSymbol()||!n)return!1;let r=[e],i=e.getBaseTypes();i&&r.push(...i);for(let e of r)if(e.getSymbol()?.name===n.name)return!0;return!1}function x(e){return(0,c.isTypeFlagSet)(e,s.TypeFlags.BigIntLiteral)}function S(e){return(0,c.isTypeFlagSet)(e,s.TypeFlags.TemplateLiteral)}})),u7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isUnsafeAssignment=s;let i=P8(),a=r(g8()),o=l7();function s(e,t,n,r){return c(e,t,n,r,new Map)}function c(e,t,n,r,s){if((0,o.isTypeAnyType)(e)){if((0,o.isTypeUnknownType)(t))return!1;if(!(0,o.isTypeAnyType)(t))return{receiver:t,sender:e}}let l=s.get(e);if(l){if(l.has(t))return!1;l.add(t)}else s.set(e,new Set([t]));if(a.isTypeReference(e)&&a.isTypeReference(t)){if(e.target!==t.target||r?.type===i.AST_NODE_TYPES.NewExpression&&r.callee.type===i.AST_NODE_TYPES.Identifier&&r.callee.name===`Map`&&r.arguments.length===0&&r.typeArguments==null)return!1;let a=e.typeArguments??[],o=t.typeArguments??[];for(let i=0;i<a.length;i+=1){let l=a[i],u=o[i];if(c(l,u,n,r,s))return{receiver:t,sender:e}}return!1}return!1}})),HEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.requiresQuoting=a;let i=r(U6());function a(e,t=i.ScriptTarget.ESNext){if(e.length===0||!i.isIdentifierStart(e.charCodeAt(0),t))return!0;for(let n=1;n<e.length;n+=1)if(!i.isIdentifierPart(e.charCodeAt(n),t))return!0;return!1}})),UEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnyType=void 0,e.discriminateAnyType=s;let i=r(g8()),a=l7();var o;(function(e){e[e.Any=0]=`Any`,e[e.PromiseAny=1]=`PromiseAny`,e[e.AnyArray=2]=`AnyArray`,e[e.Safe=3]=`Safe`})(o||(e.AnyType=o={}));function s(e,t,n,r){return c(e,t,n,r,new Set)}function c(e,t,n,r,s){if(s.has(e))return o.Safe;if(s.add(e),(0,a.isTypeAnyType)(e))return o.Any;if((0,a.isTypeAnyArrayType)(e,t))return o.AnyArray;for(let a of i.typeConstituents(e))if(i.isThenableType(t,r,a)){let e=t.getAwaitedType(a);if(e&&c(e,t,n,r,s)===o.Any)return o.PromiseAny}return o.Safe}})),d7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.typescriptVersionIsAtLeast=e.getModifiers=e.getDecorators=void 0,n(AEe(),e),n(MEe(),e),n(a7(),e),n(NEe(),e),n(PEe(),e),n(FEe(),e),n(IEe(),e),n(kEe(),e),n(LEe(),e),n(VEe(),e),n(u7(),e),n(l7(),e),n(REe(),e),n(HEe(),e),n(jEe(),e),n(c7(),e),n(UEe(),e);var r=O8();Object.defineProperty(e,`getDecorators`,{enumerable:!0,get:function(){return r.getDecorators}}),Object.defineProperty(e,`getModifiers`,{enumerable:!0,get:function(){return r.getModifiers}}),Object.defineProperty(e,`typescriptVersionIsAtLeast`,{enumerable:!0,get:function(){return r.typescriptVersionIsAtLeast}})})),f7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isStaticMemberAccessOfValue=e.MemberNameType=void 0,e.isDefinitionFile=l,e.upperCaseFirst=u,e.arrayGroupByToMap=d,e.arraysAreEqual=f,e.findFirstResult=p,e.getNameFromIndexSignature=m,e.getNameFromMember=g,e.getEnumNames=_,e.formatWordList=v,e.findLastIndex=y,e.typeNodeRequiresParentheses=b,e.isRestParameterDeclaration=x,e.isParenlessArrowFunction=S,e.getStaticMemberAccessValue=C;let i=d7(),a=P8(),o=r(U6()),s=$5(),c=[o.Extension.Dts,o.Extension.Dcts,o.Extension.Dmts];function l(e){let t=e.toLowerCase();for(let e of c)if(t.endsWith(e))return!0;return/\.d\.(ts|cts|mts|.*\.ts)$/.test(t)}function u(e){return e[0].toUpperCase()+e.slice(1)}function d(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i?i.push(r):n.set(e,[r])}return n}function f(e,t,n){return e===t||e!=null&&e.length===t?.length&&e.every((e,r)=>n(e,t[r]))}function p(e,t){for(let n of e){let e=t(n);if(e!==void 0)return e}}function m(e){let t=e.parameters.find(e=>e.type===a.AST_NODE_TYPES.Identifier);return t?t.name:`(index signature)`}var h;(function(e){e[e.Private=1]=`Private`,e[e.Quoted=2]=`Quoted`,e[e.Normal=3]=`Normal`,e[e.Expression=4]=`Expression`})(h||(e.MemberNameType=h={}));function g(e,t){if(e.key.type===a.AST_NODE_TYPES.Identifier)return{name:e.key.name,type:h.Normal};if(e.key.type===a.AST_NODE_TYPES.PrivateIdentifier)return{name:`#${e.key.name}`,type:h.Private};if(e.key.type===a.AST_NODE_TYPES.Literal){let t=`${e.key.value}`;return(0,i.requiresQuoting)(t)?{name:`"${t}"`,type:h.Quoted}:{name:t,type:h.Normal}}return{name:t.text.slice(...e.key.range),type:h.Expression}}function _(e){return Object.keys(e).filter(e=>isNaN(Number(e)))}function v(e){return e.length?e.length===1?e[0]:[e.slice(0,-1).join(`, `),e.slice(-1)[0]].join(` and `):``}function y(e,t){let n=e.length-1;for(;n>=0;){if(t(e[n]))return n;n--}return-1}function b(e,t){return e.type===a.AST_NODE_TYPES.TSFunctionType||e.type===a.AST_NODE_TYPES.TSConstructorType||e.type===a.AST_NODE_TYPES.TSConditionalType||e.type===a.AST_NODE_TYPES.TSUnionType&&t.startsWith(`|`)||e.type===a.AST_NODE_TYPES.TSIntersectionType&&t.startsWith(`&`)}function x(e){return o.isParameter(e)&&e.dotDotDotToken!=null}function S(e,t){return e.params.length===1&&!(0,s.isParenthesized)(e.params[0],t)}function C(e,{sourceCode:t}){let n=e.type===a.AST_NODE_TYPES.MemberExpression?e.property:e.key,{type:r}=n;if(!e.computed&&(r===a.AST_NODE_TYPES.Identifier||r===a.AST_NODE_TYPES.PrivateIdentifier))return n.name;let i=(0,s.getStaticValue)(n,t.getScope(e));if(!i)return;let{value:o}=i;return typeof o==`symbol`?o:String(o)}e.isStaticMemberAccessOfValue=(e,t,...n)=>n.includes(C(e,t))})),WEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasOverloadSignatures=r;let t=P8(),n=f7();function r(e,n){if(e.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration)return e.parent.parent.body.some(e=>e.type===t.AST_NODE_TYPES.ExportDefaultDeclaration&&e.declaration.type===t.AST_NODE_TYPES.TSDeclareFunction);if(e.parent.type===t.AST_NODE_TYPES.ExportNamedDeclaration)return e.parent.parent.body.some(r=>r.type===t.AST_NODE_TYPES.ExportNamedDeclaration&&r.declaration?.type===t.AST_NODE_TYPES.TSDeclareFunction&&i(r.declaration,n)===i(e,n));let r=i(e,n);return e.parent.body.some(e=>(e.type===t.AST_NODE_TYPES.TSDeclareFunction||e.type===t.AST_NODE_TYPES.MethodDefinition&&e.value.body==null)&&r===i(e,n))}function i(e,r){return e.type===t.AST_NODE_TYPES.FunctionDeclaration||e.type===t.AST_NODE_TYPES.TSDeclareFunction?e.id.name:(0,n.getStaticMemberAccessValue)(e,r)}})),GEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isArrayMethodCallWithPredicate=l;let i=d7(),a=P8(),o=r(g8()),s=f7(),c=new Set([`every`,`filter`,`find`,`findIndex`,`findLast`,`findLastIndex`,`some`]);function l(e,t,n){if(n.callee.type!==a.AST_NODE_TYPES.MemberExpression)return!1;let r=(0,s.getStaticMemberAccessValue)(n.callee,e);if(!c.has(r))return!1;let l=t.program.getTypeChecker(),u=(0,i.getConstrainedTypeAtLocation)(t,n.callee.object);return o.unionConstituents(u).flatMap(e=>o.intersectionConstituents(e)).some(e=>l.isArrayType(e)||l.isTupleType(e))}})),KEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isAssignee=n;let t=P8();function n(e){let r=e.parent;return r?!!(r.type===t.AST_NODE_TYPES.AssignmentExpression&&r.left===e||r.type===t.AST_NODE_TYPES.UnaryExpression&&r.operator===`delete`&&r.argument===e||r.type===t.AST_NODE_TYPES.UpdateExpression&&r.argument===e||r.type===t.AST_NODE_TYPES.ArrayPattern||r.type===t.AST_NODE_TYPES.RestElement||r.type===t.AST_NODE_TYPES.Property&&r.value===e&&r.parent.type===t.AST_NODE_TYPES.ObjectExpression&&n(r.parent)||(r.type===t.AST_NODE_TYPES.TSNonNullExpression||r.type===t.AST_NODE_TYPES.TSAsExpression||r.type===t.AST_NODE_TYPES.TSTypeAssertion||r.type===t.AST_NODE_TYPES.TSSatisfiesExpression)&&n(r)):!1}})),p7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isNodeEqual=n;let t=P8();function n(e,r){return e.type===r.type?e.type===t.AST_NODE_TYPES.ThisExpression&&r.type===t.AST_NODE_TYPES.ThisExpression?!0:e.type===t.AST_NODE_TYPES.Literal&&r.type===t.AST_NODE_TYPES.Literal?e.value===r.value:e.type===t.AST_NODE_TYPES.Identifier&&r.type===t.AST_NODE_TYPES.Identifier?e.name===r.name:e.type===t.AST_NODE_TYPES.MemberExpression&&r.type===t.AST_NODE_TYPES.MemberExpression?n(e.property,r.property)&&n(e.object,r.object):!1:!1}})),qEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isStartOfExpressionStatement=n;let t=P8();function n(e){let n=e.range[0],r=e;for(;(r=r.parent)&&r.range[0]===n;)if(r.type===t.AST_NODE_TYPES.ExpressionStatement)return!0;return!1}})),JEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isUndefinedIdentifier=n;let t=P8();function n(e){return e.type===t.AST_NODE_TYPES.Identifier&&e.name===`undefined`}})),YEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.needsPrecedingSemicolon=l;let t=P8(),n=j8(),r=new Set([t.AST_NODE_TYPES.BreakStatement,t.AST_NODE_TYPES.ContinueStatement]),i=new Set([t.AST_NODE_TYPES.ExportAllDeclaration,t.AST_NODE_TYPES.ExportNamedDeclaration,t.AST_NODE_TYPES.ImportDeclaration]),a=new Set([t.AST_NODE_TYPES.Identifier,t.AST_TOKEN_TYPES.Keyword]),o={__proto__:null,break:t.AST_NODE_TYPES.BreakStatement,continue:t.AST_NODE_TYPES.ContinueStatement,debugger:t.AST_NODE_TYPES.DebuggerStatement,do:t.AST_NODE_TYPES.DoWhileStatement,else:t.AST_NODE_TYPES.IfStatement,return:t.AST_NODE_TYPES.ReturnStatement,yield:t.AST_NODE_TYPES.YieldExpression},s=new Set([`--`,`;`,`:`,`{`,`++`,`=>`]),c=new Set([t.AST_NODE_TYPES.DoWhileStatement,t.AST_NODE_TYPES.ForInStatement,t.AST_NODE_TYPES.ForOfStatement,t.AST_NODE_TYPES.ForStatement,t.AST_NODE_TYPES.IfStatement,t.AST_NODE_TYPES.WhileStatement,t.AST_NODE_TYPES.WithStatement]);function l(e,l){let u=e.getTokenBefore(l);if(!u||u.type===t.AST_TOKEN_TYPES.Punctuator&&s.has(u.value))return!1;let d=e.getNodeByRangeIndex(u.range[0]);if(!d)return!1;if((0,n.isClosingParenToken)(u))return!c.has(d.type);if((0,n.isClosingBraceToken)(u))return d.type===t.AST_NODE_TYPES.BlockStatement&&d.parent.type===t.AST_NODE_TYPES.FunctionExpression&&d.parent.parent.type!==t.AST_NODE_TYPES.MethodDefinition||d.type===t.AST_NODE_TYPES.ClassBody&&d.parent.type===t.AST_NODE_TYPES.ClassExpression||d.type===t.AST_NODE_TYPES.ObjectExpression;if(!d.parent)return!1;if(a.has(u.type)){if(r.has(d.parent.type))return!1;let e=o[u.value];return d.type!==e}return u.type===t.AST_TOKEN_TYPES.String?!i.has(d.parent.type):!0}})),XEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.objectForEachKey=t,e.objectMapKey=n,e.objectReduceKey=r;function t(e,t){let n=Object.keys(e);for(let e of n)t(e)}function n(e,n){let r=[];return t(e,e=>{r.push(n(e))}),r}function r(e,n,r){let i=r;return t(e,e=>{i=n(i,e)}),i}})),m7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.getConstraintInfo=a;let i=r(g8());function a(e,t){return i.isTypeParameter(t)?{constraintType:e.getBaseConstraintOfType(t),isTypeParameter:!0}:{constraintType:t,isTypeParameter:!1}}})),ZEe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Awaitable=void 0,e.needsToBeAwaited=c;let i=d7(),a=r(g8()),o=m7();var s;(function(e){e[e.Always=0]=`Always`,e[e.Never=1]=`Never`,e[e.May=2]=`May`})(s||(e.Awaitable=s={}));function c(e,t,n){let{constraintType:r,isTypeParameter:c}=(0,o.getConstraintInfo)(e,n);return c&&r==null||(0,i.isTypeAnyType)(r)||(0,i.isTypeUnknownType)(r)?s.May:a.isThenableType(e,t,r)?s.Always:s.Never}})),QEe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isReferenceToGlobalFunction=t;function t(e,t,n){return!n.getScope(t).references.find(t=>t.identifier.name===e)?.resolved?.defs.length}})),$Ee=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),eDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getValueOfLiteralType=void 0;let t=e=>typeof e==`object`,n=e=>BigInt((e.negative?`-`:``)+e.base10Value);e.getValueOfLiteralType=e=>t(e.value)?n(e.value):e.value})),tDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isHigherPrecedenceThanAwait=o;let i=r(U6()),a=CEe();function o(e){let t=i.isBinaryExpression(e)?e.operatorToken.kind:i.SyntaxKind.Unknown;return(0,a.getOperatorPrecedence)(e.kind,t)>(0,a.getOperatorPrecedence)(i.SyntaxKind.AwaitExpression,i.SyntaxKind.Unknown)}})),nDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipChainExpression=n;let t=P8();function n(e){return e.type===t.AST_NODE_TYPES.ChainExpression?e.expression:e}})),h7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.isPossiblyTruthy=e.isPossiblyFalsy=void 0;let i=r(g8()),a=r(U6()),o=eDe(),s=e=>i.isTrueLiteralType(e)||e.isLiteral()&&!!(0,o.getValueOfLiteralType)(e);e.isPossiblyFalsy=e=>i.unionConstituents(e).flatMap(e=>i.intersectionConstituents(e)).filter(e=>!s(e)).some(e=>i.isTypeFlagSet(e,a.TypeFlags.PossiblyFalsy)),e.isPossiblyTruthy=e=>i.unionConstituents(e).map(e=>i.intersectionConstituents(e)).some(e=>e.every(e=>!i.isFalsyType(e)))})),g7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.walkStatements=n;let t=P8();function*n(e){for(let r of e)switch(r.type){case t.AST_NODE_TYPES.BlockStatement:yield*n(r.body);continue;case t.AST_NODE_TYPES.SwitchStatement:for(let e of r.cases)yield*n(e.consequent);continue;case t.AST_NODE_TYPES.IfStatement:yield*n([r.consequent]),r.alternate&&(yield*n([r.alternate]));continue;case t.AST_NODE_TYPES.WhileStatement:case t.AST_NODE_TYPES.DoWhileStatement:case t.AST_NODE_TYPES.ForStatement:case t.AST_NODE_TYPES.ForInStatement:case t.AST_NODE_TYPES.ForOfStatement:case t.AST_NODE_TYPES.WithStatement:case t.AST_NODE_TYPES.LabeledStatement:yield*n([r.body]);continue;case t.AST_NODE_TYPES.TryStatement:yield*n([r.block]),r.handler&&(yield*n([r.handler.body])),r.finalizer&&(yield*n([r.finalizer]));continue;default:yield r;continue}}})),_7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.NullThrowsReasons=e.nullThrows=e.isObjectNotArray=e.getParserServices=e.deepMerge=e.applyDefault=void 0;let r=P8();n($5(),e),n(e7(),e),n(xEe(),e),n(t7(),e),n(n7(),e),n(r7(),e),n(SEe(),e),n(CEe(),e),n(i7(),e),n(TEe(),e),n(EEe(),e),n(DEe(),e),n(OEe(),e),n(WEe(),e),n(GEe(),e),n(KEe(),e),n(p7(),e),n(wEe(),e),n(qEe(),e),n(JEe(),e),n(f7(),e),n(YEe(),e),n(XEe(),e),n(ZEe(),e),n(QEe(),e),n($Ee(),e),n(m7(),e),n(eDe(),e),n(tDe(),e),n(nDe(),e),n(h7(),e),n(g7(),e),n(d7(),e),e.applyDefault=r.ESLintUtils.applyDefault,e.deepMerge=r.ESLintUtils.deepMerge,e.getParserServices=r.ESLintUtils.getParserServices,e.isObjectNotArray=r.ESLintUtils.isObjectNotArray,e.nullThrows=r.ESLintUtils.nullThrows,e.NullThrowsReasons=r.ESLintUtils.NullThrowsReasons})),rDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`adjacent-overload-signatures`,meta:{type:`suggestion`,docs:{description:`Require that function overload signatures be consecutive`,recommended:`stylistic`},messages:{adjacentSignature:`All {{name}} signatures should be adjacent.`},schema:[]},defaultOptions:[],create(e){function r(i){switch(i.type){case t.AST_NODE_TYPES.ExportDefaultDeclaration:case t.AST_NODE_TYPES.ExportNamedDeclaration:return i.declaration?r(i.declaration):null;case t.AST_NODE_TYPES.TSDeclareFunction:case t.AST_NODE_TYPES.FunctionDeclaration:{let e=i.id?.name??null;return e==null?null:{name:e,type:n.MemberNameType.Normal,callSignature:!1}}case t.AST_NODE_TYPES.TSMethodSignature:case t.AST_NODE_TYPES.MethodDefinition:return{...(0,n.getNameFromMember)(i,e.sourceCode),callSignature:!1,static:i.static};case t.AST_NODE_TYPES.TSCallSignatureDeclaration:return{name:`call`,type:n.MemberNameType.Normal,callSignature:!0};case t.AST_NODE_TYPES.TSConstructSignatureDeclaration:return{name:`new`,type:n.MemberNameType.Normal,callSignature:!1}}return null}function i(e,t){return!!t&&e.name===t.name&&e.static===t.static&&e.callSignature===t.callSignature&&e.type===t.type}function a(e){switch(e.type){case t.AST_NODE_TYPES.ClassBody:case t.AST_NODE_TYPES.Program:case t.AST_NODE_TYPES.TSModuleBlock:case t.AST_NODE_TYPES.TSInterfaceBody:case t.AST_NODE_TYPES.BlockStatement:return e.body;case t.AST_NODE_TYPES.TSTypeLiteral:return e.members}}function o(t){let n=a(t),o=null,s=[];n.forEach(t=>{let n=r(t);if(n==null){o=null;return}let a=s.findIndex(e=>i(n,e));a>-1&&!i(n,o)?e.report({node:t,messageId:`adjacentSignature`,data:{name:`${n.static?`static `:``}${n.name}`}}):a===-1&&s.push(n),o=n})}return{BlockStatement:o,ClassBody:o,Program:o,TSInterfaceBody:o,TSModuleBlock:o,TSTypeLiteral:o}}})})),iDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();function r(e){switch(e.type){case t.AST_NODE_TYPES.Identifier:case t.AST_NODE_TYPES.TSAnyKeyword:case t.AST_NODE_TYPES.TSBooleanKeyword:case t.AST_NODE_TYPES.TSNeverKeyword:case t.AST_NODE_TYPES.TSNumberKeyword:case t.AST_NODE_TYPES.TSBigIntKeyword:case t.AST_NODE_TYPES.TSObjectKeyword:case t.AST_NODE_TYPES.TSStringKeyword:case t.AST_NODE_TYPES.TSSymbolKeyword:case t.AST_NODE_TYPES.TSUnknownKeyword:case t.AST_NODE_TYPES.TSVoidKeyword:case t.AST_NODE_TYPES.TSNullKeyword:case t.AST_NODE_TYPES.TSArrayType:case t.AST_NODE_TYPES.TSUndefinedKeyword:case t.AST_NODE_TYPES.TSThisType:case t.AST_NODE_TYPES.TSQualifiedName:return!0;case t.AST_NODE_TYPES.TSTypeReference:if(e.typeName.type===t.AST_NODE_TYPES.Identifier&&e.typeName.name===`Array`){if(!e.typeArguments)return!0;if(e.typeArguments.params.length===1)return r(e.typeArguments.params[0])}else return e.typeArguments?!1:r(e.typeName);return!1;default:return!1}}function i(e){switch(e.type){case t.AST_NODE_TYPES.TSTypeReference:return i(e.typeName);case t.AST_NODE_TYPES.TSUnionType:case t.AST_NODE_TYPES.TSFunctionType:case t.AST_NODE_TYPES.TSIntersectionType:case t.AST_NODE_TYPES.TSTypeOperator:case t.AST_NODE_TYPES.TSInferType:case t.AST_NODE_TYPES.TSConstructorType:case t.AST_NODE_TYPES.TSConditionalType:return!0;case t.AST_NODE_TYPES.Identifier:return e.name===`ReadonlyArray`;default:return!1}}e.default=(0,n.createRule)({name:`array-type`,meta:{type:`suggestion`,docs:{description:"Require consistently using either `T[]` or `Array<T>` for arrays",recommended:`stylistic`},fixable:`code`,messages:{errorStringArray:`Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}[]' instead.`,errorStringArrayReadonly:`Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}' instead.`,errorStringArraySimple:`Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}[]' instead.`,errorStringArraySimpleReadonly:`Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}' instead.`,errorStringGeneric:`Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden. Use '{{className}}<{{type}}>' instead.`,errorStringGenericSimple:`Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden for non-simple types. Use '{{className}}<{{type}}>' instead.`},schema:[{type:`object`,$defs:{arrayOption:{type:`string`,enum:[`array`,`generic`,`array-simple`]}},additionalProperties:!1,properties:{default:{$ref:`#/items/0/$defs/arrayOption`,description:`The array type expected for mutable cases.`},readonly:{$ref:`#/items/0/$defs/arrayOption`,description:"The array type expected for readonly cases. If omitted, the value for `default` will be used."}}}]},defaultOptions:[{default:`array`}],create(e,[a]){let o=a.default,s=a.readonly??o;function c(t){return r(t)?e.sourceCode.getText(t):`T`}return{TSArrayType(n){let i=n.parent.type===t.AST_NODE_TYPES.TSTypeOperator&&n.parent.operator===`readonly`,a=i?s:o;if(a===`array`||a===`array-simple`&&r(n.elementType))return;let l=a===`generic`?`errorStringGeneric`:`errorStringGenericSimple`,u=i?n.parent:n;e.report({node:u,messageId:l,data:{type:c(n.elementType),className:i?`ReadonlyArray`:`Array`,readonlyPrefix:i?`readonly `:``},fix(e){let t=n.elementType,r=i?`ReadonlyArray`:`Array`;return[e.replaceTextRange([u.range[0],t.range[0]],`${r}<`),e.replaceTextRange([t.range[1],u.range[1]],`>`)]}})},TSTypeReference(a){if(a.typeName.type!==t.AST_NODE_TYPES.Identifier||!(a.typeName.name===`Array`||a.typeName.name===`ReadonlyArray`||a.typeName.name===`Readonly`)||a.typeName.name===`Readonly`&&a.typeArguments?.params[0].type!==t.AST_NODE_TYPES.TSArrayType)return;for(let t=e.sourceCode.getScope(a);t.upper;t=t.upper)if(t.set.has(a.typeName.name))return;let l=a.typeName.name===`Readonly`&&a.typeArguments?.params[0].type===t.AST_NODE_TYPES.TSArrayType,u=a.typeName.name===`ReadonlyArray`||l,d=u?s:o;if(d===`generic`)return;let f=u?`readonly `:``,p=a.typeArguments?.params,m=d===`array`?l?`errorStringArrayReadonly`:`errorStringArray`:u&&a.typeName.name!==`ReadonlyArray`?`errorStringArraySimpleReadonly`:`errorStringArraySimple`;if(!p||p.length!==1||d===`array-simple`&&!r(p[0]))return;let h=p[0],g=i(h),_=f&&a.parent.type===t.AST_NODE_TYPES.TSArrayType&&!(0,n.isParenthesized)(a.parent.elementType,e.sourceCode),v=`${_?`(`:``}${f}${g?`(`:``}`,y=`${g?`)`:``}${l?``:`[]`}${_?`)`:``}`;e.report({node:a,messageId:m,data:{type:c(h),className:u?a.typeName.name:`Array`,readonlyPrefix:f},fix(e){return[e.replaceTextRange([a.range[0],h.range[0]],v),e.replaceTextRange([h.range[1],a.range[1]],y)]}})}}}})})),aDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getForStatementHeadLoc=n;let t=c1();function n(e,n){let r=(0,t.nullThrows)(e.getTokenBefore(n.body,e=>e.value===`)`),`for statement must have a closing parenthesis.`);return{end:structuredClone(r.loc.end),start:structuredClone(n.loc.start)}}})),oDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromiseAggregatorMethod=a;let t=d7(),n=P8(),r=f7(),i=new Set([`all`,`allSettled`,`race`,`any`]);function a(e,a,o){if(o.callee.type!==n.AST_NODE_TYPES.MemberExpression)return!1;let s=(0,r.getStaticMemberAccessValue)(o.callee,e);return i.has(s)?(0,t.isPromiseConstructorLike)(a.program,(0,t.getConstrainedTypeAtLocation)(a,o.callee.object)):!1}})),sDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7(),s=aDe(),c=oDe();e.default=(0,o.createRule)({name:`await-thenable`,meta:{type:`problem`,docs:{description:`Disallow awaiting a value that is not a Thenable`,recommended:`recommended`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{await:'Unexpected `await` of a non-Promise (non-"Thenable") value.',awaitUsingOfNonAsyncDisposable:"Unexpected `await using` of a value that is not async disposable.",convertToOrdinaryFor:"Convert to an ordinary `for...of` loop.",forAwaitOfNonAsyncIterable:"Unexpected `for await...of` of a value that is not async iterable.",invalidPromiseAggregatorInput:`Unexpected iterable of non-Promise (non-"Thenable") values passed to promise aggregator.`,removeAwait:"Remove unnecessary `await`."},schema:[]},defaultOptions:[],create(e){let t=(0,o.getParserServices)(e),n=t.program.getTypeChecker();return{AwaitExpression(r){let i=r.argument,a=t.getTypeAtLocation(i),s=t.esTreeNodeToTSNodeMap.get(i);(0,o.needsToBeAwaited)(n,s,a)===o.Awaitable.Never&&e.report({node:r,messageId:`await`,suggest:[{messageId:`removeAwait`,fix(t){let n=(0,o.nullThrows)(e.sourceCode.getFirstToken(r,o.isAwaitKeyword),o.NullThrowsReasons.MissingToken(`await`,`await expression`));return t.remove(n)}}]})},CallExpression(r){if(!(0,c.isPromiseAggregatorMethod)(e,t,r))return;let a=r.arguments.at(0);if(a==null)return;if(a.type===i.TSESTree.AST_NODE_TYPES.ArrayExpression){for(let r of a.elements)r!=null&&d((0,o.getConstrainedTypeAtLocation)(t,r),t.esTreeNodeToTSNodeMap.get(r),n)&&e.report({node:r,messageId:`invalidPromiseAggregatorInput`});return}let s=(0,o.getConstrainedTypeAtLocation)(t,a);l(n,t.esTreeNodeToTSNodeMap.get(a),s)&&e.report({node:a,messageId:`invalidPromiseAggregatorInput`})},"ForOfStatement[await=true]"(r){let i=t.getTypeAtLocation(r.right);(0,o.isTypeAnyType)(i)||a.unionConstituents(i).some(e=>a.getWellKnownSymbolPropertyOfType(e,`asyncIterator`,n)!=null)||e.report({loc:(0,s.getForStatementHeadLoc)(e.sourceCode,r),messageId:`forAwaitOfNonAsyncIterable`,suggest:[{messageId:`convertToOrdinaryFor`,fix(t){let n=(0,o.nullThrows)(e.sourceCode.getFirstToken(r,o.isAwaitKeyword),o.NullThrowsReasons.MissingToken(`await`,`for await loop`));return t.remove(n)}}]})},'VariableDeclaration[kind="await using"]'(r){for(let i of r.declarations){let s=i.init;if(s==null)continue;let c=t.getTypeAtLocation(s);(0,o.isTypeAnyType)(c)||a.unionConstituents(c).some(e=>a.getWellKnownSymbolPropertyOfType(e,`asyncDispose`,n)!=null)||e.report({node:s,messageId:`awaitUsingOfNonAsyncDisposable`,...(0,o.getFixOrSuggest)({fixOrSuggest:r.declarations.length===1?`suggest`:`none`,suggestion:{messageId:`removeAwait`,fix(t){let n=(0,o.nullThrows)(e.sourceCode.getFirstToken(r,o.isAwaitKeyword),o.NullThrowsReasons.MissingToken(`await`,`await using`));return t.remove(n)}}})})}}}}});function l(e,t,n){if(!p(n,e))return!1;for(let r of a.unionConstituents(n)){let n=u(r,e);if(n!=null){for(let r of n)if(f(r,t,e))return!0}}return!1}function u(e,t){return t.isTupleType(e)?t.getTypeArguments(e):t.isArrayLikeType(e)?[(0,o.nullThrows)(e.getNumberIndexType(),`number index type should exist on an array-like`)]:a.isTypeReference(e)?t.getTypeArguments(e).slice(0,1):null}function d(e,t,n){return a.unionConstituents(e).every(e=>(0,o.needsToBeAwaited)(n,t,e)===o.Awaitable.Never)}function f(e,t,n){return a.unionConstituents(e).some(e=>(0,o.needsToBeAwaited)(n,t,e)===o.Awaitable.Never)}function p(e,t){return a.unionConstituents(e).every(e=>!!a.getWellKnownSymbolPropertyOfType(e,`iterator`,t))}})),v7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`ban-ts-comment`,meta:{type:`problem`,docs:{description:"Disallow `@ts-<directive>` comments or require descriptions after directives",recommended:{recommended:!0,strict:[{minimumDescriptionLength:10}]}},hasSuggestions:!0,messages:{replaceTsIgnoreWithTsExpectError:`Replace "@ts-ignore" with "@ts-expect-error".`,tsDirectiveComment:`Do not use "@ts-{{directive}}" because it alters compilation errors.`,tsDirectiveCommentDescriptionNotMatchPattern:`The description for the "@ts-{{directive}}" directive must match the {{format}} format.`,tsDirectiveCommentRequiresDescription:`Include a description after the "@ts-{{directive}}" directive to explain why the @ts-{{directive}} is necessary. The description must be {{minimumDescriptionLength}} characters or longer.`,tsIgnoreInsteadOfExpectError:`Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free.`},schema:[{type:`object`,$defs:{directiveConfigSchema:{oneOf:[{type:`boolean`,default:!0},{type:`string`,enum:[`allow-with-description`]},{type:`object`,additionalProperties:!1,properties:{descriptionFormat:{type:`string`}}}]}},additionalProperties:!1,properties:{minimumDescriptionLength:{type:`number`,description:"A minimum character length for descriptions when `allow-with-description` is enabled."},"ts-check":{$ref:`#/items/0/$defs/directiveConfigSchema`,description:`Whether allow ts-check directives, and with which restrictions.`},"ts-expect-error":{$ref:`#/items/0/$defs/directiveConfigSchema`,description:`Whether and when expect-error directives, and with which restrictions.`},"ts-ignore":{$ref:`#/items/0/$defs/directiveConfigSchema`,description:`Whether allow ts-ignore directives, and with which restrictions.`},"ts-nocheck":{$ref:`#/items/0/$defs/directiveConfigSchema`,description:`Whether allow ts-nocheck directives, and with which restrictions.`}}}]},defaultOptions:[{minimumDescriptionLength:3,"ts-check":!1,"ts-expect-error":`allow-with-description`,"ts-ignore":!0,"ts-nocheck":!0}],create(e,[r]){let i=/^\/\/\/?\s*@ts-(?<directive>check|nocheck)(?<description>.*)$/,a=/^\/*\s*@ts-(?<directive>expect-error|ignore)(?<description>.*)/,o=/^\s*(?:\/|\*)*\s*@ts-(?<directive>expect-error|ignore)(?<description>.*)/,s=new Map;for(let e of[`ts-expect-error`,`ts-ignore`,`ts-nocheck`,`ts-check`]){let t=r[e];typeof t==`object`&&t.descriptionFormat&&s.set(e,new RegExp(t.descriptionFormat))}function c(e,t){let r=e.exec(t);if(!r)return null;let{description:i,directive:a}=(0,n.nullThrows)(r.groups,`RegExp should contain groups`);return{description:(0,n.nullThrows)(i,`RegExp should contain "description" group`),directive:(0,n.nullThrows)(a,`RegExp should contain "directive" group`)}}function l(e){if(e.type===t.AST_TOKEN_TYPES.Line)return c(i,`//${e.value}`)||c(a,e.value);let n=e.value.split(`
|
|
1085
1085
|
`);return c(o,n[n.length-1])}return{Program(i){let a=i.body.at(0);e.sourceCode.getAllComments().forEach(i=>{let o=l(i);if(!o)return;let{description:c,directive:u}=o;if(u===`nocheck`&&a&&a.loc.start.line<=i.loc.start.line)return;let d=`ts-${u}`,f=r[d];if(f===!0&&(u===`ignore`?e.report({node:i,messageId:`tsIgnoreInsteadOfExpectError`,suggest:[{messageId:`replaceTsIgnoreWithTsExpectError`,fix(e){let n=i.value.replace(/@ts-ignore/,`@ts-expect-error`);return e.replaceText(i,i.type===t.AST_TOKEN_TYPES.Line?`//${n}`:`/*${n}*/`)}}]}):e.report({node:i,messageId:`tsDirectiveComment`,data:{directive:u}})),f===`allow-with-description`||typeof f==`object`&&f.descriptionFormat){let{minimumDescriptionLength:t}=r,a=s.get(d);(0,n.getStringLength)(c.trim())<(0,n.nullThrows)(t,`Expected minimumDescriptionLength to be set`)?e.report({node:i,messageId:`tsDirectiveCommentRequiresDescription`,data:{directive:u,minimumDescriptionLength:t}}):a&&!a.test(c)&&e.report({node:i,messageId:`tsDirectiveCommentDescriptionNotMatchPattern`,data:{directive:u,format:a.source}})}})}}}})})),cDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=/^\s*tslint:(enable|disable)(?:-(line|next-line))?(:|\s|$)/,i=(e,n)=>n===t.AST_TOKEN_TYPES.Line?[`//`,e.trim()].join(` `):[`/*`,e.trim(),`*/`].join(` `);e.default=(0,n.createRule)({name:`ban-tslint-comment`,meta:{type:`suggestion`,docs:{description:"Disallow `// tslint:<rule-flag>` comments",recommended:`stylistic`},fixable:`code`,messages:{commentDetected:`tslint comment detected: "{{ text }}"`},schema:[]},defaultOptions:[],create:e=>({Program(){e.sourceCode.getAllComments().forEach(t=>{r.test(t.value)&&e.report({node:t,messageId:`commentDetected`,data:{text:i(t.value,t.type)},fix(n){let r=e.sourceCode.getIndexFromLoc({column:t.loc.start.column>0?t.loc.start.column-1:0,line:t.loc.start.line}),i=e.sourceCode.getIndexFromLoc({column:t.loc.end.column,line:t.loc.end.line});return n.removeRange([r,i+1])}})})}})})})),lDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(e,t)=>`${e.accessibility??``}${e.static?` static`:``} ${t} `.trimStart(),i=e=>{switch(e.type){case t.AST_NODE_TYPES.Literal:return!0;case t.AST_NODE_TYPES.TaggedTemplateExpression:return e.quasi.quasis.length===1;case t.AST_NODE_TYPES.TemplateLiteral:return e.quasis.length===1;default:return!1}};e.default=(0,n.createRule)({name:`class-literal-property-style`,meta:{type:`problem`,docs:{description:`Enforce that literals on classes are exposed in a consistent style`,recommended:`stylistic`},hasSuggestions:!0,messages:{preferFieldStyle:`Literals should be exposed using readonly fields.`,preferFieldStyleSuggestion:`Replace the literals with readonly fields.`,preferGetterStyle:`Literals should be exposed using getters.`,preferGetterStyleSuggestion:`Replace the literals with getters.`},schema:[{type:`string`,description:`Which literal class member syntax to prefer.`,enum:[`fields`,`getters`]}]},defaultOptions:[`fields`],create(e,[a]){let o=[];function s(){o.push({excludeSet:new Set,properties:[]})}function c(){let{excludeSet:t,properties:a}=(0,n.nullThrows)(o.pop(),`Stack should exist on class exit`);a.forEach(a=>{let{value:o}=a;if(!o||!i(o))return;let s=(0,n.getStaticMemberAccessValue)(a,e);s&&t.has(s)||e.report({node:a.key,messageId:`preferGetterStyle`,suggest:[{messageId:`preferGetterStyleSuggestion`,fix(t){let n=e.sourceCode.getText(a.key),i=``;return i+=r(a,`get`),i+=a.computed?`[${n}]`:n,i+=`() { return ${e.sourceCode.getText(o)}; }`,t.replaceText(a,i)}}]})})}function l(t){if((0,n.isAssignee)(t)){let{excludeSet:r}=o[o.length-1],i=(0,n.getStaticMemberAccessValue)(t,e);i&&r.add(i)}}return{...a===`fields`&&{MethodDefinition(a){if(a.kind!==`get`||a.override||!a.value.body||a.value.body.body.length===0)return;let[o]=a.value.body.body;if(o.type!==t.AST_NODE_TYPES.ReturnStatement)return;let{argument:s}=o;if(!s||!i(s))return;let c=(0,n.getStaticMemberAccessValue)(a,e);c&&a.parent.body.some(r=>r.type===t.AST_NODE_TYPES.MethodDefinition&&r.kind===`set`&&(0,n.isStaticMemberAccessOfValue)(r,e,c))||e.report({node:a.key,messageId:`preferFieldStyle`,suggest:[{messageId:`preferFieldStyleSuggestion`,fix(t){let n=e.sourceCode.getText(a.key),i=``;return i+=r(a,`readonly`),i+=a.computed?`[${n}]`:n,i+=` = ${e.sourceCode.getText(s)};`,t.replaceText(a,i)}}]})}},...a===`getters`&&{ClassBody:s,"ClassBody:exit":c,'MethodDefinition[kind="constructor"] ThisExpression'(e){if(e.parent.type===t.AST_NODE_TYPES.MemberExpression){let r=e.parent;for(;!(0,n.isFunction)(r);)r=r.parent;r.parent.type===t.AST_NODE_TYPES.MethodDefinition&&r.parent.kind===`constructor`&&l(e.parent)}},PropertyDefinition(e){if(!e.readonly||e.declare||e.override)return;let{properties:t}=o[o.length-1];t.push(e)}}}}})})),uDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`class-methods-use-this`,meta:{type:`suggestion`,docs:{description:"Enforce that class methods utilize `this`",extendsBaseRule:!0,requiresTypeChecking:!1},messages:{missingThis:`Expected 'this' to be used by class {{name}}.`},schema:[{type:`object`,additionalProperties:!1,properties:{enforceForClassFields:{type:`boolean`,description:"Enforces that functions used as instance field initializers utilize `this`."},exceptMethods:{type:`array`,description:`Allows specified method names to be ignored with this rule.`,items:{type:`string`}},ignoreClassesThatImplementAnInterface:{description:"Whether to ignore class members that are defined within a class that `implements` a type.",oneOf:[{type:`boolean`,description:`Ignore all classes that implement an interface`},{type:`string`,description:`Ignore only the public fields of classes that implement an interface`,enum:[`public-fields`]}]},ignoreOverrideMethods:{type:`boolean`,description:"Whether to ignore members marked with the `override` modifier."}}}]},defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreClassesThatImplementAnInterface:!1,ignoreOverrideMethods:!1}],create(e,[{enforceForClassFields:r,exceptMethods:i,ignoreClassesThatImplementAnInterface:a,ignoreOverrideMethods:o}]){let s=new Set(i),c;function l(e){c=e?.parent.type===t.AST_NODE_TYPES.ClassBody?{class:e.parent.parent,member:e,parent:c,usesThis:!1}:{class:null,member:null,parent:c,usesThis:!1}}function u(e){e.parent.type===t.AST_NODE_TYPES.MethodDefinition||e.parent.type===t.AST_NODE_TYPES.PropertyDefinition||e.parent.type===t.AST_NODE_TYPES.AccessorProperty?l(e.parent):l()}function d(){let e=c;return c=c?.parent,e}function f(e){return!e||e===`public`}function p(i){if(i.static||i.type===t.AST_NODE_TYPES.MethodDefinition&&i.kind===`constructor`||(i.type===t.AST_NODE_TYPES.PropertyDefinition||i.type===t.AST_NODE_TYPES.AccessorProperty)&&!r)return!1;if(i.computed||s.size===0)return!0;let a=i.key.type===t.AST_NODE_TYPES.PrivateIdentifier?`#`:``,o=(0,n.getStaticMemberAccessValue)(i,e);return typeof o!=`string`||!s.has(a+o)}function m(t){let r=d();r?.member==null||r.usesThis||o&&r.member.override||a===!0&&r.class.implements.length>0||a===`public-fields`&&r.class.implements.length>0&&f(r.member.accessibility)||p(r.member)&&e.report({loc:(0,n.getFunctionHeadLoc)(t,e.sourceCode),node:t,messageId:`missingThis`,data:{name:(0,n.getFunctionNameWithKind)(t)}})}return{FunctionDeclaration(){l()},"FunctionDeclaration:exit"(){d()},FunctionExpression(e){u(e)},"FunctionExpression:exit"(e){m(e)},...r?{"AccessorProperty > ArrowFunctionExpression.value"(e){u(e)},"AccessorProperty > ArrowFunctionExpression.value:exit"(e){m(e)},"PropertyDefinition > ArrowFunctionExpression.value"(e){u(e)},"PropertyDefinition > ArrowFunctionExpression.value:exit"(e){m(e)}}:{},"AccessorProperty:exit"(){d()},"AccessorProperty > *.key:exit"(){l()},"PropertyDefinition:exit"(){d()},"PropertyDefinition > *.key:exit"(){l()},StaticBlock(){l()},"StaticBlock:exit"(){d()},"ThisExpression, Super"(){c&&(c.usesThis=!0)}}}})})),y7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=new Set([`Float32Array`,`Float64Array`,`Int16Array`,`Int32Array`,`Int8Array`,`Uint16Array`,`Uint32Array`,`Uint8Array`,`Uint8ClampedArray`]);e.default=(0,n.createRule)({name:`consistent-generic-constructors`,meta:{type:`suggestion`,docs:{description:`Enforce specifying generic type arguments on type annotation or constructor name of a constructor call`,recommended:`stylistic`},fixable:`code`,messages:{preferConstructor:`The generic type arguments should be specified as part of the constructor type arguments.`,preferTypeAnnotation:`The generic type arguments should be specified as part of the type annotation.`},schema:[{type:`string`,description:`Which constructor call syntax to prefer.`,enum:[`type-annotation`,`constructor`]}]},defaultOptions:[`constructor`],create(e,[i]){return{"VariableDeclarator,PropertyDefinition,AccessorProperty,:matches(FunctionDeclaration,FunctionExpression) > AssignmentPattern"(a){function o(){switch(a.type){case t.AST_NODE_TYPES.VariableDeclarator:return[a.id,a.init];case t.AST_NODE_TYPES.PropertyDefinition:case t.AST_NODE_TYPES.AccessorProperty:return[a,a.value];case t.AST_NODE_TYPES.AssignmentPattern:return[a.left,a.right];default:throw Error(`Unhandled node type: ${a.type}`)}}function s(t){return r.has(t.name)&&(0,n.isReferenceToGlobalFunction)(t.name,t,e.sourceCode)}let[c,l]=o(),u=c.typeAnnotation?.typeAnnotation;if(!(l?.type!==t.AST_NODE_TYPES.NewExpression||l.callee.type!==t.AST_NODE_TYPES.Identifier)&&!(u&&(u.type!==t.AST_NODE_TYPES.TSTypeReference||u.typeName.type!==t.AST_NODE_TYPES.Identifier||u.typeName.name!==l.callee.name||s(u.typeName)))){if(i===`type-annotation`){if(!u&&l.typeArguments){let{callee:r,typeArguments:i}=l,o=e.sourceCode.getText(r)+e.sourceCode.getText(i);e.report({node:a,messageId:`preferTypeAnnotation`,fix(r){function s(){return a.type!==t.AST_NODE_TYPES.PropertyDefinition&&a.type!==t.AST_NODE_TYPES.AccessorProperty?c:a.computed?(0,n.nullThrows)(e.sourceCode.getTokenAfter(a.key),n.NullThrowsReasons.MissingToken(`]`,`key`)):a.key}return[r.remove(i),r.insertTextAfter(s(),`: ${o}`)]}})}return}if(!e.languageOptions.parserOptions.isolatedDeclarations&&u?.typeArguments&&!l.typeArguments){let t=e.sourceCode.getTokenAfter(l.callee)?.value===`(`,n=new Set(e.sourceCode.getCommentsInside(u.parent));e.sourceCode.getCommentsInside(u.typeArguments).forEach(e=>n.delete(e)),e.report({node:a,messageId:`preferConstructor`,*fix(r){yield r.remove(u.parent);for(let t of n)yield r.insertTextAfter(l.callee,e.sourceCode.getText(t));yield r.insertTextAfter(l.callee,e.sourceCode.getText(u.typeArguments)),t||(yield r.insertTextAfter(l.callee,`()`))}})}}}}}})})),b7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`consistent-indexed-object-style`,meta:{type:`suggestion`,docs:{description:"Require or disallow the `Record` type",recommended:`stylistic`},fixable:`code`,hasSuggestions:!0,messages:{preferIndexSignature:`An index signature is preferred over a record.`,preferIndexSignatureSuggestion:`Change into an index signature instead of a record.`,preferRecord:`A record is preferred over an index signature.`},schema:[{type:`string`,description:`Which indexed object syntax to prefer.`,enum:[`record`,`index-signature`]}]},defaultOptions:[`record`],create(e,[a]){function o(n,r,a,o,s,c=!0){if(n.length!==1)return;let[l]=n;if(l.type!==t.AST_NODE_TYPES.TSIndexSignature)return;let u=l.parameters.at(0);if(u?.type!==t.AST_NODE_TYPES.Identifier)return;let d=u.typeAnnotation;if(!d)return;let f=l.typeAnnotation;if(f){if(a){let n=e.sourceCode.getScope(a),o=t.ASTUtils.findVariable(n,a.name);if(o&&i(r,o,new Set([a])))return}e.report({node:r,messageId:`preferRecord`,fix:c?t=>{let n=e.sourceCode.getText(d.typeAnnotation),i=e.sourceCode.getText(f.typeAnnotation),a=l.readonly?`Readonly<Record<${n}, ${i}>>`:`Record<${n}, ${i}>`;return t.replaceText(r,`${o}${a}${s}`)}:null})}}return{...a===`index-signature`&&{TSTypeReference(r){let i=r.typeName;if(i.type!==t.AST_NODE_TYPES.Identifier||i.name!==`Record`)return;let a=r.typeArguments?.params;if(a?.length!==2)return;let o=a[0],s=o.type===t.AST_NODE_TYPES.TSStringKeyword||o.type===t.AST_NODE_TYPES.TSNumberKeyword||o.type===t.AST_NODE_TYPES.TSSymbolKeyword;e.report({node:r,messageId:`preferIndexSignature`,...(0,n.getFixOrSuggest)({fixOrSuggest:s?`fix`:`suggest`,suggestion:{messageId:`preferIndexSignatureSuggestion`,fix:t=>{let n=e.sourceCode.getText(a[0]),i=e.sourceCode.getText(a[1]);return t.replaceText(r,`{ [key: ${n}]: ${i} }`)}}})})}},...a===`record`&&{TSInterfaceDeclaration(n){let r=``;n.typeParameters?.params.length&&(r=`<${n.typeParameters.params.map(t=>e.sourceCode.getText(t)).join(`, `)}>`),o(n.body.body,n,n.id,`type ${n.id.name}${r} = `,`;`,!n.extends.length&&n.parent.type!==t.AST_NODE_TYPES.ExportDefaultDeclaration)},TSMappedType(a){let o=a.key,s=e.sourceCode.getScope(o);if((0,n.nullThrows)(s.variables.find(e=>e.name===o.name&&e.isTypeVariable),`key type parameter must be a defined type variable in its scope`).references.some(e=>e.isTypeReference))return;let c=a.constraint;if(c.type===t.AST_NODE_TYPES.TSTypeOperator&&c.operator===`keyof`&&!(0,n.isParenthesized)(c,e.sourceCode))return;let l=r(a)?.id;if(l){let n=e.sourceCode.getScope(o),r=t.ASTUtils.findVariable(n,l.name);if(r&&i(a.parent,r,new Set([l])))return}let u=a.readonly!==`-`;e.report({node:a,messageId:`preferRecord`,...u&&{fix:t=>{let n=`Record<${e.sourceCode.getText(c)}, ${a.typeAnnotation?e.sourceCode.getText(a.typeAnnotation):`any`}>`;return a.optional===`+`||a.optional===!0?n=`Partial<${n}>`:a.optional===`-`&&(n=`Required<${n}>`),(a.readonly===`+`||a.readonly===!0)&&(n=`Readonly<${n}>`),t.replaceText(a,n)}}})},TSTypeLiteral(e){let t=r(e);o(e.members,e,t?.id,``,``)}}}}});function r(e){if(e.parent&&e.parent.type!==t.AST_NODE_TYPES.TSTypeAnnotation)return e.parent.type===t.AST_NODE_TYPES.TSTypeAliasDeclaration?e.parent:r(e.parent)}function i(e,r,a){if(a.has(e))return!1;switch(a.add(e),e.type){case t.AST_NODE_TYPES.TSTypeLiteral:return e.members.some(e=>i(e,r,a));case t.AST_NODE_TYPES.TSTypeAliasDeclaration:return i(e.typeAnnotation,r,a);case t.AST_NODE_TYPES.TSIndexedAccessType:return[e.indexType,e.objectType].some(e=>i(e,r,a));case t.AST_NODE_TYPES.TSMappedType:if(e.typeAnnotation)return i(e.typeAnnotation,r,a);break;case t.AST_NODE_TYPES.TSConditionalType:return[e.checkType,e.extendsType,e.falseType,e.trueType].some(e=>i(e,r,a));case t.AST_NODE_TYPES.TSUnionType:case t.AST_NODE_TYPES.TSIntersectionType:return e.types.some(e=>i(e,r,a));case t.AST_NODE_TYPES.TSInterfaceDeclaration:return e.body.body.some(e=>i(e,r,a));case t.AST_NODE_TYPES.TSTypeAnnotation:return i(e.typeAnnotation,r,a);case t.AST_NODE_TYPES.TSIndexSignature:if(e.typeAnnotation)return i(e.typeAnnotation,r,a);break;case t.AST_NODE_TYPES.TSTypeParameterInstantiation:return e.params.some(e=>i(e,r,a));case t.AST_NODE_TYPES.TSTypeReference:if(i(e.typeName,r,a)||e.typeArguments&&i(e.typeArguments,r,a))return!0;break;case t.AST_NODE_TYPES.Identifier:{if(r.references.some(t=>(0,n.isNodeEqual)(t.identifier,e)))return!0;let o=t.ASTUtils.findVariable(r.scope,e.name);if(o)return o.defs.some(e=>i(e.node,r,a))}}return!1}})),x7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getESLintCoreRule=void 0,e.maybeGetESLintCoreRule=r;let t=P8(),n=M8();e.getESLintCoreRule=e=>t.ESLintUtils.nullThrows(n.builtinRules.get(e),`ESLint's core rule '${e}' not found.`);function r(t){try{return(0,e.getESLintCoreRule)(t)}catch{return null}}})),dDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=_7(),s=(0,x7().getESLintCoreRule)(`consistent-return`),c=[{treatUndefinedAsUnspecified:!1}];e.default=(0,o.createRule)({name:`consistent-return`,meta:{type:`suggestion`,defaultOptions:c,docs:{description:"Require `return` statements to either always or never specify values",extendsBaseRule:!0,requiresTypeChecking:!0},hasSuggestions:s.meta.hasSuggestions,messages:s.meta.messages,schema:s.meta.schema},defaultOptions:c,create(e,[t]){let n=(0,o.getParserServices)(e),r=n.program.getTypeChecker(),c=s.create(e),l=[],u=t?.treatUndefinedAsUnspecified===!0;function d(e){l.push(e)}function f(){l.pop()}function p(){return l[l.length-1]??null}function m(e,t){if(i.isThenableType(r,e,t)&&i.isTypeReference(t)){let n=t.typeArguments?.[0];if(n)return(0,o.isTypeFlagSet)(n,a.TypeFlags.Void)?!0:m(e,n)}return!1}function h(e){let t=n.getTypeAtLocation(e),r=n.esTreeNodeToTSNodeMap.get(e);return t.getCallSignatures().some(t=>{let n=t.getReturnType();return e.async?m(r,n):(0,o.isTypeFlagSet)(n,a.TypeFlags.Void)})}return{...c,ArrowFunctionExpression:d,"ArrowFunctionExpression:exit"(e){f(),c[`ArrowFunctionExpression:exit`](e)},FunctionDeclaration:d,"FunctionDeclaration:exit"(e){f(),c[`FunctionDeclaration:exit`](e)},FunctionExpression:d,"FunctionExpression:exit"(e){f(),c[`FunctionExpression:exit`](e)},ReturnStatement(e){let t=p();if(!(!e.argument&&t&&h(t))){if(u&&e.argument&&n.getTypeAtLocation(e.argument).flags===a.TypeFlags.Undefined){c.ReturnStatement({...e,argument:null});return}c.ReturnStatement(e)}}}}})})),fDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getWrappedCode=t;function t(e,t,n){return t>n?e:`(${e})`}})),S7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(U6()),o=_7(),s=fDe();e.default=(0,o.createRule)({name:`consistent-type-assertions`,meta:{type:`suggestion`,docs:{description:`Enforce consistent usage of type assertions`,recommended:`stylistic`},fixable:`code`,hasSuggestions:!0,messages:{"angle-bracket":`Use '<{{cast}}>' instead of 'as {{cast}}'.`,as:`Use 'as {{cast}}' instead of '<{{cast}}>'.`,never:`Do not use any type assertions.`,replaceArrayTypeAssertionWithAnnotation:`Use const x: {{cast}} = [ ... ] instead.`,replaceArrayTypeAssertionWithSatisfies:`Use const x = [ ... ] satisfies {{cast}} instead.`,replaceObjectTypeAssertionWithAnnotation:`Use const x: {{cast}} = { ... } instead.`,replaceObjectTypeAssertionWithSatisfies:`Use const x = { ... } satisfies {{cast}} instead.`,unexpectedArrayTypeAssertion:`Always prefer const x: T[] = [ ... ].`,unexpectedObjectTypeAssertion:`Always prefer const x: T = { ... }.`},schema:[{oneOf:[{type:`object`,additionalProperties:!1,properties:{assertionStyle:{type:`string`,description:`The expected assertion style to enforce.`,enum:[`never`]}},required:[`assertionStyle`]},{type:`object`,additionalProperties:!1,properties:{arrayLiteralTypeAssertions:{type:`string`,description:`Whether to always prefer type declarations for array literals used as variable initializers, rather than type assertions.`,enum:[`allow`,`allow-as-parameter`,`never`]},assertionStyle:{type:`string`,description:`The expected assertion style to enforce.`,enum:[`as`,`angle-bracket`]},objectLiteralTypeAssertions:{type:`string`,description:`Whether to always prefer type declarations for object literals used as variable initializers, rather than type assertions.`,enum:[`allow`,`allow-as-parameter`,`never`]}}}]}]},defaultOptions:[{arrayLiteralTypeAssertions:`allow`,assertionStyle:`as`,objectLiteralTypeAssertions:`allow`}],create(e,[t]){function n(e){return e.type===i.AST_NODE_TYPES.TSTypeReference?e.typeName.type===i.AST_NODE_TYPES.Identifier&&e.typeName.name===`const`:!1}function r(r){let i=t.assertionStyle;n(r.typeAnnotation)&&i===`never`||e.report({node:r,messageId:i,data:i===`never`?{}:{cast:e.sourceCode.getText(r.typeAnnotation)},fix:i===`as`?t=>{let n=(0,o.getParserServices)(e,!0).esTreeNodeToTSNodeMap.get(r),i=e.sourceCode.getText(r.expression),c=e.sourceCode.getText(r.typeAnnotation),l=(0,o.getOperatorPrecedence)(a.SyntaxKind.AsExpression,a.SyntaxKind.Unknown),u=(0,o.getOperatorPrecedence)(n.parent.kind,a.isBinaryExpression(n.parent)?n.parent.operatorToken.kind:a.SyntaxKind.Unknown,a.isNewExpression(n.parent)?n.parent.arguments!=null&&n.parent.arguments.length>0:void 0),d=(0,o.getOperatorPrecedenceForNode)(r.expression),f=`${(0,s.getWrappedCode)(i,d,l)} as ${c}`;return t.replaceText(r,(0,o.isParenthesized)(r,e.sourceCode)?f:(0,s.getWrappedCode)(f,l,u))}:void 0})}function c(e){switch(e.type){case i.AST_NODE_TYPES.TSAnyKeyword:case i.AST_NODE_TYPES.TSUnknownKeyword:return!1;case i.AST_NODE_TYPES.TSTypeReference:return!n(e)||e.typeName.type===i.AST_NODE_TYPES.TSQualifiedName;default:return!0}}function l(t,n,r){let a=[];if(t.parent.type===i.AST_NODE_TYPES.VariableDeclarator&&!t.parent.id.typeAnnotation){let{parent:r}=t;a.push({messageId:n,data:{cast:e.sourceCode.getText(t.typeAnnotation)},fix:n=>[n.insertTextAfter(r.id,`: ${e.sourceCode.getText(t.typeAnnotation)}`),n.replaceText(t,(0,o.getTextWithParentheses)(e.sourceCode,t.expression))]})}return a.push({messageId:r,data:{cast:e.sourceCode.getText(t.typeAnnotation)},fix:n=>[n.replaceText(t,(0,o.getTextWithParentheses)(e.sourceCode,t.expression)),n.insertTextAfter(t,` satisfies ${e.sourceCode.getText(t.typeAnnotation)}`)]}),a}function u(e){return e.parent.type===i.AST_NODE_TYPES.NewExpression||e.parent.type===i.AST_NODE_TYPES.CallExpression||e.parent.type===i.AST_NODE_TYPES.ThrowStatement||e.parent.type===i.AST_NODE_TYPES.AssignmentPattern||e.parent.type===i.AST_NODE_TYPES.JSXExpressionContainer||e.parent.type===i.AST_NODE_TYPES.TemplateLiteral&&e.parent.parent.type===i.AST_NODE_TYPES.TaggedTemplateExpression}function d(n){if(!(t.assertionStyle===`never`||t.objectLiteralTypeAssertions===`allow`||n.expression.type!==i.AST_NODE_TYPES.ObjectExpression)&&!(t.objectLiteralTypeAssertions===`allow-as-parameter`&&u(n))&&c(n.typeAnnotation)){let t=l(n,`replaceObjectTypeAssertionWithAnnotation`,`replaceObjectTypeAssertionWithSatisfies`);e.report({node:n,messageId:`unexpectedObjectTypeAssertion`,suggest:t})}}function f(n){if(!(t.assertionStyle===`never`||t.arrayLiteralTypeAssertions===`allow`||n.expression.type!==i.AST_NODE_TYPES.ArrayExpression)&&!(t.arrayLiteralTypeAssertions===`allow-as-parameter`&&u(n))&&c(n.typeAnnotation)){let t=l(n,`replaceArrayTypeAssertionWithAnnotation`,`replaceArrayTypeAssertionWithSatisfies`);e.report({node:n,messageId:`unexpectedArrayTypeAssertion`,suggest:t})}}return{TSAsExpression(e){if(t.assertionStyle!==`as`){r(e);return}d(e),f(e)},TSTypeAssertion(e){if(t.assertionStyle!==`angle-bracket`){r(e);return}d(e),f(e)}}}})})),pDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`consistent-type-definitions`,meta:{type:`suggestion`,docs:{description:"Enforce type definitions to consistently use either `interface` or `type`",recommended:`stylistic`},fixable:`code`,messages:{interfaceOverType:"Use an `interface` instead of a `type`.",typeOverInterface:"Use a `type` instead of an `interface`."},schema:[{type:`string`,description:`Which type definition syntax to prefer.`,enum:[`interface`,`type`]}]},defaultOptions:[`interface`],create(e,[r]){function i(n){return e.sourceCode.getAncestors(n).some(e=>e.type===t.AST_NODE_TYPES.TSModuleDeclaration&&e.declare&&e.kind===`global`)}return{...r===`interface`&&{"TSTypeAliasDeclaration[typeAnnotation.type='TSTypeLiteral']"(t){e.report({node:t.id,messageId:`interfaceOverType`,fix(r){let i=(0,n.nullThrows)(e.sourceCode.getTokenBefore(t.id,e=>e.value===`type`),n.NullThrowsReasons.MissingToken(`type keyword`,`type alias`)),a=(0,n.nullThrows)(e.sourceCode.getTokenBefore(t.typeAnnotation,e=>e.value===`=`),n.NullThrowsReasons.MissingToken(`=`,`type alias`)),o=(0,n.nullThrows)(e.sourceCode.getTokenBefore(a,{includeComments:!0}),n.NullThrowsReasons.MissingToken(`before =`,`type alias`));return[r.replaceText(i,`interface`),r.replaceTextRange([o.range[1],t.typeAnnotation.range[0]],` `),r.removeRange([t.typeAnnotation.range[1],t.range[1]])]}})}},...r===`type`&&{TSInterfaceDeclaration(n){let r=i(n)?null:r=>{let i=n.typeParameters??n.id,a=[],o=e.sourceCode.getTokenBefore(n.id);return o&&(a.push(r.replaceText(o,`type`)),a.push(r.replaceTextRange([i.range[1],n.body.range[0]],` = `))),n.extends.forEach(t=>{let i=e.sourceCode.getText(t);a.push(r.insertTextAfter(n.body,` & ${i}`))}),n.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration&&a.push(r.removeRange([n.parent.range[0],n.range[0]]),r.insertTextAfter(n.body,`\nexport default ${n.id.name}`)),a};e.report({node:n.id,messageId:`typeOverInterface`,fix:r})}}}}})})),C7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`consistent-type-exports`,meta:{type:`suggestion`,docs:{description:`Enforce consistent usage of type exports`,requiresTypeChecking:!0},fixable:`code`,messages:{multipleExportsAreTypes:"Type exports {{exportNames}} are not values and should be exported using `export type`.",singleExportIsType:"Type export {{exportNames}} is not a value and should be exported using `export type`.",typeOverValue:"All exports in the declaration are only used as types. Use `export type`."},schema:[{type:`object`,additionalProperties:!1,properties:{fixMixedExportsWithInlineTypeSpecifier:{type:`boolean`,description:`Whether the rule will autofix "mixed" export cases using TS inline type specifiers.`}}}]},defaultOptions:[{fixMixedExportsWithInlineTypeSpecifier:!1}],create(e,[{fixMixedExportsWithInlineTypeSpecifier:t}]){let n={},r=(0,s.getParserServices)(e),f=r.program.getTypeChecker();function p(e){if(!(!e||f.isUnknownSymbol(e)))return e.getDeclarations()?.some(o.isTypeOnlyImportOrExportDeclaration)?!0:a.isSymbolFlagSet(e,o.SymbolFlags.Value)?!1:a.isSymbolFlagSet(e,o.SymbolFlags.Alias)?p(f.getImmediateAliasedSymbol(e)):!0}return{ExportAllDeclaration(t){if(t.exportKind===`type`)return;let n=o.resolveModuleName(t.source.value,e.filename,r.program.getCompilerOptions(),o.sys);if(n.resolvedModule==null)return;let a=r.program.getSourceFile(n.resolvedModule.resolvedFileName);if(a==null)return;let c=f.getSymbolAtLocation(a);if(c==null)return;let l=f.getTypeOfSymbol(c);f.getPropertiesOfType(l).some(e=>f.getPropertyOfType(l,e.escapedName.toString())!=null)||e.report({node:t,messageId:`typeOverValue`,fix(n){let r=(0,s.nullThrows)(e.sourceCode.getFirstToken(t,e=>e.type===i.AST_TOKEN_TYPES.Punctuator&&e.value===`*`),s.NullThrowsReasons.MissingToken(`asterisk`,`export all declaration`));return n.insertTextBefore(r,`type `)}})},ExportNamedDeclaration(e){let t=d(e)??`undefined`,i=n[t]||={reportValueExports:[],source:t,typeOnlyNamedExport:null,valueOnlyNamedExport:null};e.exportKind===`type`?i.typeOnlyNamedExport??=e:i.valueOnlyNamedExport??=e;let a=[],o=[],s=[];if(e.exportKind!==`type`)for(let t of e.specifiers){if(t.exportKind===`type`){o.push(t);continue}let e=p(r.getSymbolAtLocation(t.exported));e===!0?a.push(t):e===!1&&s.push(t)}(e.exportKind===`value`&&a.length||e.exportKind===`type`&&s.length)&&i.reportValueExports.push({node:e,inlineTypeSpecifiers:o,typeBasedSpecifiers:a,valueSpecifiers:s})},"Program:exit"(){for(let r of Object.values(n))if(r.reportValueExports.length!==0)for(let n of r.reportValueExports){if(n.valueSpecifiers.length===0){e.report({node:n.node,messageId:`typeOverValue`,*fix(t){yield*c(t,e.sourceCode,n.node)}});continue}let r=n.typeBasedSpecifiers.map(e=>e.local.type===i.AST_NODE_TYPES.Identifier?e.local.name:e.local.value);if(r.length===1){let i=r[0];e.report({node:n.node,messageId:`singleExportIsType`,data:{exportNames:i},*fix(r){t?yield*u(r,n):yield*l(r,e.sourceCode,n)}})}else{let i=(0,s.formatWordList)(r);e.report({node:n.node,messageId:`multipleExportsAreTypes`,data:{exportNames:i},*fix(r){t?yield*u(r,n):yield*l(r,e.sourceCode,n)}})}}}}}});function*c(e,t,n){let r=(0,s.nullThrows)(t.getFirstToken(n),s.NullThrowsReasons.MissingToken(`export`,n.type));yield e.insertTextAfter(r,` type`);for(let r of n.specifiers)if(r.exportKind===`type`){let n=(0,s.nullThrows)(t.getFirstToken(r),s.NullThrowsReasons.MissingToken(`export`,r.type)),i=(0,s.nullThrows)(t.getTokenAfter(n,{includeComments:!0}),`Missing token following the export kind.`);yield e.removeRange([n.range[0],i.range[0]])}}function*l(e,t,n){let{node:r,inlineTypeSpecifiers:i,typeBasedSpecifiers:a,valueSpecifiers:o}=n,c=[...a,...i],l=d(r),u=c.map(f).join(`, `),p=(0,s.nullThrows)(t.getFirstToken(r),s.NullThrowsReasons.MissingToken(`export`,r.type)),m=o.map(f).join(`, `),h=(0,s.nullThrows)(t.getFirstToken(r,s.isOpeningBraceToken),s.NullThrowsReasons.MissingToken(`{`,r.type)),g=(0,s.nullThrows)(t.getLastToken(r,s.isClosingBraceToken),s.NullThrowsReasons.MissingToken(`}`,r.type));yield e.replaceTextRange([h.range[1],g.range[0]],` ${m} `),yield e.insertTextBefore(p,`export type { ${u} }${l?` from '${l}'`:``};\n`)}function*u(e,t){if(t.node.exportKind!==`type`)for(let n of t.typeBasedSpecifiers)yield e.insertTextBefore(n,`type `)}function d(e){if(e.source?.type===i.AST_NODE_TYPES.Literal&&typeof e.source.value==`string`)return e.source.value}function f(e){let t=e.exported.type===i.AST_NODE_TYPES.Literal?e.exported.raw:e.exported.name,n=e.local.type===i.AST_NODE_TYPES.Literal?e.local.raw:e.local.name;return`${n}${t===n?``:` as ${t}`}`}})),mDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`consistent-type-imports`,meta:{type:`suggestion`,docs:{description:`Enforce consistent usage of type imports`},fixable:`code`,messages:{avoidImportType:"Use an `import` instead of an `import type`.",noImportTypeAnnotations:"`import()` type annotations are forbidden.",someImportsAreOnlyTypes:`Imports {{typeImports}} are only used as type.`,typeOverValue:"All imports in the declaration are only used as types. Use `import type`."},schema:[{type:`object`,additionalProperties:!1,properties:{disallowTypeAnnotations:{type:`boolean`,description:"Whether to disallow type imports in type annotations (`import()`)."},fixStyle:{type:`string`,description:`The expected type modifier to be added when an import is detected as used only in the type position.`,enum:[`separate-type-imports`,`inline-type-imports`]},prefer:{type:`string`,description:`The expected import kind for type-only imports.`,enum:[`type-imports`,`no-type-imports`]}}}]},defaultOptions:[{disallowTypeAnnotations:!0,fixStyle:`separate-type-imports`,prefer:`type-imports`}],create(e,[r]){let i=r.prefer??`type-imports`,a=r.disallowTypeAnnotations!==!1,o={};if(a&&(o.TSImportType=t=>{e.report({node:t,messageId:`noImportTypeAnnotations`})}),i===`no-type-imports`)return{...o,'ImportDeclaration[importKind = "type"]'(t){e.report({node:t,messageId:`avoidImportType`,fix(e){return y(e,t)}})},'ImportSpecifier[importKind = "type"]'(t){e.report({node:t,messageId:`avoidImportType`,fix(e){return b(e,t)}})}};let s=r.fixStyle??`separate-type-imports`,c=!1,l={},u=(0,n.getParserServices)(e,!0).emitDecoratorMetadata??!1;return((0,n.getParserServices)(e,!0).experimentalDecorators??!1)&&u&&(o.Decorator=()=>{c=!0}),{...o,ImportDeclaration(n){let r=n.source.value;l[r]??={reportValueImports:[],source:r,typeOnlyNamedImport:null,valueImport:null,valueOnlyNamedImport:null};let i=l[r];n.importKind===`type`?!i.typeOnlyNamedImport&&n.specifiers.every(e=>e.type===t.AST_NODE_TYPES.ImportSpecifier)&&(i.typeOnlyNamedImport=n):!i.valueOnlyNamedImport&&n.specifiers.length&&n.specifiers.every(e=>e.type===t.AST_NODE_TYPES.ImportSpecifier)?(i.valueOnlyNamedImport=n,i.valueImport=n):!i.valueImport&&n.specifiers.some(e=>e.type===t.AST_NODE_TYPES.ImportDefaultSpecifier)&&(i.valueImport=n);let a=[],o=[],s=[],c=[];for(let r of n.specifiers){if(r.type===t.AST_NODE_TYPES.ImportSpecifier&&r.importKind===`type`){o.push(r);continue}let[i]=e.sourceCode.getDeclaredVariables(r);i.references.length===0?c.push(r):i.references.every(e=>{if((e.identifier.parent.type===t.AST_NODE_TYPES.ExportSpecifier||e.identifier.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration||e.identifier.parent.type===t.AST_NODE_TYPES.TSExportAssignment)&&e.isValueReference&&e.isTypeReference)return n.importKind===`type`;if(e.isValueReference){let n=e.identifier.parent,r=e.identifier;for(;n;)switch(n.type){case t.AST_NODE_TYPES.TSTypeQuery:return!0;case t.AST_NODE_TYPES.TSQualifiedName:if(n.left!==r)return!1;r=n,n=n.parent;continue;case t.AST_NODE_TYPES.TSPropertySignature:return n.key===r;case t.AST_NODE_TYPES.MemberExpression:if(n.object!==r)return!1;r=n,n=n.parent;continue;default:return!1}}return e.isTypeReference})?a.push(r):s.push(r)}n.importKind===`value`&&a.length&&i.reportValueImports.push({node:n,inlineTypeSpecifiers:o,typeSpecifiers:a,unusedSpecifiers:c,valueSpecifiers:s})},"Program:exit"(){if(!c){for(let t of Object.values(l))if(t.reportValueImports.length!==0)for(let r of t.reportValueImports)if(r.valueSpecifiers.length===0&&r.unusedSpecifiers.length===0&&r.node.importKind!==`type`)r.node.attributes.length===0&&e.report({node:r.node,messageId:`typeOverValue`,*fix(e){yield*_(e,r,t)}});else{let i=r.typeSpecifiers.map(e=>`"${e.local.name}"`),a=(()=>{let e=(0,n.formatWordList)(i);return i.length,{messageId:`someImportsAreOnlyTypes`,data:{typeImports:e}}})();e.report({node:r.node,...a,*fix(e){yield*_(e,r,t)}})}}}};function d(e){let n=e.specifiers[0].type===t.AST_NODE_TYPES.ImportDefaultSpecifier?e.specifiers[0]:null,r=e.specifiers.find(e=>e.type===t.AST_NODE_TYPES.ImportNamespaceSpecifier)??null;return{defaultSpecifier:n,namedSpecifiers:e.specifiers.filter(e=>e.type===t.AST_NODE_TYPES.ImportSpecifier),namespaceSpecifier:r}}function f(t,r,i,a){if(a.length===0)return{removeTypeNamedSpecifiers:[],typeNamedSpecifiersText:``};let o=[],s=[];if(i.length===a.length){let a=(0,n.nullThrows)(e.sourceCode.getTokenBefore(i[0],n.isOpeningBraceToken),n.NullThrowsReasons.MissingToken(`{`,r.type)),c=(0,n.nullThrows)(e.sourceCode.getTokenBefore(a,n.isCommaToken),n.NullThrowsReasons.MissingToken(`,`,r.type)),l=(0,n.nullThrows)(e.sourceCode.getFirstTokenBetween(a,r.source,n.isClosingBraceToken),n.NullThrowsReasons.MissingToken(`}`,r.type));s.push(t.removeRange([c.range[0],l.range[1]])),o.push(e.sourceCode.text.slice(a.range[1],l.range[0]))}else{let n=[],r=[];for(let e of a)i.includes(e)?r.push(e):r.length&&(n.push(r),r=[]);r.length&&n.push(r);for(let r of n){let{removeRange:n,textRange:i}=p(r,a);s.push(t.removeRange(n)),o.push(e.sourceCode.text.slice(...i))}}return{removeTypeNamedSpecifiers:s,typeNamedSpecifiersText:o.join(`,`)}}function p(t,r){let i=t[0],a=t[t.length-1],o=[i.range[0],a.range[1]],s=[...o],c=(0,n.nullThrows)(e.sourceCode.getTokenBefore(i),n.NullThrowsReasons.MissingToken(`token`,`first specifier`));s[0]=c.range[1],(0,n.isCommaToken)(c)?o[0]=c.range[0]:o[0]=c.range[1];let l=r[0]===i,u=r[r.length-1]===a,d=(0,n.nullThrows)(e.sourceCode.getTokenAfter(a),n.NullThrowsReasons.MissingToken(`token`,`last specifier`));return s[1]=d.range[0],(l||u)&&(0,n.isCommaToken)(d)&&(o[1]=d.range[1]),{removeRange:o,textRange:s}}function m(t,r,i){let a=(0,n.nullThrows)(e.sourceCode.getFirstTokenBetween((0,n.nullThrows)(e.sourceCode.getFirstToken(r),n.NullThrowsReasons.MissingToken(`token before`,`import`)),r.source,n.isClosingBraceToken),n.NullThrowsReasons.MissingToken(`}`,r.type)),o=(0,n.nullThrows)(e.sourceCode.getTokenBefore(a),n.NullThrowsReasons.MissingToken(`token before`,`closing brace`));return!(0,n.isCommaToken)(o)&&!(0,n.isOpeningBraceToken)(o)&&(i=`,${i}`),t.insertTextBefore(a,i)}function*h(t,n){for(let r of n){let n=e.sourceCode.text.slice(...r.range);yield t.replaceTextRange(r.range,`type ${n}`)}}function*g(e,t,n){let{node:r}=t,{namedSpecifiers:i}=d(r),a=i.filter(e=>t.typeSpecifiers.includes(e));if(n.valueImport){let{namedSpecifiers:t}=d(n.valueImport);(n.valueOnlyNamedImport||t.length)&&(yield*h(e,a))}}function*_(t,r,i){let{node:a}=r,{defaultSpecifier:o,namedSpecifiers:c,namespaceSpecifier:l}=d(a);if(l&&!o){a.attributes.length===0&&(yield*v(t,a,!1));return}if(o){if(r.typeSpecifiers.includes(o)&&c.length===0&&!l){yield*v(t,a,!0);return}if(s===`inline-type-imports`&&!r.typeSpecifiers.includes(o)&&c.length>0&&!l){yield*g(t,r,i);return}}else if(!l){if(s===`inline-type-imports`&&c.some(e=>r.typeSpecifiers.includes(e))){yield*g(t,r,i);return}if(c.every(e=>r.typeSpecifiers.includes(e))){yield*v(t,a,!1);return}}let u=c.filter(e=>r.typeSpecifiers.includes(e)),p=f(t,a,u,c),h=[];if(u.length)if(i.typeOnlyNamedImport){let e=m(t,i.typeOnlyNamedImport,p.typeNamedSpecifiersText);i.typeOnlyNamedImport.range[1]<=a.range[0]?yield e:h.push(e)}else s===`inline-type-imports`?yield t.insertTextBefore(a,`import {${u.map(t=>`type ${e.sourceCode.text.slice(...t.range)}`).join(`, `)}} from ${e.sourceCode.getText(a.source)};\n`):yield t.insertTextBefore(a,`import type {${p.typeNamedSpecifiersText}} from ${e.sourceCode.getText(a.source)};\n`);let _=[];if(l&&r.typeSpecifiers.includes(l)){let r=(0,n.nullThrows)(e.sourceCode.getTokenBefore(l,n.isCommaToken),n.NullThrowsReasons.MissingToken(`,`,a.type));_.push(t.removeRange([r.range[0],l.range[1]])),yield t.insertTextBefore(a,`import type ${e.sourceCode.getText(l)} from ${e.sourceCode.getText(a.source)};\n`)}if(o&&r.typeSpecifiers.includes(o))if(r.typeSpecifiers.length===a.specifiers.length){let r=(0,n.nullThrows)(e.sourceCode.getFirstToken(a,n.isImportKeyword),n.NullThrowsReasons.MissingToken(`import`,a.type));yield t.insertTextAfter(r,` type`)}else{let r=(0,n.nullThrows)(e.sourceCode.getTokenAfter(o,n.isCommaToken),n.NullThrowsReasons.MissingToken(`,`,o.type)),i=e.sourceCode.text.slice(o.range[0],r.range[0]).trim();yield t.insertTextBefore(a,`import type ${i} from ${e.sourceCode.getText(a.source)};\n`);let s=(0,n.nullThrows)(e.sourceCode.getTokenAfter(r,{includeComments:!0}),n.NullThrowsReasons.MissingToken(`any token`,a.type));yield t.removeRange([o.range[0],s.range[0]])}yield*p.removeTypeNamedSpecifiers,yield*_,yield*h}function*v(r,i,a){let o=(0,n.nullThrows)(e.sourceCode.getFirstToken(i,n.isImportKeyword),n.NullThrowsReasons.MissingToken(`import`,i.type));if(yield r.insertTextAfter(o,` type`),a){let t=e.sourceCode.getFirstTokenBetween(o,i.source,n.isOpeningBraceToken);if(t){let a=(0,n.nullThrows)(e.sourceCode.getTokenBefore(t,n.isCommaToken),n.NullThrowsReasons.MissingToken(`,`,i.type)),o=(0,n.nullThrows)(e.sourceCode.getFirstTokenBetween(t,i.source,n.isClosingBraceToken),n.NullThrowsReasons.MissingToken(`}`,i.type));yield r.removeRange([a.range[0],o.range[1]]);let s=e.sourceCode.text.slice(a.range[1],o.range[1]);i.specifiers.length>1&&(yield r.insertTextAfter(i,`\nimport type${s} from ${e.sourceCode.getText(i.source)};`))}}for(let e of i.specifiers)e.type===t.AST_NODE_TYPES.ImportSpecifier&&e.importKind===`type`&&(yield*b(r,e))}function*y(t,r){let i=(0,n.nullThrows)(e.sourceCode.getFirstToken(r,n.isImportKeyword),n.NullThrowsReasons.MissingToken(`import`,r.type)),a=(0,n.nullThrows)(e.sourceCode.getFirstTokenBetween(i,r.specifiers[0]?.local??r.source,n.isTypeKeyword),n.NullThrowsReasons.MissingToken(`type`,r.type)),o=(0,n.nullThrows)(e.sourceCode.getTokenAfter(a,{includeComments:!0}),n.NullThrowsReasons.MissingToken(`any token`,r.type));yield t.removeRange([a.range[0],o.range[0]])}function*b(t,r){let i=(0,n.nullThrows)(e.sourceCode.getFirstToken(r,n.isTypeKeyword),n.NullThrowsReasons.MissingToken(`type`,r.type)),a=(0,n.nullThrows)(e.sourceCode.getTokenAfter(i,{includeComments:!0}),n.NullThrowsReasons.MissingToken(`any token`,r.type));yield t.removeRange([i.range[0],a.range[0]])}}})})),hDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`default-param-last`,meta:{type:`suggestion`,docs:{description:`Enforce default parameters to be last`,extendsBaseRule:!0,frozen:!0},messages:{shouldBeLast:`Default parameters should be last.`},schema:[]},defaultOptions:[],create(e){function n(e){return(e.type===t.AST_NODE_TYPES.ArrayPattern||e.type===t.AST_NODE_TYPES.AssignmentPattern||e.type===t.AST_NODE_TYPES.Identifier||e.type===t.AST_NODE_TYPES.ObjectPattern||e.type===t.AST_NODE_TYPES.RestElement)&&e.optional}function r(e){return!(e.type===t.AST_NODE_TYPES.AssignmentPattern||e.type===t.AST_NODE_TYPES.RestElement||n(e))}function i(i){let a=!1;for(let o=i.params.length-1;o>=0;o--){let s=i.params[o],c=s.type===t.AST_NODE_TYPES.TSParameterProperty?s.parameter:s;if(r(c)){a=!0;continue}a&&(n(c)||c.type===t.AST_NODE_TYPES.AssignmentPattern)&&e.report({node:s,messageId:`shouldBeLast`})}}return{ArrowFunctionExpression:i,FunctionDeclaration:i,FunctionExpression:i}}})})),gDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=(0,x7().getESLintCoreRule)(`dot-notation`),l=[{allowIndexSignaturePropertyAccess:!1,allowKeywords:!0,allowPattern:``,allowPrivateClassPropertyAccess:!1,allowProtectedClassPropertyAccess:!1}];e.default=(0,s.createRule)({name:`dot-notation`,meta:{type:`suggestion`,defaultOptions:l,docs:{description:`Enforce dot notation whenever possible`,extendsBaseRule:!0,frozen:!0,recommended:`stylistic`,requiresTypeChecking:!0},fixable:c.meta.fixable,hasSuggestions:c.meta.hasSuggestions,messages:c.meta.messages,schema:[{type:`object`,additionalProperties:!1,properties:{allowIndexSignaturePropertyAccess:{type:`boolean`,description:`Whether to allow accessing properties matching an index signature with array notation.`},allowKeywords:{type:`boolean`,description:'Whether to allow keywords such as ["class"]`.'},allowPattern:{type:`string`,description:`Regular expression of names to allow.`},allowPrivateClassPropertyAccess:{type:`boolean`,description:"Whether to allow accessing class members marked as `private` with array notation."},allowProtectedClassPropertyAccess:{type:`boolean`,description:"Whether to allow accessing class members marked as `protected` with array notation."}}}]},defaultOptions:l,create(e,[t]){let n=c.create(e),r=(0,s.getParserServices)(e),l=r.program.getTypeChecker(),u=t.allowPrivateClassPropertyAccess,d=t.allowProtectedClassPropertyAccess,f=(t.allowIndexSignaturePropertyAccess??!1)||a.isCompilerOptionEnabled(r.program.getCompilerOptions(),`noPropertyAccessFromIndexSignature`);return{MemberExpression(e){if((u||d||f)&&e.computed){let t=r.getSymbolAtLocation(e.property)??r.getTypeAtLocation(e.object).getNonNullableType().getProperties().find(t=>e.property.type===i.AST_NODE_TYPES.Literal&&t.escapedName===e.property.value),n=(0,s.getModifiers)(t?.getDeclarations()?.[0])?.[0].kind;if(u&&n===o.SyntaxKind.PrivateKeyword||d&&n===o.SyntaxKind.ProtectedKeyword)return;if(t==null&&f){let t=r.getTypeAtLocation(e.object).getNonNullableType();if(l.getIndexInfosOfType(t).some(e=>a.isTypeFlagSet(e.keyType,o.TypeFlags.StringLike)))return}}n.MemberExpression(e)}}}})})),_De=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.doesImmediatelyReturnFunctionExpression=f,e.isTypedFunctionExpression=m,e.isValidFunctionExpressionReturnType=h,e.checkFunctionReturnType=_,e.checkFunctionExpressionReturnType=v,e.ancestorHasReturnType=y;let t=P8(),n=$5(),r=SEe();function i(e){return e.type===t.AST_NODE_TYPES.VariableDeclarator&&!!e.id.typeAnnotation}function a(e){return e.type===t.AST_NODE_TYPES.PropertyDefinition&&!!e.typeAnnotation}function o(e,n){return e.type===t.AST_NODE_TYPES.CallExpression&&e.callee!==n}function s(e){return e.type===t.AST_NODE_TYPES.JSXExpressionContainer||e.type===t.AST_NODE_TYPES.JSXSpreadAttribute}function c(e,t){return(0,n.isTypeAssertion)(e)||i(e)||l(e)||a(e)||o(e,t)||s(e)}function l(e){return e.type===t.AST_NODE_TYPES.AssignmentPattern&&e.left.typeAnnotation!=null}function u(e){return e.type===t.AST_NODE_TYPES.NewExpression}function d(e){if(e?.type!==t.AST_NODE_TYPES.Property)return!1;let n=e.parent;if(n.type!==t.AST_NODE_TYPES.ObjectExpression)return!1;let r=n.parent;return c(r)||d(r)}function f({node:e,returns:n}){return e.type===t.AST_NODE_TYPES.ArrowFunctionExpression&&t.ASTUtils.isFunction(e.body)?!0:n.length===0?!1:n.every(e=>e.argument&&t.ASTUtils.isFunction(e.argument))}function p(e){if((0,n.isTypeAssertion)(e)){let{typeAnnotation:n}=e;if(n.type===t.AST_NODE_TYPES.TSTypeReference){let{typeName:e}=n;if(e.type===t.AST_NODE_TYPES.Identifier&&e.name===`const`)return!0}}return!1}function m(e,t){return t.allowTypedFunctionExpressions?c(e.parent,e)||d(e.parent)||u(e.parent):!1}function h(e,n){if(m(e,n)||n.allowExpressions&&e.parent.type!==t.AST_NODE_TYPES.VariableDeclarator&&e.parent.type!==t.AST_NODE_TYPES.MethodDefinition&&e.parent.type!==t.AST_NODE_TYPES.ExportDefaultDeclaration&&e.parent.type!==t.AST_NODE_TYPES.PropertyDefinition)return!0;if(!n.allowDirectConstAssertionInArrowFunctions||e.type!==t.AST_NODE_TYPES.ArrowFunctionExpression)return!1;let r=e.body;for(;r.type===t.AST_NODE_TYPES.TSSatisfiesExpression;)r=r.expression;return p(r)}function g({node:e,returns:t},r){return r.allowHigherOrderFunctions&&f({node:e,returns:t})?!0:e.returnType!=null||(0,n.isConstructor)(e.parent)||(0,n.isSetter)(e.parent)}function _({node:e,returns:t},n,i,a){g({node:e,returns:t},n)||a((0,r.getFunctionHeadLoc)(e,i))}function v(e,t,n,r){h(e.node,t)||_(e,t,n,r)}function y(e){let n=e.parent;n.type===t.AST_NODE_TYPES.Property&&(n=n.value);let r=n.type===t.AST_NODE_TYPES.ReturnStatement,i=n.type===t.AST_NODE_TYPES.ArrowFunctionExpression&&n.body.type!==t.AST_NODE_TYPES.BlockStatement;if(!r&&!i)return!1;for(;n;){switch(n.type){case t.AST_NODE_TYPES.ArrowFunctionExpression:case t.AST_NODE_TYPES.FunctionExpression:case t.AST_NODE_TYPES.FunctionDeclaration:if(n.returnType)return!0;break;case t.AST_NODE_TYPES.VariableDeclarator:return!!n.id.typeAnnotation;case t.AST_NODE_TYPES.PropertyDefinition:return!!n.typeAnnotation;case t.AST_NODE_TYPES.ExpressionStatement:return!1}n=n.parent}return!1}})),w7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=_De();e.default=(0,n.createRule)({name:`explicit-function-return-type`,meta:{type:`problem`,docs:{description:`Require explicit return types on functions and class methods`},messages:{missingReturnType:`Missing return type on function.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowConciseArrowFunctionExpressionsStartingWithVoid:{type:`boolean`,description:"Whether to allow arrow functions that start with the `void` keyword."},allowDirectConstAssertionInArrowFunctions:{type:`boolean`,description:"Whether to ignore arrow functions immediately returning a `as const` value."},allowedNames:{type:`array`,description:`An array of function/method names that will not have their arguments or return values checked.`,items:{type:`string`}},allowExpressions:{type:`boolean`,description:`Whether to ignore function expressions (functions which are not part of a declaration).`},allowFunctionsWithoutTypeParameters:{type:`boolean`,description:`Whether to ignore functions that don't have generic type parameters.`},allowHigherOrderFunctions:{type:`boolean`,description:`Whether to ignore functions immediately returning another function expression.`},allowIIFEs:{type:`boolean`,description:`Whether to ignore immediately invoked function expressions (IIFEs).`},allowTypedFunctionExpressions:{type:`boolean`,description:`Whether to ignore type annotations on the variable of function expressions.`}}}]},defaultOptions:[{allowConciseArrowFunctionExpressionsStartingWithVoid:!1,allowDirectConstAssertionInArrowFunctions:!0,allowedNames:[],allowExpressions:!1,allowFunctionsWithoutTypeParameters:!1,allowHigherOrderFunctions:!0,allowIIFEs:!1,allowTypedFunctionExpressions:!0}],create(e,[i]){let a=[];function o(e){a.push({node:e,returns:[]})}function s(e){return(0,n.nullThrows)(a.pop(),`Stack should exist on ${e} exit`)}function c(e){if(i.allowFunctionsWithoutTypeParameters&&!e.typeParameters||i.allowIIFEs&&l(e))return!0;if(!i.allowedNames?.length)return!1;if(e.type===t.AST_NODE_TYPES.ArrowFunctionExpression||e.type===t.AST_NODE_TYPES.FunctionExpression){let n=e.parent,r;if(e.id?.name)r=e.id.name;else switch(n.type){case t.AST_NODE_TYPES.VariableDeclarator:n.id.type===t.AST_NODE_TYPES.Identifier&&(r=n.id.name);break;case t.AST_NODE_TYPES.MethodDefinition:case t.AST_NODE_TYPES.PropertyDefinition:case t.AST_NODE_TYPES.Property:n.key.type===t.AST_NODE_TYPES.Identifier&&!n.computed&&(r=n.key.name);break}if(r&&i.allowedNames.includes(r))return!0}return!!(e.type===t.AST_NODE_TYPES.FunctionDeclaration&&e.id&&i.allowedNames.includes(e.id.name))}function l(e){return e.parent.type===t.AST_NODE_TYPES.CallExpression}function u(n){let a=s(`function expression`);i.allowConciseArrowFunctionExpressionsStartingWithVoid&&n.type===t.AST_NODE_TYPES.ArrowFunctionExpression&&n.expression&&n.body.type===t.AST_NODE_TYPES.UnaryExpression&&n.body.operator===`void`||c(n)||i.allowTypedFunctionExpressions&&((0,r.isValidFunctionExpressionReturnType)(n,i)||(0,r.ancestorHasReturnType)(n))||(0,r.checkFunctionReturnType)(a,i,e.sourceCode,t=>e.report({loc:t,node:n,messageId:`missingReturnType`}))}return{"ArrowFunctionExpression, FunctionExpression, FunctionDeclaration":o,"ArrowFunctionExpression:exit":u,"FunctionDeclaration:exit"(t){let n=s(`function declaration`);c(t)||i.allowTypedFunctionExpressions&&t.returnType||(0,r.checkFunctionReturnType)(n,i,e.sourceCode,n=>e.report({loc:n,node:t,messageId:`missingReturnType`}))},"FunctionExpression:exit":u,ReturnStatement(e){a.at(-1)?.returns.push(e)}}}})})),T7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getMemberHeadLoc=n,e.getParameterPropertyHeadLoc=r;let t=c1();function n(e,n){let r;if(n.decorators.length===0)r=n.loc.start;else{let i=n.decorators[n.decorators.length-1];r=(0,t.nullThrows)(e.getTokenAfter(i),t.NullThrowsReasons.MissingToken(`token`,`last decorator`)).loc.start}let i;return i=n.computed?(0,t.nullThrows)(e.getTokenAfter(n.key,e=>e.value===`]`),t.NullThrowsReasons.MissingToken(`]`,n.type)).loc.end:n.key.loc.end,{end:structuredClone(i),start:structuredClone(r)}}function r(e,n,r){let i;if(n.decorators.length===0)i=structuredClone(n.loc.start);else{let r=n.decorators[n.decorators.length-1],a=(0,t.nullThrows)(e.getTokenAfter(r),t.NullThrowsReasons.MissingToken(`token`,`last decorator`));i=structuredClone(a.loc.start)}return{end:e.getLocFromIndex(n.parameter.range[0]+r.length),start:i}}})),vDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rangeToLoc=t;function t(e,t){return{end:e.getLocFromIndex(t[1]),start:e.getLocFromIndex(t[0])}}})),yDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=T7(),i=vDe();e.default=(0,n.createRule)({name:`explicit-member-accessibility`,meta:{type:`problem`,docs:{description:`Require explicit accessibility modifiers on class properties and methods`},fixable:`code`,hasSuggestions:!0,messages:{addExplicitAccessibility:`Add '{{ type }}' accessibility modifier`,missingAccessibility:`Missing accessibility modifier on {{type}} {{name}}.`,unwantedPublicAccessibility:`Public accessibility modifier on {{type}} {{name}}.`},schema:[{type:`object`,$defs:{accessibilityLevel:{oneOf:[{type:`string`,description:`Always require an accessor.`,enum:[`explicit`]},{type:`string`,description:`Require an accessor except when public.`,enum:[`no-public`]},{type:`string`,description:`Never check whether there is an accessor.`,enum:[`off`]}]}},additionalProperties:!1,properties:{accessibility:{$ref:`#/items/0/$defs/accessibilityLevel`,description:`Which accessibility modifier is required to exist or not exist.`},ignoredMethodNames:{type:`array`,description:`Specific method names that may be ignored.`,items:{type:`string`}},overrides:{type:`object`,additionalProperties:!1,description:`Changes to required accessibility modifiers for specific kinds of class members.`,properties:{accessors:{$ref:`#/items/0/$defs/accessibilityLevel`,description:`Which member accessibility modifier requirements to apply for accessors.`},constructors:{$ref:`#/items/0/$defs/accessibilityLevel`,description:`Which member accessibility modifier requirements to apply for constructors.`},methods:{$ref:`#/items/0/$defs/accessibilityLevel`,description:`Which member accessibility modifier requirements to apply for methods.`},parameterProperties:{$ref:`#/items/0/$defs/accessibilityLevel`,description:`Which member accessibility modifier requirements to apply for parameterProperties.`},properties:{$ref:`#/items/0/$defs/accessibilityLevel`,description:`Which member accessibility modifier requirements to apply for properties.`}}}}}]},defaultOptions:[{accessibility:`explicit`}],create(e,[a]){let o=a.accessibility??`explicit`,s=a.overrides??{},c=s.constructors??o,l=s.accessors??o,u=s.methods??o,d=s.properties??o,f=s.parameterProperties??o,p=new Set(a.ignoredMethodNames??[]);function m(a){if(a.key.type===t.AST_NODE_TYPES.PrivateIdentifier)return;let s=`method definition`,d=o;switch(a.kind){case`method`:d=u;break;case`constructor`:d=c;break;case`get`:case`set`:d=l,s=`${a.kind} property accessor`;break}let{name:f}=(0,n.getNameFromMember)(a,e.sourceCode);if(!(d===`off`||p.has(f)))if(d===`no-public`&&a.accessibility===`public`){let t=h(a);e.report({loc:(0,i.rangeToLoc)(e.sourceCode,t.range),messageId:`unwantedPublicAccessibility`,data:{name:f,type:s},fix:e=>e.removeRange(t.rangeToRemove)})}else d===`explicit`&&!a.accessibility&&e.report({loc:(0,r.getMemberHeadLoc)(e.sourceCode,a),messageId:`missingAccessibility`,data:{name:f,type:s},suggest:g(a)})}function h(n){let r=e.sourceCode.getTokens(n),i,a;for(let n=0;n<r.length;n++){let o=r[n];if(o.type===t.AST_TOKEN_TYPES.Keyword&&o.value===`public`){a=structuredClone(o.range);let t=e.sourceCode.getCommentsAfter(o);if(t.length){i=[o.range[0],t[0].range[0]];break}else{i=[o.range[0],r[n+1].range[0]];break}}}return{range:a,rangeToRemove:i}}function g(t){function r(r,i){if(t.decorators.length){let a=t.decorators[t.decorators.length-1],o=(0,n.nullThrows)(e.sourceCode.getTokenAfter(a),n.NullThrowsReasons.MissingToken(`token`,`last decorator`));return i.insertTextBefore(o,`${r} `)}return i.insertTextBefore(t,`${r} `)}return[{messageId:`addExplicitAccessibility`,data:{type:`public`},fix:e=>r(`public`,e)},{messageId:`addExplicitAccessibility`,data:{type:`private`},fix:e=>r(`private`,e)},{messageId:`addExplicitAccessibility`,data:{type:`protected`},fix:e=>r(`protected`,e)}]}function _(a){if(a.key.type===t.AST_NODE_TYPES.PrivateIdentifier)return;let o=`class property`,{name:s}=(0,n.getNameFromMember)(a,e.sourceCode);if(d===`no-public`&&a.accessibility===`public`){let t=h(a);e.report({loc:(0,i.rangeToLoc)(e.sourceCode,t.range),messageId:`unwantedPublicAccessibility`,data:{name:s,type:o},fix:e=>e.removeRange(t.rangeToRemove)})}else d===`explicit`&&!a.accessibility&&e.report({loc:(0,r.getMemberHeadLoc)(e.sourceCode,a),messageId:`missingAccessibility`,data:{name:s,type:o},suggest:g(a)})}function v(n){let a=`parameter property`,o=n.parameter.type===t.AST_NODE_TYPES.Identifier?n.parameter.name:n.parameter.left.name;switch(f){case`explicit`:n.accessibility||e.report({loc:(0,r.getParameterPropertyHeadLoc)(e.sourceCode,n,o),messageId:`missingAccessibility`,data:{name:o,type:a},suggest:g(n)});break;case`no-public`:if(n.accessibility===`public`&&n.readonly){let t=h(n);e.report({loc:(0,i.rangeToLoc)(e.sourceCode,t.range),messageId:`unwantedPublicAccessibility`,data:{name:o,type:a},fix:e=>e.removeRange(t.rangeToRemove)})}break}}return{"MethodDefinition, TSAbstractMethodDefinition":m,"PropertyDefinition, TSAbstractPropertyDefinition, AccessorProperty, TSAbstractAccessorProperty":_,TSParameterProperty:v}}})})),bDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=_De();e.default=(0,r.createRule)({name:`explicit-module-boundary-types`,meta:{type:`problem`,docs:{description:`Require explicit return and argument types on exported functions' and classes' public class methods`},messages:{anyTypedArg:`Argument '{{name}}' should be typed with a non-any type.`,anyTypedArgUnnamed:`{{type}} argument should be typed with a non-any type.`,missingArgType:`Argument '{{name}}' should be typed.`,missingArgTypeUnnamed:`{{type}} argument should be typed.`,missingReturnType:`Missing return type on function.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowArgumentsExplicitlyTypedAsAny:{type:`boolean`,description:"Whether to ignore arguments that are explicitly typed as `any`."},allowDirectConstAssertionInArrowFunctions:{type:`boolean`,description:["Whether to ignore return type annotations on body-less arrow functions that return an `as const` type assertion.",`You must still type the parameters of the function.`].join(`
|
|
1086
1086
|
`)},allowedNames:{type:`array`,description:`An array of function/method names that will not have their arguments or return values checked.`,items:{type:`string`}},allowHigherOrderFunctions:{type:`boolean`,description:[`Whether to ignore return type annotations on functions immediately returning another function expression.`,`You must still type the parameters of the function.`].join(`
|
|
1087
|
-
`)},allowOverloadFunctions:{type:`boolean`,description:`Whether to ignore return type annotations on functions with overload signatures.`},allowTypedFunctionExpressions:{type:`boolean`,description:`Whether to ignore type annotations on the variable of a function expression.`}}}]},defaultOptions:[{allowArgumentsExplicitlyTypedAsAny:!1,allowDirectConstAssertionInArrowFunctions:!0,allowedNames:[],allowHigherOrderFunctions:!0,allowOverloadFunctions:!1,allowTypedFunctionExpressions:!0}],create(e,[a]){let o=new Set,s=[],c=new Map,l=new Set;function u(e){return c.get(e)??[]}function d(e){s.push(e),c.set(e,[])}function f(){s.pop()}return{"ArrowFunctionExpression, FunctionDeclaration, FunctionExpression":d,"ArrowFunctionExpression:exit":f,"ExportDefaultDeclaration:exit"(e){_(e.declaration)},"ExportNamedDeclaration:not([source]):exit"(e){if(e.declaration)_(e.declaration);else for(let t of e.specifiers)g(t.local)},"FunctionDeclaration:exit":f,"FunctionExpression:exit":f,"Program:exit"(){for(let[e,t]of c)h({node:e,returns:t})&&_(e)},ReturnStatement(e){let t=s[s.length-1];c.get(t)?.push(e)},"TSExportAssignment:exit"(e){_(e.expression)}};function p(t){function r(t){function i(r,i){t.type===n.AST_NODE_TYPES.Identifier?e.report({node:t,messageId:r,data:{name:t.name}}):t.type===n.AST_NODE_TYPES.ArrayPattern?e.report({node:t,messageId:i,data:{type:`Array pattern`}}):t.type===n.AST_NODE_TYPES.ObjectPattern?e.report({node:t,messageId:i,data:{type:`Object pattern`}}):t.type===n.AST_NODE_TYPES.RestElement&&(t.argument.type===n.AST_NODE_TYPES.Identifier?e.report({node:t,messageId:r,data:{name:t.argument.name}}):e.report({node:t,messageId:i,data:{type:`Rest`}}))}switch(t.type){case n.AST_NODE_TYPES.ArrayPattern:case n.AST_NODE_TYPES.Identifier:case n.AST_NODE_TYPES.ObjectPattern:case n.AST_NODE_TYPES.RestElement:t.typeAnnotation?a.allowArgumentsExplicitlyTypedAsAny!==!0&&t.typeAnnotation.typeAnnotation.type===n.AST_NODE_TYPES.TSAnyKeyword&&i(`anyTypedArg`,`anyTypedArgUnnamed`):i(`missingArgType`,`missingArgTypeUnnamed`);return;case n.AST_NODE_TYPES.TSParameterProperty:return r(t.parameter);case n.AST_NODE_TYPES.AssignmentPattern:return}}for(let e of t.params)r(e)}function m(t){return!t||!a.allowedNames||a.allowedNames.length===0?!1:t.type===n.AST_NODE_TYPES.VariableDeclarator||t.type===n.AST_NODE_TYPES.FunctionDeclaration?t.id?.type===n.AST_NODE_TYPES.Identifier&&a.allowedNames.includes(t.id.name):t.type===n.AST_NODE_TYPES.MethodDefinition||t.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition||t.type===n.AST_NODE_TYPES.Property&&t.method||t.type===n.AST_NODE_TYPES.PropertyDefinition||t.type===n.AST_NODE_TYPES.AccessorProperty?(0,r.isStaticMemberAccessOfValue)(t,e,...a.allowedNames):!1}function h({node:e}){let t=e.parent;for(;t;){if(t.type===n.AST_NODE_TYPES.ReturnStatement){t=t.parent.parent;continue}if(!(0,r.isFunction)(t))return!1;let e=u(t);if(!(0,i.doesImmediatelyReturnFunctionExpression)({node:t,returns:e}))return!1;if(o.has(t))return!0;t=t.parent}return!1}function g(n){let r=e.sourceCode.getScope(n).set.get(n.name);if(r){for(let e of r.defs)[t.DefinitionType.CatchClause,t.DefinitionType.ImplicitGlobalVariable,t.DefinitionType.ImportBinding,t.DefinitionType.Parameter].includes(e.type)||_(e.node);for(let e of r.references)!e.init&&e.writeExpr&&_(e.writeExpr)}}function _(e){if(!(e==null||l.has(e)))switch(l.add(e),e.type){case n.AST_NODE_TYPES.ArrowFunctionExpression:case n.AST_NODE_TYPES.FunctionExpression:return y({node:e,returns:u(e)});case n.AST_NODE_TYPES.ArrayExpression:for(let t of e.elements)_(t);return;case n.AST_NODE_TYPES.PropertyDefinition:case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.MethodDefinition:case n.AST_NODE_TYPES.TSAbstractMethodDefinition:return e.accessibility===`private`||e.key.type===n.AST_NODE_TYPES.PrivateIdentifier?void 0:_(e.value);case n.AST_NODE_TYPES.ClassDeclaration:case n.AST_NODE_TYPES.ClassExpression:for(let t of e.body.body)_(t);return;case n.AST_NODE_TYPES.FunctionDeclaration:return b({node:e,returns:u(e)});case n.AST_NODE_TYPES.Identifier:return g(e);case n.AST_NODE_TYPES.ObjectExpression:for(let t of e.properties)_(t);return;case n.AST_NODE_TYPES.Property:return _(e.value);case n.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:return v(e);case n.AST_NODE_TYPES.VariableDeclaration:for(let t of e.declarations)_(t);return;case n.AST_NODE_TYPES.VariableDeclarator:return _(e.init)}}function v(t){let r=t.parent.type===n.AST_NODE_TYPES.MethodDefinition&&t.parent.kind===`constructor`,i=(t.parent.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition||t.parent.type===n.AST_NODE_TYPES.MethodDefinition)&&t.parent.kind===`set`;!r&&!i&&!t.returnType&&e.report({node:t,messageId:`missingReturnType`}),p(t)}function y({node:t,returns:s}){o.has(t)||(o.add(t),!(m(t.parent)||(0,i.isTypedFunctionExpression)(t,a)||(0,i.ancestorHasReturnType)(t))&&(a.allowOverloadFunctions&&t.parent.type===n.AST_NODE_TYPES.MethodDefinition&&(0,r.hasOverloadSignatures)(t.parent,e)||((0,i.checkFunctionExpressionReturnType)({node:t,returns:s},a,e.sourceCode,n=>{e.report({loc:n,node:t,messageId:`missingReturnType`})}),p(t))))}function b({node:t,returns:n}){o.has(t)||(o.add(t),!(m(t)||(0,i.ancestorHasReturnType)(t))&&(a.allowOverloadFunctions&&(0,r.hasOverloadSignatures)(t,e)||((0,i.checkFunctionReturnType)({node:t,returns:n},a,e.sourceCode,n=>{e.report({loc:n,node:t,messageId:`missingReturnType`})}),p(t))))}}})})),xDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`init-declarations`);e.default=(0,n.createRule)({name:`init-declarations`,meta:{type:`suggestion`,docs:{description:`Require or disallow initialization in variable declarations`,extendsBaseRule:!0,frozen:!0},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:[`always`],create(e,[n]){function a(){let n=n=>{if(`node`in n&&n.loc==null){let{node:r,...a}=n;if(r.type===t.AST_NODE_TYPES.VariableDeclarator&&r.init==null){e.report({...a,loc:i(r)});return}}e.report(n)};return new Proxy({},{get:(t,r,i)=>r===`report`?n:Reflect.get(e,r,i)})}let o=r.create(a());return{"VariableDeclaration:exit"(e){n===`always`&&(e.declare||s(e))||o[`VariableDeclaration:exit`](e)}};function s(e){let n=e.parent;for(;n;){if(n.type===t.AST_NODE_TYPES.TSModuleDeclaration&&n.declare)return!0;n=n.parent}return!1}}});function i(e){return{start:structuredClone(e.loc.start),end:{line:e.loc.start.line,column:e.loc.start.column+e.id.name.length}}}})),SDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`max-params`);e.default=(0,n.createRule)({name:`max-params`,meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of parameters in function definitions`,extendsBaseRule:!0},messages:r.meta.messages,schema:[{type:`object`,additionalProperties:!1,properties:{countVoidThis:{type:`boolean`,description:"Whether to count a `this` declaration when the type is `void`."},max:{type:`integer`,description:`A maximum number of parameters in function definitions.`,minimum:0},maximum:{type:`integer`,description:`(deprecated) A maximum number of parameters in function definitions.`,minimum:0}}}]},defaultOptions:[{countVoidThis:!1,max:3}],create(e,[{countVoidThis:n}]){let i=r.create(e);if(n===!0)return i;let a=e=>e.params.length===0||e.params[0].type!==t.AST_NODE_TYPES.Identifier||e.params[0].name!==`this`||e.params[0].typeAnnotation?.typeAnnotation.type!==t.AST_NODE_TYPES.TSVoidKeyword?e:{...e,params:e.params.slice(1)},o=e=>t=>{e(a(t))};return{ArrowFunctionExpression:o(i.ArrowFunctionExpression),FunctionDeclaration:o(i.FunctionDeclaration),FunctionExpression:o(i.FunctionExpression),TSDeclareFunction:o(i.FunctionDeclaration),TSFunctionType:o(i.FunctionDeclaration)}}})})),CDe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultOrder=void 0;let n=P8(),r=t(lge()),i=_7(),a={type:`string`,enum:[`never`]},o=e=>({type:`array`,items:{oneOf:[{$ref:e},{type:`array`,items:{$ref:e}}]}}),s=e=>({type:`object`,additionalProperties:!1,properties:{memberTypes:{oneOf:[o(e),a]},optionalityOrder:{$ref:`#/items/0/$defs/optionalityOrderOptions`},order:{$ref:`#/items/0/$defs/orderOptions`}}});e.defaultOrder=`signature.call-signature.public-static-field.protected-static-field.private-static-field.#private-static-field.public-decorated-field.protected-decorated-field.private-decorated-field.public-instance-field.protected-instance-field.private-instance-field.#private-instance-field.public-abstract-field.protected-abstract-field.public-field.protected-field.private-field.#private-field.static-field.instance-field.abstract-field.decorated-field.field.static-initialization.public-constructor.protected-constructor.private-constructor.constructor.public-static-accessor.protected-static-accessor.private-static-accessor.#private-static-accessor.public-decorated-accessor.protected-decorated-accessor.private-decorated-accessor.public-instance-accessor.protected-instance-accessor.private-instance-accessor.#private-instance-accessor.public-abstract-accessor.protected-abstract-accessor.public-accessor.protected-accessor.private-accessor.#private-accessor.static-accessor.instance-accessor.abstract-accessor.decorated-accessor.accessor.public-static-get.protected-static-get.private-static-get.#private-static-get.public-decorated-get.protected-decorated-get.private-decorated-get.public-instance-get.protected-instance-get.private-instance-get.#private-instance-get.public-abstract-get.protected-abstract-get.public-get.protected-get.private-get.#private-get.static-get.instance-get.abstract-get.decorated-get.get.public-static-set.protected-static-set.private-static-set.#private-static-set.public-decorated-set.protected-decorated-set.private-decorated-set.public-instance-set.protected-instance-set.private-instance-set.#private-instance-set.public-abstract-set.protected-abstract-set.public-set.protected-set.private-set.#private-set.static-set.instance-set.abstract-set.decorated-set.set.public-static-method.protected-static-method.private-static-method.#private-static-method.public-decorated-method.protected-decorated-method.private-decorated-method.public-instance-method.protected-instance-method.private-instance-method.#private-instance-method.public-abstract-method.protected-abstract-method.public-method.protected-method.private-method.#private-method.static-method.instance-method.abstract-method.decorated-method.method`.split(`.`);let c=[...new Set([`readonly-signature`,`signature`,`readonly-field`,`field`,`method`,`call-signature`,`constructor`,`accessor`,`get`,`set`,`static-initialization`].flatMap(e=>[e,...[`public`,`protected`,`private`,`#private`].flatMap(t=>[e!==`readonly-signature`&&e!==`signature`&&e!==`static-initialization`&&e!==`call-signature`&&!(e===`constructor`&&t===`#private`)?`${t}-${e}`:[],t!==`#private`&&(e===`readonly-field`||e===`field`||e===`method`||e===`accessor`||e===`get`||e===`set`)?[`${t}-decorated-${e}`,`decorated-${e}`]:[],e!==`constructor`&&e!==`readonly-signature`&&e!==`signature`&&e!==`call-signature`?[`static`,`instance`,...t===`#private`||t===`private`?[]:[`abstract`]].flatMap(n=>[`${n}-${e}`,`${t}-${n}-${e}`]):[]]).flat()]))],l=[n.AST_NODE_TYPES.FunctionExpression,n.AST_NODE_TYPES.ArrowFunctionExpression];function u(e){switch(e.type){case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.MethodDefinition:case n.AST_NODE_TYPES.TSMethodSignature:return e.kind;case n.AST_NODE_TYPES.TSCallSignatureDeclaration:return`call-signature`;case n.AST_NODE_TYPES.TSConstructSignatureDeclaration:return`constructor`;case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:case n.AST_NODE_TYPES.TSPropertySignature:return e.readonly?`readonly-field`:`field`;case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.AccessorProperty:return`accessor`;case n.AST_NODE_TYPES.PropertyDefinition:return e.value&&l.includes(e.value.type)?`method`:e.readonly?`readonly-field`:`field`;case n.AST_NODE_TYPES.TSIndexSignature:return e.readonly?`readonly-signature`:`signature`;case n.AST_NODE_TYPES.StaticBlock:return`static-initialization`;default:return null}}function d(e,t){let{name:n,type:r}=(0,i.getNameFromMember)(e,t);return r===i.MemberNameType.Quoted?n.slice(1,-1):r===i.MemberNameType.Private?n.slice(1):n}function f(e,t){switch(e.type){case n.AST_NODE_TYPES.TSPropertySignature:case n.AST_NODE_TYPES.TSMethodSignature:case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.PropertyDefinition:return d(e,t);case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.MethodDefinition:return e.kind===`constructor`?`constructor`:d(e,t);case n.AST_NODE_TYPES.TSConstructSignatureDeclaration:return`new`;case n.AST_NODE_TYPES.TSCallSignatureDeclaration:return`call`;case n.AST_NODE_TYPES.TSIndexSignature:return(0,i.getNameFromIndexSignature)(e);case n.AST_NODE_TYPES.StaticBlock:return`static block`;default:return null}}function p(e){switch(e.type){case n.AST_NODE_TYPES.TSPropertySignature:case n.AST_NODE_TYPES.TSMethodSignature:case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.PropertyDefinition:case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.MethodDefinition:return e.optional}return!1}function m(e,t){let n=-1,r=[...e];for(;r.length>0&&n===-1;){let e=r.shift();n=t.findIndex(t=>Array.isArray(t)?t.includes(e):t===e)}return n}function h(e){return`accessibility`in e&&e.accessibility?e.accessibility:`key`in e&&e.key.type===n.AST_NODE_TYPES.PrivateIdentifier?`#private`:`public`}function g(e,t,r){let i=u(e);if(e.type===n.AST_NODE_TYPES.MethodDefinition&&e.value.type===n.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)return-1;if(i==null)return t.length-1;let a=e.type===n.AST_NODE_TYPES.TSAbstractAccessorProperty||e.type===n.AST_NODE_TYPES.TSAbstractPropertyDefinition||e.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition,o=`static`in e&&e.static?`static`:a?`abstract`:`instance`,s=h(e),c=[];return r&&(`decorators`in e&&e.decorators.length>0&&(i===`readonly-field`||i===`field`||i===`method`||i===`accessor`||i===`get`||i===`set`)&&(c.push(`${s}-decorated-${i}`),c.push(`decorated-${i}`),i===`readonly-field`&&(c.push(`${s}-decorated-field`),c.push(`decorated-field`))),i!==`readonly-signature`&&i!==`signature`&&i!==`static-initialization`&&(i!==`constructor`&&(c.push(`${s}-${o}-${i}`),c.push(`${o}-${i}`),i===`readonly-field`&&(c.push(`${s}-${o}-field`),c.push(`${o}-field`))),c.push(`${s}-${i}`),i===`readonly-field`&&c.push(`${s}-field`))),c.push(i),i===`readonly-signature`?c.push(`signature`):i===`readonly-field`&&c.push(`field`),m(c,t)}function _(e,t,n){let r=[],i=e.map(e=>g(e,t,n)),a;return e.forEach((t,n)=>{if(n===e.length-1)return;let o=i[n],s=i[n+1];o===a?r.at(-1)?.push(t):o===s&&(r.push([t]),a=o)}),r}function v(e,t,n){let r=e[e.length-1];e.forEach(e=>{e>t&&(r=Math.min(r,e))});let i=n[r];return(Array.isArray(i)?i:[i]).map(e=>e.replaceAll(`-`,` `)).join(`, `)}e.default=(0,i.createRule)({name:`member-ordering`,meta:{type:`suggestion`,docs:{description:`Require a consistent member declaration order`,frozen:!0},messages:{incorrectGroupOrder:`Member {{name}} should be declared before all {{rank}} definitions.`,incorrectOrder:`Member {{member}} should be declared before member {{beforeMember}}.`,incorrectRequiredMembersOrder:`Member {{member}} should be declared after all {{optionalOrRequired}} members.`},schema:[{type:`object`,$defs:{allItems:{type:`string`,enum:c},optionalityOrderOptions:{type:`string`,enum:[`optional-first`,`required-first`]},orderOptions:{type:`string`,enum:[`alphabetically`,`alphabetically-case-insensitive`,`as-written`,`natural`,`natural-case-insensitive`]},typeItems:{type:`string`,enum:[`readonly-signature`,`signature`,`readonly-field`,`field`,`method`,`constructor`]},baseConfig:{oneOf:[a,o(`#/items/0/$defs/allItems`),s(`#/items/0/$defs/allItems`)]},typesConfig:{oneOf:[a,o(`#/items/0/$defs/typeItems`),s(`#/items/0/$defs/typeItems`)]}},additionalProperties:!1,properties:{classes:{$ref:`#/items/0/$defs/baseConfig`,description:`Which ordering to enforce for classes.`},classExpressions:{$ref:`#/items/0/$defs/baseConfig`,description:`Which ordering to enforce for classExpressions.`},default:{$ref:`#/items/0/$defs/baseConfig`,description:`Which ordering to enforce for default.`},interfaces:{$ref:`#/items/0/$defs/typesConfig`,description:`Which ordering to enforce for interfaces.`},typeLiterals:{$ref:`#/items/0/$defs/typesConfig`,description:`Which ordering to enforce for typeLiterals.`}}}]},defaultOptions:[{default:{memberTypes:e.defaultOrder}}],create(e,[t]){function n(t,n,r){let i=[],a=[],o=!0;for(let s of t){let t=g(s,n,r),c=f(s,e.sourceCode),l=i[i.length-1];t!==-1&&(t<l?(e.report({node:s,messageId:`incorrectGroupOrder`,data:{name:c,rank:v(i,t,n)}}),o=!1):t===l?a[a.length-1].push(s):(i.push(t),a.push([s])))}return o?a:null}function i(t,n){let r=``,i=!0;return t.forEach(t=>{let o=f(t,e.sourceCode);o&&(a(o,r,n)&&(e.report({node:t,messageId:`incorrectOrder`,data:{beforeMember:r,member:o}}),i=!1),r=o)}),i}function a(e,t,n){if(e===t)return!1;switch(n){case`alphabetically`:return e<t;case`alphabetically-case-insensitive`:return e.toLowerCase()<t.toLowerCase();case`natural`:return(0,r.default)(e,t)!==1;case`natural-case-insensitive`:return(0,r.default)(e.toLowerCase(),t.toLowerCase())!==1}}function o(t,n){let r=t.findIndex((e,n)=>n&&p(e)!==p(t[n-1])),i=t=>e.report({loc:t.loc,messageId:`incorrectRequiredMembersOrder`,data:{member:f(t,e.sourceCode),optionalOrRequired:n===`required-first`?`required`:`optional`}});if(p(t[0])!==(n===`optional-first`))return i(t[0]),!1;for(let e=r+1;e<t.length;e++)if(p(t[e])!==p(t[r]))return i(t[r]),!1;return!0}function s(e,t,r){if(t===`never`)return;let a,s,c,l=e=>{a&&a!==`as-written`&&Array.isArray(s)&&_(e,s,r).forEach(e=>{i(e,a)})},u=t=>{let o=!!(a&&a!==`as-written`);if(Array.isArray(s)){let c=n(t,s,r);if(c==null)return l(e),!1;o&&c.map(e=>i(e,a))}else if(o)return i(t,a);return!1};if(Array.isArray(t)?s=t:(a=t.order,s=t.memberTypes,c=t.optionalityOrder),!c){u(e);return}let d=e.findIndex((t,n)=>n&&p(t)!==p(e[n-1]));if(d!==-1){if(!o(e,c))return;u(e.slice(0,d)),u(e.slice(d))}else u(e)}return{ClassDeclaration(e){s(e.body.body,t.classes??t.default,!0)},"ClassDeclaration, FunctionDeclaration"(e){`superClass`in e},ClassExpression(e){s(e.body.body,t.classExpressions??t.default,!0)},TSInterfaceDeclaration(e){s(e.body.body,t.interfaces??t.default,!1)},TSTypeLiteral(e){s(e.members,t.typeLiterals??t.default,!1)}}}})})),wDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`method-signature-style`,meta:{type:`suggestion`,docs:{description:`Enforce using a particular method signature syntax`},fixable:`code`,messages:{errorMethod:`Shorthand method signature is forbidden. Use a function property instead.`,errorProperty:`Function property signature is forbidden. Use a method shorthand instead.`},schema:[{type:`string`,description:`The method signature style to enforce using.`,enum:[`property`,`method`]}]},defaultOptions:[`property`],create(e,[i]){function a(t){let n=e.sourceCode.getText(t.key);return t.computed&&(n=`[${n}]`),t.optional&&(n=`${n}?`),t.readonly&&(n=`readonly ${n}`),n}function o(t){let r=`()`;if(t.params.length>0){let i=(0,n.nullThrows)(e.sourceCode.getTokenBefore(t.params[0],n.isOpeningParenToken),`Missing opening paren before first parameter`),a=(0,n.nullThrows)(e.sourceCode.getTokenAfter(t.params[t.params.length-1],n.isClosingParenToken),`Missing closing paren after last parameter`);r=e.sourceCode.text.substring(i.range[0],a.range[1])}return t.typeParameters!=null&&(r=`${e.sourceCode.getText(t.typeParameters)}${r}`),r}function s(t){return t.returnType==null?`any`:e.sourceCode.getText(t.returnType.typeAnnotation)}function c(t){let r=e.sourceCode.getLastToken(t);return r&&((0,n.isSemicolonToken)(r)||(0,n.isCommaToken)(r))?r.value:``}function l(e){return e.parent?e.parent.type===t.AST_NODE_TYPES.TSModuleDeclaration?!0:e.parent.type===t.AST_NODE_TYPES.Program?!1:l(e.parent):!1}return{...i===`property`&&{TSMethodSignature(n){if(n.kind!==`method`)return;let i=r(n.returnType),u=n.parent,d=(u.type===t.AST_NODE_TYPES.TSInterfaceBody?u.body:u.members).filter(e=>e.type===t.AST_NODE_TYPES.TSMethodSignature&&e!==n&&a(e)===a(n)),f=l(n);if(d.length>0){f?e.report({node:n,messageId:`errorMethod`}):e.report({node:n,messageId:`errorMethod`,fix:i?void 0:function*(t){let r=[n,...d].sort((e,t)=>e.range[0]<t.range[0]?-1:1).map(e=>`(${o(e)} => ${s(e)})`).join(` & `),i=a(n),l=c(n);yield t.replaceText(n,`${i}: ${r}${l}`);for(let n of d){let r=e.sourceCode.getLastToken(n);if(r){let i=e.sourceCode.getTokenAfter(r);i&&(yield t.remove(n),yield t.replaceTextRange([r.range[1],i.range[0]],``))}}}});return}f?e.report({node:n,messageId:`errorMethod`}):e.report({node:n,messageId:`errorMethod`,fix:i?void 0:e=>{let t=a(n),r=o(n),i=s(n),l=c(n);return e.replaceText(n,`${t}: ${r} => ${i}${l}`)}})}},...i===`method`&&{TSPropertySignature(n){let r=n.typeAnnotation?.typeAnnotation;r?.type===t.AST_NODE_TYPES.TSFunctionType&&e.report({node:n,messageId:`errorProperty`,fix:e=>{let t=a(n),i=o(r),l=s(r),u=c(n);return e.replaceText(n,`${t}${i}: ${l}${u}`)}})}}}}});function r(e){return e&&(0,n.forEachChildESTree)(e.typeAnnotation,e=>e.type===t.AST_NODE_TYPES.TSThisType)}})),E7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeModifiers=e.Modifiers=e.MetaSelectors=e.Selectors=e.UnderscoreOptions=e.PredefinedFormats=void 0;var t;(function(e){e[e.camelCase=1]=`camelCase`,e[e.strictCamelCase=2]=`strictCamelCase`,e[e.PascalCase=3]=`PascalCase`,e[e.StrictPascalCase=4]=`StrictPascalCase`,e[e.snake_case=5]=`snake_case`,e[e.UPPER_CASE=6]=`UPPER_CASE`})(t||(e.PredefinedFormats=t={}));var n;(function(e){e[e.forbid=1]=`forbid`,e[e.allow=2]=`allow`,e[e.require=3]=`require`,e[e.requireDouble=4]=`requireDouble`,e[e.allowDouble=5]=`allowDouble`,e[e.allowSingleOrDouble=6]=`allowSingleOrDouble`})(n||(e.UnderscoreOptions=n={}));var r;(function(e){e[e.variable=1]=`variable`,e[e.function=2]=`function`,e[e.parameter=4]=`parameter`,e[e.parameterProperty=8]=`parameterProperty`,e[e.classicAccessor=16]=`classicAccessor`,e[e.enumMember=32]=`enumMember`,e[e.classMethod=64]=`classMethod`,e[e.objectLiteralMethod=128]=`objectLiteralMethod`,e[e.typeMethod=256]=`typeMethod`,e[e.classProperty=512]=`classProperty`,e[e.objectLiteralProperty=1024]=`objectLiteralProperty`,e[e.typeProperty=2048]=`typeProperty`,e[e.autoAccessor=4096]=`autoAccessor`,e[e.class=8192]=`class`,e[e.interface=16384]=`interface`,e[e.typeAlias=32768]=`typeAlias`,e[e.enum=65536]=`enum`,e[e.typeParameter=131072]=`typeParameter`,e[e.import=262144]=`import`})(r||(e.Selectors=r={}));var i;(function(e){e[e.default=-1]=`default`,e[e.variableLike=7]=`variableLike`,e[e.memberLike=8184]=`memberLike`,e[e.typeLike=253952]=`typeLike`,e[e.method=448]=`method`,e[e.property=3584]=`property`,e[e.accessor=4112]=`accessor`})(i||(e.MetaSelectors=i={}));var a;(function(e){e[e.const=1]=`const`,e[e.readonly=2]=`readonly`,e[e.static=4]=`static`,e[e.public=8]=`public`,e[e.protected=16]=`protected`,e[e.private=32]=`private`,e[e[`#private`]=64]=`#private`,e[e.abstract=128]=`abstract`,e[e.destructured=256]=`destructured`,e[e.global=512]=`global`,e[e.exported=1024]=`exported`,e[e.unused=2048]=`unused`,e[e.requiresQuotes=4096]=`requiresQuotes`,e[e.override=8192]=`override`,e[e.async=16384]=`async`,e[e.default=32768]=`default`,e[e.namespace=65536]=`namespace`})(a||(e.Modifiers=a={}));var o;(function(e){e[e.boolean=131072]=`boolean`,e[e.string=262144]=`string`,e[e.number=524288]=`number`,e[e.function=1048576]=`function`,e[e.array=2097152]=`array`})(o||(e.TypeModifiers=o={}))})),D7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectorTypeToMessageString=n,e.isMetaSelector=r,e.isMethodOrPropertySelector=i;let t=E7();function n(e){let t=e.replaceAll(/([A-Z])/g,` $1`);return t.charAt(0).toUpperCase()+t.slice(1)}function r(e){return e in t.MetaSelectors}function i(e){return e===t.MetaSelectors.method||e===t.MetaSelectors.property}})),TDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PredefinedFormatToCheckFunction=void 0;let t=E7();function n(e){return e.length===0||e[0]===e[0].toUpperCase()&&!e.includes(`_`)}function r(e){return e.length===0||e[0]===e[0].toUpperCase()&&o(e,!0)}function i(e){return e.length===0||e[0]===e[0].toLowerCase()&&!e.includes(`_`)}function a(e){return e.length===0||e[0]===e[0].toLowerCase()&&o(e,!1)}function o(e,t){function n(e){return e===e.toUpperCase()&&e!==e.toLowerCase()}if(e.startsWith(`_`))return!1;for(let r=1;r<e.length;++r){if(e[r]===`_`)return!1;if(t===n(e[r])){if(t)return!1}else t=!t}return!0}function s(e){return e.length===0||e===e.toLowerCase()&&l(e)}function c(e){return e.length===0||e===e.toUpperCase()&&l(e)}function l(e){if(e.startsWith(`_`))return!1;let t=!1;for(let n=1;n<e.length;++n)if(e[n]===`_`){if(t)return!1;t=!0}else t=!1;return!t}e.PredefinedFormatToCheckFunction={[t.PredefinedFormats.camelCase]:i,[t.PredefinedFormats.PascalCase]:n,[t.PredefinedFormats.snake_case]:s,[t.PredefinedFormats.strictCamelCase]:a,[t.PredefinedFormats.StrictPascalCase]:r,[t.PredefinedFormats.UPPER_CASE]:c}})),EDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createValidator=o;let t=P8(),n=_7(),r=E7(),i=TDe(),a=D7();function o(e,n,o){let s=r.Selectors[e],l=o.filter(e=>(e.selector&s)!==0||e.selector===r.MetaSelectors.default).sort((e,t)=>{if(e.selector===t.selector)return t.modifierWeight-e.modifierWeight;let n=(0,a.isMetaSelector)(e.selector),r=(0,a.isMetaSelector)(t.selector);if(n&&!r)return 1;if(!n&&r)return-1;let i=(0,a.isMethodOrPropertySelector)(e.selector),o=(0,a.isMethodOrPropertySelector)(t.selector);return i&&!o?-1:!i&&o?1:t.selector-e.selector});return(e,r=new Set)=>{let i=e.type===t.AST_NODE_TYPES.Identifier||e.type===t.AST_NODE_TYPES.PrivateIdentifier?e.name:`${e.value}`;for(let t of l){if(t.filter?.regex.test(i)!==t.filter?.match||t.modifiers?.some(e=>!r.has(e))||!c(e,t,n,s))continue;let a=i;a=d(`leading`,t,a,e,i),a==null||(a=d(`trailing`,t,a,e,i),a==null)||(a=f(`prefix`,t,a,e,i),a==null)||(a=f(`suffix`,t,a,e,i),a==null)||!p(t,a,e,i)||m(t,a,e,i,r);return}};function u({affixes:t,count:n,custom:i,formats:o,originalName:s,position:c,processedName:l}){return{affixes:t?.join(`, `),count:n,formats:o?.map(e=>r.PredefinedFormats[e]).join(`, `),name:s,position:c,processedName:l,regex:i?.regex.toString(),regexMatch:i?.match===!0?`match`:i?.match===!1?`not match`:null,type:(0,a.selectorTypeToMessageString)(e)}}function d(e,t,i,a,o){let s=e===`leading`?t.leadingUnderscore:t.trailingUnderscore;if(!s)return i;let c=e===`leading`?()=>i.startsWith(`_`):()=>i.endsWith(`_`),l=e===`leading`?()=>i.slice(1):()=>i.slice(0,-1),d=e===`leading`?()=>i.startsWith(`__`):()=>i.endsWith(`__`),f=e===`leading`?()=>i.slice(2):()=>i.slice(0,-2);switch(s){case r.UnderscoreOptions.allow:return c()?l():i;case r.UnderscoreOptions.allowDouble:return d()?f():i;case r.UnderscoreOptions.allowSingleOrDouble:return d()?f():c()?l():i;case r.UnderscoreOptions.forbid:return c()?(n.report({data:u({count:`one`,originalName:o,position:e}),messageId:`unexpectedUnderscore`,node:a}),null):i;case r.UnderscoreOptions.require:return c()?l():(n.report({data:u({count:`one`,originalName:o,position:e}),messageId:`missingUnderscore`,node:a}),null);case r.UnderscoreOptions.requireDouble:return d()?f():(n.report({data:u({count:`two`,originalName:o,position:e}),messageId:`missingUnderscore`,node:a}),null)}}function f(e,t,r,i,a){let o=t[e];if(!o||o.length===0)return r;for(let t of o){let n=e===`prefix`?r.startsWith(t):r.endsWith(t),i=e===`prefix`?()=>r.slice(t.length):()=>r.slice(0,-t.length);if(n)return i()}return n.report({data:u({affixes:o,originalName:a,position:e}),messageId:`missingAffix`,node:i}),null}function p(e,t,r,i){let a=e.custom;if(!a)return!0;let o=a.regex.test(t);return a.match&&o||!a.match&&!o?!0:(n.report({data:u({custom:a,originalName:i}),messageId:`satisfyCustom`,node:r}),!1)}function m(e,t,a,o,s){let c=e.format;if(!c?.length)return!0;if(!s.has(r.Modifiers.requiresQuotes))for(let e of c){let n=i.PredefinedFormatToCheckFunction[e];if(n(t))return!0}return n.report({data:u({formats:c,originalName:o,processedName:t}),messageId:o===t?`doesNotMatchFormat`:`doesNotMatchFormatTrimmed`,node:a}),!1}}let s=r.Selectors.variable|r.Selectors.parameter|r.Selectors.classProperty|r.Selectors.objectLiteralProperty|r.Selectors.typeProperty|r.Selectors.parameterProperty|r.Selectors.classicAccessor;function c(e,t,i,a){if(t.types==null||(s&a)===0)return!0;let o=(0,n.getParserServices)(i),c=o.program.getTypeChecker(),u=o.getTypeAtLocation(e).getNonNullableType();for(let e of t.types)switch(e){case r.TypeModifiers.array:if(l(u,e=>c.isArrayType(e)||c.isTupleType(e)))return!0;break;case r.TypeModifiers.function:if(l(u,e=>e.getCallSignatures().length>0))return!0;break;case r.TypeModifiers.boolean:case r.TypeModifiers.number:case r.TypeModifiers.string:if(c.typeToString(c.getWidenedType(c.getBaseTypeOfLiteralType(u)))===r.TypeModifiers[e])return!0;break}return!1}function l(e,t){return e.isUnion()?e.types.every(e=>t(e)):t(e)}})),O7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseOptions=o;let t=_7(),n=E7(),r=D7(),i=EDe();function a(e){let t=0;e.modifiers?.forEach(e=>{t|=n.Modifiers[e]}),e.types?.forEach(e=>{t|=n.TypeModifiers[e]}),e.filter&&(t|=1<<30);let i={custom:e.custom?{match:e.custom.match,regex:new RegExp(e.custom.regex,`u`)}:null,filter:e.filter==null?null:typeof e.filter==`string`?{match:!0,regex:new RegExp(e.filter,`u`)}:{match:e.filter.match,regex:new RegExp(e.filter.regex,`u`)},format:e.format?e.format.map(e=>n.PredefinedFormats[e]):null,leadingUnderscore:e.leadingUnderscore==null?null:n.UnderscoreOptions[e.leadingUnderscore],modifiers:e.modifiers?.map(e=>n.Modifiers[e])??null,prefix:e.prefix&&e.prefix.length>0?e.prefix:null,suffix:e.suffix&&e.suffix.length>0?e.suffix:null,trailingUnderscore:e.trailingUnderscore==null?null:n.UnderscoreOptions[e.trailingUnderscore],types:e.types?.map(e=>n.TypeModifiers[e])??null,modifierWeight:t};return(Array.isArray(e.selector)?e.selector:[e.selector]).map(e=>({selector:(0,r.isMetaSelector)(e)?n.MetaSelectors[e]:n.Selectors[e],...i}))}function o(e){let r=e.options.flatMap(a);return Object.fromEntries((0,t.getEnumNames)(n.Selectors).map(t=>[t,(0,i.createValidator)(t,e,r)]))}})),DDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SCHEMA=void 0;let t=_7(),n=E7(),r={predefinedFormats:{enum:(0,t.getEnumNames)(n.PredefinedFormats),type:`string`},typeModifiers:{enum:(0,t.getEnumNames)(n.TypeModifiers),type:`string`},underscoreOptions:{enum:(0,t.getEnumNames)(n.UnderscoreOptions),type:`string`},formatOptionsConfig:{oneOf:[{additionalItems:!1,items:{$ref:`#/$defs/predefinedFormats`},type:`array`},{type:`null`}]},matchRegexConfig:{additionalProperties:!1,properties:{match:{type:`boolean`},regex:{type:`string`}},required:[`match`,`regex`],type:`object`},prefixSuffixConfig:{additionalItems:!1,items:{minLength:1,type:`string`},type:`array`}},i={$ref:`#/$defs/underscoreOptions`},a={$ref:`#/$defs/prefixSuffixConfig`},o={$ref:`#/$defs/matchRegexConfig`},s={custom:o,failureMessage:{type:`string`},format:{$ref:`#/$defs/formatOptionsConfig`},leadingUnderscore:i,prefix:a,suffix:a,trailingUnderscore:i};function c(e,t,n){let r={filter:{oneOf:[{minLength:1,type:`string`},o]},selector:{enum:[e],type:`string`}};return n&&n.length>0&&(r.modifiers={additionalItems:!1,items:{enum:n,type:`string`},type:`array`}),t&&(r.types={additionalItems:!1,items:{$ref:`#/$defs/typeModifiers`},type:`array`}),[{additionalProperties:!1,description:`Selector '${e}'`,properties:{...s,...r},required:[`selector`,`format`],type:`object`}]}function l(){return{additionalProperties:!1,description:`Multiple selectors in one config`,properties:{...s,filter:{oneOf:[{minLength:1,type:`string`},o]},modifiers:{additionalItems:!1,items:{enum:(0,t.getEnumNames)(n.Modifiers),type:`string`},type:`array`},selector:{additionalItems:!1,items:{enum:[...(0,t.getEnumNames)(n.MetaSelectors),...(0,t.getEnumNames)(n.Selectors)],type:`string`},type:`array`},types:{additionalItems:!1,items:{$ref:`#/$defs/typeModifiers`},type:`array`}},required:[`selector`,`format`],type:`object`}}e.SCHEMA={$defs:r,additionalItems:!1,items:{oneOf:[l(),...c(`default`,!1,(0,t.getEnumNames)(n.Modifiers)),...c(`variableLike`,!1,[`unused`,`async`]),...c(`variable`,!0,[`const`,`destructured`,`exported`,`global`,`unused`,`async`]),...c(`function`,!1,[`exported`,`global`,`unused`,`async`]),...c(`parameter`,!0,[`destructured`,`unused`]),...c(`memberLike`,!1,[`abstract`,`private`,`#private`,`protected`,`public`,`readonly`,`requiresQuotes`,`static`,`override`,`async`]),...c(`classProperty`,!0,[`abstract`,`private`,`#private`,`protected`,`public`,`readonly`,`requiresQuotes`,`static`,`override`]),...c(`objectLiteralProperty`,!0,[`public`,`requiresQuotes`]),...c(`typeProperty`,!0,[`public`,`readonly`,`requiresQuotes`]),...c(`parameterProperty`,!0,[`private`,`protected`,`public`,`readonly`]),...c(`property`,!0,[`abstract`,`private`,`#private`,`protected`,`public`,`readonly`,`requiresQuotes`,`static`,`override`,`async`]),...c(`classMethod`,!1,[`abstract`,`private`,`#private`,`protected`,`public`,`requiresQuotes`,`static`,`override`,`async`]),...c(`objectLiteralMethod`,!1,[`public`,`requiresQuotes`,`async`]),...c(`typeMethod`,!1,[`public`,`requiresQuotes`]),...c(`method`,!1,[`abstract`,`private`,`#private`,`protected`,`public`,`requiresQuotes`,`static`,`override`,`async`]),...c(`classicAccessor`,!0,[`abstract`,`private`,`protected`,`public`,`requiresQuotes`,`static`,`override`]),...c(`autoAccessor`,!0,[`abstract`,`private`,`protected`,`public`,`requiresQuotes`,`static`,`override`]),...c(`accessor`,!0,[`abstract`,`private`,`protected`,`public`,`requiresQuotes`,`static`,`override`]),...c(`enumMember`,!1,[`requiresQuotes`]),...c(`typeLike`,!1,[`abstract`,`exported`,`unused`]),...c(`class`,!1,[`abstract`,`exported`,`unused`]),...c(`interface`,!1,[`exported`,`unused`]),...c(`typeAlias`,!1,[`exported`,`unused`]),...c(`enum`,!1,[`exported`,`unused`]),...c(`typeParameter`,!1,[`unused`]),...c(`import`,!1,[`default`,`namespace`])]},type:`array`}})),k7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectorTypeToMessageString=e.SCHEMA=e.parseOptions=e.Modifiers=void 0;var t=E7();Object.defineProperty(e,`Modifiers`,{enumerable:!0,get:function(){return t.Modifiers}});var n=O7();Object.defineProperty(e,`parseOptions`,{enumerable:!0,get:function(){return n.parseOptions}});var r=DDe();Object.defineProperty(e,`SCHEMA`,{enumerable:!0,get:function(){return r.SCHEMA}});var i=D7();Object.defineProperty(e,`selectorTypeToMessageString`,{enumerable:!0,get:function(){return i.selectorTypeToMessageString}})})),ODe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=k7(),a=[{format:[`camelCase`],leadingUnderscore:`allow`,selector:`default`,trailingUnderscore:`allow`},{format:[`camelCase`,`PascalCase`],selector:`import`},{format:[`camelCase`,`UPPER_CASE`],leadingUnderscore:`allow`,selector:`variable`,trailingUnderscore:`allow`},{format:[`PascalCase`],selector:`typeLike`}];e.default=(0,r.createRule)({name:`naming-convention`,meta:{type:`suggestion`,docs:{description:`Enforce naming conventions for everything across a codebase`,frozen:!0,requiresTypeChecking:!0},messages:{doesNotMatchFormat:"{{type}} name `{{name}}` must match one of the following formats: {{formats}}",doesNotMatchFormatTrimmed:"{{type}} name `{{name}}` trimmed as `{{processedName}}` must match one of the following formats: {{formats}}",missingAffix:"{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}",missingUnderscore:"{{type}} name `{{name}}` must have {{count}} {{position}} underscore(s).",satisfyCustom:"{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}",unexpectedUnderscore:"{{type}} name `{{name}}` must not have a {{position}} underscore."},schema:i.SCHEMA},defaultOptions:a,create(e){let t=e.options.length>0?e:Object.setPrototypeOf({options:a},e),u=(0,i.parseOptions)(t),d=(0,r.getParserServices)(t,!0).program?.getCompilerOptions()??{};function f(e,t,n){let r=t.key;l(r,d.target)&&n.add(i.Modifiers.requiresQuotes),e(r,n)}function p(e){let t=new Set;return`key`in e&&e.key.type===n.AST_NODE_TYPES.PrivateIdentifier?t.add(i.Modifiers[`#private`]):e.accessibility?t.add(i.Modifiers[e.accessibility]):t.add(i.Modifiers.public),e.static&&t.add(i.Modifiers.static),`readonly`in e&&e.readonly&&t.add(i.Modifiers.readonly),`override`in e&&e.override&&t.add(i.Modifiers.override),(e.type===n.AST_NODE_TYPES.TSAbstractPropertyDefinition||e.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition||e.type===n.AST_NODE_TYPES.TSAbstractAccessorProperty)&&t.add(i.Modifiers.abstract),t}let{unusedVariables:m}=(0,r.collectVariables)(t);function h(e,t){let n=null,r=t;for(;r&&(n=r.set.get(e)??null,!n);)r=r.upper;return n?m.has(n):!1}function g(e){return e.parent.type===n.AST_NODE_TYPES.Property&&e.parent.shorthand||e.parent.type===n.AST_NODE_TYPES.AssignmentPattern&&e.parent.parent.type===n.AST_NODE_TYPES.Property&&e.parent.parent.shorthand}function _(e){return!!(`value`in e&&e.value&&`async`in e.value&&e.value.async)}function v(e){return!!(`async`in e.parent&&e.parent.async||`init`in e.parent&&e.parent.init&&`async`in e.parent.init&&e.parent.init.async)}let y={"FunctionDeclaration, TSDeclareFunction, FunctionExpression":{handler:(e,n)=>{if(e.id==null)return;let r=new Set,a=t.sourceCode.getScope(e).upper;c(a)&&r.add(i.Modifiers.global),s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),e.async&&r.add(i.Modifiers.async),n(e.id,r)},validator:u.function},"ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier":{handler:(e,t)=>{let r=new Set;switch(e.type){case n.AST_NODE_TYPES.ImportDefaultSpecifier:r.add(i.Modifiers.default);break;case n.AST_NODE_TYPES.ImportNamespaceSpecifier:r.add(i.Modifiers.namespace);break;case n.AST_NODE_TYPES.ImportSpecifier:if(e.imported.type===n.AST_NODE_TYPES.Identifier&&e.imported.name!==`default`)return;r.add(i.Modifiers.default);break}t(e.local,r)},validator:u.import},VariableDeclarator:{handler:(e,n)=>{let r=o(e.id),a=new Set,l=e.parent;l.kind===`const`&&a.add(i.Modifiers.const),c(t.sourceCode.getScope(e))&&a.add(i.Modifiers.global),r.forEach(e=>{let r=new Set(a);g(e)&&r.add(i.Modifiers.destructured);let o=t.sourceCode.getScope(e);s(l,e.name,o)&&r.add(i.Modifiers.exported),h(e.name,o)&&r.add(i.Modifiers.unused),v(e)&&r.add(i.Modifiers.async),n(e,r)})},validator:u.variable},':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]':{handler:(e,t)=>{f(t,e,p(e))},validator:u.classProperty},':not(ObjectPattern) > Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]':{handler:(e,t)=>{f(t,e,new Set([i.Modifiers.public]))},validator:u.objectLiteralProperty},[[`:matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "ArrowFunctionExpression"]`,`:matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "FunctionExpression"]`,`:matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "TSEmptyBodyFunctionExpression"]`,`:matches(MethodDefinition, TSAbstractMethodDefinition)[computed = false][kind = "method"]`].join(`, `)]:{handler:(e,t)=>{let n=p(e);_(e)&&n.add(i.Modifiers.async),f(t,e,n)},validator:u.classMethod},[[`MethodDefinition[computed = false]:matches([kind = "get"], [kind = "set"])`,`TSAbstractMethodDefinition[computed = false]:matches([kind="get"], [kind="set"])`].join(`, `)]:{handler:(e,t)=>{f(t,e,p(e))},validator:u.classicAccessor},[[`Property[computed = false][kind = "init"][value.type = "ArrowFunctionExpression"]`,`Property[computed = false][kind = "init"][value.type = "FunctionExpression"]`,`Property[computed = false][kind = "init"][value.type = "TSEmptyBodyFunctionExpression"]`].join(`, `)]:{handler:(e,t)=>{let n=new Set([i.Modifiers.public]);_(e)&&n.add(i.Modifiers.async),f(t,e,n)},validator:u.objectLiteralMethod},[[`TSMethodSignature[computed = false]`,`TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type = "TSFunctionType"]`].join(`, `)]:{handler:(e,t)=>{f(t,e,new Set([i.Modifiers.public]))},validator:u.typeMethod},[[n.AST_NODE_TYPES.AccessorProperty,n.AST_NODE_TYPES.TSAbstractAccessorProperty].join(`, `)]:{handler:(e,t)=>{f(t,e,p(e))},validator:u.autoAccessor},"FunctionDeclaration, TSDeclareFunction, TSEmptyBodyFunctionExpression, FunctionExpression, ArrowFunctionExpression":{handler:(e,r)=>{e.params.forEach(e=>{e.type!==n.AST_NODE_TYPES.TSParameterProperty&&o(e).forEach(e=>{let n=new Set;g(e)&&n.add(i.Modifiers.destructured),h(e.name,t.sourceCode.getScope(e))&&n.add(i.Modifiers.unused),r(e,n)})})},validator:u.parameter},'Property[computed = false]:matches([kind = "get"], [kind = "set"])':{handler:(e,t)=>{f(t,e,new Set([i.Modifiers.public]))},validator:u.classicAccessor},TSParameterProperty:{handler:(e,t)=>{let n=p(e);o(e.parameter).forEach(e=>{t(e,n)})},validator:u.parameterProperty},'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type != "TSFunctionType"]':{handler:(e,t)=>{let n=new Set([i.Modifiers.public]);e.readonly&&n.add(i.Modifiers.readonly),f(t,e,n)},validator:u.typeProperty},"ClassDeclaration, ClassExpression":{handler:(e,n)=>{let r=e.id;if(r==null)return;let a=new Set,o=t.sourceCode.getScope(e).upper;e.abstract&&a.add(i.Modifiers.abstract),s(e,r.name,o)&&a.add(i.Modifiers.exported),h(r.name,o)&&a.add(i.Modifiers.unused),n(r,a)},validator:u.class},TSEnumDeclaration:{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e).upper;s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),n(e.id,r)},validator:u.enum},TSEnumMember:{handler:(e,t)=>{let n=e.id,r=new Set;l(n,d.target)&&r.add(i.Modifiers.requiresQuotes),t(n,r)},validator:u.enumMember},TSInterfaceDeclaration:{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e);s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),n(e.id,r)},validator:u.interface},TSTypeAliasDeclaration:{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e);s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),n(e.id,r)},validator:u.typeAlias},"TSTypeParameterDeclaration > TSTypeParameter":{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e);h(e.name.name,a)&&r.add(i.Modifiers.unused),n(e.name,r)},validator:u.typeParameter}};return Object.fromEntries(Object.entries(y).map(([e,{handler:t,validator:n}])=>[e,e=>{t(e,n)}]))}});function o(e){let n=[];return new t.PatternVisitor({},e,e=>n.push(e)).visit(e),n}function s(e,t,r){if(e?.parent?.type===n.AST_NODE_TYPES.ExportDefaultDeclaration||e?.parent?.type===n.AST_NODE_TYPES.ExportNamedDeclaration)return!0;if(r==null)return!1;let i=r.set.get(t);if(i)for(let e of i.references){let t=e.identifier.parent;if(t.type===n.AST_NODE_TYPES.ExportDefaultDeclaration||t.type===n.AST_NODE_TYPES.ExportSpecifier)return!0}return!1}function c(e){return e==null?!1:e.type===n.TSESLint.Scope.ScopeType.global||e.type===n.TSESLint.Scope.ScopeType.module}function l(e,t){let i=e.type===n.AST_NODE_TYPES.Identifier||e.type===n.AST_NODE_TYPES.PrivateIdentifier?e.name:`${e.value}`;return(0,r.requiresQuoting)(i,t)}})),kDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=j8();e.default=(0,_7().createRule)({name:`no-array-constructor`,meta:{type:`suggestion`,docs:{description:"Disallow generic `Array` constructors",extendsBaseRule:!0,recommended:`recommended`},fixable:`code`,messages:{useLiteral:`The array literal notation [] is preferable.`},schema:[]},defaultOptions:[],create(e){let r=e.sourceCode;function i(e){let t=r.getLastToken(e);if(t==null||!(0,n.isClosingParenToken)(t))return``;let i=e.callee;do if(i=r.getTokenAfter(i),!i||i===t)return``;while(!(0,n.isOpeningParenToken)(i));return r.text.slice(i.range[1],t.range[0])}function a(n){n.arguments.length!==1&&n.callee.type===t.AST_NODE_TYPES.Identifier&&n.callee.name===`Array`&&!n.typeArguments&&e.report({node:n,messageId:`useLiteral`,fix(e){let t=i(n);return e.replaceText(n,`[${t}]`)}})}return{CallExpression:a,NewExpression:a}}})})),ADe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-array-delete`,meta:{type:`problem`,docs:{description:"Disallow using the `delete` operator on array values",recommended:`recommended`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{noArrayDelete:"Using the `delete` operator with an array expression is unsafe.",useSplice:"Use `array.splice()` instead."},schema:[]},defaultOptions:[],create(e){let r=(0,n.getParserServices)(e),i=r.program.getTypeChecker();function a(e){let t=e=>i.isArrayType(e)||i.isTupleType(e);return e.isUnion()?e.types.every(t):e.isIntersection()?e.types.some(t):t(e)}return{'UnaryExpression[operator="delete"]'(i){let{argument:o}=i;o.type===t.AST_NODE_TYPES.MemberExpression&&a((0,n.getConstrainedTypeAtLocation)(r,o.object))&&e.report({node:i,messageId:`noArrayDelete`,suggest:[{messageId:`useSplice`,fix(n){let{object:a,property:s}=o,c=s.type===t.AST_NODE_TYPES.SequenceExpression,l=r.esTreeNodeToTSNodeMap,u=l.get(a).getText(),d=l.get(s).getText(),f=`${u}.splice(${c?`(${d})`:d}, 1)`,p=e.sourceCode.getCommentsInside(i);if(p.length>0){let e=i.loc.start.column,n=` `.repeat(e);f=`${p.map(e=>e.type===t.AST_TOKEN_TYPES.Line?`//${e.value}`:`/*${e.value}*/`).join(`\n${n}`)}\n${n}${f}`}return n.replaceText(i,f)}}]})}}}})})),jDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();var c;(function(e){e.Always=`always`,e.Never=`will`,e.Sometimes=`may`})(c||={});let l=e=>o.isTypeAliasDeclaration(e)||o.isInterfaceDeclaration(e)||o.isClassDeclaration(e);e.default=(0,s.createRule)({name:`no-base-to-string`,meta:{type:`suggestion`,docs:{description:"Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified",recommended:`recommended`,requiresTypeChecking:!0},messages:{baseArrayJoin:"Using `join()` for {{name}} {{certainty}} use Object's default stringification format ('[object Object]') when stringified.",baseToString:`'{{name}}' {{certainty}} use Object's default stringification format ('[object Object]') when stringified.`},schema:[{type:`object`,additionalProperties:!1,properties:{checkUnknown:{type:`boolean`,description:"Whether to also check values of type `unknown`"},ignoredTypeNames:{type:`array`,description:`Stringified type names to ignore.`,items:{type:`string`}}}}]},defaultOptions:[{checkUnknown:!1,ignoredTypeNames:[`Error`,`RegExp`,`URL`,`URLSearchParams`]}],create(e,[t]){let n=(0,s.getParserServices)(e),{program:r}=n,u=r.getTypeChecker(),d=t.ignoredTypeNames??[];function f(t,r){if(t.type===i.AST_NODE_TYPES.Literal)return;let a=y(r??n.getTypeAtLocation(t),new Set);a!==c.Always&&e.report({node:t,messageId:`baseToString`,data:{name:e.sourceCode.getText(t),certainty:a}})}function p(t,n){let r=v(n,new Set);r!==c.Always&&e.report({node:t,messageId:`baseArrayJoin`,data:{name:e.sourceCode.getText(t),certainty:r}})}function m(e,t){let n=e.types.map(e=>t(e));return n.every(e=>e===c.Never)?c.Never:n.every(e=>e===c.Always)?c.Always:c.Sometimes}function h(e,t){for(let n of e.types)if(t(n)===c.Always)return c.Always;return c.Never}function g(e,t){let n=u.getTypeArguments(e).map(e=>y(e,t));return n.some(e=>e===c.Never)?c.Never:n.some(e=>e===c.Sometimes)?c.Sometimes:c.Always}function _(e,t){return y((0,s.nullThrows)(e.getNumberIndexType(),`array should have number index type`),t)}function v(e,t){return a.isUnionType(e)?m(e,e=>v(e,t)):a.isIntersectionType(e)?h(e,e=>v(e,t)):u.isTupleType(e)?g(e,t):u.isArrayType(e)?_(e,t):c.Always}function y(e,r){if(r.has(e))return c.Always;if(a.isTypeParameter(e)){let n=e.getConstraint();return n?y(n,r):t.checkUnknown?c.Sometimes:c.Always}if(a.isTypeFlagSet(e,o.TypeFlags.Boolean)||a.isTypeFlagSet(e,o.TypeFlags.BooleanLiteral))return c.Always;let i=e.aliasSymbol??e.getSymbol(),f=i?.getDeclarations()?.[0];if(f&&l(f)&&f.typeParameters&&d.includes(i.name)||(0,s.matchesTypeOrBaseType)(n,e=>d.includes((0,s.getTypeName)(u,e)),e))return c.Always;if(e.isIntersection())return h(e,e=>y(e,r));if(e.isUnion())return m(e,e=>y(e,r));if(u.isTupleType(e))return g(e,new Set([...r,e]));if(u.isArrayType(e))return _(e,new Set([...r,e]));switch(S(e)){case void 0:return t.checkUnknown&&e.flags===o.TypeFlags.Unknown?c.Sometimes:c.Always;case!0:return c.Never;case!1:return c.Always}}function b(t){return t.callee.type===i.AST_NODE_TYPES.Identifier&&t.callee.name===`String`&&t.arguments[0]?!e.sourceCode.getScope(t).set.get(`String`)?.defs.length:!1}function x(e){return o.isMethodSignature(e)&&o.isComputedPropertyName(e.name)&&o.isPropertyAccessExpression(e.name.expression)&&o.isIdentifier(e.name.expression.expression)&&e.name.expression.expression.text===`Symbol`&&o.isIdentifier(e.name.expression.name)&&e.name.expression.name.text===`toPrimitive`&&(0,s.isSymbolFromDefaultLibrary)(r,u.getSymbolAtLocation(e.name.expression.expression))}function S(e){if(e.getProperties().some(e=>e.valueDeclaration&&x(e.valueDeclaration)))return!1;let t=!1;for(let n of[`toLocaleString`,`toString`,`valueOf`]){let r=u.getPropertyOfType(e,n);if(!r)continue;let i=r.getDeclarations();if(i?.length){if(i.some(e=>!(o.isInterfaceDeclaration(e.parent)&&e.parent.name.text===`Object`)))return!1;t=!0}}return t?!0:void 0}return{'AssignmentExpression[operator = "+="], BinaryExpression[operator = "+"]'(e){let t=n.getTypeAtLocation(e.left),r=n.getTypeAtLocation(e.right);(0,s.getTypeName)(u,t)===`string`?f(e.right,r):(0,s.getTypeName)(u,r)===`string`&&e.left.type!==i.AST_NODE_TYPES.PrivateIdentifier&&f(e.left,t)},CallExpression(e){b(e)&&e.arguments[0].type!==i.AST_NODE_TYPES.SpreadElement&&f(e.arguments[0])},'CallExpression > MemberExpression.callee > Identifier[name = "join"].property'(e){let t=e.parent,r=(0,s.getConstrainedTypeAtLocation)(n,t.object);p(t.object,r)},"CallExpression > MemberExpression.callee > Identifier[name = /^(toLocaleString|toString)$/].property"(e){let t=e.parent;f(t.object)},TemplateLiteral(e){if(e.parent.type!==i.AST_NODE_TYPES.TaggedTemplateExpression)for(let t of e.expressions)f(t)}}}})})),MDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=new Set([`=`,`==`,`===`,`in`,`instanceof`]);function i(e){return r.has(e)}e.default=(0,n.createRule)({name:`no-confusing-non-null-assertion`,meta:{type:`problem`,docs:{description:`Disallow non-null assertion in locations that may be confusing`,recommended:`stylistic`},hasSuggestions:!0,messages:{confusingAssign:"Confusing combination of non-null assertion and assignment like `a! = b`, which looks very similar to `a != b`.",confusingEqual:"Confusing combination of non-null assertion and equality test like `a! == b`, which looks very similar to `a !== b`.",confusingOperator:"Confusing combination of non-null assertion and `{{operator}}` operator like `a! {{operator}} b`, which might be misinterpreted as `!(a {{operator}} b)`.",notNeedInAssign:`Remove unnecessary non-null assertion (!) in assignment left-hand side.`,notNeedInEqualTest:`Remove unnecessary non-null assertion (!) in equality test.`,notNeedInOperator:"Remove possibly unnecessary non-null assertion (!) in the left operand of the `{{operator}}` operator.",wrapUpLeft:`Wrap the left-hand side in parentheses to avoid confusion with "{{operator}}" operator.`},schema:[]},defaultOptions:[],create(e){function n(e){switch(e){case`=`:return{messageId:`confusingAssign`};case`==`:case`===`:return{messageId:`confusingEqual`};case`in`:case`instanceof`:return{messageId:`confusingOperator`,data:{operator:e}};default:throw Error(`Unexpected operator ${e}`)}}return{"BinaryExpression, AssignmentExpression"(r){let o=r.operator;if(i(o)){let i=e.sourceCode.getLastToken(r.left),s=e.sourceCode.getTokenAfter(r.left);if(i?.type===t.AST_TOKEN_TYPES.Punctuator&&i.value===`!`&&s?.value!==`)`)if(r.left.type===t.AST_NODE_TYPES.TSNonNullExpression){let t;switch(o){case`=`:t=[{messageId:`notNeedInAssign`,fix:e=>e.remove(i)}];break;case`==`:case`===`:t=[{messageId:`notNeedInEqualTest`,fix:e=>e.remove(i)}];break;case`in`:case`instanceof`:t=[{messageId:`notNeedInOperator`,data:{operator:o},fix:e=>e.remove(i)},{messageId:`wrapUpLeft`,data:{operator:o},fix:a(r)}];break;default:return}e.report({node:r,...n(o),suggest:t})}else e.report({node:r,...n(o),suggest:[{messageId:`wrapUpLeft`,data:{operator:o},fix:a(r)}]})}}}}});function a(e){return t=>[t.insertTextBefore(e.left,`(`),t.insertTextAfter(e.left,`)`)]}})),A7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getParentFunctionNode=n;let t=P8();function n(e){let n=e.parent;for(;n;){if(n.type===t.AST_NODE_TYPES.ArrowFunctionExpression||n.type===t.AST_NODE_TYPES.FunctionDeclaration||n.type===t.AST_NODE_TYPES.FunctionExpression)return n;n=n.parent}return null}})),NDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=A7();e.default=(0,s.createRule)({name:`no-confusing-void-expression`,meta:{type:`problem`,docs:{description:`Require expressions of type void to appear in statement position`,recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,hasSuggestions:!0,messages:{invalidVoidExpr:`Placing a void expression inside another expression is forbidden. Move it to its own statement instead.`,invalidVoidExprArrow:`Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function.`,invalidVoidExprArrowWrapVoid:"Void expressions returned from an arrow function shorthand must be marked explicitly with the `void` operator.",invalidVoidExprReturn:"Returning a void expression from a function is forbidden. Please move it before the `return` statement.",invalidVoidExprReturnLast:"Returning a void expression from a function is forbidden. Please remove the `return` statement.",invalidVoidExprReturnWrapVoid:"Void expressions returned from a function must be marked explicitly with the `void` operator.",invalidVoidExprWrapVoid:"Void expressions used inside another expression must be moved to its own statement or marked explicitly with the `void` operator.",voidExprWrapVoid:"Mark with an explicit `void` operator."},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreArrowShorthand:{type:`boolean`,description:'Whether to ignore "shorthand" `() =>` arrow functions: those without `{ ... }` braces.'},ignoreVoidOperator:{type:`boolean`,description:"Whether to ignore returns that start with the `void` operator."},ignoreVoidReturningFunctions:{type:`boolean`,description:"Whether to ignore returns from functions with explicit `void` return types and functions with contextual `void` return types."}}}]},defaultOptions:[{ignoreArrowShorthand:!1,ignoreVoidOperator:!1,ignoreVoidReturningFunctions:!1}],create(e,[t]){let n=(0,s.getParserServices)(e);return{"AwaitExpression, CallExpression, TaggedTemplateExpression"(f){let m=(0,s.getConstrainedTypeAtLocation)(n,f);if(!a.isTypeFlagSet(m,o.TypeFlags.VoidLike))return;let h=r(f);if(h==null)return;let g=t=>{let n=`void ${e.sourceCode.getText(f)}`;return t.replaceText(f,n)};if(h.type===i.AST_NODE_TYPES.ArrowFunctionExpression){if(t.ignoreVoidReturningFunctions&&p(h))return;if(t.ignoreVoidOperator)return e.report({node:f,messageId:`invalidVoidExprArrowWrapVoid`,fix:g});let n=h;return e.report({node:f,messageId:`invalidVoidExprArrow`,fix(t){if(!d(n))return null;let r=n.body,i=`{ ${e.sourceCode.getText(r)}; }`;if((0,s.isParenthesized)(r,e.sourceCode)){let n=(0,s.nullThrows)(e.sourceCode.getTokenBefore(r,s.isOpeningParenToken),s.NullThrowsReasons.MissingToken(`opening parenthesis`,`arrow body`)),a=(0,s.nullThrows)(e.sourceCode.getTokenAfter(r,s.isClosingParenToken),s.NullThrowsReasons.MissingToken(`closing parenthesis`,`arrow body`));return t.replaceTextRange([n.range[0],a.range[1]],i)}return t.replaceText(r,i)}})}if(h.type===i.AST_NODE_TYPES.ReturnStatement){if(t.ignoreVoidReturningFunctions){let e=(0,c.getParentFunctionNode)(h);if(e&&p(e))return}return t.ignoreVoidOperator?e.report({node:f,messageId:`invalidVoidExprReturnWrapVoid`,fix:g}):l(h)?e.report({node:f,messageId:`invalidVoidExprReturnLast`,fix(t){if(!d(h))return null;let n=h.argument,r=`${e.sourceCode.getText(n)};`;return u(n)&&(r=`;${r}`),t.replaceText(h,r)}}):e.report({node:f,messageId:`invalidVoidExprReturn`,fix(t){let n=h.argument,r=`${e.sourceCode.getText(n)}; return;`;return u(n)&&(r=`;${r}`),h.parent.type!==i.AST_NODE_TYPES.BlockStatement&&(r=`{ ${r} }`),t.replaceText(h,r)}})}if(t.ignoreVoidOperator)return e.report({node:f,messageId:`invalidVoidExprWrapVoid`,suggest:[{messageId:`voidExprWrapVoid`,fix:g}]});e.report({node:f,messageId:`invalidVoidExpr`})}};function r(e){let n=e.parent;return n.type===i.AST_NODE_TYPES.SequenceExpression&&e!==n.expressions[n.expressions.length-1]||n.type===i.AST_NODE_TYPES.ExpressionStatement?null:n.type===i.AST_NODE_TYPES.LogicalExpression&&n.right===e||n.type===i.AST_NODE_TYPES.ConditionalExpression&&(n.consequent===e||n.alternate===e)?r(n):n.type===i.AST_NODE_TYPES.ArrowFunctionExpression&&t.ignoreArrowShorthand||n.type===i.AST_NODE_TYPES.UnaryExpression&&n.operator===`void`&&t.ignoreVoidOperator?null:n.type===i.AST_NODE_TYPES.ChainExpression?r(n):n}function l(e){let t=e.parent;if(t.type!==i.AST_NODE_TYPES.BlockStatement)return!1;let n=t.parent;return!(![i.AST_NODE_TYPES.ArrowFunctionExpression,i.AST_NODE_TYPES.FunctionDeclaration,i.AST_NODE_TYPES.FunctionExpression].includes(n.type)||t.body.indexOf(e)<t.body.length-1)}function u(t){let n=(0,s.nullThrows)(e.sourceCode.getFirstToken(t),s.NullThrowsReasons.MissingToken(`first token`,t.type));return[`(`,`[`,"`"].includes(n.value)}function d(e){let t=e.type===i.AST_NODE_TYPES.ReturnStatement?e.argument:e.body,r=(0,s.getConstrainedTypeAtLocation)(n,t);return a.isTypeFlagSet(r,o.TypeFlags.VoidLike)}function f(e){return a.getCallSignaturesOfType(e).some(e=>{let t=e.getReturnType();return a.unionConstituents(t).some(a.isIntrinsicVoidType)})}function p(e){if(e.returnType){let t=n.getTypeFromTypeNode(e.returnType.typeAnnotation);return a.unionConstituents(t).some(a.isIntrinsicVoidType)}if(e.type!==i.AST_NODE_TYPES.FunctionDeclaration){let t=n.getContextualType(e);if(t)return a.unionConstituents(t).some(f)}return!1}}})})),PDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-deprecated`,meta:{type:`problem`,docs:{description:"Disallow using code marked as `@deprecated`",recommended:`strict`,requiresTypeChecking:!0},messages:{deprecated:"`{{name}}` is deprecated.",deprecatedWithReason:"`{{name}}` is deprecated. {{reason}}"},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...s.typeOrValueSpecifiersSchema,description:`Type specifiers that can be allowed.`}}}]},defaultOptions:[{allow:[]}],create(e,[t]){let{jsDocParsingMode:n}=e.languageOptions.parserOptions,r=t.allow;if(n===`none`||n===`type-info`)throw Error(`Cannot be used with jsDocParsingMode: '${n}'.`);let l=(0,s.getParserServices)(e),u=l.program.getTypeChecker();function d(e,t){if(!e||!a.isSymbolFlagSet(e,o.SymbolFlags.Alias))return t?m(e):void 0;let n=u.getAliasedSymbol(e);for(;a.isSymbolFlagSet(e,o.SymbolFlags.Alias);){let r=m(e);if(r!=null)return r;let i=e.getDeclarations()&&u.getImmediateAliasedSymbol(e);if(!i)break;if(e=i,t&&e===n)return m(e)}}function f(e){let{parent:t}=e;switch(t.type){case i.AST_NODE_TYPES.ArrayPattern:return t.elements.includes(e);case i.AST_NODE_TYPES.ClassExpression:case i.AST_NODE_TYPES.ClassDeclaration:case i.AST_NODE_TYPES.VariableDeclarator:case i.AST_NODE_TYPES.TSEnumMember:return t.id===e;case i.AST_NODE_TYPES.MethodDefinition:case i.AST_NODE_TYPES.PropertyDefinition:case i.AST_NODE_TYPES.AccessorProperty:return t.key===e;case i.AST_NODE_TYPES.Property:return t.shorthand&&t.value===e?t.parent.type===i.AST_NODE_TYPES.ObjectPattern:t.value===e?!1:t.parent.type===i.AST_NODE_TYPES.ObjectExpression;case i.AST_NODE_TYPES.AssignmentPattern:return t.left===e;case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.FunctionDeclaration:case i.AST_NODE_TYPES.FunctionExpression:case i.AST_NODE_TYPES.TSDeclareFunction:case i.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:case i.AST_NODE_TYPES.TSEnumDeclaration:case i.AST_NODE_TYPES.TSInterfaceDeclaration:case i.AST_NODE_TYPES.TSMethodSignature:case i.AST_NODE_TYPES.TSModuleDeclaration:case i.AST_NODE_TYPES.TSParameterProperty:case i.AST_NODE_TYPES.TSPropertySignature:case i.AST_NODE_TYPES.TSTypeAliasDeclaration:case i.AST_NODE_TYPES.TSTypeParameter:return!0;case i.AST_NODE_TYPES.TSImportEqualsDeclaration:return t.id===e;default:return!1}}function p(e){let t=e;for(;;)switch(t.type){case i.AST_NODE_TYPES.ImportDeclaration:return!0;case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.ExportAllDeclaration:case i.AST_NODE_TYPES.ExportNamedDeclaration:case i.AST_NODE_TYPES.BlockStatement:case i.AST_NODE_TYPES.ClassDeclaration:case i.AST_NODE_TYPES.TSInterfaceDeclaration:case i.AST_NODE_TYPES.FunctionDeclaration:case i.AST_NODE_TYPES.FunctionExpression:case i.AST_NODE_TYPES.Program:case i.AST_NODE_TYPES.TSUnionType:case i.AST_NODE_TYPES.VariableDeclarator:return!1;default:t=t.parent}}function m(e){let t;try{t=e?.getJsDocTags(u)}catch{return}let n=t?.find(e=>e.name===`deprecated`);if(!n)return;let r=n.text;return r?o.displayPartsToString(r):``}function h(e){switch(e.parent?.type){case i.AST_NODE_TYPES.NewExpression:case i.AST_NODE_TYPES.CallExpression:return e.parent.callee===e;case i.AST_NODE_TYPES.TaggedTemplateExpression:return e.parent.tag===e;case i.AST_NODE_TYPES.JSXOpeningElement:return e.parent.name===e;default:return!1}}function g(e){let t=e;for(;t.parent?.type===i.AST_NODE_TYPES.MemberExpression&&t.parent.property===t;)t=t.parent;return h(t)?t:void 0}function _(e){let t=l.esTreeNodeToTSNodeMap.get(e.parent),n=(0,s.nullThrows)(u.getResolvedSignature(t),`Expected call like node to have signature`),r=l.getSymbolAtLocation(e),i=r!=null&&a.isSymbolFlagSet(r,o.SymbolFlags.Alias)?u.getAliasedSymbol(r):r,c=i?.declarations?.[0].kind;return c!==o.SyntaxKind.MethodDeclaration&&c!==o.SyntaxKind.FunctionDeclaration&&c!==o.SyntaxKind.MethodSignature?d(r,!0)??m(n)??m(i):d(r,!1)??m(n)}function v(e,t){return m((0,s.nullThrows)(l.getContextualType(e.name),`Expected JSX opening element name to have contextualType`).getProperty(t))}function y(e){let t=g(e);if(t)return _(t);if(e.parent.type===i.AST_NODE_TYPES.JSXAttribute&&e.type!==i.AST_NODE_TYPES.Super)return v(e.parent.parent,e.name);if(e.parent.type===i.AST_NODE_TYPES.Property&&e.type!==i.AST_NODE_TYPES.Super){let t=l.getTypeAtLocation(e.parent.parent).getProperty(e.name),n=l.getSymbolAtLocation(e),r=u.getShorthandAssignmentValueSymbol(n?.valueDeclaration);return d(n,!0)??m(t)??m(n)??m(r)}return d(l.getSymbolAtLocation(e),!0)}function b(t){if(f(t)||p(t))return;let n=y(t);if(n==null)return;let i=l.getTypeAtLocation(t);if((0,s.typeMatchesSomeSpecifier)(i,r,l.program)||(0,s.valueMatchesSomeSpecifier)(t,r,l.program,i))return;let a=c(t);e.report({...n?{messageId:`deprecatedWithReason`,data:{name:a,reason:n}}:{messageId:`deprecated`,data:{name:a}},node:t})}function x(t){if(!t.computed)return;let n=l.getTypeAtLocation(t.property);if(n.isLiteral()){let i=l.getTypeAtLocation(t.object),a=n.isStringLiteral()?n.value:String(n.value),o=m(i.getProperty(a));if(o==null||(0,s.typeMatchesSomeSpecifier)(i,r,l.program))return;e.report({...o?{messageId:`deprecatedWithReason`,data:{name:a,reason:o}}:{messageId:`deprecated`,data:{name:a}},node:t.property})}}return{Identifier(e){let{parent:t}=e;t.type===i.AST_NODE_TYPES.ExportNamedDeclaration||t.type===i.AST_NODE_TYPES.ExportAllDeclaration||t.type===i.AST_NODE_TYPES.MemberExpression&&t.computed&&t.property===e||t.type===i.AST_NODE_TYPES.ExportSpecifier&&(t.exported!==e||m(l.getSymbolAtLocation(e))!=null)||b(e)},JSXIdentifier(e){e.parent.type!==i.AST_NODE_TYPES.JSXClosingElement&&b(e)},MemberExpression:x,PrivateIdentifier:b,Super:b}}});function c(e){return e.type===i.AST_NODE_TYPES.Super?`super`:e.type===i.AST_NODE_TYPES.PrivateIdentifier?`#${e.name}`:e.name}})),FDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-dupe-class-members`);e.default=(0,n.createRule)({name:`no-dupe-class-members`,meta:{type:`problem`,docs:{description:`Disallow duplicate class members`,extendsBaseRule:!0},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:[],create(e){let n=r.create(e);function i(e){return n=>{if(!n.computed&&n.value?.type!==t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)return e(n)}}return{...n,"MethodDefinition, PropertyDefinition":i(n[`MethodDefinition, PropertyDefinition`])}}})})),IDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-duplicate-enum-values`,meta:{type:`problem`,docs:{description:`Disallow duplicate enum member values`,recommended:`recommended`},hasSuggestions:!1,messages:{duplicateValue:`Duplicate enum member value {{value}}.`},schema:[]},defaultOptions:[],create(e){function n(e){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value==`string`}function r(e){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value==`number`}function i(e){return e.type===t.AST_NODE_TYPES.UnaryExpression&&[`-`,`+`].includes(e.operator)}function a(e){return e.type===t.AST_NODE_TYPES.TemplateLiteral&&e.expressions.length===0&&e.quasis.length===1}function o(e){switch(!0){case n(e):case r(e):return e.value;case i(e):{let t=Number(o(e.argument));return Number.isNaN(t)?void 0:e.operator===`-`?-t:t}case a(e):return e.quasis[0].value.cooked??void 0;default:return}}return{TSEnumDeclaration(t){let n=t.body.members,r=[];n.forEach(t=>{if(t.initializer==null)return;let n=o(t.initializer);n!=null&&(r.some(e=>Object.is(e,n))?e.report({node:t,messageId:`duplicateValue`,data:{value:n}}):r.push(n))})}}}})})),LDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=new Set([`loc`,`parent`,`range`]),l=(e,t)=>{if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?!e.some((e,n)=>!l(e,t[n])):!1;let n=Object.keys(e).filter(e=>!c.has(e)),r=Object.keys(t).filter(e=>!c.has(e));return!(n.length!==r.length||n.some(e=>!Object.hasOwn(t,e))||n.some(n=>!l(e[n],t[n])))}return!1};e.default=(0,s.createRule)({name:`no-duplicate-type-constituents`,meta:{type:`suggestion`,docs:{description:`Disallow duplicate constituents of union or intersection types`,recommended:`recommended`,requiresTypeChecking:!0},fixable:`code`,messages:{duplicate:`{{type}} type constituent is duplicated with {{previous}}.`,unnecessary:`Explicit undefined is unnecessary on an optional parameter.`},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreIntersections:{type:`boolean`,description:"Whether to ignore `&` intersections."},ignoreUnions:{type:`boolean`,description:"Whether to ignore `|` unions."}}}]},defaultOptions:[{ignoreIntersections:!1,ignoreUnions:!1}],create(e,[{ignoreIntersections:t,ignoreUnions:n}]){let r=(0,s.getParserServices)(e),{sourceCode:c}=e;function u(t,n,r){let i=(e,t)=>c[`getTokens${e}`](n,{filter:e=>[`&`,`|`].includes(e.value)&&n.parent.range[0]<=e.range[0]&&e.range[1]<=n.parent.range[1]}).at(t),a=i(`Before`,-1),o,l,u;a?(l=c.getTokensBetween(a,n),u=c.getTokensAfter(n,{count:l.length})):(o=(0,s.nullThrows)(i(`After`,0),s.NullThrowsReasons.MissingToken(`union or intersection token`,`duplicate type constituent`)),u=c.getTokensBetween(n,o),l=c.getTokensBefore(n,{count:u.length})),e.report({loc:{start:n.loc.start,end:(u.at(-1)??n).loc.end},node:n,messageId:t,data:r,fix:e=>[a,...l,n,...u,o].flatMap(t=>t?e.remove(t):[])})}function d(e,t,n,o,s){let f=r.getTypeAtLocation(t);if(a.isIntrinsicErrorType(f))return;let p=n.find(e=>l(e,t))??o.get(f);if(p){u(`duplicate`,t,{type:e,previous:c.getText(p)});return}if(s?.(f,t),o.set(f,t),n.push(t),e===`Union`&&t.type===i.AST_NODE_TYPES.TSUnionType||e===`Intersection`&&t.type===i.AST_NODE_TYPES.TSIntersectionType)for(let r of t.types)d(e,r,n,o,s)}function f(e,t){let n=new Map,r=[],a=e.type===i.AST_NODE_TYPES.TSIntersectionType?`Intersection`:`Union`;for(let i of e.types)d(a,i,r,n,t)}return{...!t&&{TSIntersectionType(e){e.parent.type!==i.AST_NODE_TYPES.TSIntersectionType&&f(e)}},...!n&&{TSUnionType:e=>{e.parent.type!==i.AST_NODE_TYPES.TSUnionType&&f(e,(t,n)=>{let r=e.parent;if(r.type===i.AST_NODE_TYPES.TSTypeAnnotation){let e=r.parent;if(e.type===i.AST_NODE_TYPES.Identifier&&e.optional){let r=e.parent;(0,s.isFunctionOrFunctionType)(r)&&r.params.includes(e)&&a.isTypeFlagSet(t,o.TypeFlags.Undefined)&&u(`unnecessary`,n)}}})}}}}})})),RDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-dynamic-delete`,meta:{type:`suggestion`,docs:{description:"Disallow using the `delete` operator on computed key expressions",recommended:`strict`},messages:{dynamicDelete:`Do not delete dynamically computed property keys.`},schema:[]},defaultOptions:[],create(e){return{"UnaryExpression[operator=delete]"(r){r.argument.type!==t.AST_NODE_TYPES.MemberExpression||!r.argument.computed||n(r.argument.property)||e.report({node:r.argument.property,messageId:`dynamicDelete`})}}}});function n(e){return e.type===t.AST_NODE_TYPES.Literal&&[`number`,`string`].includes(typeof e.value)||e.type===t.AST_NODE_TYPES.UnaryExpression&&e.operator===`-`&&e.argument.type===t.AST_NODE_TYPES.Literal&&typeof e.argument.value==`number`}})),zDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-empty-function`),i=[{allow:[]}],a=(0,n.deepMerge)(Array.isArray(r.meta.schema)?r.meta.schema[0]:r.meta.schema,{properties:{allow:{description:`Locations and kinds of functions that are allowed to be empty.`,items:{type:`string`,enum:[`functions`,`arrowFunctions`,`generatorFunctions`,`methods`,`generatorMethods`,`getters`,`setters`,`constructors`,`private-constructors`,`protected-constructors`,`asyncFunctions`,`asyncMethods`,`decoratedFunctions`,`overrideMethods`]}}}});e.default=(0,n.createRule)({name:`no-empty-function`,meta:{type:`suggestion`,defaultOptions:i,docs:{description:`Disallow empty functions`,extendsBaseRule:!0,recommended:`stylistic`},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:[a]},defaultOptions:i,create(e,[{allow:n=[]}]){let i=r.create(e),a=n.includes(`protected-constructors`),o=n.includes(`private-constructors`),s=n.includes(`decoratedFunctions`),c=n.includes(`overrideMethods`);function l(e){return e.body.body.length===0}function u(e){return e.params.some(e=>e.type===t.AST_NODE_TYPES.TSParameterProperty)}function d(e){let n=e.parent;if(l(e)&&n.type===t.AST_NODE_TYPES.MethodDefinition&&n.kind===`constructor`){let{accessibility:t}=n;return t===`protected`&&a||t===`private`&&o||u(e)}return!1}function f(e){if(s&&l(e)){let n=e.parent.type===t.AST_NODE_TYPES.MethodDefinition?e.parent.decorators:void 0;return!!n&&!!n.length}return!1}function p(e){return c&&l(e)&&e.parent.type===t.AST_NODE_TYPES.MethodDefinition&&e.parent.override}return{...i,FunctionExpression(e){d(e)||f(e)||p(e)||i.FunctionExpression(e)}}}})})),BDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7();e.default=(0,r.createRule)({name:`no-empty-interface`,meta:{type:`suggestion`,deprecated:{deprecatedSince:`8.0.0`,replacedBy:[{rule:{name:`@typescript-eslint/no-empty-object-type`,url:`https://typescript-eslint.io/rules/no-empty-object-type`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/8977`},docs:{description:`Disallow the declaration of empty interfaces`},fixable:`code`,hasSuggestions:!0,messages:{noEmpty:"An empty interface is equivalent to `{}`.",noEmptyWithSuper:`An interface declaring no members is equivalent to its supertype.`},replacedBy:[`@typescript-eslint/no-empty-object-type`],schema:[{type:`object`,additionalProperties:!1,properties:{allowSingleExtends:{type:`boolean`,description:`Whether to allow empty interfaces that extend a single other interface.`}}}]},defaultOptions:[{allowSingleExtends:!1}],create(e,[{allowSingleExtends:i}]){return{TSInterfaceDeclaration(a){if(a.body.body.length!==0)return;let o=a.extends;if(o.length===0)e.report({node:a.id,messageId:`noEmpty`});else if(o.length===1&&!i){let i=t=>{let n=``;return a.typeParameters&&(n=e.sourceCode.getText(a.typeParameters)),t.replaceText(a,`type ${e.sourceCode.getText(a.id)}${n} = ${e.sourceCode.getText(o[0])}`)},s=e.sourceCode.getScope(a),c=s.set.get(a.id.name)?.defs.some(e=>e.node.type===n.AST_NODE_TYPES.ClassDeclaration),l=!((0,r.isDefinitionFile)(e.filename)&&s.type===t.ScopeType.tsModule&&s.block.declare||c);e.report({node:a.id,messageId:`noEmptyWithSuper`,...l?{fix:i}:c?null:{suggest:[{messageId:`noEmptyWithSuper`,fix:i}]}})}}}}})})),VDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=e=>[`${e} allows any non-nullish value, including literals like \`0\` and \`""\`.`,`- If that's what you want, disable this lint rule with an inline comment or configure the '{{ option }}' rule option.`,'- If you want a type meaning "any object", you probably want `object` instead.','- If you want a type meaning "any value", you probably want `unknown` instead.'].join(`
|
|
1087
|
+
`)},allowOverloadFunctions:{type:`boolean`,description:`Whether to ignore return type annotations on functions with overload signatures.`},allowTypedFunctionExpressions:{type:`boolean`,description:`Whether to ignore type annotations on the variable of a function expression.`}}}]},defaultOptions:[{allowArgumentsExplicitlyTypedAsAny:!1,allowDirectConstAssertionInArrowFunctions:!0,allowedNames:[],allowHigherOrderFunctions:!0,allowOverloadFunctions:!1,allowTypedFunctionExpressions:!0}],create(e,[a]){let o=new Set,s=[],c=new Map,l=new Set;function u(e){return c.get(e)??[]}function d(e){s.push(e),c.set(e,[])}function f(){s.pop()}return{"ArrowFunctionExpression, FunctionDeclaration, FunctionExpression":d,"ArrowFunctionExpression:exit":f,"ExportDefaultDeclaration:exit"(e){_(e.declaration)},"ExportNamedDeclaration:not([source]):exit"(e){if(e.declaration)_(e.declaration);else for(let t of e.specifiers)g(t.local)},"FunctionDeclaration:exit":f,"FunctionExpression:exit":f,"Program:exit"(){for(let[e,t]of c)h({node:e,returns:t})&&_(e)},ReturnStatement(e){let t=s[s.length-1];c.get(t)?.push(e)},"TSExportAssignment:exit"(e){_(e.expression)}};function p(t){function r(t){function i(r,i){t.type===n.AST_NODE_TYPES.Identifier?e.report({node:t,messageId:r,data:{name:t.name}}):t.type===n.AST_NODE_TYPES.ArrayPattern?e.report({node:t,messageId:i,data:{type:`Array pattern`}}):t.type===n.AST_NODE_TYPES.ObjectPattern?e.report({node:t,messageId:i,data:{type:`Object pattern`}}):t.type===n.AST_NODE_TYPES.RestElement&&(t.argument.type===n.AST_NODE_TYPES.Identifier?e.report({node:t,messageId:r,data:{name:t.argument.name}}):e.report({node:t,messageId:i,data:{type:`Rest`}}))}switch(t.type){case n.AST_NODE_TYPES.ArrayPattern:case n.AST_NODE_TYPES.Identifier:case n.AST_NODE_TYPES.ObjectPattern:case n.AST_NODE_TYPES.RestElement:t.typeAnnotation?a.allowArgumentsExplicitlyTypedAsAny!==!0&&t.typeAnnotation.typeAnnotation.type===n.AST_NODE_TYPES.TSAnyKeyword&&i(`anyTypedArg`,`anyTypedArgUnnamed`):i(`missingArgType`,`missingArgTypeUnnamed`);return;case n.AST_NODE_TYPES.TSParameterProperty:return r(t.parameter);case n.AST_NODE_TYPES.AssignmentPattern:return}}for(let e of t.params)r(e)}function m(t){return!t||!a.allowedNames||a.allowedNames.length===0?!1:t.type===n.AST_NODE_TYPES.VariableDeclarator||t.type===n.AST_NODE_TYPES.FunctionDeclaration?t.id?.type===n.AST_NODE_TYPES.Identifier&&a.allowedNames.includes(t.id.name):t.type===n.AST_NODE_TYPES.MethodDefinition||t.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition||t.type===n.AST_NODE_TYPES.Property&&t.method||t.type===n.AST_NODE_TYPES.PropertyDefinition||t.type===n.AST_NODE_TYPES.AccessorProperty?(0,r.isStaticMemberAccessOfValue)(t,e,...a.allowedNames):!1}function h({node:e}){let t=e.parent;for(;t;){if(t.type===n.AST_NODE_TYPES.ReturnStatement){t=t.parent.parent;continue}if(!(0,r.isFunction)(t))return!1;let e=u(t);if(!(0,i.doesImmediatelyReturnFunctionExpression)({node:t,returns:e}))return!1;if(o.has(t))return!0;t=t.parent}return!1}function g(n){let r=e.sourceCode.getScope(n).set.get(n.name);if(r){for(let e of r.defs)[t.DefinitionType.CatchClause,t.DefinitionType.ImplicitGlobalVariable,t.DefinitionType.ImportBinding,t.DefinitionType.Parameter].includes(e.type)||_(e.node);for(let e of r.references)!e.init&&e.writeExpr&&_(e.writeExpr)}}function _(e){if(!(e==null||l.has(e)))switch(l.add(e),e.type){case n.AST_NODE_TYPES.ArrowFunctionExpression:case n.AST_NODE_TYPES.FunctionExpression:return y({node:e,returns:u(e)});case n.AST_NODE_TYPES.ArrayExpression:for(let t of e.elements)_(t);return;case n.AST_NODE_TYPES.PropertyDefinition:case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.MethodDefinition:case n.AST_NODE_TYPES.TSAbstractMethodDefinition:return e.accessibility===`private`||e.key.type===n.AST_NODE_TYPES.PrivateIdentifier?void 0:_(e.value);case n.AST_NODE_TYPES.ClassDeclaration:case n.AST_NODE_TYPES.ClassExpression:for(let t of e.body.body)_(t);return;case n.AST_NODE_TYPES.FunctionDeclaration:return b({node:e,returns:u(e)});case n.AST_NODE_TYPES.Identifier:return g(e);case n.AST_NODE_TYPES.ObjectExpression:for(let t of e.properties)_(t);return;case n.AST_NODE_TYPES.Property:return _(e.value);case n.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:return v(e);case n.AST_NODE_TYPES.VariableDeclaration:for(let t of e.declarations)_(t);return;case n.AST_NODE_TYPES.VariableDeclarator:return _(e.init)}}function v(t){let r=t.parent.type===n.AST_NODE_TYPES.MethodDefinition&&t.parent.kind===`constructor`,i=(t.parent.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition||t.parent.type===n.AST_NODE_TYPES.MethodDefinition)&&t.parent.kind===`set`;!r&&!i&&!t.returnType&&e.report({node:t,messageId:`missingReturnType`}),p(t)}function y({node:t,returns:s}){o.has(t)||(o.add(t),!(m(t.parent)||(0,i.isTypedFunctionExpression)(t,a)||(0,i.ancestorHasReturnType)(t))&&(a.allowOverloadFunctions&&t.parent.type===n.AST_NODE_TYPES.MethodDefinition&&(0,r.hasOverloadSignatures)(t.parent,e)||((0,i.checkFunctionExpressionReturnType)({node:t,returns:s},a,e.sourceCode,n=>{e.report({loc:n,node:t,messageId:`missingReturnType`})}),p(t))))}function b({node:t,returns:n}){o.has(t)||(o.add(t),!(m(t)||(0,i.ancestorHasReturnType)(t))&&(a.allowOverloadFunctions&&(0,r.hasOverloadSignatures)(t,e)||((0,i.checkFunctionReturnType)({node:t,returns:n},a,e.sourceCode,n=>{e.report({loc:n,node:t,messageId:`missingReturnType`})}),p(t))))}}})})),xDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`init-declarations`);e.default=(0,n.createRule)({name:`init-declarations`,meta:{type:`suggestion`,docs:{description:`Require or disallow initialization in variable declarations`,extendsBaseRule:!0,frozen:!0},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:[`always`],create(e,[n]){function a(){let n=n=>{if(`node`in n&&n.loc==null){let{node:r,...a}=n;if(r.type===t.AST_NODE_TYPES.VariableDeclarator&&r.init==null){e.report({...a,loc:i(r)});return}}e.report(n)};return new Proxy({},{get:(t,r,i)=>r===`report`?n:Reflect.get(e,r,i)})}let o=r.create(a());return{"VariableDeclaration:exit"(e){n===`always`&&(e.declare||s(e))||o[`VariableDeclaration:exit`](e)}};function s(e){let n=e.parent;for(;n;){if(n.type===t.AST_NODE_TYPES.TSModuleDeclaration&&n.declare)return!0;n=n.parent}return!1}}});function i(e){return{start:structuredClone(e.loc.start),end:{line:e.loc.start.line,column:e.loc.start.column+e.id.name.length}}}})),SDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`max-params`);e.default=(0,n.createRule)({name:`max-params`,meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of parameters in function definitions`,extendsBaseRule:!0},messages:r.meta.messages,schema:[{type:`object`,additionalProperties:!1,properties:{countVoidThis:{type:`boolean`,description:"Whether to count a `this` declaration when the type is `void`."},max:{type:`integer`,description:`A maximum number of parameters in function definitions.`,minimum:0},maximum:{type:`integer`,description:`(deprecated) A maximum number of parameters in function definitions.`,minimum:0}}}]},defaultOptions:[{countVoidThis:!1,max:3}],create(e,[{countVoidThis:n}]){let i=r.create(e);if(n===!0)return i;let a=e=>e.params.length===0||e.params[0].type!==t.AST_NODE_TYPES.Identifier||e.params[0].name!==`this`||e.params[0].typeAnnotation?.typeAnnotation.type!==t.AST_NODE_TYPES.TSVoidKeyword?e:{...e,params:e.params.slice(1)},o=e=>t=>{e(a(t))};return{ArrowFunctionExpression:o(i.ArrowFunctionExpression),FunctionDeclaration:o(i.FunctionDeclaration),FunctionExpression:o(i.FunctionExpression),TSDeclareFunction:o(i.FunctionDeclaration),TSFunctionType:o(i.FunctionDeclaration)}}})})),CDe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultOrder=void 0;let n=P8(),r=t(lge()),i=_7(),a={type:`string`,enum:[`never`]},o=e=>({type:`array`,items:{oneOf:[{$ref:e},{type:`array`,items:{$ref:e}}]}}),s=e=>({type:`object`,additionalProperties:!1,properties:{memberTypes:{oneOf:[o(e),a]},optionalityOrder:{$ref:`#/items/0/$defs/optionalityOrderOptions`},order:{$ref:`#/items/0/$defs/orderOptions`}}});e.defaultOrder=`signature.call-signature.public-static-field.protected-static-field.private-static-field.#private-static-field.public-decorated-field.protected-decorated-field.private-decorated-field.public-instance-field.protected-instance-field.private-instance-field.#private-instance-field.public-abstract-field.protected-abstract-field.public-field.protected-field.private-field.#private-field.static-field.instance-field.abstract-field.decorated-field.field.static-initialization.public-constructor.protected-constructor.private-constructor.constructor.public-static-accessor.protected-static-accessor.private-static-accessor.#private-static-accessor.public-decorated-accessor.protected-decorated-accessor.private-decorated-accessor.public-instance-accessor.protected-instance-accessor.private-instance-accessor.#private-instance-accessor.public-abstract-accessor.protected-abstract-accessor.public-accessor.protected-accessor.private-accessor.#private-accessor.static-accessor.instance-accessor.abstract-accessor.decorated-accessor.accessor.public-static-get.protected-static-get.private-static-get.#private-static-get.public-decorated-get.protected-decorated-get.private-decorated-get.public-instance-get.protected-instance-get.private-instance-get.#private-instance-get.public-abstract-get.protected-abstract-get.public-get.protected-get.private-get.#private-get.static-get.instance-get.abstract-get.decorated-get.get.public-static-set.protected-static-set.private-static-set.#private-static-set.public-decorated-set.protected-decorated-set.private-decorated-set.public-instance-set.protected-instance-set.private-instance-set.#private-instance-set.public-abstract-set.protected-abstract-set.public-set.protected-set.private-set.#private-set.static-set.instance-set.abstract-set.decorated-set.set.public-static-method.protected-static-method.private-static-method.#private-static-method.public-decorated-method.protected-decorated-method.private-decorated-method.public-instance-method.protected-instance-method.private-instance-method.#private-instance-method.public-abstract-method.protected-abstract-method.public-method.protected-method.private-method.#private-method.static-method.instance-method.abstract-method.decorated-method.method`.split(`.`);let c=[...new Set([`readonly-signature`,`signature`,`readonly-field`,`field`,`method`,`call-signature`,`constructor`,`accessor`,`get`,`set`,`static-initialization`].flatMap(e=>[e,...[`public`,`protected`,`private`,`#private`].flatMap(t=>[e!==`readonly-signature`&&e!==`signature`&&e!==`static-initialization`&&e!==`call-signature`&&!(e===`constructor`&&t===`#private`)?`${t}-${e}`:[],t!==`#private`&&(e===`readonly-field`||e===`field`||e===`method`||e===`accessor`||e===`get`||e===`set`)?[`${t}-decorated-${e}`,`decorated-${e}`]:[],e!==`constructor`&&e!==`readonly-signature`&&e!==`signature`&&e!==`call-signature`?[`static`,`instance`,...t===`#private`||t===`private`?[]:[`abstract`]].flatMap(n=>[`${n}-${e}`,`${t}-${n}-${e}`]):[]]).flat()]))],l=[n.AST_NODE_TYPES.FunctionExpression,n.AST_NODE_TYPES.ArrowFunctionExpression];function u(e){switch(e.type){case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.MethodDefinition:case n.AST_NODE_TYPES.TSMethodSignature:return e.kind;case n.AST_NODE_TYPES.TSCallSignatureDeclaration:return`call-signature`;case n.AST_NODE_TYPES.TSConstructSignatureDeclaration:return`constructor`;case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:case n.AST_NODE_TYPES.TSPropertySignature:return e.readonly?`readonly-field`:`field`;case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.AccessorProperty:return`accessor`;case n.AST_NODE_TYPES.PropertyDefinition:return e.value&&l.includes(e.value.type)?`method`:e.readonly?`readonly-field`:`field`;case n.AST_NODE_TYPES.TSIndexSignature:return e.readonly?`readonly-signature`:`signature`;case n.AST_NODE_TYPES.StaticBlock:return`static-initialization`;default:return null}}function d(e,t){let{name:n,type:r}=(0,i.getNameFromMember)(e,t);return r===i.MemberNameType.Quoted?n.slice(1,-1):r===i.MemberNameType.Private?n.slice(1):n}function f(e,t){switch(e.type){case n.AST_NODE_TYPES.TSPropertySignature:case n.AST_NODE_TYPES.TSMethodSignature:case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.PropertyDefinition:return d(e,t);case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.MethodDefinition:return e.kind===`constructor`?`constructor`:d(e,t);case n.AST_NODE_TYPES.TSConstructSignatureDeclaration:return`new`;case n.AST_NODE_TYPES.TSCallSignatureDeclaration:return`call`;case n.AST_NODE_TYPES.TSIndexSignature:return(0,i.getNameFromIndexSignature)(e);case n.AST_NODE_TYPES.StaticBlock:return`static block`;default:return null}}function p(e){switch(e.type){case n.AST_NODE_TYPES.TSPropertySignature:case n.AST_NODE_TYPES.TSMethodSignature:case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.PropertyDefinition:case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.MethodDefinition:return e.optional}return!1}function m(e,t){let n=-1,r=[...e];for(;r.length>0&&n===-1;){let e=r.shift();n=t.findIndex(t=>Array.isArray(t)?t.includes(e):t===e)}return n}function h(e){return`accessibility`in e&&e.accessibility?e.accessibility:`key`in e&&e.key.type===n.AST_NODE_TYPES.PrivateIdentifier?`#private`:`public`}function g(e,t,r){let i=u(e);if(e.type===n.AST_NODE_TYPES.MethodDefinition&&e.value.type===n.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)return-1;if(i==null)return t.length-1;let a=e.type===n.AST_NODE_TYPES.TSAbstractAccessorProperty||e.type===n.AST_NODE_TYPES.TSAbstractPropertyDefinition||e.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition,o=`static`in e&&e.static?`static`:a?`abstract`:`instance`,s=h(e),c=[];return r&&(`decorators`in e&&e.decorators.length>0&&(i===`readonly-field`||i===`field`||i===`method`||i===`accessor`||i===`get`||i===`set`)&&(c.push(`${s}-decorated-${i}`),c.push(`decorated-${i}`),i===`readonly-field`&&(c.push(`${s}-decorated-field`),c.push(`decorated-field`))),i!==`readonly-signature`&&i!==`signature`&&i!==`static-initialization`&&(i!==`constructor`&&(c.push(`${s}-${o}-${i}`),c.push(`${o}-${i}`),i===`readonly-field`&&(c.push(`${s}-${o}-field`),c.push(`${o}-field`))),c.push(`${s}-${i}`),i===`readonly-field`&&c.push(`${s}-field`))),c.push(i),i===`readonly-signature`?c.push(`signature`):i===`readonly-field`&&c.push(`field`),m(c,t)}function _(e,t,n){let r=[],i=e.map(e=>g(e,t,n)),a;return e.forEach((t,n)=>{if(n===e.length-1)return;let o=i[n],s=i[n+1];o===a?r.at(-1)?.push(t):o===s&&(r.push([t]),a=o)}),r}function v(e,t,n){let r=e[e.length-1];e.forEach(e=>{e>t&&(r=Math.min(r,e))});let i=n[r];return(Array.isArray(i)?i:[i]).map(e=>e.replaceAll(`-`,` `)).join(`, `)}e.default=(0,i.createRule)({name:`member-ordering`,meta:{type:`suggestion`,docs:{description:`Require a consistent member declaration order`,frozen:!0},messages:{incorrectGroupOrder:`Member {{name}} should be declared before all {{rank}} definitions.`,incorrectOrder:`Member {{member}} should be declared before member {{beforeMember}}.`,incorrectRequiredMembersOrder:`Member {{member}} should be declared after all {{optionalOrRequired}} members.`},schema:[{type:`object`,$defs:{allItems:{type:`string`,enum:c},optionalityOrderOptions:{type:`string`,enum:[`optional-first`,`required-first`]},orderOptions:{type:`string`,enum:[`alphabetically`,`alphabetically-case-insensitive`,`as-written`,`natural`,`natural-case-insensitive`]},typeItems:{type:`string`,enum:[`readonly-signature`,`signature`,`readonly-field`,`field`,`method`,`constructor`]},baseConfig:{oneOf:[a,o(`#/items/0/$defs/allItems`),s(`#/items/0/$defs/allItems`)]},typesConfig:{oneOf:[a,o(`#/items/0/$defs/typeItems`),s(`#/items/0/$defs/typeItems`)]}},additionalProperties:!1,properties:{classes:{$ref:`#/items/0/$defs/baseConfig`,description:`Which ordering to enforce for classes.`},classExpressions:{$ref:`#/items/0/$defs/baseConfig`,description:`Which ordering to enforce for classExpressions.`},default:{$ref:`#/items/0/$defs/baseConfig`,description:`Which ordering to enforce for default.`},interfaces:{$ref:`#/items/0/$defs/typesConfig`,description:`Which ordering to enforce for interfaces.`},typeLiterals:{$ref:`#/items/0/$defs/typesConfig`,description:`Which ordering to enforce for typeLiterals.`}}}]},defaultOptions:[{default:{memberTypes:e.defaultOrder}}],create(e,[t]){function n(t,n,r){let i=[],a=[],o=!0;for(let s of t){let t=g(s,n,r),c=f(s,e.sourceCode),l=i[i.length-1];t!==-1&&(t<l?(e.report({node:s,messageId:`incorrectGroupOrder`,data:{name:c,rank:v(i,t,n)}}),o=!1):t===l?a[a.length-1].push(s):(i.push(t),a.push([s])))}return o?a:null}function i(t,n){let r=``,i=!0;return t.forEach(t=>{let o=f(t,e.sourceCode);o&&(a(o,r,n)&&(e.report({node:t,messageId:`incorrectOrder`,data:{beforeMember:r,member:o}}),i=!1),r=o)}),i}function a(e,t,n){if(e===t)return!1;switch(n){case`alphabetically`:return e<t;case`alphabetically-case-insensitive`:return e.toLowerCase()<t.toLowerCase();case`natural`:return(0,r.default)(e,t)!==1;case`natural-case-insensitive`:return(0,r.default)(e.toLowerCase(),t.toLowerCase())!==1}}function o(t,n){let r=t.findIndex((e,n)=>n&&p(e)!==p(t[n-1])),i=t=>e.report({loc:t.loc,messageId:`incorrectRequiredMembersOrder`,data:{member:f(t,e.sourceCode),optionalOrRequired:n===`required-first`?`required`:`optional`}});if(p(t[0])!==(n===`optional-first`))return i(t[0]),!1;for(let e=r+1;e<t.length;e++)if(p(t[e])!==p(t[r]))return i(t[r]),!1;return!0}function s(e,t,r){if(t===`never`)return;let a,s,c,l=e=>{a&&a!==`as-written`&&Array.isArray(s)&&_(e,s,r).forEach(e=>{i(e,a)})},u=t=>{let o=!!(a&&a!==`as-written`);if(Array.isArray(s)){let c=n(t,s,r);if(c==null)return l(e),!1;o&&c.map(e=>i(e,a))}else if(o)return i(t,a);return!1};if(Array.isArray(t)?s=t:(a=t.order,s=t.memberTypes,c=t.optionalityOrder),!c){u(e);return}let d=e.findIndex((t,n)=>n&&p(t)!==p(e[n-1]));if(d!==-1){if(!o(e,c))return;u(e.slice(0,d)),u(e.slice(d))}else u(e)}return{ClassDeclaration(e){s(e.body.body,t.classes??t.default,!0)},"ClassDeclaration, FunctionDeclaration"(e){`superClass`in e},ClassExpression(e){s(e.body.body,t.classExpressions??t.default,!0)},TSInterfaceDeclaration(e){s(e.body.body,t.interfaces??t.default,!1)},TSTypeLiteral(e){s(e.members,t.typeLiterals??t.default,!1)}}}})})),wDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`method-signature-style`,meta:{type:`suggestion`,docs:{description:`Enforce using a particular method signature syntax`},fixable:`code`,messages:{errorMethod:`Shorthand method signature is forbidden. Use a function property instead.`,errorProperty:`Function property signature is forbidden. Use a method shorthand instead.`},schema:[{type:`string`,description:`The method signature style to enforce using.`,enum:[`property`,`method`]}]},defaultOptions:[`property`],create(e,[i]){function a(t){let n=e.sourceCode.getText(t.key);return t.computed&&(n=`[${n}]`),t.optional&&(n=`${n}?`),t.readonly&&(n=`readonly ${n}`),n}function o(t){let r=`()`;if(t.params.length>0){let i=(0,n.nullThrows)(e.sourceCode.getTokenBefore(t.params[0],n.isOpeningParenToken),`Missing opening paren before first parameter`),a=(0,n.nullThrows)(e.sourceCode.getTokenAfter(t.params[t.params.length-1],n.isClosingParenToken),`Missing closing paren after last parameter`);r=e.sourceCode.text.substring(i.range[0],a.range[1])}return t.typeParameters!=null&&(r=`${e.sourceCode.getText(t.typeParameters)}${r}`),r}function s(t){return t.returnType==null?`any`:e.sourceCode.getText(t.returnType.typeAnnotation)}function c(t){let r=e.sourceCode.getLastToken(t);return r&&((0,n.isSemicolonToken)(r)||(0,n.isCommaToken)(r))?r.value:``}function l(e){return e.parent?e.parent.type===t.AST_NODE_TYPES.TSModuleDeclaration?!0:e.parent.type===t.AST_NODE_TYPES.Program?!1:l(e.parent):!1}return{...i===`property`&&{TSMethodSignature(n){if(n.kind!==`method`)return;let i=r(n.returnType),u=n.parent,d=(u.type===t.AST_NODE_TYPES.TSInterfaceBody?u.body:u.members).filter(e=>e.type===t.AST_NODE_TYPES.TSMethodSignature&&e!==n&&a(e)===a(n)),f=l(n);if(d.length>0){f?e.report({node:n,messageId:`errorMethod`}):e.report({node:n,messageId:`errorMethod`,fix:i?void 0:function*(t){let r=[n,...d].sort((e,t)=>e.range[0]<t.range[0]?-1:1).map(e=>`(${o(e)} => ${s(e)})`).join(` & `),i=a(n),l=c(n);yield t.replaceText(n,`${i}: ${r}${l}`);for(let n of d){let r=e.sourceCode.getLastToken(n);if(r){let i=e.sourceCode.getTokenAfter(r);i&&(yield t.remove(n),yield t.replaceTextRange([r.range[1],i.range[0]],``))}}}});return}f?e.report({node:n,messageId:`errorMethod`}):e.report({node:n,messageId:`errorMethod`,fix:i?void 0:e=>{let t=a(n),r=o(n),i=s(n),l=c(n);return e.replaceText(n,`${t}: ${r} => ${i}${l}`)}})}},...i===`method`&&{TSPropertySignature(n){let r=n.typeAnnotation?.typeAnnotation;r?.type===t.AST_NODE_TYPES.TSFunctionType&&e.report({node:n,messageId:`errorProperty`,fix:e=>{let t=a(n),i=o(r),l=s(r),u=c(n);return e.replaceText(n,`${t}${i}: ${l}${u}`)}})}}}}});function r(e){return e&&(0,n.forEachChildESTree)(e.typeAnnotation,e=>e.type===t.AST_NODE_TYPES.TSThisType)}})),E7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeModifiers=e.Modifiers=e.MetaSelectors=e.Selectors=e.UnderscoreOptions=e.PredefinedFormats=void 0;var t;(function(e){e[e.camelCase=1]=`camelCase`,e[e.strictCamelCase=2]=`strictCamelCase`,e[e.PascalCase=3]=`PascalCase`,e[e.StrictPascalCase=4]=`StrictPascalCase`,e[e.snake_case=5]=`snake_case`,e[e.UPPER_CASE=6]=`UPPER_CASE`})(t||(e.PredefinedFormats=t={}));var n;(function(e){e[e.forbid=1]=`forbid`,e[e.allow=2]=`allow`,e[e.require=3]=`require`,e[e.requireDouble=4]=`requireDouble`,e[e.allowDouble=5]=`allowDouble`,e[e.allowSingleOrDouble=6]=`allowSingleOrDouble`})(n||(e.UnderscoreOptions=n={}));var r;(function(e){e[e.variable=1]=`variable`,e[e.function=2]=`function`,e[e.parameter=4]=`parameter`,e[e.parameterProperty=8]=`parameterProperty`,e[e.classicAccessor=16]=`classicAccessor`,e[e.enumMember=32]=`enumMember`,e[e.classMethod=64]=`classMethod`,e[e.objectLiteralMethod=128]=`objectLiteralMethod`,e[e.typeMethod=256]=`typeMethod`,e[e.classProperty=512]=`classProperty`,e[e.objectLiteralProperty=1024]=`objectLiteralProperty`,e[e.typeProperty=2048]=`typeProperty`,e[e.autoAccessor=4096]=`autoAccessor`,e[e.class=8192]=`class`,e[e.interface=16384]=`interface`,e[e.typeAlias=32768]=`typeAlias`,e[e.enum=65536]=`enum`,e[e.typeParameter=131072]=`typeParameter`,e[e.import=262144]=`import`})(r||(e.Selectors=r={}));var i;(function(e){e[e.default=-1]=`default`,e[e.variableLike=7]=`variableLike`,e[e.memberLike=8184]=`memberLike`,e[e.typeLike=253952]=`typeLike`,e[e.method=448]=`method`,e[e.property=3584]=`property`,e[e.accessor=4112]=`accessor`})(i||(e.MetaSelectors=i={}));var a;(function(e){e[e.const=1]=`const`,e[e.readonly=2]=`readonly`,e[e.static=4]=`static`,e[e.public=8]=`public`,e[e.protected=16]=`protected`,e[e.private=32]=`private`,e[e[`#private`]=64]=`#private`,e[e.abstract=128]=`abstract`,e[e.destructured=256]=`destructured`,e[e.global=512]=`global`,e[e.exported=1024]=`exported`,e[e.unused=2048]=`unused`,e[e.requiresQuotes=4096]=`requiresQuotes`,e[e.override=8192]=`override`,e[e.async=16384]=`async`,e[e.default=32768]=`default`,e[e.namespace=65536]=`namespace`})(a||(e.Modifiers=a={}));var o;(function(e){e[e.boolean=131072]=`boolean`,e[e.string=262144]=`string`,e[e.number=524288]=`number`,e[e.function=1048576]=`function`,e[e.array=2097152]=`array`})(o||(e.TypeModifiers=o={}))})),D7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectorTypeToMessageString=n,e.isMetaSelector=r,e.isMethodOrPropertySelector=i;let t=E7();function n(e){let t=e.replaceAll(/([A-Z])/g,` $1`);return t.charAt(0).toUpperCase()+t.slice(1)}function r(e){return e in t.MetaSelectors}function i(e){return e===t.MetaSelectors.method||e===t.MetaSelectors.property}})),TDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PredefinedFormatToCheckFunction=void 0;let t=E7();function n(e){return e.length===0||e[0]===e[0].toUpperCase()&&!e.includes(`_`)}function r(e){return e.length===0||e[0]===e[0].toUpperCase()&&o(e,!0)}function i(e){return e.length===0||e[0]===e[0].toLowerCase()&&!e.includes(`_`)}function a(e){return e.length===0||e[0]===e[0].toLowerCase()&&o(e,!1)}function o(e,t){function n(e){return e===e.toUpperCase()&&e!==e.toLowerCase()}if(e.startsWith(`_`))return!1;for(let r=1;r<e.length;++r){if(e[r]===`_`)return!1;if(t===n(e[r])){if(t)return!1}else t=!t}return!0}function s(e){return e.length===0||e===e.toLowerCase()&&l(e)}function c(e){return e.length===0||e===e.toUpperCase()&&l(e)}function l(e){if(e.startsWith(`_`))return!1;let t=!1;for(let n=1;n<e.length;++n)if(e[n]===`_`){if(t)return!1;t=!0}else t=!1;return!t}e.PredefinedFormatToCheckFunction={[t.PredefinedFormats.camelCase]:i,[t.PredefinedFormats.PascalCase]:n,[t.PredefinedFormats.snake_case]:s,[t.PredefinedFormats.strictCamelCase]:a,[t.PredefinedFormats.StrictPascalCase]:r,[t.PredefinedFormats.UPPER_CASE]:c}})),EDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createValidator=o;let t=P8(),n=_7(),r=E7(),i=TDe(),a=D7();function o(e,n,o){let s=r.Selectors[e],l=o.filter(e=>(e.selector&s)!==0||e.selector===r.MetaSelectors.default).sort((e,t)=>{if(e.selector===t.selector)return t.modifierWeight-e.modifierWeight;let n=(0,a.isMetaSelector)(e.selector),r=(0,a.isMetaSelector)(t.selector);if(n&&!r)return 1;if(!n&&r)return-1;let i=(0,a.isMethodOrPropertySelector)(e.selector),o=(0,a.isMethodOrPropertySelector)(t.selector);return i&&!o?-1:!i&&o?1:t.selector-e.selector});return(e,r=new Set)=>{let i=e.type===t.AST_NODE_TYPES.Identifier||e.type===t.AST_NODE_TYPES.PrivateIdentifier?e.name:`${e.value}`;for(let t of l){if(t.filter?.regex.test(i)!==t.filter?.match||t.modifiers?.some(e=>!r.has(e))||!c(e,t,n,s))continue;let a=i;a=d(`leading`,t,a,e,i),a==null||(a=d(`trailing`,t,a,e,i),a==null)||(a=f(`prefix`,t,a,e,i),a==null)||(a=f(`suffix`,t,a,e,i),a==null)||!p(t,a,e,i)||m(t,a,e,i,r);return}};function u({affixes:t,count:n,custom:i,formats:o,originalName:s,position:c,processedName:l}){return{affixes:t?.join(`, `),count:n,formats:o?.map(e=>r.PredefinedFormats[e]).join(`, `),name:s,position:c,processedName:l,regex:i?.regex.toString(),regexMatch:i?.match===!0?`match`:i?.match===!1?`not match`:null,type:(0,a.selectorTypeToMessageString)(e)}}function d(e,t,i,a,o){let s=e===`leading`?t.leadingUnderscore:t.trailingUnderscore;if(!s)return i;let c=e===`leading`?()=>i.startsWith(`_`):()=>i.endsWith(`_`),l=e===`leading`?()=>i.slice(1):()=>i.slice(0,-1),d=e===`leading`?()=>i.startsWith(`__`):()=>i.endsWith(`__`),f=e===`leading`?()=>i.slice(2):()=>i.slice(0,-2);switch(s){case r.UnderscoreOptions.allow:return c()?l():i;case r.UnderscoreOptions.allowDouble:return d()?f():i;case r.UnderscoreOptions.allowSingleOrDouble:return d()?f():c()?l():i;case r.UnderscoreOptions.forbid:return c()?(n.report({data:u({count:`one`,originalName:o,position:e}),messageId:`unexpectedUnderscore`,node:a}),null):i;case r.UnderscoreOptions.require:return c()?l():(n.report({data:u({count:`one`,originalName:o,position:e}),messageId:`missingUnderscore`,node:a}),null);case r.UnderscoreOptions.requireDouble:return d()?f():(n.report({data:u({count:`two`,originalName:o,position:e}),messageId:`missingUnderscore`,node:a}),null)}}function f(e,t,r,i,a){let o=t[e];if(!o||o.length===0)return r;for(let t of o){let n=e===`prefix`?r.startsWith(t):r.endsWith(t),i=e===`prefix`?()=>r.slice(t.length):()=>r.slice(0,-t.length);if(n)return i()}return n.report({data:u({affixes:o,originalName:a,position:e}),messageId:`missingAffix`,node:i}),null}function p(e,t,r,i){let a=e.custom;if(!a)return!0;let o=a.regex.test(t);return a.match&&o||!a.match&&!o?!0:(n.report({data:u({custom:a,originalName:i}),messageId:`satisfyCustom`,node:r}),!1)}function m(e,t,a,o,s){let c=e.format;if(!c?.length)return!0;if(!s.has(r.Modifiers.requiresQuotes))for(let e of c){let n=i.PredefinedFormatToCheckFunction[e];if(n(t))return!0}return n.report({data:u({formats:c,originalName:o,processedName:t}),messageId:o===t?`doesNotMatchFormat`:`doesNotMatchFormatTrimmed`,node:a}),!1}}let s=r.Selectors.variable|r.Selectors.parameter|r.Selectors.classProperty|r.Selectors.objectLiteralProperty|r.Selectors.typeProperty|r.Selectors.parameterProperty|r.Selectors.classicAccessor;function c(e,t,i,a){if(t.types==null||(s&a)===0)return!0;let o=(0,n.getParserServices)(i),c=o.program.getTypeChecker(),u=o.getTypeAtLocation(e).getNonNullableType();for(let e of t.types)switch(e){case r.TypeModifiers.array:if(l(u,e=>c.isArrayType(e)||c.isTupleType(e)))return!0;break;case r.TypeModifiers.function:if(l(u,e=>e.getCallSignatures().length>0))return!0;break;case r.TypeModifiers.boolean:case r.TypeModifiers.number:case r.TypeModifiers.string:if(c.typeToString(c.getWidenedType(c.getBaseTypeOfLiteralType(u)))===r.TypeModifiers[e])return!0;break}return!1}function l(e,t){return e.isUnion()?e.types.every(e=>t(e)):t(e)}})),O7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseOptions=o;let t=_7(),n=E7(),r=D7(),i=EDe();function a(e){let t=0;e.modifiers?.forEach(e=>{t|=n.Modifiers[e]}),e.types?.forEach(e=>{t|=n.TypeModifiers[e]}),e.filter&&(t|=1<<30);let i={custom:e.custom?{match:e.custom.match,regex:new RegExp(e.custom.regex,`u`)}:null,filter:e.filter==null?null:typeof e.filter==`string`?{match:!0,regex:new RegExp(e.filter,`u`)}:{match:e.filter.match,regex:new RegExp(e.filter.regex,`u`)},format:e.format?e.format.map(e=>n.PredefinedFormats[e]):null,leadingUnderscore:e.leadingUnderscore==null?null:n.UnderscoreOptions[e.leadingUnderscore],modifiers:e.modifiers?.map(e=>n.Modifiers[e])??null,prefix:e.prefix&&e.prefix.length>0?e.prefix:null,suffix:e.suffix&&e.suffix.length>0?e.suffix:null,trailingUnderscore:e.trailingUnderscore==null?null:n.UnderscoreOptions[e.trailingUnderscore],types:e.types?.map(e=>n.TypeModifiers[e])??null,modifierWeight:t};return(Array.isArray(e.selector)?e.selector:[e.selector]).map(e=>({selector:(0,r.isMetaSelector)(e)?n.MetaSelectors[e]:n.Selectors[e],...i}))}function o(e){let r=e.options.flatMap(a);return Object.fromEntries((0,t.getEnumNames)(n.Selectors).map(t=>[t,(0,i.createValidator)(t,e,r)]))}})),DDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SCHEMA=void 0;let t=_7(),n=E7(),r={predefinedFormats:{enum:(0,t.getEnumNames)(n.PredefinedFormats),type:`string`},typeModifiers:{enum:(0,t.getEnumNames)(n.TypeModifiers),type:`string`},underscoreOptions:{enum:(0,t.getEnumNames)(n.UnderscoreOptions),type:`string`},formatOptionsConfig:{oneOf:[{additionalItems:!1,items:{$ref:`#/$defs/predefinedFormats`},type:`array`},{type:`null`}]},matchRegexConfig:{additionalProperties:!1,properties:{match:{type:`boolean`},regex:{type:`string`}},required:[`match`,`regex`],type:`object`},prefixSuffixConfig:{additionalItems:!1,items:{minLength:1,type:`string`},type:`array`}},i={$ref:`#/$defs/underscoreOptions`},a={$ref:`#/$defs/prefixSuffixConfig`},o={$ref:`#/$defs/matchRegexConfig`},s={custom:o,failureMessage:{type:`string`},format:{$ref:`#/$defs/formatOptionsConfig`},leadingUnderscore:i,prefix:a,suffix:a,trailingUnderscore:i};function c(e,t,n){let r={filter:{oneOf:[{minLength:1,type:`string`},o]},selector:{enum:[e],type:`string`}};return n&&n.length>0&&(r.modifiers={additionalItems:!1,items:{enum:n,type:`string`},type:`array`}),t&&(r.types={additionalItems:!1,items:{$ref:`#/$defs/typeModifiers`},type:`array`}),[{additionalProperties:!1,description:`Selector '${e}'`,properties:{...s,...r},required:[`selector`,`format`],type:`object`}]}function l(){return{additionalProperties:!1,description:`Multiple selectors in one config`,properties:{...s,filter:{oneOf:[{minLength:1,type:`string`},o]},modifiers:{additionalItems:!1,items:{enum:(0,t.getEnumNames)(n.Modifiers),type:`string`},type:`array`},selector:{additionalItems:!1,items:{enum:[...(0,t.getEnumNames)(n.MetaSelectors),...(0,t.getEnumNames)(n.Selectors)],type:`string`},type:`array`},types:{additionalItems:!1,items:{$ref:`#/$defs/typeModifiers`},type:`array`}},required:[`selector`,`format`],type:`object`}}e.SCHEMA={$defs:r,additionalItems:!1,items:{oneOf:[l(),...c(`default`,!1,(0,t.getEnumNames)(n.Modifiers)),...c(`variableLike`,!1,[`unused`,`async`]),...c(`variable`,!0,[`const`,`destructured`,`exported`,`global`,`unused`,`async`]),...c(`function`,!1,[`exported`,`global`,`unused`,`async`]),...c(`parameter`,!0,[`destructured`,`unused`]),...c(`memberLike`,!1,[`abstract`,`private`,`#private`,`protected`,`public`,`readonly`,`requiresQuotes`,`static`,`override`,`async`]),...c(`classProperty`,!0,[`abstract`,`private`,`#private`,`protected`,`public`,`readonly`,`requiresQuotes`,`static`,`override`]),...c(`objectLiteralProperty`,!0,[`public`,`requiresQuotes`]),...c(`typeProperty`,!0,[`public`,`readonly`,`requiresQuotes`]),...c(`parameterProperty`,!0,[`private`,`protected`,`public`,`readonly`]),...c(`property`,!0,[`abstract`,`private`,`#private`,`protected`,`public`,`readonly`,`requiresQuotes`,`static`,`override`,`async`]),...c(`classMethod`,!1,[`abstract`,`private`,`#private`,`protected`,`public`,`requiresQuotes`,`static`,`override`,`async`]),...c(`objectLiteralMethod`,!1,[`public`,`requiresQuotes`,`async`]),...c(`typeMethod`,!1,[`public`,`requiresQuotes`]),...c(`method`,!1,[`abstract`,`private`,`#private`,`protected`,`public`,`requiresQuotes`,`static`,`override`,`async`]),...c(`classicAccessor`,!0,[`abstract`,`private`,`protected`,`public`,`requiresQuotes`,`static`,`override`]),...c(`autoAccessor`,!0,[`abstract`,`private`,`protected`,`public`,`requiresQuotes`,`static`,`override`]),...c(`accessor`,!0,[`abstract`,`private`,`protected`,`public`,`requiresQuotes`,`static`,`override`]),...c(`enumMember`,!1,[`requiresQuotes`]),...c(`typeLike`,!1,[`abstract`,`exported`,`unused`]),...c(`class`,!1,[`abstract`,`exported`,`unused`]),...c(`interface`,!1,[`exported`,`unused`]),...c(`typeAlias`,!1,[`exported`,`unused`]),...c(`enum`,!1,[`exported`,`unused`]),...c(`typeParameter`,!1,[`unused`]),...c(`import`,!1,[`default`,`namespace`])]},type:`array`}})),k7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectorTypeToMessageString=e.SCHEMA=e.parseOptions=e.Modifiers=void 0;var t=E7();Object.defineProperty(e,`Modifiers`,{enumerable:!0,get:function(){return t.Modifiers}});var n=O7();Object.defineProperty(e,`parseOptions`,{enumerable:!0,get:function(){return n.parseOptions}});var r=DDe();Object.defineProperty(e,`SCHEMA`,{enumerable:!0,get:function(){return r.SCHEMA}});var i=D7();Object.defineProperty(e,`selectorTypeToMessageString`,{enumerable:!0,get:function(){return i.selectorTypeToMessageString}})})),ODe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=k7(),a=[{format:[`camelCase`],leadingUnderscore:`allow`,selector:`default`,trailingUnderscore:`allow`},{format:[`camelCase`,`PascalCase`],selector:`import`},{format:[`camelCase`,`UPPER_CASE`],leadingUnderscore:`allow`,selector:`variable`,trailingUnderscore:`allow`},{format:[`PascalCase`],selector:`typeLike`}];e.default=(0,r.createRule)({name:`naming-convention`,meta:{type:`suggestion`,docs:{description:`Enforce naming conventions for everything across a codebase`,frozen:!0,requiresTypeChecking:!0},messages:{doesNotMatchFormat:"{{type}} name `{{name}}` must match one of the following formats: {{formats}}",doesNotMatchFormatTrimmed:"{{type}} name `{{name}}` trimmed as `{{processedName}}` must match one of the following formats: {{formats}}",missingAffix:"{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}",missingUnderscore:"{{type}} name `{{name}}` must have {{count}} {{position}} underscore(s).",satisfyCustom:"{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}",unexpectedUnderscore:"{{type}} name `{{name}}` must not have a {{position}} underscore."},schema:i.SCHEMA},defaultOptions:a,create(e){let t=e.options.length>0?e:Object.setPrototypeOf({options:a},e),u=(0,i.parseOptions)(t),d=(0,r.getParserServices)(t,!0).program?.getCompilerOptions()??{};function f(e,t,n){let r=t.key;l(r,d.target)&&n.add(i.Modifiers.requiresQuotes),e(r,n)}function p(e){let t=new Set;return`key`in e&&e.key.type===n.AST_NODE_TYPES.PrivateIdentifier?t.add(i.Modifiers[`#private`]):e.accessibility?t.add(i.Modifiers[e.accessibility]):t.add(i.Modifiers.public),e.static&&t.add(i.Modifiers.static),`readonly`in e&&e.readonly&&t.add(i.Modifiers.readonly),`override`in e&&e.override&&t.add(i.Modifiers.override),(e.type===n.AST_NODE_TYPES.TSAbstractPropertyDefinition||e.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition||e.type===n.AST_NODE_TYPES.TSAbstractAccessorProperty)&&t.add(i.Modifiers.abstract),t}let{unusedVariables:m}=(0,r.collectVariables)(t);function h(e,t){let n=null,r=t;for(;r&&(n=r.set.get(e)??null,!n);)r=r.upper;return n?m.has(n):!1}function g(e){return e.parent.type===n.AST_NODE_TYPES.Property&&e.parent.shorthand||e.parent.type===n.AST_NODE_TYPES.AssignmentPattern&&e.parent.parent.type===n.AST_NODE_TYPES.Property&&e.parent.parent.shorthand}function _(e){return!!(`value`in e&&e.value&&`async`in e.value&&e.value.async)}function v(e){return!!(`async`in e.parent&&e.parent.async||`init`in e.parent&&e.parent.init&&`async`in e.parent.init&&e.parent.init.async)}let y={"FunctionDeclaration, TSDeclareFunction, FunctionExpression":{handler:(e,n)=>{if(e.id==null)return;let r=new Set,a=t.sourceCode.getScope(e).upper;c(a)&&r.add(i.Modifiers.global),s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),e.async&&r.add(i.Modifiers.async),n(e.id,r)},validator:u.function},"ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier":{handler:(e,t)=>{let r=new Set;switch(e.type){case n.AST_NODE_TYPES.ImportDefaultSpecifier:r.add(i.Modifiers.default);break;case n.AST_NODE_TYPES.ImportNamespaceSpecifier:r.add(i.Modifiers.namespace);break;case n.AST_NODE_TYPES.ImportSpecifier:if(e.imported.type===n.AST_NODE_TYPES.Identifier&&e.imported.name!==`default`)return;r.add(i.Modifiers.default);break}t(e.local,r)},validator:u.import},VariableDeclarator:{handler:(e,n)=>{let r=o(e.id),a=new Set,l=e.parent;l.kind===`const`&&a.add(i.Modifiers.const),c(t.sourceCode.getScope(e))&&a.add(i.Modifiers.global),r.forEach(e=>{let r=new Set(a);g(e)&&r.add(i.Modifiers.destructured);let o=t.sourceCode.getScope(e);s(l,e.name,o)&&r.add(i.Modifiers.exported),h(e.name,o)&&r.add(i.Modifiers.unused),v(e)&&r.add(i.Modifiers.async),n(e,r)})},validator:u.variable},':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]':{handler:(e,t)=>{f(t,e,p(e))},validator:u.classProperty},':not(ObjectPattern) > Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]':{handler:(e,t)=>{f(t,e,new Set([i.Modifiers.public]))},validator:u.objectLiteralProperty},[[`:matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "ArrowFunctionExpression"]`,`:matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "FunctionExpression"]`,`:matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "TSEmptyBodyFunctionExpression"]`,`:matches(MethodDefinition, TSAbstractMethodDefinition)[computed = false][kind = "method"]`].join(`, `)]:{handler:(e,t)=>{let n=p(e);_(e)&&n.add(i.Modifiers.async),f(t,e,n)},validator:u.classMethod},[[`MethodDefinition[computed = false]:matches([kind = "get"], [kind = "set"])`,`TSAbstractMethodDefinition[computed = false]:matches([kind="get"], [kind="set"])`].join(`, `)]:{handler:(e,t)=>{f(t,e,p(e))},validator:u.classicAccessor},[[`Property[computed = false][kind = "init"][value.type = "ArrowFunctionExpression"]`,`Property[computed = false][kind = "init"][value.type = "FunctionExpression"]`,`Property[computed = false][kind = "init"][value.type = "TSEmptyBodyFunctionExpression"]`].join(`, `)]:{handler:(e,t)=>{let n=new Set([i.Modifiers.public]);_(e)&&n.add(i.Modifiers.async),f(t,e,n)},validator:u.objectLiteralMethod},[[`TSMethodSignature[computed = false]`,`TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type = "TSFunctionType"]`].join(`, `)]:{handler:(e,t)=>{f(t,e,new Set([i.Modifiers.public]))},validator:u.typeMethod},[[n.AST_NODE_TYPES.AccessorProperty,n.AST_NODE_TYPES.TSAbstractAccessorProperty].join(`, `)]:{handler:(e,t)=>{f(t,e,p(e))},validator:u.autoAccessor},"FunctionDeclaration, TSDeclareFunction, TSEmptyBodyFunctionExpression, FunctionExpression, ArrowFunctionExpression":{handler:(e,r)=>{e.params.forEach(e=>{e.type!==n.AST_NODE_TYPES.TSParameterProperty&&o(e).forEach(e=>{let n=new Set;g(e)&&n.add(i.Modifiers.destructured),h(e.name,t.sourceCode.getScope(e))&&n.add(i.Modifiers.unused),r(e,n)})})},validator:u.parameter},'Property[computed = false]:matches([kind = "get"], [kind = "set"])':{handler:(e,t)=>{f(t,e,new Set([i.Modifiers.public]))},validator:u.classicAccessor},TSParameterProperty:{handler:(e,t)=>{let n=p(e);o(e.parameter).forEach(e=>{t(e,n)})},validator:u.parameterProperty},'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type != "TSFunctionType"]':{handler:(e,t)=>{let n=new Set([i.Modifiers.public]);e.readonly&&n.add(i.Modifiers.readonly),f(t,e,n)},validator:u.typeProperty},"ClassDeclaration, ClassExpression":{handler:(e,n)=>{let r=e.id;if(r==null)return;let a=new Set,o=t.sourceCode.getScope(e).upper;e.abstract&&a.add(i.Modifiers.abstract),s(e,r.name,o)&&a.add(i.Modifiers.exported),h(r.name,o)&&a.add(i.Modifiers.unused),n(r,a)},validator:u.class},TSEnumDeclaration:{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e).upper;s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),n(e.id,r)},validator:u.enum},TSEnumMember:{handler:(e,t)=>{let n=e.id,r=new Set;l(n,d.target)&&r.add(i.Modifiers.requiresQuotes),t(n,r)},validator:u.enumMember},TSInterfaceDeclaration:{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e);s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),n(e.id,r)},validator:u.interface},TSTypeAliasDeclaration:{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e);s(e,e.id.name,a)&&r.add(i.Modifiers.exported),h(e.id.name,a)&&r.add(i.Modifiers.unused),n(e.id,r)},validator:u.typeAlias},"TSTypeParameterDeclaration > TSTypeParameter":{handler:(e,n)=>{let r=new Set,a=t.sourceCode.getScope(e);h(e.name.name,a)&&r.add(i.Modifiers.unused),n(e.name,r)},validator:u.typeParameter}};return Object.fromEntries(Object.entries(y).map(([e,{handler:t,validator:n}])=>[e,e=>{t(e,n)}]))}});function o(e){let n=[];return new t.PatternVisitor({},e,e=>n.push(e)).visit(e),n}function s(e,t,r){if(e?.parent?.type===n.AST_NODE_TYPES.ExportDefaultDeclaration||e?.parent?.type===n.AST_NODE_TYPES.ExportNamedDeclaration)return!0;if(r==null)return!1;let i=r.set.get(t);if(i)for(let e of i.references){let t=e.identifier.parent;if(t.type===n.AST_NODE_TYPES.ExportDefaultDeclaration||t.type===n.AST_NODE_TYPES.ExportSpecifier)return!0}return!1}function c(e){return e==null?!1:e.type===n.TSESLint.Scope.ScopeType.global||e.type===n.TSESLint.Scope.ScopeType.module}function l(e,t){let i=e.type===n.AST_NODE_TYPES.Identifier||e.type===n.AST_NODE_TYPES.PrivateIdentifier?e.name:`${e.value}`;return(0,r.requiresQuoting)(i,t)}})),kDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=j8();e.default=(0,_7().createRule)({name:`no-array-constructor`,meta:{type:`suggestion`,docs:{description:"Disallow generic `Array` constructors",extendsBaseRule:!0,recommended:`recommended`},fixable:`code`,messages:{useLiteral:`The array literal notation [] is preferable.`},schema:[]},defaultOptions:[],create(e){let r=e.sourceCode;function i(e){let t=r.getLastToken(e);if(t==null||!(0,n.isClosingParenToken)(t))return``;let i=e.callee;do if(i=r.getTokenAfter(i),!i||i===t)return``;while(!(0,n.isOpeningParenToken)(i));return r.text.slice(i.range[1],t.range[0])}function a(n){n.arguments.length!==1&&n.callee.type===t.AST_NODE_TYPES.Identifier&&n.callee.name===`Array`&&!n.typeArguments&&e.report({node:n,messageId:`useLiteral`,fix(e){let t=i(n);return e.replaceText(n,`[${t}]`)}})}return{CallExpression:a,NewExpression:a}}})})),ADe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-array-delete`,meta:{type:`problem`,docs:{description:"Disallow using the `delete` operator on array values",recommended:`recommended`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{noArrayDelete:"Using the `delete` operator with an array expression is unsafe.",useSplice:"Use `array.splice()` instead."},schema:[]},defaultOptions:[],create(e){let r=(0,n.getParserServices)(e),i=r.program.getTypeChecker();function a(e){let t=e=>i.isArrayType(e)||i.isTupleType(e);return e.isUnion()?e.types.every(t):e.isIntersection()?e.types.some(t):t(e)}return{'UnaryExpression[operator="delete"]'(i){let{argument:o}=i;o.type===t.AST_NODE_TYPES.MemberExpression&&a((0,n.getConstrainedTypeAtLocation)(r,o.object))&&e.report({node:i,messageId:`noArrayDelete`,suggest:[{messageId:`useSplice`,fix(n){let{object:a,property:s}=o,c=s.type===t.AST_NODE_TYPES.SequenceExpression,l=r.esTreeNodeToTSNodeMap,u=l.get(a).getText(),d=l.get(s).getText(),f=`${u}.splice(${c?`(${d})`:d}, 1)`,p=e.sourceCode.getCommentsInside(i);if(p.length>0){let e=i.loc.start.column,n=` `.repeat(e);f=`${p.map(e=>e.type===t.AST_TOKEN_TYPES.Line?`//${e.value}`:`/*${e.value}*/`).join(`\n${n}`)}\n${n}${f}`}return n.replaceText(i,f)}}]})}}}})})),jDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();var c;(function(e){e.Always=`always`,e.Never=`will`,e.Sometimes=`may`})(c||={});let l=e=>o.isTypeAliasDeclaration(e)||o.isInterfaceDeclaration(e)||o.isClassDeclaration(e);e.default=(0,s.createRule)({name:`no-base-to-string`,meta:{type:`suggestion`,docs:{description:"Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified",recommended:`recommended`,requiresTypeChecking:!0},messages:{baseArrayJoin:"Using `join()` for {{name}} {{certainty}} use Object's default stringification format ('[object Object]') when stringified.",baseToString:`'{{name}}' {{certainty}} use Object's default stringification format ('[object Object]') when stringified.`},schema:[{type:`object`,additionalProperties:!1,properties:{checkUnknown:{type:`boolean`,description:"Whether to also check values of type `unknown`"},ignoredTypeNames:{type:`array`,description:`Stringified type names to ignore.`,items:{type:`string`}}}}]},defaultOptions:[{checkUnknown:!1,ignoredTypeNames:[`Error`,`RegExp`,`URL`,`URLSearchParams`]}],create(e,[t]){let n=(0,s.getParserServices)(e),{program:r}=n,u=r.getTypeChecker(),d=t.ignoredTypeNames??[];function f(t,r){if(t.type===i.AST_NODE_TYPES.Literal)return;let a=y(r??n.getTypeAtLocation(t),new Set);a!==c.Always&&e.report({node:t,messageId:`baseToString`,data:{name:e.sourceCode.getText(t),certainty:a}})}function p(t,n){let r=v(n,new Set);r!==c.Always&&e.report({node:t,messageId:`baseArrayJoin`,data:{name:e.sourceCode.getText(t),certainty:r}})}function m(e,t){let n=e.types.map(e=>t(e));return n.every(e=>e===c.Never)?c.Never:n.every(e=>e===c.Always)?c.Always:c.Sometimes}function h(e,t){for(let n of e.types)if(t(n)===c.Always)return c.Always;return c.Never}function g(e,t){let n=u.getTypeArguments(e).map(e=>y(e,t));return n.some(e=>e===c.Never)?c.Never:n.some(e=>e===c.Sometimes)?c.Sometimes:c.Always}function _(e,t){return y((0,s.nullThrows)(e.getNumberIndexType(),`array should have number index type`),t)}function v(e,t){return a.isUnionType(e)?m(e,e=>v(e,t)):a.isIntersectionType(e)?h(e,e=>v(e,t)):u.isTupleType(e)?g(e,t):u.isArrayType(e)?_(e,t):c.Always}function y(e,r){if(r.has(e))return c.Always;if(a.isTypeParameter(e)){let n=e.getConstraint();return n?y(n,r):t.checkUnknown?c.Sometimes:c.Always}if(a.isTypeFlagSet(e,o.TypeFlags.Boolean)||a.isTypeFlagSet(e,o.TypeFlags.BooleanLiteral))return c.Always;let i=e.aliasSymbol??e.getSymbol(),f=i?.getDeclarations()?.[0];if(f&&l(f)&&f.typeParameters&&d.includes(i.name)||(0,s.matchesTypeOrBaseType)(n,e=>d.includes((0,s.getTypeName)(u,e)),e))return c.Always;if(e.isIntersection())return h(e,e=>y(e,r));if(e.isUnion())return m(e,e=>y(e,r));if(u.isTupleType(e))return g(e,new Set([...r,e]));if(u.isArrayType(e))return _(e,new Set([...r,e]));switch(S(e)){case void 0:return t.checkUnknown&&e.flags===o.TypeFlags.Unknown?c.Sometimes:c.Always;case!0:return c.Never;case!1:return c.Always}}function b(t){return t.callee.type===i.AST_NODE_TYPES.Identifier&&t.callee.name===`String`&&t.arguments[0]?!e.sourceCode.getScope(t).set.get(`String`)?.defs.length:!1}function x(e){return o.isMethodSignature(e)&&o.isComputedPropertyName(e.name)&&o.isPropertyAccessExpression(e.name.expression)&&o.isIdentifier(e.name.expression.expression)&&e.name.expression.expression.text===`Symbol`&&o.isIdentifier(e.name.expression.name)&&e.name.expression.name.text===`toPrimitive`&&(0,s.isSymbolFromDefaultLibrary)(r,u.getSymbolAtLocation(e.name.expression.expression))}function S(e){if(e.getProperties().some(e=>e.valueDeclaration&&x(e.valueDeclaration)))return!1;let t=!1;for(let n of[`toLocaleString`,`toString`,`valueOf`]){let r=u.getPropertyOfType(e,n);if(!r)continue;let i=r.getDeclarations();if(i?.length){if(i.some(e=>!(o.isInterfaceDeclaration(e.parent)&&e.parent.name.text===`Object`)))return!1;t=!0}}return t?!0:void 0}return{'AssignmentExpression[operator = "+="], BinaryExpression[operator = "+"]'(e){let t=n.getTypeAtLocation(e.left),r=n.getTypeAtLocation(e.right);(0,s.getTypeName)(u,t)===`string`?f(e.right,r):(0,s.getTypeName)(u,r)===`string`&&e.left.type!==i.AST_NODE_TYPES.PrivateIdentifier&&f(e.left,t)},CallExpression(e){b(e)&&e.arguments[0].type!==i.AST_NODE_TYPES.SpreadElement&&f(e.arguments[0])},'CallExpression > MemberExpression.callee > Identifier[name = "join"].property'(e){let t=e.parent,r=(0,s.getConstrainedTypeAtLocation)(n,t.object);p(t.object,r)},"CallExpression > MemberExpression.callee > Identifier[name = /^(toLocaleString|toString)$/].property"(e){let t=e.parent;f(t.object)},TemplateLiteral(e){if(e.parent.type!==i.AST_NODE_TYPES.TaggedTemplateExpression)for(let t of e.expressions)f(t)}}}})})),MDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=new Set([`=`,`==`,`===`,`in`,`instanceof`]);function i(e){return r.has(e)}e.default=(0,n.createRule)({name:`no-confusing-non-null-assertion`,meta:{type:`problem`,docs:{description:`Disallow non-null assertion in locations that may be confusing`,recommended:`stylistic`},hasSuggestions:!0,messages:{confusingAssign:"Confusing combination of non-null assertion and assignment like `a! = b`, which looks very similar to `a != b`.",confusingEqual:"Confusing combination of non-null assertion and equality test like `a! == b`, which looks very similar to `a !== b`.",confusingOperator:"Confusing combination of non-null assertion and `{{operator}}` operator like `a! {{operator}} b`, which might be misinterpreted as `!(a {{operator}} b)`.",notNeedInAssign:`Remove unnecessary non-null assertion (!) in assignment left-hand side.`,notNeedInEqualTest:`Remove unnecessary non-null assertion (!) in equality test.`,notNeedInOperator:"Remove possibly unnecessary non-null assertion (!) in the left operand of the `{{operator}}` operator.",wrapUpLeft:`Wrap the left-hand side in parentheses to avoid confusion with "{{operator}}" operator.`},schema:[]},defaultOptions:[],create(e){function n(e){switch(e){case`=`:return{messageId:`confusingAssign`};case`==`:case`===`:return{messageId:`confusingEqual`};case`in`:case`instanceof`:return{messageId:`confusingOperator`,data:{operator:e}};default:throw Error(`Unexpected operator ${e}`)}}return{"BinaryExpression, AssignmentExpression"(r){let o=r.operator;if(i(o)){let i=e.sourceCode.getLastToken(r.left),s=e.sourceCode.getTokenAfter(r.left);if(i?.type===t.AST_TOKEN_TYPES.Punctuator&&i.value===`!`&&s?.value!==`)`)if(r.left.type===t.AST_NODE_TYPES.TSNonNullExpression){let t;switch(o){case`=`:t=[{messageId:`notNeedInAssign`,fix:e=>e.remove(i)}];break;case`==`:case`===`:t=[{messageId:`notNeedInEqualTest`,fix:e=>e.remove(i)}];break;case`in`:case`instanceof`:t=[{messageId:`notNeedInOperator`,data:{operator:o},fix:e=>e.remove(i)},{messageId:`wrapUpLeft`,data:{operator:o},fix:a(r)}];break;default:return}e.report({node:r,...n(o),suggest:t})}else e.report({node:r,...n(o),suggest:[{messageId:`wrapUpLeft`,data:{operator:o},fix:a(r)}]})}}}}});function a(e){return t=>[t.insertTextBefore(e.left,`(`),t.insertTextAfter(e.left,`)`)]}})),A7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getParentFunctionNode=n;let t=P8();function n(e){let n=e.parent;for(;n;){if(n.type===t.AST_NODE_TYPES.ArrowFunctionExpression||n.type===t.AST_NODE_TYPES.FunctionDeclaration||n.type===t.AST_NODE_TYPES.FunctionExpression)return n;n=n.parent}return null}})),NDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=A7();e.default=(0,s.createRule)({name:`no-confusing-void-expression`,meta:{type:`problem`,docs:{description:`Require expressions of type void to appear in statement position`,recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,hasSuggestions:!0,messages:{invalidVoidExpr:`Placing a void expression inside another expression is forbidden. Move it to its own statement instead.`,invalidVoidExprArrow:`Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function.`,invalidVoidExprArrowWrapVoid:"Void expressions returned from an arrow function shorthand must be marked explicitly with the `void` operator.",invalidVoidExprReturn:"Returning a void expression from a function is forbidden. Please move it before the `return` statement.",invalidVoidExprReturnLast:"Returning a void expression from a function is forbidden. Please remove the `return` statement.",invalidVoidExprReturnWrapVoid:"Void expressions returned from a function must be marked explicitly with the `void` operator.",invalidVoidExprWrapVoid:"Void expressions used inside another expression must be moved to its own statement or marked explicitly with the `void` operator.",voidExprWrapVoid:"Mark with an explicit `void` operator."},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreArrowShorthand:{type:`boolean`,description:'Whether to ignore "shorthand" `() =>` arrow functions: those without `{ ... }` braces.'},ignoreVoidOperator:{type:`boolean`,description:"Whether to ignore returns that start with the `void` operator."},ignoreVoidReturningFunctions:{type:`boolean`,description:"Whether to ignore returns from functions with explicit `void` return types and functions with contextual `void` return types."}}}]},defaultOptions:[{ignoreArrowShorthand:!1,ignoreVoidOperator:!1,ignoreVoidReturningFunctions:!1}],create(e,[t]){let n=(0,s.getParserServices)(e);return{"AwaitExpression, CallExpression, TaggedTemplateExpression"(f){let m=(0,s.getConstrainedTypeAtLocation)(n,f);if(!a.isTypeFlagSet(m,o.TypeFlags.VoidLike))return;let h=r(f);if(h==null)return;let g=t=>{let n=`void ${e.sourceCode.getText(f)}`;return t.replaceText(f,n)};if(h.type===i.AST_NODE_TYPES.ArrowFunctionExpression){if(t.ignoreVoidReturningFunctions&&p(h))return;if(t.ignoreVoidOperator)return e.report({node:f,messageId:`invalidVoidExprArrowWrapVoid`,fix:g});let n=h;return e.report({node:f,messageId:`invalidVoidExprArrow`,fix(t){if(!d(n))return null;let r=n.body,i=`{ ${e.sourceCode.getText(r)}; }`;if((0,s.isParenthesized)(r,e.sourceCode)){let n=(0,s.nullThrows)(e.sourceCode.getTokenBefore(r,s.isOpeningParenToken),s.NullThrowsReasons.MissingToken(`opening parenthesis`,`arrow body`)),a=(0,s.nullThrows)(e.sourceCode.getTokenAfter(r,s.isClosingParenToken),s.NullThrowsReasons.MissingToken(`closing parenthesis`,`arrow body`));return t.replaceTextRange([n.range[0],a.range[1]],i)}return t.replaceText(r,i)}})}if(h.type===i.AST_NODE_TYPES.ReturnStatement){if(t.ignoreVoidReturningFunctions){let e=(0,c.getParentFunctionNode)(h);if(e&&p(e))return}return t.ignoreVoidOperator?e.report({node:f,messageId:`invalidVoidExprReturnWrapVoid`,fix:g}):l(h)?e.report({node:f,messageId:`invalidVoidExprReturnLast`,fix(t){if(!d(h))return null;let n=h.argument,r=`${e.sourceCode.getText(n)};`;return u(n)&&(r=`;${r}`),t.replaceText(h,r)}}):e.report({node:f,messageId:`invalidVoidExprReturn`,fix(t){let n=h.argument,r=`${e.sourceCode.getText(n)}; return;`;return u(n)&&(r=`;${r}`),h.parent.type!==i.AST_NODE_TYPES.BlockStatement&&(r=`{ ${r} }`),t.replaceText(h,r)}})}if(t.ignoreVoidOperator)return e.report({node:f,messageId:`invalidVoidExprWrapVoid`,suggest:[{messageId:`voidExprWrapVoid`,fix:g}]});e.report({node:f,messageId:`invalidVoidExpr`})}};function r(e){let n=e.parent;return n.type===i.AST_NODE_TYPES.SequenceExpression&&e!==n.expressions[n.expressions.length-1]||n.type===i.AST_NODE_TYPES.ExpressionStatement?null:n.type===i.AST_NODE_TYPES.LogicalExpression&&n.right===e||n.type===i.AST_NODE_TYPES.ConditionalExpression&&(n.consequent===e||n.alternate===e)?r(n):n.type===i.AST_NODE_TYPES.ArrowFunctionExpression&&t.ignoreArrowShorthand||n.type===i.AST_NODE_TYPES.UnaryExpression&&n.operator===`void`&&t.ignoreVoidOperator?null:n.type===i.AST_NODE_TYPES.ChainExpression?r(n):n}function l(e){let t=e.parent;if(t.type!==i.AST_NODE_TYPES.BlockStatement)return!1;let n=t.parent;return!(![i.AST_NODE_TYPES.ArrowFunctionExpression,i.AST_NODE_TYPES.FunctionDeclaration,i.AST_NODE_TYPES.FunctionExpression].includes(n.type)||t.body.indexOf(e)<t.body.length-1)}function u(t){let n=(0,s.nullThrows)(e.sourceCode.getFirstToken(t),s.NullThrowsReasons.MissingToken(`first token`,t.type));return[`(`,`[`,"`"].includes(n.value)}function d(e){let t=e.type===i.AST_NODE_TYPES.ReturnStatement?e.argument:e.body,r=(0,s.getConstrainedTypeAtLocation)(n,t);return a.isTypeFlagSet(r,o.TypeFlags.VoidLike)}function f(e){return a.getCallSignaturesOfType(e).some(e=>{let t=e.getReturnType();return a.unionConstituents(t).some(a.isIntrinsicVoidType)})}function p(e){if(e.returnType){let t=n.getTypeFromTypeNode(e.returnType.typeAnnotation);return a.unionConstituents(t).some(a.isIntrinsicVoidType)}if(e.type!==i.AST_NODE_TYPES.FunctionDeclaration){let t=n.getContextualType(e);if(t)return a.unionConstituents(t).some(f)}return!1}}})})),PDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-deprecated`,meta:{type:`problem`,docs:{description:"Disallow using code marked as `@deprecated`",recommended:`strict`,requiresTypeChecking:!0},messages:{deprecated:"`{{name}}` is deprecated.",deprecatedWithReason:"`{{name}}` is deprecated. {{reason}}"},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...s.typeOrValueSpecifiersSchema,description:`Type specifiers that can be allowed.`}}}]},defaultOptions:[{allow:[]}],create(e,[t]){let{jsDocParsingMode:n}=e.languageOptions.parserOptions,r=t.allow;if(n===`none`||n===`type-info`)throw Error(`Cannot be used with jsDocParsingMode: '${n}'.`);let l=(0,s.getParserServices)(e),u=l.program.getTypeChecker();function d(e,t){if(!e||!a.isSymbolFlagSet(e,o.SymbolFlags.Alias))return t?m(e):void 0;let n=u.getAliasedSymbol(e);for(;a.isSymbolFlagSet(e,o.SymbolFlags.Alias);){let r=m(e);if(r!=null)return r;let i=e.getDeclarations()&&u.getImmediateAliasedSymbol(e);if(!i)break;if(e=i,t&&e===n)return m(e)}}function f(e){let{parent:t}=e;switch(t.type){case i.AST_NODE_TYPES.ArrayPattern:return t.elements.includes(e);case i.AST_NODE_TYPES.ClassExpression:case i.AST_NODE_TYPES.ClassDeclaration:case i.AST_NODE_TYPES.VariableDeclarator:case i.AST_NODE_TYPES.TSEnumMember:return t.id===e;case i.AST_NODE_TYPES.MethodDefinition:case i.AST_NODE_TYPES.PropertyDefinition:case i.AST_NODE_TYPES.AccessorProperty:return t.key===e;case i.AST_NODE_TYPES.Property:return t.value===e?t.parent.type===i.AST_NODE_TYPES.ObjectPattern:t.parent.type===i.AST_NODE_TYPES.ObjectExpression;case i.AST_NODE_TYPES.AssignmentPattern:return t.left===e;case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.FunctionDeclaration:case i.AST_NODE_TYPES.FunctionExpression:case i.AST_NODE_TYPES.TSDeclareFunction:case i.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:case i.AST_NODE_TYPES.TSEnumDeclaration:case i.AST_NODE_TYPES.TSInterfaceDeclaration:case i.AST_NODE_TYPES.TSMethodSignature:case i.AST_NODE_TYPES.TSModuleDeclaration:case i.AST_NODE_TYPES.TSParameterProperty:case i.AST_NODE_TYPES.TSPropertySignature:case i.AST_NODE_TYPES.TSTypeAliasDeclaration:case i.AST_NODE_TYPES.TSTypeParameter:return!0;case i.AST_NODE_TYPES.TSImportEqualsDeclaration:return t.id===e;default:return!1}}function p(e){let t=e;for(;;)switch(t.type){case i.AST_NODE_TYPES.ImportDeclaration:return!0;case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.ExportAllDeclaration:case i.AST_NODE_TYPES.ExportNamedDeclaration:case i.AST_NODE_TYPES.BlockStatement:case i.AST_NODE_TYPES.ClassDeclaration:case i.AST_NODE_TYPES.TSInterfaceDeclaration:case i.AST_NODE_TYPES.FunctionDeclaration:case i.AST_NODE_TYPES.FunctionExpression:case i.AST_NODE_TYPES.Program:case i.AST_NODE_TYPES.TSUnionType:case i.AST_NODE_TYPES.VariableDeclarator:return!1;default:t=t.parent}}function m(e){let t;try{t=e?.getJsDocTags(u)}catch{return}let n=t?.find(e=>e.name===`deprecated`);if(!n)return;let r=n.text;return r?o.displayPartsToString(r):``}function h(e){switch(e.parent?.type){case i.AST_NODE_TYPES.NewExpression:case i.AST_NODE_TYPES.CallExpression:return e.parent.callee===e;case i.AST_NODE_TYPES.TaggedTemplateExpression:return e.parent.tag===e;case i.AST_NODE_TYPES.JSXOpeningElement:return e.parent.name===e;default:return!1}}function g(e){let t=e;for(;t.parent?.type===i.AST_NODE_TYPES.MemberExpression&&t.parent.property===t;)t=t.parent;return h(t)?t:void 0}function _(e){let t=l.esTreeNodeToTSNodeMap.get(e.parent),n=(0,s.nullThrows)(u.getResolvedSignature(t),`Expected call like node to have signature`),r=l.getSymbolAtLocation(e),i=r!=null&&a.isSymbolFlagSet(r,o.SymbolFlags.Alias)?u.getAliasedSymbol(r):r,c=i?.declarations?.[0].kind;return c!==o.SyntaxKind.MethodDeclaration&&c!==o.SyntaxKind.FunctionDeclaration&&c!==o.SyntaxKind.MethodSignature?d(r,!0)??m(n)??m(i):d(r,!1)??m(n)}function v(e,t){return m((0,s.nullThrows)(l.getContextualType(e.name),`Expected JSX opening element name to have contextualType`).getProperty(t))}function y(e){let t=g(e);if(t)return _(t);if(e.parent.type===i.AST_NODE_TYPES.JSXAttribute&&e.type!==i.AST_NODE_TYPES.Super)return v(e.parent.parent,e.name);if(e.parent.type===i.AST_NODE_TYPES.Property&&e.type!==i.AST_NODE_TYPES.Super){let t=l.getTypeAtLocation(e.parent.parent).getProperty(e.name),n=l.getSymbolAtLocation(e),r=u.getShorthandAssignmentValueSymbol(n?.valueDeclaration);return d(n,!0)??m(t)??m(n)??m(r)}return d(l.getSymbolAtLocation(e),!0)}function b(t){if(f(t)||p(t))return;let n=y(t);if(n==null)return;let i=l.getTypeAtLocation(t);if((0,s.typeMatchesSomeSpecifier)(i,r,l.program)||(0,s.valueMatchesSomeSpecifier)(t,r,l.program,i))return;let a=c(t);e.report({...n?{messageId:`deprecatedWithReason`,data:{name:a,reason:n}}:{messageId:`deprecated`,data:{name:a}},node:t})}function x(t){if(!t.computed)return;let n=l.getTypeAtLocation(t.property);if(n.isLiteral()){let i=l.getTypeAtLocation(t.object),a=n.isStringLiteral()?n.value:String(n.value),o=m(i.getProperty(a));if(o==null||(0,s.typeMatchesSomeSpecifier)(i,r,l.program))return;e.report({...o?{messageId:`deprecatedWithReason`,data:{name:a,reason:o}}:{messageId:`deprecated`,data:{name:a}},node:t.property})}}return{Identifier(e){let{parent:t}=e;t.type===i.AST_NODE_TYPES.ExportNamedDeclaration||t.type===i.AST_NODE_TYPES.ExportAllDeclaration||t.type===i.AST_NODE_TYPES.MemberExpression&&t.computed&&t.property===e||t.type===i.AST_NODE_TYPES.ExportSpecifier&&(t.exported!==e||m(l.getSymbolAtLocation(e))!=null)||b(e)},JSXIdentifier(e){e.parent.type!==i.AST_NODE_TYPES.JSXClosingElement&&b(e)},MemberExpression:x,PrivateIdentifier:b,Super:b}}});function c(e){return e.type===i.AST_NODE_TYPES.Super?`super`:e.type===i.AST_NODE_TYPES.PrivateIdentifier?`#${e.name}`:e.name}})),FDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-dupe-class-members`);e.default=(0,n.createRule)({name:`no-dupe-class-members`,meta:{type:`problem`,docs:{description:`Disallow duplicate class members`,extendsBaseRule:!0},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:[],create(e){let n=r.create(e);function i(e){return n=>{if(!n.computed&&n.value?.type!==t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)return e(n)}}return{...n,"MethodDefinition, PropertyDefinition":i(n[`MethodDefinition, PropertyDefinition`])}}})})),IDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-duplicate-enum-values`,meta:{type:`problem`,docs:{description:`Disallow duplicate enum member values`,recommended:`recommended`},hasSuggestions:!1,messages:{duplicateValue:`Duplicate enum member value {{value}}.`},schema:[]},defaultOptions:[],create(e){function n(e){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value==`string`}function r(e){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value==`number`}function i(e){return e.type===t.AST_NODE_TYPES.UnaryExpression&&[`-`,`+`].includes(e.operator)}function a(e){return e.type===t.AST_NODE_TYPES.TemplateLiteral&&e.expressions.length===0&&e.quasis.length===1}function o(e){switch(!0){case n(e):case r(e):return e.value;case i(e):{let t=Number(o(e.argument));return Number.isNaN(t)?void 0:e.operator===`-`?-t:t}case a(e):return e.quasis[0].value.cooked??void 0;default:return}}return{TSEnumDeclaration(t){let n=t.body.members,r=[];n.forEach(t=>{if(t.initializer==null)return;let n=o(t.initializer);n!=null&&(r.some(e=>Object.is(e,n))?e.report({node:t,messageId:`duplicateValue`,data:{value:n}}):r.push(n))})}}}})})),LDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=new Set([`loc`,`parent`,`range`]),l=(e,t)=>{if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?!e.some((e,n)=>!l(e,t[n])):!1;let n=Object.keys(e).filter(e=>!c.has(e)),r=Object.keys(t).filter(e=>!c.has(e));return!(n.length!==r.length||n.some(e=>!Object.hasOwn(t,e))||n.some(n=>!l(e[n],t[n])))}return!1};e.default=(0,s.createRule)({name:`no-duplicate-type-constituents`,meta:{type:`suggestion`,docs:{description:`Disallow duplicate constituents of union or intersection types`,recommended:`recommended`,requiresTypeChecking:!0},fixable:`code`,messages:{duplicate:`{{type}} type constituent is duplicated with {{previous}}.`,unnecessary:`Explicit undefined is unnecessary on an optional parameter.`},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreIntersections:{type:`boolean`,description:"Whether to ignore `&` intersections."},ignoreUnions:{type:`boolean`,description:"Whether to ignore `|` unions."}}}]},defaultOptions:[{ignoreIntersections:!1,ignoreUnions:!1}],create(e,[{ignoreIntersections:t,ignoreUnions:n}]){let r=(0,s.getParserServices)(e),{sourceCode:c}=e;function u(t,n,r){let i=(e,t)=>c[`getTokens${e}`](n,{filter:e=>[`&`,`|`].includes(e.value)&&n.parent.range[0]<=e.range[0]&&e.range[1]<=n.parent.range[1]}).at(t),a=i(`Before`,-1),o,l,u;a?(l=c.getTokensBetween(a,n),u=c.getTokensAfter(n,{count:l.length})):(o=(0,s.nullThrows)(i(`After`,0),s.NullThrowsReasons.MissingToken(`union or intersection token`,`duplicate type constituent`)),u=c.getTokensBetween(n,o),l=c.getTokensBefore(n,{count:u.length})),e.report({loc:{start:n.loc.start,end:(u.at(-1)??n).loc.end},node:n,messageId:t,data:r,fix:e=>[a,...l,n,...u,o].flatMap(t=>t?e.remove(t):[])})}function d(e,t,n,o,s){let f=r.getTypeAtLocation(t);if(a.isIntrinsicErrorType(f))return;let p=n.find(e=>l(e,t))??o.get(f);if(p){u(`duplicate`,t,{type:e,previous:c.getText(p)});return}if(s?.(f,t),o.set(f,t),n.push(t),e===`Union`&&t.type===i.AST_NODE_TYPES.TSUnionType||e===`Intersection`&&t.type===i.AST_NODE_TYPES.TSIntersectionType)for(let r of t.types)d(e,r,n,o,s)}function f(e,t){let n=new Map,r=[],a=e.type===i.AST_NODE_TYPES.TSIntersectionType?`Intersection`:`Union`;for(let i of e.types)d(a,i,r,n,t)}return{...!t&&{TSIntersectionType(e){e.parent.type!==i.AST_NODE_TYPES.TSIntersectionType&&f(e)}},...!n&&{TSUnionType:e=>{e.parent.type!==i.AST_NODE_TYPES.TSUnionType&&f(e,(t,n)=>{let r=e.parent;if(r.type===i.AST_NODE_TYPES.TSTypeAnnotation){let e=r.parent;if(e.type===i.AST_NODE_TYPES.Identifier&&e.optional){let r=e.parent;(0,s.isFunctionOrFunctionType)(r)&&r.params.includes(e)&&a.isTypeFlagSet(t,o.TypeFlags.Undefined)&&u(`unnecessary`,n)}}})}}}}})})),RDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-dynamic-delete`,meta:{type:`suggestion`,docs:{description:"Disallow using the `delete` operator on computed key expressions",recommended:`strict`},messages:{dynamicDelete:`Do not delete dynamically computed property keys.`},schema:[]},defaultOptions:[],create(e){return{"UnaryExpression[operator=delete]"(r){r.argument.type!==t.AST_NODE_TYPES.MemberExpression||!r.argument.computed||n(r.argument.property)||e.report({node:r.argument.property,messageId:`dynamicDelete`})}}}});function n(e){return e.type===t.AST_NODE_TYPES.Literal&&[`number`,`string`].includes(typeof e.value)||e.type===t.AST_NODE_TYPES.UnaryExpression&&e.operator===`-`&&e.argument.type===t.AST_NODE_TYPES.Literal&&typeof e.argument.value==`number`}})),zDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-empty-function`),i=[{allow:[]}],a=(0,n.deepMerge)(Array.isArray(r.meta.schema)?r.meta.schema[0]:r.meta.schema,{properties:{allow:{description:`Locations and kinds of functions that are allowed to be empty.`,items:{type:`string`,enum:[`functions`,`arrowFunctions`,`generatorFunctions`,`methods`,`generatorMethods`,`getters`,`setters`,`constructors`,`private-constructors`,`protected-constructors`,`asyncFunctions`,`asyncMethods`,`decoratedFunctions`,`overrideMethods`]}}}});e.default=(0,n.createRule)({name:`no-empty-function`,meta:{type:`suggestion`,defaultOptions:i,docs:{description:`Disallow empty functions`,extendsBaseRule:!0,recommended:`stylistic`},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:[a]},defaultOptions:i,create(e,[{allow:n=[]}]){let i=r.create(e),a=n.includes(`protected-constructors`),o=n.includes(`private-constructors`),s=n.includes(`decoratedFunctions`),c=n.includes(`overrideMethods`);function l(e){return e.body.body.length===0}function u(e){return e.params.some(e=>e.type===t.AST_NODE_TYPES.TSParameterProperty)}function d(e){let n=e.parent;if(l(e)&&n.type===t.AST_NODE_TYPES.MethodDefinition&&n.kind===`constructor`){let{accessibility:t}=n;return t===`protected`&&a||t===`private`&&o||u(e)}return!1}function f(e){if(s&&l(e)){let n=e.parent.type===t.AST_NODE_TYPES.MethodDefinition?e.parent.decorators:void 0;return!!n&&!!n.length}return!1}function p(e){return c&&l(e)&&e.parent.type===t.AST_NODE_TYPES.MethodDefinition&&e.parent.override}return{...i,FunctionExpression(e){d(e)||f(e)||p(e)||i.FunctionExpression(e)}}}})})),BDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7();e.default=(0,r.createRule)({name:`no-empty-interface`,meta:{type:`suggestion`,deprecated:{deprecatedSince:`8.0.0`,replacedBy:[{rule:{name:`@typescript-eslint/no-empty-object-type`,url:`https://typescript-eslint.io/rules/no-empty-object-type`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/8977`},docs:{description:`Disallow the declaration of empty interfaces`},fixable:`code`,hasSuggestions:!0,messages:{noEmpty:"An empty interface is equivalent to `{}`.",noEmptyWithSuper:`An interface declaring no members is equivalent to its supertype.`},replacedBy:[`@typescript-eslint/no-empty-object-type`],schema:[{type:`object`,additionalProperties:!1,properties:{allowSingleExtends:{type:`boolean`,description:`Whether to allow empty interfaces that extend a single other interface.`}}}]},defaultOptions:[{allowSingleExtends:!1}],create(e,[{allowSingleExtends:i}]){return{TSInterfaceDeclaration(a){if(a.body.body.length!==0)return;let o=a.extends;if(o.length===0)e.report({node:a.id,messageId:`noEmpty`});else if(o.length===1&&!i){let i=t=>{let n=``;return a.typeParameters&&(n=e.sourceCode.getText(a.typeParameters)),t.replaceText(a,`type ${e.sourceCode.getText(a.id)}${n} = ${e.sourceCode.getText(o[0])}`)},s=e.sourceCode.getScope(a),c=s.set.get(a.id.name)?.defs.some(e=>e.node.type===n.AST_NODE_TYPES.ClassDeclaration),l=!((0,r.isDefinitionFile)(e.filename)&&s.type===t.ScopeType.tsModule&&s.block.declare||c);e.report({node:a.id,messageId:`noEmptyWithSuper`,...l?{fix:i}:c?null:{suggest:[{messageId:`noEmptyWithSuper`,fix:i}]}})}}}}})})),VDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=e=>[`${e} allows any non-nullish value, including literals like \`0\` and \`""\`.`,`- If that's what you want, disable this lint rule with an inline comment or configure the '{{ option }}' rule option.`,'- If you want a type meaning "any object", you probably want `object` instead.','- If you want a type meaning "any value", you probably want `unknown` instead.'].join(`
|
|
1088
1088
|
`);e.default=(0,n.createRule)({name:`no-empty-object-type`,meta:{type:`suggestion`,docs:{description:`Disallow accidentally using the "empty object" type`,recommended:`recommended`},hasSuggestions:!0,messages:{noEmptyInterface:r(`An empty interface declaration`),noEmptyInterfaceWithSuper:`An interface declaring no members is equivalent to its supertype.`,noEmptyObject:r('The `{}` ("empty object") type'),replaceEmptyInterface:"Replace empty interface with `{{replacement}}`.",replaceEmptyInterfaceWithSuper:`Replace empty interface with a type alias.`,replaceEmptyObjectType:"Replace `{}` with `{{replacement}}`."},schema:[{type:`object`,additionalProperties:!1,properties:{allowInterfaces:{type:`string`,description:`Whether to allow empty interfaces.`,enum:[`always`,`never`,`with-single-extends`]},allowObjectTypes:{type:`string`,description:`Whether to allow empty object type literals.`,enum:[`always`,`never`]},allowWithName:{type:`string`,description:`A stringified regular expression to allow interfaces and object type aliases with the configured name.`}}}]},defaultOptions:[{allowInterfaces:`never`,allowObjectTypes:`never`}],create(e,[{allowInterfaces:n,allowObjectTypes:r,allowWithName:i}]){let a=i?new RegExp(i,`u`):void 0;return{...n!==`always`&&{TSInterfaceDeclaration(r){if(a?.test(r.id.name))return;let i=r.extends;if(r.body.body.length!==0||i.length===1&&n===`with-single-extends`||i.length>1)return;let o=e.sourceCode.getScope(r).set.get(r.id.name)?.defs.some(e=>e.node.type===t.AST_NODE_TYPES.ClassDeclaration);if(i.length===0){e.report({node:r.id,messageId:`noEmptyInterface`,data:{option:`allowInterfaces`},...!o&&{suggest:[`object`,`unknown`].map(t=>({messageId:`replaceEmptyInterface`,data:{replacement:t},fix(n){let i=e.sourceCode.getText(r.id),a=r.typeParameters?e.sourceCode.getText(r.typeParameters):``;return n.replaceText(r,`type ${i}${a} = ${t}`)}}))}});return}e.report({node:r.id,messageId:`noEmptyInterfaceWithSuper`,...!o&&{suggest:[{messageId:`replaceEmptyInterfaceWithSuper`,fix(t){let n=e.sourceCode.getText(i[0]),a=e.sourceCode.getText(r.id),o=r.typeParameters?e.sourceCode.getText(r.typeParameters):``;return t.replaceText(r,`type ${a}${o} = ${n}`)}}]}})}},...r!==`always`&&{TSTypeLiteral(n){n.members.length||n.parent.type===t.AST_NODE_TYPES.TSIntersectionType||a&&n.parent.type===t.AST_NODE_TYPES.TSTypeAliasDeclaration&&a.test(n.parent.id.name)||e.report({node:n,messageId:`noEmptyObject`,data:{option:`allowObjectTypes`},suggest:[`object`,`unknown`].map(e=>({messageId:`replaceEmptyObjectType`,data:{replacement:e},fix:t=>t.replaceText(n,e)}))})}}}}})})),j7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-explicit-any`,meta:{type:`suggestion`,docs:{description:"Disallow the `any` type",recommended:`recommended`},fixable:`code`,hasSuggestions:!0,messages:{suggestNever:"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",suggestPropertyKey:"Use `PropertyKey` instead, this is more explicit than `keyof any`.",suggestUnknown:"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.",unexpectedAny:`Unexpected any. Specify a different type.`},schema:[{type:`object`,additionalProperties:!1,properties:{fixToUnknown:{type:`boolean`,description:"Whether to enable auto-fixing in which the `any` type is converted to the `unknown` type."},ignoreRestArgs:{type:`boolean`,description:`Whether to ignore rest parameter arrays.`}}}]},defaultOptions:[{fixToUnknown:!1,ignoreRestArgs:!1}],create(e,[{fixToUnknown:n,ignoreRestArgs:r}]){function i(e){return[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructorType,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature].includes(e.type)}function a(e){return e.type===t.AST_NODE_TYPES.RestElement&&i(e.parent)}function o(e){return e.type===t.AST_NODE_TYPES.TSTypeOperator&&e.operator===`readonly`}function s(e){return e.type===t.AST_NODE_TYPES.TSTypeReference&&e.typeName.type===t.AST_NODE_TYPES.Identifier&&[`Array`,`ReadonlyArray`].includes(e.typeName.name)}function c(e){return o(e)||s(e)}function l(e){return e.parent?.parent?.parent!=null&&a(e.parent.parent.parent)}function u(e){return e.parent?.parent?.parent?.parent!=null&&c(e.parent.parent)&&a(e.parent.parent.parent.parent)}function d(e){return l(e)||u(e)}function f(e){return e.parent.type===t.AST_NODE_TYPES.TSTypeOperator&&e.parent.operator===`keyof`}function p(e){return t=>t.replaceText(e.parent,`PropertyKey`)}return{TSAnyKeyword(t){let i=f(t);if(r&&d(t))return;let a={fix:null,suggest:i?[{messageId:`suggestPropertyKey`,fix:p(t)}]:[{messageId:`suggestUnknown`,fix:e=>e.replaceText(t,`unknown`)},{messageId:`suggestNever`,fix:e=>e.replaceText(t,`never`)}]};n&&(a.fix=i?p(t):e=>e.replaceText(t,`unknown`)),e.report({node:t,messageId:`unexpectedAny`,...a})}}}})})),HDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(0,_7().createRule)({name:`no-extra-non-null-assertion`,meta:{type:`problem`,docs:{description:`Disallow extra non-null assertions`,recommended:`recommended`},fixable:`code`,messages:{noExtraNonNullAssertion:`Forbidden extra non-null assertion.`},schema:[]},defaultOptions:[],create(e){function t(t){e.report({node:t,messageId:`noExtraNonNullAssertion`,fix(e){return e.removeRange([t.range[1]-1,t.range[1]])}})}return{"CallExpression[optional = true] > TSNonNullExpression.callee":t,"MemberExpression[optional = true] > TSNonNullExpression.object":t,"TSNonNullExpression > TSNonNullExpression":t}}})})),UDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-extraneous-class`,meta:{type:`suggestion`,docs:{description:`Disallow classes used as namespaces`,recommended:`strict`},messages:{empty:`Unexpected empty class.`,onlyConstructor:`Unexpected class with only a constructor.`,onlyStatic:`Unexpected class with only static properties.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowConstructorOnly:{type:`boolean`,description:`Whether to allow extraneous classes that contain only a constructor.`},allowEmpty:{type:`boolean`,description:`Whether to allow extraneous classes that have no body (i.e. are empty).`},allowStaticOnly:{type:`boolean`,description:`Whether to allow extraneous classes that only contain static members.`},allowWithDecorator:{type:`boolean`,description:`Whether to allow extraneous classes that include a decorator.`}}}]},defaultOptions:[{allowConstructorOnly:!1,allowEmpty:!1,allowStaticOnly:!1,allowWithDecorator:!1}],create(e,[{allowConstructorOnly:n,allowEmpty:r,allowStaticOnly:i,allowWithDecorator:a}]){let o=e=>!!(a&&e?.decorators&&e.decorators.length!==0);return{ClassBody(a){let s=a.parent;if(s.superClass||o(s))return;let c=s.type===t.AST_NODE_TYPES.ClassDeclaration&&s.id?s.id:s;if(a.body.length===0){if(r)return;e.report({node:c,messageId:`empty`});return}let l=!0,u=!0;for(let e of a.body)if(e.type===t.AST_NODE_TYPES.MethodDefinition&&e.kind===`constructor`?e.value.params.some(e=>e.type===t.AST_NODE_TYPES.TSParameterProperty)&&(u=!1,l=!1):(u=!1,((e.type===t.AST_NODE_TYPES.PropertyDefinition||e.type===t.AST_NODE_TYPES.MethodDefinition||e.type===t.AST_NODE_TYPES.AccessorProperty)&&!e.static||e.type===t.AST_NODE_TYPES.TSIndexSignature||e.type===t.AST_NODE_TYPES.TSAbstractPropertyDefinition||e.type===t.AST_NODE_TYPES.TSAbstractMethodDefinition||e.type===t.AST_NODE_TYPES.TSAbstractAccessorProperty)&&(l=!1)),!(l||u))break;if(u){n||e.report({node:c,messageId:`onlyConstructor`});return}l&&!i&&e.report({node:c,messageId:`onlyStatic`})}}}})})),M7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseThenCall=r,e.parseCatchCall=i,e.parseFinallyCall=a;let t=P8(),n=f7();function r(e,r){if(e.callee.type===t.AST_NODE_TYPES.MemberExpression&&(0,n.getStaticMemberAccessValue)(e.callee,r)===`then`)return e.arguments.length>=1?e.arguments[0].type===t.AST_NODE_TYPES.SpreadElement?{object:e.callee.object}:e.arguments.length>=2?e.arguments[1].type===t.AST_NODE_TYPES.SpreadElement?{object:e.callee.object,onFulfilled:e.arguments[0]}:{object:e.callee.object,onFulfilled:e.arguments[0],onRejected:e.arguments[1]}:{object:e.callee.object,onFulfilled:e.arguments[0]}:{object:e.callee.object}}function i(e,r){if(e.callee.type===t.AST_NODE_TYPES.MemberExpression&&(0,n.getStaticMemberAccessValue)(e.callee,r)===`catch`)return e.arguments.length>=1?e.arguments[0].type===t.AST_NODE_TYPES.SpreadElement?{object:e.callee.object}:{object:e.callee.object,onRejected:e.arguments[0]}:{object:e.callee.object}}function a(e,r){if(e.callee.type===t.AST_NODE_TYPES.MemberExpression&&(0,n.getStaticMemberAccessValue)(e.callee,r)===`finally`)return e.arguments.length>=1?e.arguments[0].type===t.AST_NODE_TYPES.SpreadElement?{object:e.callee.object}:{object:e.callee.object,onFinally:e.arguments[0]}:{object:e.callee.object}}})),WDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7(),s=M7(),c=`Promises must be awaited, end with a call to .catch, or end with a call to .then with a rejection handler.`,l="Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.",u=`A rejection handler that is not a function will be ignored.`;e.default=(0,o.createRule)({name:`no-floating-promises`,meta:{type:`problem`,docs:{description:`Require Promise-like statements to be handled appropriately`,recommended:`recommended`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{floating:c,floatingFixAwait:`Add await operator.`,floatingFixVoid:`Add void operator to ignore.`,floatingPromiseArray:`An array of Promises may be unintentional. Consider handling the promises' fulfillment or rejection with Promise.all or similar.`,floatingPromiseArrayVoid:"An array of Promises may be unintentional. Consider handling the promises' fulfillment or rejection with Promise.all or similar, or explicitly marking the expression as ignored with the `void` operator.",floatingUselessRejectionHandler:`${c} ${u}`,floatingUselessRejectionHandlerVoid:`${l} ${u}`,floatingVoid:l},schema:[{type:`object`,additionalProperties:!1,properties:{allowForKnownSafeCalls:{...o.readonlynessOptionsSchema.properties.allow,description:`Type specifiers of functions whose calls are safe to float.`},allowForKnownSafePromises:{...o.readonlynessOptionsSchema.properties.allow,description:`Type specifiers that are known to be safe to float.`},checkThenables:{type:`boolean`,description:`Whether to check all "Thenable"s, not just the built-in Promise type.`},ignoreIIFE:{type:`boolean`,description:`Whether to ignore async IIFEs (Immediately Invoked Function Expressions).`},ignoreVoid:{type:`boolean`,description:"Whether to ignore `void` expressions."}}}]},defaultOptions:[{allowForKnownSafeCalls:o.readonlynessOptionsDefaults.allow,allowForKnownSafePromises:o.readonlynessOptionsDefaults.allow,checkThenables:!1,ignoreIIFE:!1,ignoreVoid:!0}],create(e,[t]){let n=(0,o.getParserServices)(e),r=n.program.getTypeChecker(),{checkThenables:c}=t,l=t.allowForKnownSafePromises,u=t.allowForKnownSafeCalls;return{ExpressionStatement(n){if(t.ignoreIIFE&&h(n))return;let i=(0,o.skipChainExpression)(n.expression);if(m(i))return;let{isUnhandled:a,nonFunctionHandler:s,promiseArray:c}=_(r,i);a&&(c?e.report({node:n,messageId:t.ignoreVoid?`floatingPromiseArrayVoid`:`floatingPromiseArray`}):t.ignoreVoid?e.report({node:n,messageId:s?`floatingUselessRejectionHandlerVoid`:`floatingVoid`,suggest:[{messageId:`floatingFixVoid`,fix(t){return(0,o.isParenthesized)(i,e.sourceCode)||(0,o.getOperatorPrecedenceForNode)(i)>o.OperatorPrecedence.Unary?t.insertTextBefore(n,`void `):[t.insertTextBefore(n,`void (`),t.insertTextAfterRange([i.range[1],i.range[1]],`)`)]}},{messageId:`floatingFixAwait`,fix:e=>p(e,i,n)}]}):e.report({node:n,messageId:s?`floatingUselessRejectionHandler`:`floating`,suggest:[{messageId:`floatingFixAwait`,fix:e=>p(e,i,n)}]}))}};function p(t,n,r){return n.type===i.AST_NODE_TYPES.UnaryExpression&&n.operator===`void`?t.replaceTextRange([n.range[0],n.range[0]+4],`await`):(0,o.isParenthesized)(n,e.sourceCode)||(0,o.getOperatorPrecedenceForNode)(n)>o.OperatorPrecedence.Unary?t.insertTextBefore(r,`await `):[t.insertTextBefore(r,`await (`),t.insertTextAfterRange([n.range[1],n.range[1]],`)`)]}function m(e){if(e.type!==i.AST_NODE_TYPES.CallExpression)return!1;let t=n.getTypeAtLocation(e.callee);return(0,o.valueMatchesSomeSpecifier)(e.callee,u,n.program,t)?!0:(0,o.typeMatchesSomeSpecifier)(t,u,n.program)}function h(e){return e.expression.type===i.AST_NODE_TYPES.CallExpression?e.expression.callee.type===i.AST_NODE_TYPES.ArrowFunctionExpression||e.expression.callee.type===i.AST_NODE_TYPES.FunctionExpression:!1}function g(e){return n.program.getTypeChecker().getTypeAtLocation(n.esTreeNodeToTSNodeMap.get(e)).getCallSignatures().length>0}function _(r,a){if(a.type===i.AST_NODE_TYPES.AssignmentExpression)return{isUnhandled:!1};if(a.type===i.AST_NODE_TYPES.SequenceExpression)return a.expressions.map(e=>_(r,e)).find(e=>e.isUnhandled)??{isUnhandled:!1};if(!t.ignoreVoid&&a.type===i.AST_NODE_TYPES.UnaryExpression&&a.operator===`void`)return _(r,a.argument);let o=n.esTreeNodeToTSNodeMap.get(a);if(v(o))return{isUnhandled:!0,promiseArray:!0};if(a.type===i.AST_NODE_TYPES.AwaitExpression||!y(o))return{isUnhandled:!1};if(a.type===i.AST_NODE_TYPES.CallExpression){let t=(0,s.parseCatchCall)(a,e)??(0,s.parseThenCall)(a,e);if(t!=null){let e=t.onRejected;return e==null?{isUnhandled:!0}:g(e)?{isUnhandled:!1}:{isUnhandled:!0,nonFunctionHandler:!0}}let n=(0,s.parseFinallyCall)(a,e);return n==null?{isUnhandled:!0}:_(r,n.object)}if(a.type===i.AST_NODE_TYPES.ConditionalExpression){let e=_(r,a.alternate);return e.isUnhandled?e:_(r,a.consequent)}if(a.type===i.AST_NODE_TYPES.LogicalExpression){let e=_(r,a.left);return e.isUnhandled?e:_(r,a.right)}return{isUnhandled:!0}}function v(e){let t=r.getTypeAtLocation(e);for(let n of a.unionConstituents(t).map(e=>r.getApparentType(e))){if(r.isArrayType(n)){let t=r.getTypeArguments(n)[0];if(y(e,t))return!0}if(r.isTupleType(n)){for(let t of r.getTypeArguments(n))if(y(e,t))return!0}}return!1}function y(e,t){if(t??=r.getTypeAtLocation(e),(0,o.typeMatchesSomeSpecifier)(t,l,n.program))return!1;let i=a.unionConstituents(r.getApparentType(t));if(i.some(e=>(0,o.isBuiltinSymbolLike)(n.program,e,`Promise`)))return!0;if(!c)return!1;for(let t of i){let n=t.getProperty(`then`);if(n!=null&&d(r.getTypeOfSymbolAtLocation(n,e),t=>t.parameters.length>=2&&f(r,t.parameters[0],e)&&f(r,t.parameters[1],e)))return!0}return!1}}});function d(e,t){for(let n of a.unionConstituents(e))if(n.getCallSignatures().some(t))return!0;return!1}function f(e,t,n){let r=e.getApparentType(e.getTypeOfSymbolAtLocation(t,n));for(let e of a.unionConstituents(r))if(e.getCallSignatures().length!==0)return!0;return!1}})),GDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=_7(),s=aDe();e.default=(0,o.createRule)({name:`no-for-in-array`,meta:{type:`problem`,docs:{description:`Disallow iterating over an array with a for-in loop`,recommended:`recommended`,requiresTypeChecking:!0},messages:{forInViolation:`For-in loops over arrays skips holes, returns indices as strings, and may visit the prototype chain or other enumerable properties. Use a more robust iteration method such as for-of or array.forEach instead.`},schema:[]},defaultOptions:[],create(e){return{ForInStatement(t){let n=(0,o.getParserServices)(e);c(n.program.getTypeChecker(),(0,o.getConstrainedTypeAtLocation)(n,t.right))&&e.report({loc:(0,s.getForStatementHeadLoc)(e.sourceCode,t),messageId:`forInViolation`})}}}});function c(e,t){return u(t,t=>t.getNumberIndexType()!=null&&l(e,t))}function l(e,t){let n=t.getProperty(`length`);return n==null?!1:i.isTypeFlagSet(e.getTypeOfSymbol(n),a.TypeFlags.NumberLike)}function u(e,t){return e.isUnionOrIntersection()?e.types.some(e=>u(e,t)):t(e)}})),KDe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=`Function`,l=new Set([`global`,`globalThis`,`window`]),u=new Set([`execScript`,`setImmediate`,`setInterval`,`setTimeout`]);e.default=(0,s.createRule)({name:`no-implied-eval`,meta:{type:`suggestion`,docs:{description:"Disallow the use of `eval()`-like functions",extendsBaseRule:!0,recommended:`recommended`,requiresTypeChecking:!0},messages:{noFunctionConstructor:`Implied eval. Do not use the Function constructor to create functions.`,noImpliedEvalError:`Implied eval. Consider passing a function.`},schema:[]},defaultOptions:[],create(e){let t=(0,s.getParserServices)(e),n=t.program.getTypeChecker();function r(e){if(e.type===i.AST_NODE_TYPES.Identifier)return e.name;if(e.type===i.AST_NODE_TYPES.MemberExpression&&e.object.type===i.AST_NODE_TYPES.Identifier&&l.has(e.object.name)){if(e.property.type===i.AST_NODE_TYPES.Identifier)return e.property.name;if(e.property.type===i.AST_NODE_TYPES.Literal&&typeof e.property.value==`string`)return e.property.value}return null}function d(e){let r=t.getTypeAtLocation(e),i=r.getSymbol();return i&&a.isSymbolFlagSet(i,o.SymbolFlags.Function|o.SymbolFlags.Method)||(0,s.isBuiltinSymbolLike)(t.program,r,c)?!0:n.getSignaturesOfType(r,o.SignatureKind.Call).length>0}function f(e){return e.type===i.AST_NODE_TYPES.MemberExpression?f(e.property):e.type===i.AST_NODE_TYPES.Identifier&&e.name===`bind`}function p(e){switch(e.type){case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.FunctionDeclaration:case i.AST_NODE_TYPES.FunctionExpression:return!0;case i.AST_NODE_TYPES.Literal:case i.AST_NODE_TYPES.TemplateLiteral:return!1;case i.AST_NODE_TYPES.CallExpression:return f(e.callee)||d(e);default:return d(e)}}function m(n){let i=r(n.callee);if(i==null)return;if(i===c){let r=t.getTypeAtLocation(n.callee);if(r.getSymbol()){if((0,s.isBuiltinSymbolLike)(t.program,r,`FunctionConstructor`)){e.report({node:n,messageId:`noFunctionConstructor`});return}}else{e.report({node:n,messageId:`noFunctionConstructor`});return}}if(n.arguments.length===0)return;let[a]=n.arguments;u.has(i)&&!p(a)&&(0,s.isReferenceToGlobalFunction)(i,n,e.sourceCode)&&e.report({node:a,messageId:`noImpliedEvalError`})}return{CallExpression:m,NewExpression:m}}})})),qDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-import-type-side-effects`,meta:{type:`problem`,docs:{description:`Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers`},fixable:`code`,messages:{useTopLevelQualifier:`TypeScript will only remove the inline type specifiers which will leave behind a side effect import at runtime. Convert this to a top-level type qualifier to properly remove the entire import.`},schema:[]},defaultOptions:[],create(e){return{'ImportDeclaration[importKind!="type"]'(r){if(r.specifiers.length===0)return;let i=[];for(let e of r.specifiers){if(e.type!==t.AST_NODE_TYPES.ImportSpecifier||e.importKind!==`type`)return;i.push(e)}e.report({node:r,messageId:`useTopLevelQualifier`,fix(t){let a=[];for(let r of i){let i=(0,n.nullThrows)(e.sourceCode.getFirstToken(r,n.isTypeKeyword),n.NullThrowsReasons.MissingToken(`type keyword`,`import specifier`));a.push(t.removeRange([i.range[0],r.imported.range[0]]))}let o=(0,n.nullThrows)(e.sourceCode.getFirstToken(r,n.isImportKeyword),n.NullThrowsReasons.MissingToken(`import keyword`,`import`));return a.push(t.insertTextAfter(o,` type`)),a}})}}}})})),JDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-inferrable-types`,meta:{type:`suggestion`,docs:{description:`Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean`,recommended:`stylistic`},fixable:`code`,messages:{noInferrableType:`Type {{type}} trivially inferred from a {{type}} literal, remove type annotation.`},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreParameters:{type:`boolean`,description:`Whether to ignore function parameters.`},ignoreProperties:{type:`boolean`,description:`Whether to ignore class properties.`}}}]},defaultOptions:[{ignoreParameters:!1,ignoreProperties:!1}],create(e,[{ignoreParameters:r,ignoreProperties:i}]){function a(e,r){let i=(0,n.skipChainExpression)(e);return i.type===t.AST_NODE_TYPES.CallExpression&&i.callee.type===t.AST_NODE_TYPES.Identifier&&i.callee.name===r}function o(e,n){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value===n}function s(e,...n){return e.type===t.AST_NODE_TYPES.Identifier&&n.includes(e.name)}function c(e,...n){return e.type===t.AST_NODE_TYPES.UnaryExpression&&n.includes(e.operator)}let l={[t.AST_NODE_TYPES.TSBigIntKeyword]:`bigint`,[t.AST_NODE_TYPES.TSBooleanKeyword]:`boolean`,[t.AST_NODE_TYPES.TSNullKeyword]:`null`,[t.AST_NODE_TYPES.TSNumberKeyword]:`number`,[t.AST_NODE_TYPES.TSStringKeyword]:`string`,[t.AST_NODE_TYPES.TSSymbolKeyword]:`symbol`,[t.AST_NODE_TYPES.TSUndefinedKeyword]:`undefined`};function u(e,n){switch(e.type){case t.AST_NODE_TYPES.TSBigIntKeyword:{let e=c(n,`-`)?n.argument:n;return a(e,`BigInt`)||e.type===t.AST_NODE_TYPES.Literal}case t.AST_NODE_TYPES.TSBooleanKeyword:return c(n,`!`)||a(n,`Boolean`)||o(n,`boolean`);case t.AST_NODE_TYPES.TSNumberKeyword:{let e=c(n,`+`,`-`)?n.argument:n;return s(e,`Infinity`,`NaN`)||a(e,`Number`)||o(e,`number`)}case t.AST_NODE_TYPES.TSNullKeyword:return n.type===t.AST_NODE_TYPES.Literal&&n.value==null;case t.AST_NODE_TYPES.TSStringKeyword:return a(n,`String`)||o(n,`string`)||n.type===t.AST_NODE_TYPES.TemplateLiteral;case t.AST_NODE_TYPES.TSSymbolKeyword:return a(n,`Symbol`);case t.AST_NODE_TYPES.TSTypeReference:if(e.typeName.type===t.AST_NODE_TYPES.Identifier&&e.typeName.name===`RegExp`){let e=n.type===t.AST_NODE_TYPES.Literal&&n.value instanceof RegExp,r=n.type===t.AST_NODE_TYPES.NewExpression&&n.callee.type===t.AST_NODE_TYPES.Identifier&&n.callee.name===`RegExp`,i=a(n,`RegExp`);return e||i||r}return!1;case t.AST_NODE_TYPES.TSUndefinedKeyword:return c(n,`void`)||s(n,`undefined`)}return!1}function d(r,i,a){if(!i||!a||!u(i.typeAnnotation,a))return;let o=i.typeAnnotation.type===t.AST_NODE_TYPES.TSTypeReference?`RegExp`:l[i.typeAnnotation.type];e.report({node:r,messageId:`noInferrableType`,data:{type:o},*fix(a){(r.type===t.AST_NODE_TYPES.AssignmentPattern&&r.left.optional||r.type===t.AST_NODE_TYPES.PropertyDefinition&&r.definite)&&(yield a.remove((0,n.nullThrows)(e.sourceCode.getTokenBefore(i),n.NullThrowsReasons.MissingToken(`token before`,`type node`)))),yield a.remove(i)}})}function f(e){d(e,e.id.typeAnnotation,e.init)}function p(e){r||e.params.forEach(e=>{e.type===t.AST_NODE_TYPES.TSParameterProperty&&(e=e.parameter),e.type===t.AST_NODE_TYPES.AssignmentPattern&&d(e,e.left.typeAnnotation,e.right)})}function m(e){i||e.readonly||e.optional||d(e,e.typeAnnotation,e.value)}return{AccessorProperty:m,ArrowFunctionExpression:p,FunctionDeclaration:p,FunctionExpression:p,PropertyDefinition:m,VariableDeclarator:f}}})})),YDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-invalid-this`),i=[{capIsConstructor:!0}];e.default=(0,n.createRule)({name:`no-invalid-this`,meta:{type:`suggestion`,defaultOptions:i,docs:{description:"Disallow `this` keywords outside of classes or class-like objects",extendsBaseRule:!0},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:i,create(e){let n=r.create(e),i=[];return{...n,AccessorProperty(){i.push(!0)},"AccessorProperty:exit"(){i.pop()},FunctionDeclaration(e){i.push(e.params.some(e=>e.type===t.AST_NODE_TYPES.Identifier&&e.name===`this`))},"FunctionDeclaration:exit"(){i.pop()},FunctionExpression(e){i.push(e.params.some(e=>e.type===t.AST_NODE_TYPES.Identifier&&e.name===`this`))},"FunctionExpression:exit"(){i.pop()},PropertyDefinition(){i.push(!0)},"PropertyDefinition:exit"(){i.pop()},ThisExpression(e){i[i.length-1]||n.ThisExpression(e)}}}})})),XDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-invalid-void-type`,meta:{type:`problem`,docs:{description:"Disallow `void` type outside of generic or return types",recommended:`strict`},messages:{invalidVoidForGeneric:`{{ generic }} may not have void as a type argument.`,invalidVoidNotReturn:`void is only valid as a return type.`,invalidVoidNotReturnOrGeneric:`void is only valid as a return type or generic type argument.`,invalidVoidNotReturnOrThisParam:"void is only valid as return type or type of `this` parameter.",invalidVoidNotReturnOrThisParamOrGeneric:"void is only valid as a return type or generic type argument or the type of a `this` parameter.",invalidVoidUnionConstituent:`void is not valid as a constituent in a union type`},schema:[{type:`object`,additionalProperties:!1,properties:{allowAsThisParameter:{type:`boolean`,description:"Whether a `this` parameter of a function may be `void`."},allowInGenericTypeArguments:{description:"Whether `void` can be used as a valid value for generic type parameters.",oneOf:[{type:`boolean`,description:"Whether `void` can be used as a valid value for all generic type parameters."},{type:`array`,description:"Allowlist of types that may accept `void` as a generic type parameter.",items:{type:`string`},minItems:1}]}}}]},defaultOptions:[{allowAsThisParameter:!1,allowInGenericTypeArguments:!0}],create(e,[{allowAsThisParameter:a,allowInGenericTypeArguments:o}]){let s=[t.AST_NODE_TYPES.TSTypeAnnotation],c=[t.AST_NODE_TYPES.TSPropertySignature,t.AST_NODE_TYPES.CallExpression,t.AST_NODE_TYPES.PropertyDefinition,t.AST_NODE_TYPES.AccessorProperty,t.AST_NODE_TYPES.Identifier],l=[t.AST_NODE_TYPES.TSVoidKeyword,t.AST_NODE_TYPES.TSNeverKeyword];o===!0&&s.push(t.AST_NODE_TYPES.TSTypeParameterInstantiation);function u(n){if(!(n.parent.type!==t.AST_NODE_TYPES.TSTypeParameterInstantiation||n.parent.parent.type!==t.AST_NODE_TYPES.TSTypeReference)){if(Array.isArray(o)){let t=e.sourceCode.getText(n.parent.parent.typeName).replaceAll(` `,``);o.map(e=>e.replaceAll(` `,``)).includes(t)||e.report({node:n,messageId:`invalidVoidForGeneric`,data:{generic:t}});return}o||e.report({node:n,messageId:a?`invalidVoidNotReturnOrThisParam`:`invalidVoidNotReturn`})}}function d(t,n){n.default!==t&&e.report({node:t,messageId:r(t)})}function f(e){return e.types.every(e=>l.includes(e.type)||e.type===t.AST_NODE_TYPES.TSTypeReference&&e.typeArguments?.type===t.AST_NODE_TYPES.TSTypeParameterInstantiation&&e.typeArguments.params.map(e=>e.type).includes(t.AST_NODE_TYPES.TSVoidKeyword))}return{TSVoidKeyword(l){if(l.parent.type===t.AST_NODE_TYPES.TSTypeParameterInstantiation&&l.parent.parent.type===t.AST_NODE_TYPES.TSTypeReference){u(l);return}if(o&&l.parent.type===t.AST_NODE_TYPES.TSTypeParameter&&l.parent.default?.type===t.AST_NODE_TYPES.TSVoidKeyword){d(l,l.parent);return}if(!(l.parent.type===t.AST_NODE_TYPES.TSUnionType&&f(l.parent))){if(l.parent.type===t.AST_NODE_TYPES.TSUnionType){let t=i(l.parent);if(t&&(0,n.hasOverloadSignatures)(t,e))return}a&&l.parent.type===t.AST_NODE_TYPES.TSTypeAnnotation&&l.parent.parent.type===t.AST_NODE_TYPES.Identifier&&l.parent.parent.name===`this`||s.includes(l.parent.type)&&!c.includes(l.parent.parent.type)||e.report({node:l,messageId:o&&a?`invalidVoidNotReturnOrThisParamOrGeneric`:o?r(l):a?`invalidVoidNotReturnOrThisParam`:`invalidVoidNotReturn`})}}}}});function r(e){return e.parent.type===t.AST_NODE_TYPES.TSUnionType?`invalidVoidUnionConstituent`:`invalidVoidNotReturnOrGeneric`}function i(e){let n=e.parent;for(;n;){if(n.type===t.AST_NODE_TYPES.FunctionDeclaration||n.type===t.AST_NODE_TYPES.MethodDefinition&&n.value.body!=null)return n;n=n.parent}return null}})),ZDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-loop-func`);e.default=(0,n.createRule)({name:`no-loop-func`,meta:{type:`suggestion`,docs:{description:`Disallow function declarations that contain unsafe references inside loop statements`,extendsBaseRule:!0},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:[]},defaultOptions:[],create(e){let n=new Set;function r(e){for(let r=e;r.parent;r=r.parent){let e=r.parent;switch(e.type){case t.AST_NODE_TYPES.WhileStatement:case t.AST_NODE_TYPES.DoWhileStatement:return e;case t.AST_NODE_TYPES.ForStatement:if(e.init!==r)return e;break;case t.AST_NODE_TYPES.ForInStatement:case t.AST_NODE_TYPES.ForOfStatement:if(e.right!==r)return e;break;case t.AST_NODE_TYPES.ArrowFunctionExpression:case t.AST_NODE_TYPES.FunctionExpression:case t.AST_NODE_TYPES.FunctionDeclaration:if(n.has(e))break;return null;default:break}}return null}function a(e,t){let n=t?t.range[1]:0,i=e,a=e;for(;a&&a.range[0]>=n;)i=a,a=r(a);return i}function o(e,n){let r=n.resolved,i=r?.defs[0]?.parent,o=i?.type===t.AST_NODE_TYPES.VariableDeclaration?i.kind:``;if(n.isTypeReference||o===`const`||o===`let`&&i&&i.range[0]>e.range[0]&&i.range[1]<e.range[1])return!0;let s=a(e,o===`let`?i:null).range[0];function c(e){let t=e.identifier;return!e.isWrite()||r?.scope.variableScope===e.from.variableScope&&t.range[0]<s}return r?.references.every(c)??!1}function s(a){let s=r(a);if(!s)return;let c=e.sourceCode.getScope(a).through;if(!(a.async||a.generator)&&i(a)&&!(a.type===t.AST_NODE_TYPES.FunctionExpression&&a.id&&c.some(e=>e.identifier.name===a.id?.name))){n.add(a);return}let l=c.filter(e=>e.resolved&&!o(s,e)).map(e=>e.identifier.name);l.length>0&&e.report({node:a,messageId:`unsafeRefs`,data:{varNames:`'${l.join(`', '`)}'`}})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}});function i(e){return e.parent.type===t.AST_NODE_TYPES.CallExpression&&e.parent.callee===e}})),QDe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=_7(),n=(0,x7().getESLintCoreRule)(`no-loss-of-precision`);e.default=(0,t.createRule)({name:`no-loss-of-precision`,meta:{type:`problem`,deprecated:{deprecatedSince:`8.0.0`,replacedBy:[{rule:{name:`no-loss-of-precision`,url:`https://eslint.org/docs/latest/rules/no-loss-of-precision`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/8832`},docs:{description:`Disallow literal numbers that lose precision`,extendsBaseRule:!0},hasSuggestions:n.meta.hasSuggestions,messages:n.meta.messages,schema:[]},defaultOptions:[],create(e){return n.create(e)}})})),$De=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-magic-numbers`),i=(0,n.deepMerge)(Array.isArray(r.meta.schema)?r.meta.schema[0]:r.meta.schema,{properties:{ignoreEnums:{type:`boolean`,description:`Whether enums used in TypeScript are considered okay.`},ignoreNumericLiteralTypes:{type:`boolean`,description:`Whether numbers used in TypeScript numeric literal types are considered okay.`},ignoreReadonlyClassProperties:{type:`boolean`,description:"Whether `readonly` class properties are considered okay."},ignoreTypeIndexes:{type:`boolean`,description:`Whether numbers used to index types are okay.`}}});e.default=(0,n.createRule)({name:`no-magic-numbers`,meta:{type:`suggestion`,docs:{description:`Disallow magic numbers`,extendsBaseRule:!0,frozen:!0},messages:r.meta.messages,schema:[i]},defaultOptions:[{detectObjects:!1,enforceConst:!1,ignore:[],ignoreArrayIndexes:!1,ignoreEnums:!1,ignoreNumericLiteralTypes:!1,ignoreReadonlyClassProperties:!1,ignoreTypeIndexes:!1}],create(e,[n]){let i=r.create(e),s=new Set((n.ignore??[]).map(a));return{Literal(r){if(typeof r.value!=`number`&&typeof r.value!=`bigint`)return;let a;if(s.has(o(r,r.value))?a=!0:u(r)?a=n.ignoreEnums===!0:f(r)?a=n.ignoreNumericLiteralTypes===!0:m(r)?a=n.ignoreTypeIndexes===!0:p(r)&&(a=n.ignoreReadonlyClassProperties===!0),a!==!0){if(a===!1){let n=r,i=r.raw;r.parent.type===t.AST_NODE_TYPES.UnaryExpression&&r.parent.operator===`-`&&(n=r.parent,i=`${r.parent.operator}${r.raw}`),e.report({node:n,messageId:`noMagic`,data:{raw:i}});return}i.Literal(r)}}}}});function a(e){return typeof e==`string`?BigInt(e.slice(0,-1)):e}function o(e,n){return e.parent.type===t.AST_NODE_TYPES.UnaryExpression&&[`-`,`+`].includes(e.parent.operator)&&e.parent.operator===`-`?-n:n}function s(e){return e.parent.type===t.AST_NODE_TYPES.UnaryExpression&&[`-`,`+`].includes(e.parent.operator)?e.parent.parent:e.parent}function c(e){return e.parent?.parent?.type===t.AST_NODE_TYPES.TSTypeAliasDeclaration}function l(e){return e.parent?.parent?.type===t.AST_NODE_TYPES.TSUnionType?c(e.parent):!1}function u(e){return s(e)?.type===t.AST_NODE_TYPES.TSEnumMember}function d(e){return e.parent?.type===t.AST_NODE_TYPES.TSLiteralType}function f(e){return e.parent?.type===t.AST_NODE_TYPES.UnaryExpression&&e.parent.operator===`-`&&(e=e.parent),d(e)?!!(c(e)||l(e)):!1}function p(e){let n=s(e);return!!(n?.type===t.AST_NODE_TYPES.PropertyDefinition&&n.readonly)}function m(e){let n=s(e);for(;n?.parent?.type===t.AST_NODE_TYPES.TSUnionType||n?.parent?.type===t.AST_NODE_TYPES.TSIntersectionType;)n=n.parent;return n?.parent?.type===t.AST_NODE_TYPES.TSIndexedAccessType}})),eOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6());e.default=(0,_7().createRule)({name:`no-meaningless-void-operator`,meta:{type:`suggestion`,docs:{description:"Disallow the `void` operator except when used to discard a value",recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,hasSuggestions:!0,messages:{meaninglessVoidOperator:`void operator shouldn't be used on {{type}}; it should convey that a return value is being ignored`,removeVoid:`Remove 'void'`},schema:[{type:`object`,additionalProperties:!1,properties:{checkNever:{type:`boolean`,description:"Whether to suggest removing `void` when the argument has type `never`."}}}]},defaultOptions:[{checkNever:!1}],create(e,[{checkNever:t}]){let n=i.ESLintUtils.getParserServices(e),r=n.program.getTypeChecker();return{'UnaryExpression[operator="void"]'(i){let s=t=>t.removeRange([e.sourceCode.getTokens(i)[0].range[0],e.sourceCode.getTokens(i)[1].range[0]]),c=n.getTypeAtLocation(i.argument),l=a.unionConstituents(c);l.every(e=>a.isTypeFlagSet(e,o.TypeFlags.Void|o.TypeFlags.Undefined))?e.report({node:i,messageId:`meaninglessVoidOperator`,data:{type:r.typeToString(c)},fix:s}):t&&l.every(e=>a.isTypeFlagSet(e,o.TypeFlags.Void|o.TypeFlags.Undefined|o.TypeFlags.Never))&&e.report({node:i,messageId:`meaninglessVoidOperator`,data:{type:r.typeToString(c)},suggest:[{messageId:`removeVoid`,fix:s}]})}}}})})),tOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-misused-new`,meta:{type:`problem`,docs:{description:"Enforce valid definition of `new` and `constructor`",recommended:`recommended`},messages:{errorMessageClass:"Class cannot have method named `new`.",errorMessageInterface:`Interfaces cannot be constructed, only classes.`},schema:[]},defaultOptions:[],create(e){function n(e){if(e)switch(e.type){case t.AST_NODE_TYPES.TSTypeAnnotation:return n(e.typeAnnotation);case t.AST_NODE_TYPES.TSTypeReference:return n(e.typeName);case t.AST_NODE_TYPES.Identifier:return e.name;default:break}return null}function r(e,r){return e&&(e.type===t.AST_NODE_TYPES.ClassDeclaration||e.type===t.AST_NODE_TYPES.ClassExpression||e.type===t.AST_NODE_TYPES.TSInterfaceDeclaration)&&e.id?n(r)===e.id.name:!1}return{"ClassBody > MethodDefinition[key.name='new']"(n){n.value.type===t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression&&r(n.parent.parent,n.value.returnType)&&e.report({node:n,messageId:`errorMessageClass`})},"TSInterfaceBody > TSConstructSignatureDeclaration"(t){r(t.parent.parent,t.returnType)&&e.report({node:t,messageId:`errorMessageInterface`})},"TSMethodSignature[key.name='constructor']"(t){e.report({node:t,messageId:`errorMessageInterface`})}}}})})),nOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=M7();function l(e){switch(e){case!1:return!1;case!0:case void 0:return{arguments:!0,attributes:!0,inheritedMethods:!0,properties:!0,returns:!0,variables:!0};default:return{arguments:e.arguments??!0,attributes:e.attributes??!0,inheritedMethods:e.inheritedMethods??!0,properties:e.properties??!0,returns:e.returns??!0,variables:e.variables??!0}}}e.default=(0,s.createRule)({name:`no-misused-promises`,meta:{type:`problem`,docs:{description:`Disallow Promises in places not designed to handle them`,recommended:`recommended`,requiresTypeChecking:!0},messages:{conditional:`Expected non-Promise value in a boolean conditional.`,predicate:`Expected a non-Promise value to be returned.`,spread:`Expected a non-Promise value to be spread in an object.`,voidReturnArgument:`Promise returned in function argument where a void return was expected.`,voidReturnAttribute:`Promise-returning function provided to attribute where a void return was expected.`,voidReturnInheritedMethod:`Promise-returning method provided where a void return was expected by extended/implemented type '{{ heritageTypeName }}'.`,voidReturnProperty:`Promise-returning function provided to property where a void return was expected.`,voidReturnReturnValue:`Promise-returning function provided to return value where a void return was expected.`,voidReturnVariable:`Promise-returning function provided to variable where a void return was expected.`},schema:[{type:`object`,additionalProperties:!1,properties:{checksConditionals:{type:`boolean`,description:`Whether to warn when a Promise is provided to conditional statements.`},checksSpreads:{type:`boolean`,description:"Whether to warn when `...` spreading a `Promise`."},checksVoidReturn:{description:"Whether to warn when a Promise is returned from a function typed as returning `void`.",oneOf:[{type:`boolean`,description:`Whether to disable checking all asynchronous functions.`},{type:`object`,additionalProperties:!1,description:`Which forms of functions may have checking disabled.`,properties:{arguments:{type:`boolean`,description:"Disables checking an asynchronous function passed as argument where the parameter type expects a function that returns `void`."},attributes:{type:`boolean`,description:"Disables checking an asynchronous function passed as a JSX attribute expected to be a function that returns `void`."},inheritedMethods:{type:`boolean`,description:"Disables checking an asynchronous method in a type that extends or implements another type expecting that method to return `void`."},properties:{type:`boolean`,description:"Disables checking an asynchronous function passed as an object property expected to be a function that returns `void`."},returns:{type:`boolean`,description:"Disables checking an asynchronous function returned in a function whose return type is a function that returns `void`."},variables:{type:`boolean`,description:"Disables checking an asynchronous function used as a variable whose return type is a function that returns `void`."}}}]}}}]},defaultOptions:[{checksConditionals:!0,checksSpreads:!0,checksVoidReturn:!0}],create(e,[{checksConditionals:t,checksSpreads:n,checksVoidReturn:r}]){let f=(0,s.getParserServices)(e),p=f.program.getTypeChecker(),h=new Set,g={"CallExpression > MemberExpression":D,ConditionalExpression:T,DoWhileStatement:T,ForStatement:T,IfStatement:T,LogicalExpression:E,'UnaryExpression[operator="!"]'(e){E(e.argument,!0)},WhileStatement:T};r=l(r);let S=r?{...r.arguments&&{CallExpression:O,NewExpression:O},...r.attributes&&{JSXAttribute:ne},...r.inheritedMethods&&{ClassDeclaration:M,ClassExpression:M,TSInterfaceDeclaration:M},...r.properties&&{Property:ee},...r.returns&&{ReturnStatement:j},...r.variables&&{AssignmentExpression:k,VariableDeclarator:A}}:{},C={SpreadElement:P};function w(e){switch(e.typeAnnotation.type){case i.AST_NODE_TYPES.TSConditionalType:case i.AST_NODE_TYPES.TSConstructorType:case i.AST_NODE_TYPES.TSFunctionType:case i.AST_NODE_TYPES.TSImportType:case i.AST_NODE_TYPES.TSIndexedAccessType:case i.AST_NODE_TYPES.TSInferType:case i.AST_NODE_TYPES.TSIntersectionType:case i.AST_NODE_TYPES.TSQualifiedName:case i.AST_NODE_TYPES.TSThisType:case i.AST_NODE_TYPES.TSTypeOperator:case i.AST_NODE_TYPES.TSTypeQuery:case i.AST_NODE_TYPES.TSTypeReference:case i.AST_NODE_TYPES.TSUnionType:return!0;case i.AST_NODE_TYPES.TSTypeLiteral:return e.typeAnnotation.members.some(e=>e.type===i.AST_NODE_TYPES.TSCallSignatureDeclaration||e.type===i.AST_NODE_TYPES.TSConstructSignatureDeclaration);case i.AST_NODE_TYPES.TSAbstractKeyword:case i.AST_NODE_TYPES.TSAnyKeyword:case i.AST_NODE_TYPES.TSArrayType:case i.AST_NODE_TYPES.TSAsyncKeyword:case i.AST_NODE_TYPES.TSBigIntKeyword:case i.AST_NODE_TYPES.TSBooleanKeyword:case i.AST_NODE_TYPES.TSDeclareKeyword:case i.AST_NODE_TYPES.TSExportKeyword:case i.AST_NODE_TYPES.TSIntrinsicKeyword:case i.AST_NODE_TYPES.TSLiteralType:case i.AST_NODE_TYPES.TSMappedType:case i.AST_NODE_TYPES.TSNamedTupleMember:case i.AST_NODE_TYPES.TSNeverKeyword:case i.AST_NODE_TYPES.TSNullKeyword:case i.AST_NODE_TYPES.TSNumberKeyword:case i.AST_NODE_TYPES.TSObjectKeyword:case i.AST_NODE_TYPES.TSOptionalType:case i.AST_NODE_TYPES.TSPrivateKeyword:case i.AST_NODE_TYPES.TSProtectedKeyword:case i.AST_NODE_TYPES.TSPublicKeyword:case i.AST_NODE_TYPES.TSReadonlyKeyword:case i.AST_NODE_TYPES.TSRestType:case i.AST_NODE_TYPES.TSStaticKeyword:case i.AST_NODE_TYPES.TSStringKeyword:case i.AST_NODE_TYPES.TSSymbolKeyword:case i.AST_NODE_TYPES.TSTemplateLiteralType:case i.AST_NODE_TYPES.TSTupleType:case i.AST_NODE_TYPES.TSTypePredicate:case i.AST_NODE_TYPES.TSUndefinedKeyword:case i.AST_NODE_TYPES.TSUnknownKeyword:case i.AST_NODE_TYPES.TSVoidKeyword:return!1}}function T(e){e.test&&E(e.test,!0)}function E(t,n=!1){if(!h.has(t)){if(h.add(t),t.type===i.AST_NODE_TYPES.LogicalExpression){(t.operator!==`??`||n)&&E(t.left,n),n&&E(t.right,n);return}d(p,f.esTreeNodeToTSNodeMap.get(t))&&e.report({node:t,messageId:`conditional`})}}function D(t){let n=t.parent;if(n.type===i.AST_NODE_TYPES.CallExpression){let t=n.arguments.at(0);t&&(0,s.isArrayMethodCallWithPredicate)(e,f,n)&&v(p,f.esTreeNodeToTSNodeMap.get(t))&&e.report({node:t,messageId:`predicate`})}}function O(t){if(t.type===i.AST_NODE_TYPES.CallExpression&&te(t))return;let n=m(p,f.esTreeNodeToTSNodeMap.get(t));if(n.size!==0)for(let[r,i]of t.arguments.entries())n.has(r)&&v(p,f.esTreeNodeToTSNodeMap.get(i))&&e.report({node:i,messageId:`voidReturnArgument`})}function k(t){let n=f.esTreeNodeToTSNodeMap.get(t),r=f.getTypeAtLocation(t.left);_(p,n.left,r)&&v(p,n.right)&&e.report({node:t.right,messageId:`voidReturnVariable`})}function A(t){let n=f.esTreeNodeToTSNodeMap.get(t);if(n.initializer==null||t.init==null||t.id.typeAnnotation==null||!w(t.id.typeAnnotation))return;let r=f.getTypeAtLocation(t.id);_(p,n.initializer,r)&&v(p,n.initializer)&&e.report({node:t.init,messageId:`voidReturnVariable`})}function ee(t){let n=f.esTreeNodeToTSNodeMap.get(t);if(o.isPropertyAssignment(n)){let r=p.getContextualType(n.initializer);if(r!=null&&_(p,n.initializer,r)&&v(p,n.initializer))if((0,s.isFunction)(t.value)){let n=t.value;n.returnType?e.report({node:n.returnType.typeAnnotation,messageId:`voidReturnProperty`}):e.report({loc:(0,s.getFunctionHeadLoc)(n,e.sourceCode),messageId:`voidReturnProperty`})}else e.report({node:t.value,messageId:`voidReturnProperty`})}else if(o.isShorthandPropertyAssignment(n)){let r=p.getContextualType(n.name);r!=null&&_(p,n.name,r)&&v(p,n.name)&&e.report({node:t.value,messageId:`voidReturnProperty`})}else if(o.isMethodDeclaration(n)){if(o.isComputedPropertyName(n.name))return;let r=n.parent;if(!o.isObjectLiteralExpression(r)||!v(p,n))return;let i=p.getContextualType(r);if(i==null)return;let c=a.unionConstituents(i).map(e=>p.getPropertyOfType(e,n.name.getText())).find(e=>e);if(c==null)return;let l=p.getTypeOfSymbolAtLocation(c,n.name);if(_(p,n.name,l)){let n=t.value;n.returnType?e.report({node:n.returnType.typeAnnotation,messageId:`voidReturnProperty`}):e.report({loc:(0,s.getFunctionHeadLoc)(n,e.sourceCode),messageId:`voidReturnProperty`})}return}}function j(t){let n=f.esTreeNodeToTSNodeMap.get(t);if(n.expression==null||t.argument==null)return;let r=(()=>{let e=t.parent;for(;e&&!(0,s.isFunction)(e);)e=e.parent;return(0,s.nullThrows)(e,s.NullThrowsReasons.MissingParent)})();if(r.returnType&&!w(r.returnType))return;let i=p.getContextualType(n.expression);i!=null&&_(p,n.expression,i)&&v(p,n.expression)&&e.report({node:t.argument,messageId:`voidReturnReturnValue`})}function te(t){let n=(0,c.parseFinallyCall)(t,e);return n!=null&&(0,s.isPromiseLike)(f.program,(0,s.getConstrainedTypeAtLocation)(f,n.object))}function M(e){let t=f.esTreeNodeToTSNodeMap.get(e),n=y(p,t);if(n?.length)for(let e of t.members){let t=e.name?.getText();if(t!=null&&v(p,e)&&!x(f.tsNodeToESTreeNodeMap.get(e)))for(let r of n)N(e,r,t)}}function N(t,n,r){let i=b(n,r);i!=null&&_(p,t,p.getTypeOfSymbolAtLocation(i,t))&&e.report({node:f.tsNodeToESTreeNodeMap.get(t),messageId:`voidReturnInheritedMethod`,data:{heritageTypeName:p.typeToString(n)}})}function ne(t){if(t.value?.type!==i.AST_NODE_TYPES.JSXExpressionContainer)return;let n=f.esTreeNodeToTSNodeMap.get(t.value),r=f.esTreeNodeToTSNodeMap.get(t.value.expression),a=p.getContextualType(n);a!=null&&_(p,n,a)&&v(p,r)&&e.report({node:t.value,messageId:`voidReturnAttribute`})}function P(t){u(p,f.esTreeNodeToTSNodeMap.get(t).expression)&&e.report({node:t.argument,messageId:`spread`})}return{...t?g:{},...r?S:{},...n?C:{}}}});function u(e,t){let n=e.getTypeAtLocation(t);for(let r of a.unionConstituents(e.getApparentType(n)))if(a.isThenableType(e,t,r))return!0;return!1}function d(e,t){let n=e.getTypeAtLocation(t);for(let r of a.unionConstituents(e.getApparentType(n))){let n=r.getProperty(`then`);if(n==null)return!1;let i=e.getTypeOfSymbolAtLocation(n,t),o=!1;for(let n of a.unionConstituents(i)){for(let r of n.getCallSignatures())if(r.parameters.length!==0&&f(e,r.parameters[0],t)){o=!0;break}if(o)break}if(!o)return!1}return!0}function f(e,t,n){let r=e.getApparentType(e.getTypeOfSymbolAtLocation(t,n));for(let e of a.unionConstituents(r))if(e.getCallSignatures().length!==0)return!0;return!1}function p(e,t,n,r,i,a){g(e,t.expression,n)?i.add(r):_(e,t.expression,n)&&!i.has(r)&&a.add(r);let o=e.getContextualTypeForArgumentAtIndex(t,r);o!==n&&p(e,t,o,r,i,a)}function m(e,t){if(!t.arguments)return new Set;let n=new Set,r=new Set,i=e.getTypeAtLocation(t.expression);for(let c of a.unionConstituents(i)){let i=o.isCallExpression(t)?c.getCallSignatures():c.getConstructSignatures();for(let a of i)for(let[i,o]of a.parameters.entries()){let a=o.valueDeclaration,c=e.getTypeOfSymbolAtLocation(o,t.expression);if(a&&(0,s.isRestParameterDeclaration)(a)){if(e.isArrayType(c)){c=e.getTypeArguments(c)[0];for(let a=i;a<t.arguments.length;a++)p(e,t,c,a,n,r)}else if(e.isTupleType(c)){let a=e.getTypeArguments(c);for(let o=i;o<t.arguments.length&&o-i<a.length;o++)p(e,t,a[o-i],o,n,r)}}else p(e,t,c,i,n,r)}}for(let e of n)r.delete(e);return r}function h(e,t,n){for(let r of n.getCallSignatures()){let n=r.getReturnType();if(a.isThenableType(e,t,n))return!0}return!1}function g(e,t,n){for(let r of a.unionConstituents(n))if(h(e,t,r))return!0;return!1}function _(e,t,n){let r=!1;for(let i of a.unionConstituents(n))for(let n of i.getCallSignatures()){let i=n.getReturnType();if(a.isThenableType(e,t,i))return!1;r||=a.isTypeFlagSet(i,o.TypeFlags.Void)}return r}function v(e,t){let n=e.getApparentType(e.getTypeAtLocation(t));return a.unionConstituents(n).some(n=>h(e,t,n))}function y(e,t){return t.heritageClauses?.flatMap(e=>e.types).map(t=>e.getTypeAtLocation(t))}function b(e,t){let n=o.escapeLeadingUnderscores(t);return e.getSymbol()?.members?.get(n)??a.getPropertyOfType(e,n)}function x(e){return(e.type===i.AST_NODE_TYPES.MethodDefinition||e.type===i.AST_NODE_TYPES.PropertyDefinition||e.type===i.AST_NODE_TYPES.AccessorProperty)&&e.static}})),rOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-misused-spread`,meta:{type:`problem`,docs:{description:`Disallow using the spread operator when it might cause unexpected behavior`,recommended:`strict`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{addAwait:`Add await operator.`,noArraySpreadInObject:`Using the spread operator on an array in an object will result in a list of indices.`,noClassDeclarationSpreadInObject:`Using the spread operator on class declarations will spread only their static properties, and will lose their class prototype.`,noClassInstanceSpreadInObject:`Using the spread operator on class instances will lose their class prototype.`,noFunctionSpreadInObject:`Using the spread operator on a function without additional properties can cause unexpected behavior. Did you forget to call the function?`,noIterableSpreadInObject:`Using the spread operator on an Iterable in an object can cause unexpected behavior.`,noMapSpreadInObject:"Using the spread operator on a Map in an object will result in an empty object. Did you mean to use `Object.fromEntries(map)` instead?",noPromiseSpreadInObject:`Using the spread operator on Promise in an object can cause unexpected behavior. Did you forget to await the promise?`,noStringSpread:['Using the spread operator on a string can mishandle special characters, as can `.split("")`.',"- `...` produces Unicode code points, which will decompose complex emojis into individual emojis",`- .split("") produces UTF-16 code units, which breaks rich characters in many languages`,"Consider using `Intl.Segmenter` for locale-aware string decomposition.",`Otherwise, if you don't need to preserve emojis or other non-Ascii characters, disable this lint rule on this line or configure the 'allow' rule option.`].join(`
|
|
1089
1089
|
`),replaceMapSpreadInObject:"Replace map spread in object with `Object.fromEntries()`"},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...s.readonlynessOptionsSchema.properties.allow,description:`An array of type specifiers that are known to be safe to spread.`}}}]},defaultOptions:[{allow:[]}],create(e,[t]){let n=(0,s.getParserServices)(e),r=n.program.getTypeChecker();function o(r){let i=(0,s.getConstrainedTypeAtLocation)(n,r.argument);!(0,s.typeMatchesSomeSpecifier)(i,t.allow,n.program)&&u(i)&&e.report({node:r,messageId:`noStringSpread`})}function g(t,r){return a.unionConstituents(r).some(e=>!h(n.program,e))?null:t.parent.type===i.AST_NODE_TYPES.ObjectExpression&&t.parent.properties.length===1?[{messageId:`replaceMapSpreadInObject`,fix:(0,s.getWrappingFixer)({node:t.parent,innerNode:t.argument,sourceCode:e.sourceCode,wrap:e=>`Object.fromEntries(${e})`})}]:[{messageId:`replaceMapSpreadInObject`,fix:(0,s.getWrappingFixer)({node:t.argument,sourceCode:e.sourceCode,wrap:e=>`Object.fromEntries(${e})`})}]}function _(e){let t=(0,s.isHigherPrecedenceThanAwait)(n.esTreeNodeToTSNodeMap.get(e));return[{messageId:`addAwait`,fix:n=>t?n.insertTextBefore(e,`await `):[n.insertTextBefore(e,`await (`),n.insertTextAfter(e,`)`)]}]}function v(i){let a=(0,s.getConstrainedTypeAtLocation)(n,i.argument);if(!(0,s.typeMatchesSomeSpecifier)(a,t.allow,n.program)){if(f(n.program,a)){e.report({node:i,messageId:`noPromiseSpreadInObject`,suggest:_(i.argument)});return}if(d(a)){e.report({node:i,messageId:`noFunctionSpreadInObject`});return}if(h(n.program,a)){e.report({node:i,messageId:`noMapSpreadInObject`,suggest:g(i,a)});return}if(l(r,a)){e.report({node:i,messageId:`noArraySpreadInObject`});return}if(c(a,r)&&!u(a)){e.report({node:i,messageId:`noIterableSpreadInObject`});return}if(p(r,a)){e.report({node:i,messageId:`noClassInstanceSpreadInObject`});return}m(a)&&e.report({node:i,messageId:`noClassDeclarationSpreadInObject`})}}return{"ArrayExpression > SpreadElement":o,"CallExpression > SpreadElement":o,JSXSpreadAttribute:v,"ObjectExpression > SpreadElement":v}}});function c(e,t){return a.typeConstituents(e).some(e=>!!a.getWellKnownSymbolPropertyOfType(e,`iterator`,t))}function l(e,t){return g(t,t=>e.isArrayType(t)||e.isTupleType(t))}function u(e){return g(e,e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.StringLike))}function d(e){return g(e,e=>e.getCallSignatures().length>0&&e.getProperties().length===0)}function f(e,t){return g(t,t=>(0,s.isPromiseLike)(e,t))}function p(e,t){return g(t,t=>{if(t.getConstructSignatures().length)return!1;let n=t.getSymbol();return!!n?.getDeclarations()?.some(t=>e.getTypeOfSymbolAtLocation(n,t).getConstructSignatures().length)})}function m(e){return g(e,e=>{if(a.isObjectType(e)&&a.isObjectFlagSet(e,o.ObjectFlags.InstantiationExpressionType))return!0;let t=e.getSymbol()?.valueDeclaration?.kind;return t===o.SyntaxKind.ClassDeclaration||t===o.SyntaxKind.ClassExpression})}function h(e,t){return g(t,t=>(0,s.isBuiltinSymbolLike)(e,t,[`Map`,`ReadonlyMap`,`WeakMap`]))}function g(e,t){return e.isUnionOrIntersection()?e.types.some(e=>g(e,t)):t(e)}})),N7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=z6(),a=P8(),o=r(g8()),s=r(U6()),c=_7();var l;(function(e){e[e.Number=0]=`Number`,e[e.String=1]=`String`,e[e.Unknown=2]=`Unknown`})(l||={}),e.default=(0,c.createRule)({name:`no-mixed-enums`,meta:{type:`problem`,docs:{description:`Disallow enums from having both number and string members`,recommended:`strict`,requiresTypeChecking:!0},messages:{mixed:`Mixing number and string enums can be confusing.`},schema:[]},defaultOptions:[],create(e){let t=(0,c.getParserServices)(e),n=t.program.getTypeChecker();function r(t){let{name:n}=t.id,r={imports:[],previousSibling:void 0},o=e.sourceCode.getScope(t);for(let e of o.upper?.set.get(n)?.defs??[])if(e.node.type===a.AST_NODE_TYPES.TSEnumDeclaration&&e.node.range[0]<t.range[0]&&e.node.body.members.length>0){r.previousSibling=e.node;break}for(;o;)o.set.get(n)?.defs.forEach(e=>{e.type===i.DefinitionType.ImportBinding&&r.imports.push(e.node)}),o=o.upper;return r}function u(e){return o.isTypeFlagSet(n.getTypeAtLocation(e),s.TypeFlags.StringLike)?l.String:l.Number}function d(e){let r=n.getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e)).getSymbol()?.valueDeclaration;if(!(!r||!s.isEnumDeclaration(r)||r.members.length===0))return u(r.members[0])}function f(e){if(!e.initializer)return l.Number;switch(e.initializer.type){case a.AST_NODE_TYPES.Literal:switch(typeof e.initializer.value){case`number`:return l.Number;case`string`:return l.String;default:return l.Unknown}case a.AST_NODE_TYPES.TemplateLiteral:return l.String;default:return u(t.esTreeNodeToTSNodeMap.get(e.initializer))}}function p(e){let{imports:i,previousSibling:c}=r(e);for(let e of i){let t=d(e);if(t!=null)return t}if(c)return f(c.body.members[0]);if(e.parent.type===a.AST_NODE_TYPES.ExportNamedDeclaration&&e.parent.parent.type===a.AST_NODE_TYPES.TSModuleBlock){let r=t.esTreeNodeToTSNodeMap.get(e.id),[{initializer:i}]=n.getSymbolAtLocation(r).getDeclarations()[0].members;return i&&o.isTypeFlagSet(n.getTypeAtLocation(i),s.TypeFlags.StringLike)?l.String:l.Number}return f(e.body.members[0])}return{TSEnumDeclaration(t){if(!t.body.members.length)return;let n=p(t);if(n!==s.TypeFlags.Unknown)for(let r of t.body.members){let t=f(r);if(t===l.Unknown)return;if(t===l.Number&&(n??=t),t!==n){e.report({node:r.initializer??r,messageId:`mixed`});return}}}}}})})),iOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-namespace`,meta:{type:`suggestion`,docs:{description:`Disallow TypeScript namespaces`,recommended:`recommended`},messages:{moduleSyntaxIsPreferred:`ES2015 module syntax is preferred over namespaces.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowDeclarations:{type:`boolean`,description:"Whether to allow `declare` with custom TypeScript namespaces."},allowDefinitionFiles:{type:`boolean`,description:"Whether to allow `declare` with custom TypeScript namespaces inside definition files."}}}]},defaultOptions:[{allowDeclarations:!1,allowDefinitionFiles:!0}],create(e,[{allowDeclarations:r,allowDefinitionFiles:i}]){function a(e){return e.type===t.AST_NODE_TYPES.TSModuleDeclaration&&e.declare?!0:e.parent!=null&&a(e.parent)}return{"TSModuleDeclaration[global!=true][id.type!='Literal']"(o){o.parent.type===t.AST_NODE_TYPES.TSModuleDeclaration||i&&(0,n.isDefinitionFile)(e.filename)||r&&a(o)||e.report({node:o,messageId:`moduleSyntaxIsPreferred`})}}}})})),aOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7();function i(e,t){return e.references.some(e=>e.isWrite()&&e.identifier.range[1]<t.range[1])||e.defs.some(e=>a(e)&&e.node.range[1]<t.range[1])}function a(e){if(e.type!==t.DefinitionType.Variable)return!1;let n=e.node;return n.definite||n.init!=null}e.default=(0,r.createRule)({name:`no-non-null-asserted-nullish-coalescing`,meta:{type:`problem`,docs:{description:`Disallow non-null assertions in the left operand of a nullish coalescing operator`,recommended:`strict`},hasSuggestions:!0,messages:{noNonNullAssertedNullishCoalescing:`The nullish coalescing operator is designed to handle undefined and null - using a non-null assertion is not needed.`,suggestRemovingNonNull:`Remove the non-null assertion.`},schema:[]},defaultOptions:[],create(e){return{'LogicalExpression[operator = "??"] > TSNonNullExpression.left'(t){if(t.expression.type===n.TSESTree.AST_NODE_TYPES.Identifier){let r=e.sourceCode.getScope(t),a=t.expression,o=n.ASTUtils.findVariable(r,a.name);if(o&&!i(o,t))return}e.report({node:t,messageId:`noNonNullAssertedNullishCoalescing`,suggest:[{messageId:`suggestRemovingNonNull`,fix(i){let a=(0,r.nullThrows)(e.sourceCode.getLastToken(t,n.ASTUtils.isNonNullAssertionPunctuator),r.NullThrowsReasons.MissingToken(`!`,`Non-null Assertion`));return i.remove(a)}}]})}}}})})),oOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(0,_7().createRule)({name:`no-non-null-asserted-optional-chain`,meta:{type:`problem`,docs:{description:`Disallow non-null assertions after an optional chain expression`,recommended:`recommended`},hasSuggestions:!0,messages:{noNonNullOptionalChain:`Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong.`,suggestRemovingNonNull:`You should remove the non-null assertion.`},schema:[]},defaultOptions:[],create(e){return{"TSNonNullExpression > ChainExpression"(t){let n=t.parent;e.report({node:t,messageId:`noNonNullOptionalChain`,suggest:[{messageId:`suggestRemovingNonNull`,fix(e){return e.removeRange([n.range[1]-1,n.range[1]])}}]})},"ChainExpression > TSNonNullExpression"(t){e.report({node:t,messageId:`noNonNullOptionalChain`,suggest:[{messageId:`suggestRemovingNonNull`,fix(e){return e.removeRange([t.range[1]-1,t.range[1]])}}]})}}}})})),sOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-non-null-assertion`,meta:{type:`problem`,docs:{description:"Disallow non-null assertions using the `!` postfix operator",recommended:`strict`},hasSuggestions:!0,messages:{noNonNull:`Forbidden non-null assertion.`,suggestOptionalChain:"Consider using the optional chain operator `?.` instead. This operator includes runtime checks, so it is safer than the compile-only non-null assertion operator."},schema:[]},defaultOptions:[],create(e){return{TSNonNullExpression(r){let i=[],a=(0,n.nullThrows)(e.sourceCode.getTokenAfter(r.expression,n.isNonNullAssertionPunctuator),n.NullThrowsReasons.MissingToken(`!`,`expression`));function o(){return e=>e.replaceText(a,`?.`)}function s(){return e=>e.remove(a)}r.parent.type===t.AST_NODE_TYPES.MemberExpression&&r.parent.object===r&&!(0,n.isAssignee)(r.parent)?r.parent.optional?i.push({messageId:`suggestOptionalChain`,fix:s()}):r.parent.computed?i.push({messageId:`suggestOptionalChain`,fix:o()}):i.push({messageId:`suggestOptionalChain`,fix(t){let r=(0,n.nullThrows)(e.sourceCode.getTokenAfter(a),n.NullThrowsReasons.MissingToken(`.`,`!`));return[t.remove(a),t.insertTextBefore(r,`?`)]}}):r.parent.type===t.AST_NODE_TYPES.CallExpression&&r.parent.callee===r&&(r.parent.optional?i.push({messageId:`suggestOptionalChain`,fix:s()}):i.push({messageId:`suggestOptionalChain`,fix:o()})),e.report({node:r,messageId:`noNonNull`,suggest:i})}}}})})),cOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7();e.default=(0,r.createRule)({name:`no-redeclare`,meta:{type:`suggestion`,docs:{description:`Disallow variable redeclaration`,extendsBaseRule:!0},messages:{redeclared:`'{{id}}' is already defined.`,redeclaredAsBuiltin:`'{{id}}' is already defined as a built-in global variable.`,redeclaredBySyntax:`'{{id}}' is already defined by a variable declaration.`},schema:[{type:`object`,additionalProperties:!1,properties:{builtinGlobals:{type:`boolean`,description:`Whether to report shadowing of built-in global variables.`},ignoreDeclarationMerge:{type:`boolean`,description:`Whether to ignore declaration merges between certain TypeScript declaration types.`}}}]},defaultOptions:[{builtinGlobals:!0,ignoreDeclarationMerge:!0}],create(e,[i]){let a=new Set([n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration]),o=new Set([n.AST_NODE_TYPES.FunctionDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration]),s=new Set([n.AST_NODE_TYPES.TSEnumDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration]);function*c(t){if(i.builtinGlobals&&`eslintImplicitGlobalSetting`in t&&(t.eslintImplicitGlobalSetting===`readonly`||t.eslintImplicitGlobalSetting===`writable`)&&(yield{type:`builtin`}),`eslintExplicitGlobalComments`in t&&t.eslintExplicitGlobalComments)for(let n of t.eslintExplicitGlobalComments)yield{loc:(0,r.getNameLocationInGlobalDirectiveComment)(e.sourceCode,n,t.name),node:n,type:`comment`};let c=t.identifiers.map(e=>({identifier:e,parent:e.parent})).filter(({parent:e})=>e.type!==n.AST_NODE_TYPES.TSDeclareFunction);if(i.ignoreDeclarationMerge&&c.length>1){if(c.every(({parent:e})=>e.type===n.AST_NODE_TYPES.TSInterfaceDeclaration)||c.every(({parent:e})=>e.type===n.AST_NODE_TYPES.TSModuleDeclaration))return;if(c.every(({parent:e})=>a.has(e.type))){let e=c.filter(({parent:e})=>e.type===n.AST_NODE_TYPES.ClassDeclaration);if(e.length===1)return;for(let{identifier:t}of e)yield{loc:t.loc,node:t,type:`syntax`};return}if(c.every(({parent:e})=>o.has(e.type))){let e=c.filter(({parent:e})=>e.type===n.AST_NODE_TYPES.FunctionDeclaration);if(e.length===1)return;for(let{identifier:t}of e)yield{loc:t.loc,node:t,type:`syntax`};return}if(c.every(({parent:e})=>s.has(e.type))){let e=c.filter(({parent:e})=>e.type===n.AST_NODE_TYPES.TSEnumDeclaration);if(e.length===1)return;for(let{identifier:t}of e)yield{loc:t.loc,node:t,type:`syntax`};return}}for(let{identifier:e}of c)yield{loc:e.loc,node:e,type:`syntax`}}function l(t){for(let n of t.variables){let[t,...r]=c(n);if(r.length===0)continue;let i=t.type===`builtin`?`redeclaredAsBuiltin`:`redeclaredBySyntax`,a={id:n.name};for(let{loc:n,node:o,type:s}of r){let r=s===t.type?`redeclared`:i;o?e.report({loc:n,node:o,messageId:r,data:a}):n&&e.report({loc:n,messageId:r,data:a})}}}function u(t){let n=e.sourceCode.getScope(t);n.block===t&&l(n)}return{ArrowFunctionExpression:u,BlockStatement:u,ForInStatement:u,ForOfStatement:u,ForStatement:u,FunctionDeclaration:u,FunctionExpression:u,Program(n){let r=e.sourceCode.getScope(n);l(r),r.type===t.ScopeType.global&&r.block===r.childScopes[0]?.block&&l(r.childScopes[0])},SwitchStatement:u}}})})),lOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c={[o.TypeFlags.BigIntLiteral]:o.TypeFlags.BigInt,[o.TypeFlags.BooleanLiteral]:o.TypeFlags.Boolean,[o.TypeFlags.NumberLiteral]:o.TypeFlags.Number,[o.TypeFlags.StringLiteral]:o.TypeFlags.String,[o.TypeFlags.TemplateLiteral]:o.TypeFlags.String},l=[o.TypeFlags.BigIntLiteral,o.TypeFlags.BooleanLiteral,o.TypeFlags.NumberLiteral,o.TypeFlags.StringLiteral,o.TypeFlags.TemplateLiteral],u=[o.TypeFlags.BigInt,o.TypeFlags.Boolean,o.TypeFlags.Number,o.TypeFlags.String],d={[o.TypeFlags.BigInt]:`bigint`,[o.TypeFlags.Boolean]:`boolean`,[o.TypeFlags.Number]:`number`,[o.TypeFlags.String]:`string`},f={bigint:o.TypeFlags.BigIntLiteral,boolean:o.TypeFlags.BooleanLiteral,number:o.TypeFlags.NumberLiteral,string:o.TypeFlags.StringLiteral},p=new Map([[i.TSESTree.AST_NODE_TYPES.TSAnyKeyword,o.TypeFlags.Any],[i.TSESTree.AST_NODE_TYPES.TSBigIntKeyword,o.TypeFlags.BigInt],[i.TSESTree.AST_NODE_TYPES.TSBooleanKeyword,o.TypeFlags.Boolean],[i.TSESTree.AST_NODE_TYPES.TSNeverKeyword,o.TypeFlags.Never],[i.TSESTree.AST_NODE_TYPES.TSNumberKeyword,o.TypeFlags.Number],[i.TSESTree.AST_NODE_TYPES.TSStringKeyword,o.TypeFlags.String],[i.TSESTree.AST_NODE_TYPES.TSUnknownKeyword,o.TypeFlags.Unknown]]);function m(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}function h(e){return e.isStringLiteral()?JSON.stringify(e.value):(0,s.isTypeBigIntLiteralType)(e)?`${e.value.negative?`-`:``}${e.value.base10Value}n`:e.isLiteral()?e.value.toString():a.isIntrinsicErrorType(e)&&e.aliasSymbol?e.aliasSymbol.escapedName.toString():(0,s.isTypeAnyType)(e)?`any`:(0,s.isTypeNeverType)(e)?`never`:(0,s.isTypeUnknownType)(e)?`unknown`:(0,s.isTypeTemplateLiteralType)(e)?`template literal type`:(0,s.isTypeBigIntLiteralType)(e)?`${e.value.negative?`-`:``}${e.value.base10Value}n`:a.isTrueLiteralType(e)?`true`:a.isFalseLiteralType(e)?`false`:`literal type`}function g(e){switch(e.type){case i.AST_NODE_TYPES.TSAnyKeyword:return`any`;case i.AST_NODE_TYPES.TSBooleanKeyword:return`boolean`;case i.AST_NODE_TYPES.TSNeverKeyword:return`never`;case i.AST_NODE_TYPES.TSNumberKeyword:return`number`;case i.AST_NODE_TYPES.TSStringKeyword:return`string`;case i.AST_NODE_TYPES.TSUnknownKeyword:return`unknown`;case i.AST_NODE_TYPES.TSLiteralType:switch(e.literal.type){case i.TSESTree.AST_NODE_TYPES.Literal:switch(typeof e.literal.value){case`bigint`:return`${e.literal.value<0?`-`:``}${e.literal.value}n`;case`string`:return JSON.stringify(e.literal.value);default:return`${e.literal.value}`}case i.TSESTree.AST_NODE_TYPES.TemplateLiteral:return`template literal type`}}return`literal type`}function _(e){return e.parent.type===i.AST_NODE_TYPES.TSTypeAnnotation&&(0,s.isFunctionOrFunctionType)(e.parent.parent)}function v(e){return e.isUnion()&&e.types.length===2&&a.isFalseLiteralType(e.types[0])&&a.isTrueLiteralType(e.types[1])?[e]:a.unionConstituents(e)}e.default=(0,s.createRule)({name:`no-redundant-type-constituents`,meta:{type:`suggestion`,docs:{description:`Disallow members of unions and intersections that do nothing or override type information`,recommended:`recommended`,requiresTypeChecking:!0},messages:{errorTypeOverrides:`'{{typeName}}' is an 'error' type that acts as 'any' and overrides all other types in this {{container}} type.`,literalOverridden:`{{literal}} is overridden by {{primitive}} in this union type.`,overridden:`'{{typeName}}' is overridden by other types in this {{container}} type.`,overrides:`'{{typeName}}' overrides all other types in this {{container}} type.`,primitiveOverridden:`{{primitive}} is overridden by the {{literal}} in this intersection type.`},schema:[]},defaultOptions:[],create(e){let t=(0,s.getParserServices)(e),n=new Map;function r(e){let n=p.get(e.type);return n?[{typeFlags:n,typeName:g(e)}]:e.type===i.AST_NODE_TYPES.TSLiteralType&&e.literal.type===i.AST_NODE_TYPES.Literal?[{typeFlags:f[typeof e.literal.value],typeName:g(e)}]:e.type===i.AST_NODE_TYPES.TSUnionType?e.types.flatMap(r):v(t.getTypeAtLocation(e)).map(e=>({typeFlags:e.flags,typeName:h(e)}))}function a(e){let t=n.get(e);if(t)return t;let i=r(e);return n.set(e,i),i}return{"TSIntersectionType:exit"(t){let n=new Map,r=new Map,i=new Map;function s({typeFlags:t,typeName:n},r){for(let[i,a]of[[`overrides`,o.TypeFlags.Any],[`overrides`,o.TypeFlags.Never],[`overridden`,o.TypeFlags.Unknown]])if(t===a)return e.report({node:r,messageId:t===o.TypeFlags.Any&&n!==`any`?`errorTypeOverrides`:i,data:{container:`intersection`,typeName:n}}),!0;return!1}for(let e of t.types){let t=a(e);for(let i of t)if(!s(i,e)){for(let e of l)if(i.typeFlags===e){m(n,c[e],i.typeName);break}for(let t of u)i.typeFlags===t&&m(r,t,e)}t.length>=2&&i.set(e,t)}let f=()=>{for(let[t,n]of i){let i;for(let{typeFlags:e}of n)if(r.has(c[e]))i=c[e];else{i=void 0;break}Number.isInteger(i)&&e.report({node:t,messageId:`primitiveOverridden`,data:{literal:n.map(e=>e.typeName).join(` | `),primitive:d[i]}})}};if(i.size>0){f();return}for(let[t,i]of r){let r=n.get(t);if(r)for(let n of i)e.report({node:n,messageId:`primitiveOverridden`,data:{literal:r.join(` | `),primitive:d[t]}})}},"TSUnionType:exit"(t){let n=new Map,r=new Set;function i({typeFlags:n,typeName:r},i){for(let t of[o.TypeFlags.Any,o.TypeFlags.Unknown])if(n===t)return e.report({node:i,messageId:n===o.TypeFlags.Any&&r!==`any`?`errorTypeOverrides`:`overrides`,data:{container:`union`,typeName:r}}),!0;return n===o.TypeFlags.Never&&!_(t)?(e.report({node:i,messageId:`overridden`,data:{container:`union`,typeName:`never`}}),!0):!1}for(let e of t.types){let t=a(e);for(let a of t)if(!i(a,e)){for(let t of l)if(a.typeFlags===t){m(n,c[t],{literalValue:a.typeName,typeNode:e});break}for(let e of u)(a.typeFlags&e)!==0&&r.add(e)}}let f=new Map;for(let[e,t]of n)if(r.has(e))for(let{literalValue:n,typeNode:r}of t)m(f,r,{literalValue:n,primitiveTypeFlag:e});for(let[t,n]of f){let r=(0,s.arrayGroupByToMap)(n,e=>e.primitiveTypeFlag);for(let[n,i]of r)e.report({node:t,messageId:`literalOverridden`,data:{literal:i.map(e=>e.literalValue).join(` | `),primitive:d[n]}})}}}}})})),uOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(_7());e.default=a.createRule({name:`no-require-imports`,meta:{type:`problem`,docs:{description:"Disallow invocation of `require()`",recommended:`recommended`},messages:{noRequireImports:"A `require()` style import is forbidden."},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{type:`array`,description:`Patterns of import paths to allow requiring from.`,items:{type:`string`}},allowAsImport:{type:`boolean`,description:"Allows `require` statements in import declarations."}}}]},defaultOptions:[{allow:[],allowAsImport:!1}],create(e,t){let n=t[0].allowAsImport,r=t[0].allow?.map(e=>new RegExp(e,`u`));function o(e){return r?.some(t=>e.match(t))}function s(e){return e.type===i.AST_NODE_TYPES.Literal&&typeof e.value==`string`||e.type===i.AST_NODE_TYPES.TemplateLiteral}return{'CallExpression[callee.name="require"]'(t){if(t.arguments[0]&&s(t.arguments[0])){let e=a.getStaticStringValue(t.arguments[0]);if(typeof e==`string`&&o(e))return}i.ASTUtils.findVariable(e.sourceCode.getScope(t),`require`)?.identifiers.length||e.report({node:t,messageId:`noRequireImports`})},TSExternalModuleReference(t){if(s(t.expression)){let e=a.getStaticStringValue(t.expression);if(typeof e==`string`&&o(e))return}n&&t.parent.type===i.AST_NODE_TYPES.TSImportEqualsDeclaration||e.report({node:t,messageId:`noRequireImports`})}}}})})),dOe=a(((e,t)=>{function n(e){return Array.isArray(e)?e:[e]}let r=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,o=/^\\#/,s=/\r?\n/g,c=/^\.{0,2}\/|^\.{1,2}$/,l=/\/$/,u=`node-ignore`;typeof Symbol<`u`&&(u=Symbol.for(`node-ignore`));let d=u,f=(e,t,n)=>(Object.defineProperty(e,t,{value:n}),n),p=/([0-z])-([0-z])/g,m=()=>!1,h=e=>e.replace(p,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:``),g=e=>{let{length:t}=e;return e.slice(0,t-t%2)},_=[[/^\uFEFF/,()=>``],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(n.indexOf(`\\`)===0?` `:``)],[/(\\+?)\s/g,(e,t)=>{let{length:n}=t;return t.slice(0,n-n%2)+` `}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>`\\`],[/\\\\/g,()=>`\\`],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===`\\`?`\\[${n}${g(r)}${i}`:i===`]`&&r.length%2==0?`[${h(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],v=/(^|\\\/)?\\\*$/,y=`regex`,b=`checkRegex`,x={[y](e,t){return`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`},[b](e,t){return`${t?`${t}[^/]*`:`[^/]*`}(?=$|\\/$)`}},S=e=>_.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),C=e=>typeof e==`string`,w=e=>e&&C(e)&&!r.test(e)&&!i.test(e)&&e.indexOf(`#`)!==0,T=e=>e.split(s).filter(Boolean);var E=class{constructor(e,t,n,r,i,a){this.pattern=e,this.mark=t,this.negative=i,f(this,`body`,n),f(this,`ignoreCase`,r),f(this,`regexPrefix`,a)}get regex(){let e=`_`+y;return this[e]?this[e]:this._make(y,e)}get checkRegex(){let e=`_`+b;return this[e]?this[e]:this._make(b,e)}_make(e,t){let n=this.regexPrefix.replace(v,x[e]),r=this.ignoreCase?new RegExp(n,`i`):new RegExp(n);return f(this,t,r)}};let D=({pattern:e,mark:t},n)=>{let r=!1,i=e;i.indexOf(`!`)===0&&(r=!0,i=i.substr(1)),i=i.replace(a,`!`).replace(o,`#`);let s=S(i);return new E(e,t,i,n,r,s)};var O=class{constructor(e){this._ignoreCase=e,this._rules=[]}_add(e){if(e&&e[d]){this._rules=this._rules.concat(e._rules._rules),this._added=!0;return}if(C(e)&&(e={pattern:e}),w(e.pattern)){let t=D(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(C(e)?T(e):e).forEach(this._add,this),this._added}test(e,t,n){let r=!1,i=!1,a;this._rules.forEach(o=>{let{negative:s}=o;i===s&&r!==i||s&&!r&&!i&&!t||o[n].test(e)&&(r=!s,i=s,a=s?void 0:o)});let o={ignored:r,unignored:i};return a&&(o.rule=a),o}};let k=(e,t)=>{throw new t(e)},A=(e,t,n)=>C(e)?e?A.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),ee=e=>c.test(e);A.isNotRelative=ee,A.convert=e=>e;var j=class{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){f(this,d,!0),this._rules=new O(t),this._strictPathCheck=!n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(e){return this._rules.add(e)&&this._initCache(),this}addPattern(e){return this.add(e)}_test(e,t,n,r){let i=e&&A.convert(e);return A(i,e,this._strictPathCheck?k:m),this._t(i,t,n,r)}checkIgnore(e){if(!l.test(e))return this.test(e);let t=e.split(`/`).filter(Boolean);if(t.pop(),t.length){let e=this._t(t.join(`/`)+`/`,this._testCache,!0,t);if(e.ignored)return e}return this._rules.test(e,!1,b)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(`/`).filter(Boolean),r.pop(),!r.length)return t[e]=this._rules.test(e,n,y);let i=this._t(r.join(`/`)+`/`,t,n,r);return t[e]=i.ignored?i:this._rules.test(e,n,y)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}};let te=e=>new j(e),M=e=>A(e&&A.convert(e),e,m),N=()=>{A.convert=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`);let e=/^[a-z]:\//i;A.isNotRelative=t=>e.test(t)||ee(t)};typeof process<`u`&&process.platform===`win32`&&N(),t.exports=te,te.default=te,t.exports.isPathValid=M,f(t.exports,Symbol.for(`setupWindows`),N)})),fOe=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=P8(),r=t(dOe()),i=_7(),a=(0,x7().getESLintCoreRule)(`no-restricted-imports`),o=(e,t)=>{try{return e()}catch{return t}},s=a.meta.schema,c={allowTypeImports:{type:`boolean`,description:`Whether to allow type-only imports for a path.`}},l={type:`array`,items:{anyOf:[{type:`string`},{type:`object`,additionalProperties:!1,properties:{...o(()=>s.anyOf[1].items[0].properties.paths.items.anyOf[1].properties,void 0),...c},required:o(()=>s.anyOf[1].items[0].properties.paths.items.anyOf[1].required,void 0)}]},uniqueItems:!0},u={anyOf:[l,{type:`array`,additionalItems:!1,items:[{type:`object`,additionalProperties:!1,properties:{paths:l,patterns:{anyOf:[{type:`array`,items:{type:`string`},uniqueItems:!0},{type:`array`,items:{type:`object`,additionalProperties:!1,properties:{...o(()=>s.anyOf[1].items[0].properties.patterns.anyOf[1].items.properties,void 0),...c},required:o(()=>s.anyOf[1].items[0].properties.patterns.anyOf[1].items.required,[])},uniqueItems:!0}]}}}]}]};function d(e){return!!e&&Object.hasOwn(e,`paths`)}function f(e){return!!e&&Object.hasOwn(e,`patterns`)}function p(e){return!(d(e[0])||f(e[0]))}function m(e){return p(e)?e:d(e[0])?e[0].paths:[]}function h(e){return f(e[0])?e[0].patterns:[]}function g(e,t){return Object.keys(e).length===0||t.length===0?!1:p(t)?!0:!!(t[0].paths?.length||t[0].patterns?.length)}e.default=(0,i.createRule)({name:`no-restricted-imports`,meta:{type:`suggestion`,docs:{description:"Disallow specified modules when loaded by `import`",extendsBaseRule:!0},fixable:a.meta.fixable,messages:a.meta.messages,schema:u},defaultOptions:[],create(e){let t=a.create(e),{options:i}=e;if(!g(t,i))return{};let o=m(i),s=new Set;for(let e of o)typeof e==`object`&&e.allowTypeImports&&s.add(e.name);function c(e){return s.has(e)}let l=h(i),u=[],d=[];for(let e of l)typeof e==`object`&&e.allowTypeImports&&(e.group&&u.push((0,r.default)({allowRelativePaths:!0,ignoreCase:!e.caseSensitive}).add(e.group)),e.regex&&d.push(new RegExp(e.regex,e.caseSensitive?`u`:`iu`)));function f(e){return u.some(t=>t.ignores(e))||d.some(t=>t.test(e))}function p(e){if(e.importKind===`type`||e.specifiers.length>0&&e.specifiers.every(e=>e.type===n.AST_NODE_TYPES.ImportSpecifier&&e.importKind===`type`)){let n=e.source.value.trim();if(!c(n)&&!f(n))return t.ImportDeclaration(e)}else return t.ImportDeclaration(e)}return{ExportAllDeclaration:t.ExportAllDeclaration,"ExportNamedDeclaration[source]"(e){if(e.exportKind===`type`||e.specifiers.length>0&&e.specifiers.every(e=>e.exportKind===`type`)){let n=e.source.value.trim();if(!c(n)&&!f(n))return t.ExportNamedDeclaration(e)}else return t.ExportNamedDeclaration(e)},ImportDeclaration:p,TSImportEqualsDeclaration(e){if(e.moduleReference.type===n.AST_NODE_TYPES.TSExternalModuleReference)return p({...e,type:n.AST_NODE_TYPES.ImportDeclaration,assertions:[],attributes:[],source:e.moduleReference.expression,specifiers:[{...e.id,type:n.AST_NODE_TYPES.ImportDefaultSpecifier,local:e.id,parent:e.id.parent}]})}}}})})),pOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();function r(e){return e.replaceAll(/\s/g,``)}function i(e,t){return r(t.getText(e))}function a(e){return!e||e===!0?``:typeof e==`string`?` ${e}`:e.message?` ${e.message}`:``}let o={bigint:t.AST_NODE_TYPES.TSBigIntKeyword,boolean:t.AST_NODE_TYPES.TSBooleanKeyword,never:t.AST_NODE_TYPES.TSNeverKeyword,null:t.AST_NODE_TYPES.TSNullKeyword,number:t.AST_NODE_TYPES.TSNumberKeyword,object:t.AST_NODE_TYPES.TSObjectKeyword,string:t.AST_NODE_TYPES.TSStringKeyword,symbol:t.AST_NODE_TYPES.TSSymbolKeyword,undefined:t.AST_NODE_TYPES.TSUndefinedKeyword,unknown:t.AST_NODE_TYPES.TSUnknownKeyword,void:t.AST_NODE_TYPES.TSVoidKeyword};e.default=(0,n.createRule)({name:`no-restricted-types`,meta:{type:`suggestion`,docs:{description:`Disallow certain types`},fixable:`code`,hasSuggestions:!0,messages:{bannedTypeMessage:"Don't use `{{name}}` as a type.{{customMessage}}",bannedTypeReplacement:"Replace `{{name}}` with `{{replacement}}`."},schema:[{type:`object`,$defs:{banConfig:{oneOf:[{type:`boolean`,description:`Bans the type with the default message.`,enum:[!0]},{type:`string`,description:`Bans the type with a custom message.`},{type:`object`,additionalProperties:!1,description:`Bans a type.`,properties:{fixWith:{type:`string`,description:`Type to autofix replace with. Note that autofixers can be applied automatically - so you need to be careful with this option.`},message:{type:`string`,description:`Custom error message.`},suggest:{type:`array`,description:`Types to suggest replacing with.`,items:{type:`string`}}}}]}},additionalProperties:!1,properties:{types:{type:`object`,additionalProperties:{$ref:`#/items/0/$defs/banConfig`},description:`An object whose keys are the types you want to ban, and the values are error messages.`}}}]},defaultOptions:[{}],create(e,[{types:t={}}]){let s=new Map(Object.entries(t).map(([e,t])=>[r(e),t]));function c(t,n=i(t,e.sourceCode)){let r=s.get(n);if(r==null||r===!1)return;let o=a(r),c=r&&typeof r==`object`&&r.fixWith,l=r&&typeof r==`object`?r.suggest:void 0;e.report({node:t,messageId:`bannedTypeMessage`,data:{name:n,customMessage:o},fix:c?e=>e.replaceText(t,c):null,suggest:l?.map(e=>({messageId:`bannedTypeReplacement`,data:{name:n,replacement:e},fix:n=>n.replaceText(t,e)}))})}return{...(0,n.objectReduceKey)(o,(e,t)=>(s.has(t)&&(e[o[t]]=e=>c(e,t)),e),{}),TSClassImplements(e){c(e.expression),e.typeArguments&&c(e)},TSInterfaceHeritage(e){c(e.expression),e.typeArguments&&c(e)},TSTupleType(e){e.elementTypes.length||c(e)},TSTypeLiteral(e){e.members.length||c(e)},TSTypeReference(e){c(e.typeName),e.typeArguments&&c(e)}}}})})),mOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=vEe(),a=new Set([n.AST_NODE_TYPES.TSCallSignatureDeclaration,n.AST_NODE_TYPES.TSFunctionType,n.AST_NODE_TYPES.TSMethodSignature,n.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,n.AST_NODE_TYPES.TSDeclareFunction,n.AST_NODE_TYPES.TSConstructSignatureDeclaration,n.AST_NODE_TYPES.TSConstructorType]),o=new Set([n.AST_NODE_TYPES.FunctionDeclaration]),s=new Set([n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSTypeAliasDeclaration]);e.default=(0,r.createRule)({name:`no-shadow`,meta:{type:`suggestion`,docs:{description:`Disallow variable declarations from shadowing variables declared in the outer scope`,extendsBaseRule:!0},messages:{noShadow:`'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.`,noShadowGlobal:`'{{name}}' is already a global variable.`},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{type:`array`,description:`Identifier names for which shadowing is allowed.`,items:{type:`string`}},builtinGlobals:{type:`boolean`,description:`Whether to report shadowing of built-in global variables.`},hoist:{type:`string`,description:`Whether to report shadowing before outer functions or variables are defined.`,enum:[`all`,`functions`,`functions-and-types`,`never`,`types`]},ignoreFunctionTypeParameterNameValueShadow:{type:`boolean`,description:`Whether to ignore function parameters named the same as a variable.`},ignoreOnInitialization:{type:`boolean`,description:`Whether to ignore the variable initializers when the shadowed variable is presumably still unitialized.`},ignoreTypeValueShadow:{type:`boolean`,description:`Whether to ignore types named the same as a variable.`}}}]},defaultOptions:[{allow:[],builtinGlobals:!1,hoist:`functions-and-types`,ignoreFunctionTypeParameterNameValueShadow:!0,ignoreOnInitialization:!1,ignoreTypeValueShadow:!0}],create(e,[c]){function l(e){return e.type===t.ScopeType.tsModule&&e.block.kind===`global`||!!e.upper&&l(e.upper)}function u(e){return e.defs[0].type===t.DefinitionType.Parameter&&e.name===`this`}function d(e,t){if(c.ignoreTypeValueShadow!==!0||!(`isValueVariable`in e))return!1;let n=t.defs.at(0),r=!(`isValueVariable`in t)||!n||!(0,i.isTypeImport)(n)&&t.isValueVariable;return e.isValueVariable!==r}function f(e,t){return c.ignoreFunctionTypeParameterNameValueShadow!==!0||!(`isValueVariable`in e)||!(!(`isValueVariable`in t)||t.isValueVariable)?!1:e.defs.every(e=>a.has(e.node.type))}function p(e){if(!(`isTypeVariable`in e)||!e.isTypeVariable||e.identifiers.length===0)return!1;let t=e.identifiers[0].parent;if(t.type!==n.AST_NODE_TYPES.TSTypeParameter)return!1;let r=t.parent;if(r.type!==n.AST_NODE_TYPES.TSTypeParameterDeclaration)return!1;let i=r.parent;if(i.type!==n.AST_NODE_TYPES.FunctionExpression&&i.type!==n.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)return!1;let a=i.parent;return a.type===n.AST_NODE_TYPES.MethodDefinition?a.static:!1}function m(e){if(!(`isTypeVariable`in e)||!e.isTypeVariable||e.identifiers.length===0)return!1;let t=e.identifiers[0].parent;if(t.type!==n.AST_NODE_TYPES.TSTypeParameter)return!1;let r=t.parent;if(r.type!==n.AST_NODE_TYPES.TSTypeParameterDeclaration)return!1;let i=r.parent;return i.type===n.AST_NODE_TYPES.ClassDeclaration||i.type===n.AST_NODE_TYPES.ClassExpression}function h(e,t){return p(e)&&m(t)}function g(e){return e.type===n.AST_NODE_TYPES.ImportDeclaration}function _(e,r){return e.type===t.ScopeType.tsModule&&e.block.id.type===n.AST_NODE_TYPES.Literal&&e.block.id.value===r}function v(e,t,r){let[a]=r.defs,[o]=t.defs;return(0,i.isTypeImport)(a)&&g(a.parent)&&_(e,a.parent.source.value)&&(o.node.type===n.AST_NODE_TYPES.TSInterfaceDeclaration||o.node.type===n.AST_NODE_TYPES.TSTypeAliasDeclaration)}function y(e){return c.allow.includes(e.name)}function b(e){let t=e.scope.block;return t.type===n.AST_NODE_TYPES.ClassDeclaration&&t.id===e.identifiers[0]}function x(e){let t=e.scope.block;return t.type===n.AST_NODE_TYPES.TSEnumDeclaration&&t.id===e.identifiers[0]}function S(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}function C(e,t){let n=e;for(;n&&!t(n);)n=n.parent;return n}function w(e){let n=e.upper;return n?.type===t.ScopeType.functionExpressionName?n.upper:n}function T(e,t){let r=t.defs.at(0);if(!r)return!1;let{variableScope:i}=e.scope;if(!((i.block.type===n.AST_NODE_TYPES.ArrowFunctionExpression||i.block.type===n.AST_NODE_TYPES.FunctionExpression)&&w(i)===t.scope))return!1;let{parent:a}=i.block,o=C(a,e=>e.type===n.AST_NODE_TYPES.CallExpression);if(!o)return!1;let s=r.name,c=o.range[1];for(;s;){if(s.type===n.AST_NODE_TYPES.VariableDeclarator){if(S(s.init,c)||(s.parent.parent.type===n.AST_NODE_TYPES.ForInStatement||s.parent.parent.type===n.AST_NODE_TYPES.ForOfStatement)&&S(s.parent.parent.right,c))return!0;break}else if(s.type===n.AST_NODE_TYPES.AssignmentPattern){if(S(s.right,c))return!0}else if([n.AST_NODE_TYPES.ArrowFunctionExpression,n.AST_NODE_TYPES.CatchClause,n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.ClassExpression,n.AST_NODE_TYPES.ExportNamedDeclaration,n.AST_NODE_TYPES.FunctionDeclaration,n.AST_NODE_TYPES.FunctionExpression,n.AST_NODE_TYPES.ImportDeclaration].includes(s.type))break;s=s.parent}return!1}function E(e,r){let i=r.scope,a=r.defs.at(0)?.parent?.range,o=e.scope,s=e.defs.at(0),c=s?.name.range;return!!(a&&c&&a[0]<c[0]&&c[1]<a[1]&&(s.type===t.DefinitionType.FunctionName&&s.node.type===n.AST_NODE_TYPES.FunctionExpression||s.node.type===n.AST_NODE_TYPES.ClassExpression)&&i===o.upper)}function D(e){return e.defs.at(0)?.name.range}function O(e,t){let n=t.defs.at(0),r=D(e),i=D(t);return!r||!i||r[1]>=i[0]?!1:n?c.hoist===`functions`?!o.has(n.node.type):c.hoist===`types`?!s.has(n.node.type):c.hoist===`functions-and-types`?!o.has(n.node.type)&&!s.has(n.node.type):!0:!0}function k(e){let t=e.identifiers.at(0);return t?{column:t.loc.start.column+1,global:!1,line:t.loc.start.line}:{global:!0}}function A(n){let i=e.filename;return(0,r.isDefinitionFile)(i)?n.defs.some(e=>e.type===t.DefinitionType.Variable&&e.parent.declare||e.type===t.DefinitionType.ClassName&&e.node.declare||e.type===t.DefinitionType.TSEnumName&&e.node.declare||e.type===t.DefinitionType.TSModuleName&&e.node.declare):!1}function ee(t){if(l(t))return;let r=t.variables;for(let i of r){if(i.identifiers.length===0||u(i)||b(i)||x(i)||y(i)||A(i))continue;let r=t.upper?n.ASTUtils.findVariable(t.upper,i.name):null;if(!r||d(i,r)||f(i,r)||h(i,r)||v(t,i,r))continue;let a=`writeable`in r;if((r.identifiers.length>0||c.builtinGlobals&&a)&&!E(i,r)&&!(c.ignoreOnInitialization&&T(i,r))&&!(c.hoist!==`all`&&O(i,r))){let t=k(r);e.report({node:i.identifiers[0],...t.global?{messageId:`noShadowGlobal`,data:{name:i.name}}:{messageId:`noShadow`,data:{name:i.name,shadowedColumn:t.column,shadowedLine:t.line}}})}}}return{"Program:exit"(t){let n=[...e.sourceCode.getScope(t).childScopes];for(;n.length;){let e=n.pop();n.push(...e.childScopes),ee(e)}}}}})})),hOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-this-alias`,meta:{type:`suggestion`,docs:{description:"Disallow aliasing `this`",recommended:`recommended`},messages:{thisAssignment:`Unexpected aliasing of 'this' to local variable.`,thisDestructure:`Unexpected aliasing of members of 'this' to local variables.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowDestructuring:{type:`boolean`,description:"Whether to ignore destructurings, such as `const { props, state } = this`."},allowedNames:{type:`array`,description:'Names to ignore, such as ["self"] for `const self = this;`.',items:{type:`string`}}}}]},defaultOptions:[{allowDestructuring:!0,allowedNames:[]}],create(e,[{allowDestructuring:n,allowedNames:r}]){return{"VariableDeclarator[init.type='ThisExpression'], AssignmentExpression[right.type='ThisExpression']"(i){let a=i.type===t.AST_NODE_TYPES.VariableDeclarator?i.id:i.left;n&&a.type!==t.AST_NODE_TYPES.Identifier||a.type===t.AST_NODE_TYPES.Identifier&&r.includes(a.name)||e.report({node:a,messageId:a.type===t.AST_NODE_TYPES.Identifier?`thisAssignment`:`thisDestructure`})}}}})})),gOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`no-type-alias`,meta:{type:`suggestion`,deprecated:{deprecatedSince:`6.0.0`,replacedBy:[{rule:{name:`@typescript-eslint/consistent-type-definitions`,url:`https://typescript-eslint.io/rules/consistent-type-definitions`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/6229`},docs:{description:`Disallow type aliases`},messages:{noCompositionAlias:`{{typeName}} in {{compositionType}} types are not allowed.`,noTypeAlias:`Type {{alias}} are not allowed.`},schema:[{type:`object`,$defs:{expandedOptions:{type:`string`,enum:[`always`,`never`,`in-unions`,`in-intersections`,`in-unions-and-intersections`]},simpleOptions:{type:`string`,enum:[`always`,`never`]}},additionalProperties:!1,properties:{allowAliases:{$ref:`#/items/0/$defs/expandedOptions`,description:`Whether to allow direct one-to-one type aliases.`},allowCallbacks:{$ref:`#/items/0/$defs/simpleOptions`,description:`Whether to allow type aliases for callbacks.`},allowConditionalTypes:{$ref:`#/items/0/$defs/simpleOptions`,description:`Whether to allow type aliases for conditional types.`},allowConstructors:{$ref:`#/items/0/$defs/simpleOptions`,description:`Whether to allow type aliases with constructors.`},allowGenerics:{$ref:`#/items/0/$defs/simpleOptions`,description:`Whether to allow type aliases with generic types.`},allowLiterals:{$ref:`#/items/0/$defs/expandedOptions`,description:`Whether to allow type aliases with object literal types.`},allowMappedTypes:{$ref:`#/items/0/$defs/expandedOptions`,description:`Whether to allow type aliases with mapped types.`},allowTupleTypes:{$ref:`#/items/0/$defs/expandedOptions`,description:`Whether to allow type aliases with tuple types.`}}}]},defaultOptions:[{allowAliases:`never`,allowCallbacks:`never`,allowConditionalTypes:`never`,allowConstructors:`never`,allowGenerics:`never`,allowLiterals:`never`,allowMappedTypes:`never`,allowTupleTypes:`never`}],create(e,[{allowAliases:n,allowCallbacks:r,allowConditionalTypes:i,allowConstructors:a,allowGenerics:o,allowLiterals:s,allowMappedTypes:c,allowTupleTypes:l}]){let u=[`always`,`in-unions`,`in-unions-and-intersections`],d=[`always`,`in-intersections`,`in-unions-and-intersections`],f=[`in-unions`,`in-intersections`,`in-unions-and-intersections`],p=new Set([t.AST_NODE_TYPES.TSArrayType,t.AST_NODE_TYPES.TSImportType,t.AST_NODE_TYPES.TSIndexedAccessType,t.AST_NODE_TYPES.TSLiteralType,t.AST_NODE_TYPES.TSTemplateLiteralType,t.AST_NODE_TYPES.TSTypeQuery,t.AST_NODE_TYPES.TSTypeReference]);function m(e,n,r){return!f.includes(r)||!e&&(n===t.AST_NODE_TYPES.TSUnionType&&u.includes(r)||n===t.AST_NODE_TYPES.TSIntersectionType&&d.includes(r))}function h(n,r,i,a){return i?e.report({node:n,messageId:`noTypeAlias`,data:{alias:a.toLowerCase()}}):e.report({node:n,messageId:`noCompositionAlias`,data:{compositionType:r===t.AST_NODE_TYPES.TSUnionType?`union`:`intersection`,typeName:a}})}let g=e=>!!(e.node.type===t.AST_NODE_TYPES.TSTupleType||e.node.type===t.AST_NODE_TYPES.TSTypeOperator&&[`keyof`,`readonly`].includes(e.node.operator)&&e.node.typeAnnotation?.type===t.AST_NODE_TYPES.TSTupleType),_=e=>e.node.type===t.AST_NODE_TYPES.TSTypeReference&&e.node.typeArguments!=null,v=(e,t,n,r)=>{(e===`never`||!m(t,n.compositionType,e))&&h(n.node,n.compositionType,t,r)};function y(e,u=!1){e.node.type===t.AST_NODE_TYPES.TSFunctionType?r===`never`&&h(e.node,e.compositionType,u,`Callbacks`):e.node.type===t.AST_NODE_TYPES.TSConditionalType?i===`never`&&h(e.node,e.compositionType,u,`Conditional types`):e.node.type===t.AST_NODE_TYPES.TSConstructorType?a===`never`&&h(e.node,e.compositionType,u,`Constructors`):e.node.type===t.AST_NODE_TYPES.TSTypeLiteral?v(s,u,e,`Literals`):e.node.type===t.AST_NODE_TYPES.TSMappedType?v(c,u,e,`Mapped types`):g(e)?v(l,u,e,`Tuple Types`):_(e)?o===`never`&&h(e.node,e.compositionType,u,`Generics`):e.node.type.endsWith(t.AST_TOKEN_TYPES.Keyword)||p.has(e.node.type)||e.node.type===t.AST_NODE_TYPES.TSTypeOperator&&(e.node.operator===`keyof`||e.node.operator===`readonly`&&e.node.typeAnnotation&&p.has(e.node.typeAnnotation.type))?v(n,u,e,`Aliases`):h(e.node,e.compositionType,u,`Unhandled`)}function b(e,n=null){return e.type===t.AST_NODE_TYPES.TSUnionType||e.type===t.AST_NODE_TYPES.TSIntersectionType?e.types.flatMap(t=>b(t,e.type)):[{node:e,compositionType:n}]}return{TSTypeAliasDeclaration(e){let t=b(e.typeAnnotation);t.length===1?y(t[0],!0):t.forEach(e=>{y(e)})}}}})})),_Oe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-unnecessary-boolean-literal-compare`,meta:{type:`suggestion`,docs:{description:`Disallow unnecessary equality comparisons against boolean literals`,recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,messages:{comparingNullableToFalse:`This expression unnecessarily compares a nullable boolean value to false instead of using the ?? operator to provide a default.`,comparingNullableToTrueDirect:`This expression unnecessarily compares a nullable boolean value to true instead of using it directly.`,comparingNullableToTrueNegated:`This expression unnecessarily compares a nullable boolean value to true instead of negating it.`,direct:`This expression unnecessarily compares a boolean value to a boolean instead of using it directly.`,negated:`This expression unnecessarily compares a boolean value to a boolean instead of negating it.`,noStrictNullCheck:"This rule requires the `strictNullChecks` compiler option to be turned on to function correctly."},schema:[{type:`object`,additionalProperties:!1,properties:{allowComparingNullableBooleansToFalse:{type:`boolean`,description:"Whether to allow comparisons between nullable boolean variables and `false`."},allowComparingNullableBooleansToTrue:{type:`boolean`,description:"Whether to allow comparisons between nullable boolean variables and `true`."},allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:{type:`boolean`,description:"Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`."}}}]},defaultOptions:[{allowComparingNullableBooleansToFalse:!0,allowComparingNullableBooleansToTrue:!0,allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:!1}],create(e,[t]){let n=(0,s.getParserServices)(e),r=n.program.getTypeChecker(),l=n.program.getCompilerOptions();!a.isStrictCompilerOptionEnabled(l,`strictNullChecks`)&&t.allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing!==!0&&e.report({loc:{start:{column:0,line:0},end:{column:0,line:0}},messageId:`noStrictNullCheck`});function u(e){let t=p(e);if(!t)return;let{constraintType:i,isTypeParameter:a}=(0,s.getConstraintInfo)(r,n.getTypeAtLocation(t.expression));if(!(a&&i==null)){if(d(i))return{...t,expressionIsNullableBoolean:!1};if(f(i))return{...t,expressionIsNullableBoolean:!0}}}function d(e){return a.isTypeFlagSet(e,o.TypeFlags.Boolean|o.TypeFlags.BooleanLiteral)}function f(e){if(!e.isUnion())return!1;let{types:t}=e,n=t.filter(e=>!a.isTypeFlagSet(e,o.TypeFlags.Undefined|o.TypeFlags.Null));return!(!(n.length>0)||!(n.length<t.length)||!n.every(d))}function p(e){let t=c(e.operator);if(t)for(let[n,r]of[[e.right,e.left],[e.left,e.right]]){if(n.type!==i.AST_NODE_TYPES.Literal||typeof n.value!=`boolean`)continue;let{value:e}=n;return{expression:r,literalBooleanInComparison:e,negated:!t.isPositive}}}function m(e){return e.type===i.AST_NODE_TYPES.UnaryExpression&&e.prefix&&e.operator===`!`}return{BinaryExpression(n){let r=u(n);r!=null&&(r.expressionIsNullableBoolean&&(r.literalBooleanInComparison&&t.allowComparingNullableBooleansToTrue||!r.literalBooleanInComparison&&t.allowComparingNullableBooleansToFalse)||e.report({node:n,messageId:r.expressionIsNullableBoolean?r.literalBooleanInComparison?r.negated?`comparingNullableToTrueNegated`:`comparingNullableToTrueDirect`:`comparingNullableToFalse`:r.negated?`negated`:`direct`,*fix(t){let i=m(n.parent),a=r.negated!==r.literalBooleanInComparison,o=i?n.parent:n;yield t.replaceText(o,e.sourceCode.getText(r.expression)),a===i&&(yield t.insertTextBefore(o,`!`),(0,s.isStrongPrecedenceNode)(r.expression)||(yield t.insertTextBefore(o,`(`),yield t.insertTextAfter(o,`)`))),r.expressionIsNullableBoolean&&!r.literalBooleanInComparison&&(yield t.insertTextBefore(o,`(`),yield t.insertTextAfter(o,` ?? true)`))}}))}}}});function c(e){switch(e){case`!=`:return{isPositive:!1,isStrict:!1};case`!==`:return{isPositive:!1,isStrict:!0};case`==`:return{isPositive:!0,isStrict:!1};case`===`:return{isPositive:!0,isStrict:!0};default:return}}})),vOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.findTruthinessAssertedArgument=o,e.findTypeGuardAssertedArgument=s;let i=P8(),a=r(U6());function o(e,t){let n=[];for(let e of t.arguments){if(e.type===i.AST_NODE_TYPES.SpreadElement)break;n.push(e)}if(n.length===0)return;let r=e.program.getTypeChecker(),o=e.getResolvedSignature(t);if(o==null)return;let s=r.getTypePredicateOfSignature(o);if(s==null)return;let{kind:c,parameterIndex:l,type:u}=s;if(c===a.TypePredicateKind.AssertsIdentifier&&u==null)return n.at(l)}function s(e,t){let n=[];for(let e of t.arguments){if(e.type===i.AST_NODE_TYPES.SpreadElement)break;n.push(e)}if(n.length===0)return;let r=e.program.getTypeChecker(),o=e.getResolvedSignature(t);if(o==null)return;let s=r.getTypePredicateOfSignature(o);if(s==null)return;let{kind:c,parameterIndex:l,type:u}=s;if((c===a.TypePredicateKind.AssertsIdentifier||c===a.TypePredicateKind.Identifier)&&u!=null&&!(l>=n.length))return{argument:n[l],asserts:c===a.TypePredicateKind.AssertsIdentifier,type:u}}})),yOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=vOe(),l=o.TypeFlags.Undefined|o.TypeFlags.Null;function u(e){return a.isTypeFlagSet(e,l)}function d(e){return a.unionConstituents(e).every(u)}function f(e){return a.unionConstituents(e).some(e=>u(e)||(0,s.isTypeFlagSet)(e,o.TypeFlags.Void))}function p(e){if(a.isBooleanLiteralType(e))return{value:a.isTrueLiteralType(e)};if(e.flags===o.TypeFlags.Undefined)return{value:void 0};if(e.flags===o.TypeFlags.Null)return{value:null};if(e.isLiteral())return{value:(0,s.getValueOfLiteralType)(e)}}let m=new Set([`<`,`>`,`<=`,`>=`,`==`,`===`,`!=`,`!==`]);function h(e){return m.has(e)}function g(e,t,n){switch(t){case`!=`:return e!=n;case`!==`:return e!==n;case`<`:return e<n;case`<=`:return e<=n;case`==`:return e==n;case`===`:return e===n;case`>`:return e>n;case`>=`:return e>=n}}let _=new Set([!0,!1,1,0]);e.default=(0,s.createRule)({name:`no-unnecessary-condition`,meta:{type:`suggestion`,docs:{description:`Disallow conditionals where the type is always truthy or always falsy`,recommended:`strict`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{alwaysFalsy:`Unnecessary conditional, value is always falsy.`,alwaysFalsyFunc:`This callback should return a conditional, but return is always falsy.`,alwaysNullish:"Unnecessary conditional, left-hand side of `??` operator is always `null` or `undefined`.",alwaysTruthy:`Unnecessary conditional, value is always truthy.`,alwaysTruthyFunc:`This callback should return a conditional, but return is always truthy.`,comparisonBetweenLiteralTypes:"Unnecessary conditional, comparison is always {{trueOrFalse}}, since `{{left}} {{operator}} {{right}}` is {{trueOrFalse}}.",never:"Unnecessary conditional, value is `never`.",neverNullish:"Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined.",neverOptionalChain:`Unnecessary optional chain on a non-nullish value.`,noOverlapBooleanExpression:`Unnecessary conditional, the types have no overlap.`,noStrictNullCheck:"This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.",suggestRemoveOptionalChain:`Remove unnecessary optional chain`,typeGuardAlreadyIsType:`Unnecessary conditional, expression already has the type being checked by the {{typeGuardOrAssertionFunction}}.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowConstantLoopConditions:{description:"Whether to ignore constant loop conditions, such as `while (true)`.",oneOf:[{type:`boolean`,description:`Always ignore or not ignore the loop conditions`},{type:`string`,description:`Which situations to ignore constant conditions in.`,enum:[`always`,`never`,`only-allowed-literals`]}]},allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:{type:`boolean`,description:`Whether to not error when running with a tsconfig that has strictNullChecks turned.`},checkTypePredicates:{type:`boolean`,description:`Whether to check the asserted argument of a type predicate function for unnecessary conditions`}}}]},defaultOptions:[{allowConstantLoopConditions:`never`,allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:!1,checkTypePredicates:!1}],create(e,[{allowConstantLoopConditions:t,allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:n,checkTypePredicates:r}]){let l=(0,s.getParserServices)(e),u=l.program.getTypeChecker(),m=l.program.getCompilerOptions(),y=a.isStrictCompilerOptionEnabled(m,`strictNullChecks`),b=a.isCompilerOptionEnabled(m,`noUncheckedIndexedAccess`),x=v(t);!y&&n!==!0&&e.report({loc:{start:{column:0,line:0},end:{column:0,line:0}},messageId:`noStrictNullCheck`});function S(e){let t=(0,s.getConstrainedTypeAtLocation)(l,e);return a.unionConstituents(t).some(e=>u.isArrayType(e))}function C(e){let t=(0,s.getConstrainedTypeAtLocation)(l,e);return a.unionConstituents(t).some(e=>u.isTupleType(e))}function w(e){return e.type===i.AST_NODE_TYPES.MemberExpression&&e.computed&&(S(e.object)||C(e.object)&&e.property.type!==i.AST_NODE_TYPES.Literal)}function T(e){return a.unionConstituents(e).some(e=>(0,s.isTypeAnyType)(e)||(0,s.isTypeUnknownType)(e)||(0,s.isTypeFlagSet)(e,o.TypeFlags.TypeVariable))}function E(t){let n=l.getTypeAtLocation(t.object);if(t.computed)return M(n,l.getTypeAtLocation(t.property));let r=t.property,i=e.sourceCode.getText(r),s=n.getProperties().find(e=>e.name===i);return!!(s&&a.isSymbolFlagSet(s,o.SymbolFlags.Optional))}function D(t,n=!1,r=t){if(t.type===i.AST_NODE_TYPES.UnaryExpression&&t.operator===`!`)return D(t.argument,!n,r);if(!b&&w(t))return;if(t.type===i.AST_NODE_TYPES.LogicalExpression&&t.operator!==`??`)return D(t.right);let a=(0,s.getConstrainedTypeAtLocation)(l,t);if(T(a))return;let c=null;(0,s.isTypeFlagSet)(a,o.TypeFlags.Never)?c=`never`:(0,s.isPossiblyTruthy)(a)?(0,s.isPossiblyFalsy)(a)||(c=n?`alwaysFalsy`:`alwaysTruthy`):c=n?`alwaysTruthy`:`alwaysFalsy`,c&&e.report({node:r,messageId:c})}function O(t){let n=(0,s.getConstrainedTypeAtLocation)(l,t);if((0,s.isTypeFlagSet)(n,o.TypeFlags.Any|o.TypeFlags.Unknown|o.TypeFlags.TypeParameter|o.TypeFlags.TypeVariable))return;let r=null;(0,s.isTypeFlagSet)(n,o.TypeFlags.Never)?r=`never`:!f(n)&&!(t.type===i.AST_NODE_TYPES.MemberExpression&&E(t))?(b||!w(t)&&!(t.type===i.AST_NODE_TYPES.ChainExpression&&t.expression.type!==i.AST_NODE_TYPES.TSNonNullExpression&&te(t.expression)))&&(r=`neverNullish`):d(n)&&(r=`alwaysNullish`),r&&e.report({node:t,messageId:r})}function k(t,n,r,i){let a=(0,s.getConstrainedTypeAtLocation)(l,n),c=(0,s.getConstrainedTypeAtLocation)(l,r),d=p(a),f=p(c);if(d!=null&&f!=null){let n=g(d.value,i,f.value);e.report({node:t,messageId:`comparisonBetweenLiteralTypes`,data:{left:u.typeToString(a),operator:i,right:u.typeToString(c),trueOrFalse:n?`true`:`false`}});return}if(y){let n=o.TypeFlags.Undefined,r=o.TypeFlags.Null,l=o.TypeFlags.Void,u=(e,t)=>(t|=o.TypeFlags.Any|o.TypeFlags.Unknown|o.TypeFlags.TypeParameter|o.TypeFlags.TypeVariable,(i===`==`||i===`!=`)&&(t|=r|n|l),(0,s.isTypeFlagSet)(e,t));if(a.flags===n&&!u(c,n|l)||c.flags===n&&!u(a,n|l)||a.flags===r&&!u(c,r)||c.flags===r&&!u(a,r)){e.report({node:t,messageId:`noOverlapBooleanExpression`});return}}}function A(e){if(e.operator===`??`){O(e.left);return}D(e.left)}function ee(e){e.test!=null&&(x===`only-allowed-literals`&&e.test.type===i.AST_NODE_TYPES.Literal&&_.has(e.test.value)||x===`always`&&a.isTrueLiteralType((0,s.getConstrainedTypeAtLocation)(l,e.test))||D(e.test))}function j(t){if(r){let n=(0,c.findTruthinessAssertedArgument)(l,t);n!=null&&D(n);let r=(0,c.findTypeGuardAssertedArgument)(l,t);if(r!=null){let t=(0,s.getConstrainedTypeAtLocation)(l,r.argument);!a.isTypeFlagSet(t,o.TypeFlags.Any|o.TypeFlags.Unknown)&&u.isTypeAssignableTo(t,r.type)&&(u.isTypeAssignableTo(r.type,t)||r.type.isUnion())&&e.report({node:r.argument,messageId:`typeGuardAlreadyIsType`,data:{typeGuardOrAssertionFunction:r.asserts?`assertion function`:`type guard`}})}}if((0,s.isArrayMethodCallWithPredicate)(e,l,t)&&t.arguments.length){let n=t.arguments[0];if(n.type===i.AST_NODE_TYPES.ArrowFunctionExpression||n.type===i.AST_NODE_TYPES.FunctionExpression){if(n.body.type!==i.AST_NODE_TYPES.BlockStatement)return D(n.body);let e=n.body.body;if(e.length===1&&e[0].type===i.AST_NODE_TYPES.ReturnStatement&&e[0].argument)return D(e[0].argument)}let r=a.getCallSignaturesOfType((0,s.getConstrainedTypeAtLocation)(l,n)).map(e=>e.getReturnType());if(r.length===0)return;let o=!1,c=!1;for(let e of r){let{constraintType:t}=(0,s.getConstraintInfo)(u,e);if(!t||(0,s.isTypeAnyType)(t)||(0,s.isTypeUnknownType)(t)||((0,s.isPossiblyFalsy)(t)&&(o=!0),(0,s.isPossiblyTruthy)(t)&&(c=!0),o&&c))return}if(!o)return e.report({node:n,messageId:`alwaysTruthyFunc`});if(!c)return e.report({node:n,messageId:`alwaysFalsyFunc`})}}function te(e){let t=e.type===i.AST_NODE_TYPES.CallExpression?e.callee:e.object;return e.optional&&w(t)?!0:t.type===i.AST_NODE_TYPES.MemberExpression||t.type===i.AST_NODE_TYPES.CallExpression?te(t):!1}function M(e,t){if(t.isUnion())return t.types.some(t=>M(e,t));if(t.isNumberLiteral()||t.isStringLiteral()){let n=(0,s.getTypeOfPropertyOfName)(u,e,t.value.toString());if(n)return(0,s.isNullableType)(n)}let n=(0,s.getTypeName)(u,t);return u.getIndexInfosOfType(e).some(e=>(0,s.getTypeName)(u,e.keyType)===n)}function N(e){let t=(0,s.getConstrainedTypeAtLocation)(l,e.object),n=e.property;return t.isUnion()&&(0,s.isIdentifier)(n)?!t.types.some(t=>{if(e.computed)return M(t,(0,s.getConstrainedTypeAtLocation)(l,e.property));let r=(0,s.getTypeOfPropertyOfName)(u,t,n.name);return r?(0,s.isNullableType)(r):u.getIndexInfosOfType(t).some(e=>(0,s.getTypeName)(u,e.keyType)===`string`&&(b||(0,s.isNullableType)(e.type)))})&&(0,s.isNullableType)(t):!1}function ne(e){let t=(0,s.getConstrainedTypeAtLocation)(l,e.callee);return t.isUnion()?!t.types.some(e=>e.getCallSignatures().some(e=>(0,s.isNullableType)(e.getReturnType())))&&(0,s.isNullableType)(t):!1}function P(e){let t=(0,s.getConstrainedTypeAtLocation)(l,e),n=e.type===i.AST_NODE_TYPES.MemberExpression?!N(e):e.type===i.AST_NODE_TYPES.CallExpression?!ne(e):!0;return T(t)||n&&(0,s.isNullableType)(t)}function F(t,n,r){if(!t.optional||!b&&te(t)||P(t.type===i.AST_NODE_TYPES.CallExpression?t.callee:t.object))return;let a=(0,s.nullThrows)(e.sourceCode.getTokenAfter(n,e=>e.type===i.AST_TOKEN_TYPES.Punctuator&&e.value===`?.`),s.NullThrowsReasons.MissingToken(`operator`,t.type));e.report({loc:a.loc,node:t,messageId:`neverOptionalChain`,suggest:[{messageId:`suggestRemoveOptionalChain`,fix(e){return e.replaceText(a,r)}}]})}function I(e){F(e,e.object,e.computed?``:`.`)}function L(e){F(e,e.callee,``)}function R(e){[`&&=`,`||=`].includes(e.operator)?D(e.left):e.operator===`??=`&&O(e.left)}return{AssignmentExpression:R,BinaryExpression(e){let{operator:t}=e;h(t)&&k(e,e.left,e.right,t)},CallExpression:j,"CallExpression[optional = true]":L,ConditionalExpression:e=>D(e.test),DoWhileStatement:ee,ForStatement:ee,IfStatement:e=>D(e.test),LogicalExpression:A,"MemberExpression[optional = true]":I,SwitchCase({parent:e,test:t}){t&&k(t,e.discriminant,t,`===`)},WhileStatement:ee}}});function v(e){return e===!0?`always`:e===!1?`never`:e}})),bOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=new Set([`??=`,`&&=`,`=`,`||=`]);e.default=(0,r.createRule)({name:`no-unnecessary-parameter-property-assignment`,meta:{type:`suggestion`,docs:{description:`Disallow unnecessary assignment of constructor property parameter`},messages:{unnecessaryAssign:`This assignment is unnecessary since it is already assigned by a parameter property.`},schema:[]},defaultOptions:[],create(e){let a=[];function o(e){return e.type===n.AST_NODE_TYPES.MemberExpression&&e.object.type===n.AST_NODE_TYPES.ThisExpression}function s(e){return o(e)?e.property.type===n.AST_NODE_TYPES.Identifier?e.property.name:e.computed?(0,r.getStaticStringValue)(e.property):null:null}function c(e){return!e||e.type===n.AST_NODE_TYPES.FunctionDeclaration||e.type===n.AST_NODE_TYPES.FunctionExpression||e.type===n.AST_NODE_TYPES.ArrowFunctionExpression?e:c(e.parent)}function l(e){return!e||e.type===n.AST_NODE_TYPES.PropertyDefinition?e:l(e.parent)}function u(e){return e?.type===n.AST_NODE_TYPES.FunctionExpression&&n.ASTUtils.isConstructor(e.parent)}function d(n){return e.sourceCode.getScope(n).references.find(e=>e.identifier.name===n.name)?.resolved?.defs.at(0)?.type===t.DefinitionType.Parameter}function f(e,t){return e.type===n.AST_NODE_TYPES.TSParameterProperty&&(e.parameter.type===n.AST_NODE_TYPES.Identifier&&e.parameter.name===t||e.parameter.type===n.AST_NODE_TYPES.AssignmentPattern&&e.parameter.left.name===t)}function p(e){return e.type===n.AST_NODE_TYPES.Identifier?e:e.type===n.AST_NODE_TYPES.TSAsExpression||e.type===n.AST_NODE_TYPES.TSNonNullExpression?p(e.expression):null}function m(e){return e.type===n.AST_NODE_TYPES.ArrowFunctionExpression&&e.parent.type===n.AST_NODE_TYPES.CallExpression}return{ClassBody(){a.push({assignedBeforeConstructor:new Set,assignedBeforeUnnecessary:new Set,unnecessaryAssignments:[]})},"ClassBody:exit"(){let{assignedBeforeConstructor:t,unnecessaryAssignments:n}=(0,r.nullThrows)(a.pop(),`The top stack should exist`);n.forEach(({name:n,node:r})=>{t.has(n)||e.report({node:r,messageId:`unnecessaryAssign`})})},"MethodDefinition[kind='constructor'] > FunctionExpression AssignmentExpression"(e){let t=s(e.left);if(!t)return;let n=c(e);if(n&&m(n)&&(n=c(n.parent)),!u(n))return;let{assignedBeforeUnnecessary:o,unnecessaryAssignments:l}=(0,r.nullThrows)(a.at(a.length-1),`The top of stack should exist`);if(!i.has(e.operator)){o.add(t);return}let h=p(e.right);t!==h?.name||!d(h)||n.params.some(e=>f(e,h.name))&&!o.has(t)&&l.push({name:t,node:e})},"PropertyDefinition AssignmentExpression"(e){let t=s(e.left);if(!t)return;let n=c(e);if(n&&!(m(n)&&l(e)?.value===n.parent))return;let{assignedBeforeConstructor:i}=(0,r.nullThrows)(a.at(-1),`The top stack should exist`);i.add(t)}}}})})),P7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-unnecessary-qualifier`,meta:{type:`suggestion`,docs:{description:`Disallow unnecessary namespace qualifiers`,requiresTypeChecking:!0},fixable:`code`,messages:{unnecessaryQualifier:`Qualifier is unnecessary since '{{ name }}' is in scope.`},schema:[]},defaultOptions:[],create(e){let t=[],n=null,r=(0,s.getParserServices)(e),c=r.esTreeNodeToTSNodeMap,l=r.program.getTypeChecker();function u(e,t){return a.isSymbolFlagSet(e,o.SymbolFlags.Alias)?t.getAliasedSymbol(e):null}function d(e){if((e.getDeclarations()??[]).some(e=>t.some(t=>t===e)))return!0;let n=u(e,l);return n!=null&&d(n)}function f(e,t,n){return l.getSymbolsInScope(e,t).find(e=>e.name===n)}function p(e,t){return e===l.getExportSymbolOfSymbol(t)}function m(t,n){let i=r.getSymbolAtLocation(t);if(i==null||!d(i))return!1;let a=r.getSymbolAtLocation(n);if(a==null)return!1;let o=f(c.get(t),a.flags,e.sourceCode.getText(n));return!!o&&p(a,o)}function h(t,r,i){!n&&m(r,i)&&(n=t,e.report({node:r,messageId:`unnecessaryQualifier`,data:{name:e.sourceCode.getText(i)},fix(e){return e.removeRange([r.range[0],i.range[0]])}}))}function g(e){t.push(c.get(e))}function _(){t.pop()}function v(e){e===n&&(n=null)}function y(e){return e.type===i.AST_NODE_TYPES.MemberExpression&&!e.computed}function b(e){return e.type===i.AST_NODE_TYPES.Identifier||y(e)&&b(e.object)}return{'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]':g,'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]:exit':_,'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]':g,'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]:exit':_,"MemberExpression:exit":v,"MemberExpression[computed=false]"(e){let t=e.property;b(e.object)&&h(e,e.object,t)},TSEnumDeclaration:g,"TSEnumDeclaration:exit":_,"TSModuleDeclaration:exit":_,"TSModuleDeclaration > TSModuleBlock"(e){g(e.parent)},TSQualifiedName(e){h(e,e.left,e.right)},"TSQualifiedName:exit":v}}})})),F7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=vDe(),l=/(?<!(?:[^\\]|^)(?:\\\\)*\\)/;function u(e){return RegExp(`${l.source}\\$$`).test(e)}e.default=(0,s.createRule)({name:`no-unnecessary-template-expression`,meta:{type:`suggestion`,docs:{description:`Disallow unnecessary template expressions`,recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,messages:{noUnnecessaryTemplateExpression:`Template literal expression is unnecessary and can be simplified.`},schema:[]},defaultOptions:[],create(e){let t=(0,s.getParserServices)(e),n=t.program.getTypeChecker();function r(e){return(0,s.isTypeFlagSet)(e,o.TypeFlags.StringLike)}function p(e){return e.isUnion()?e.types.every(r):e.isIntersection()?e.types.some(r):r(e)}function m(e){return a.typeConstituents(e).some(e=>{let t=e.getSymbol();return!!(t?.valueDeclaration&&o.isEnumMember(t.valueDeclaration))})}let h=(0,s.isNodeOfType)(i.TSESTree.AST_NODE_TYPES.Literal);function g(e){return e.type===i.AST_NODE_TYPES.TemplateLiteral}function _(e){return e.type===i.AST_NODE_TYPES.Identifier&&e.name===`Infinity`}function v(e){return e.type===i.AST_NODE_TYPES.Identifier&&e.name===`NaN`}function y(e){return(0,s.isUndefinedIdentifier)(e)||_(e)||v(e)}function b(t,n){let r=(0,s.nullThrows)(e.sourceCode.getTokenByRangeStart(t.range[0]),s.NullThrowsReasons.MissingToken("`${",`opening template literal`)),i=(0,s.nullThrows)(e.sourceCode.getTokenByRangeStart(n.range[0]),s.NullThrowsReasons.MissingToken(`}`,`closing template literal`));return e.sourceCode.commentsExistBetween(r,i)}function x(e){return e.quasis.length===2&&e.quasis[0].value.raw===``&&e.quasis[1].value.raw===``}function S(e){return e.type===i.AST_NODE_TYPES.TemplateLiteral?e.expressions:e.types}function C(e){return S(e).map((t,n)=>({interpolation:t,nextQuasi:e.quasis[n+1],prevQuasi:e.quasis[n]}))}function w(e){let t=e.type===i.AST_NODE_TYPES.TSLiteralType?e.literal:e;return h(t)?t:null}function T(e){let t=e.type===i.AST_NODE_TYPES.TSLiteralType?e.literal:e;return g(t)?t:null}function E(t){let n=S(t);e.report({loc:(0,c.rangeToLoc)(e.sourceCode,[n[0].range[0]-2,n[0].range[1]+1]),messageId:`noUnnecessaryTemplateExpression`,fix(r){let i=(0,s.getMovedNodeCode)({destinationNode:t,nodeToMove:n[0],sourceCode:e.sourceCode});return r.replaceText(t,i)}})}function D({interpolation:e,nextQuasi:t,prevQuasi:n}){return b(n,t)?!1:y(e)?!0:h(e)?f(t.value.raw)?!(typeof e.value==`string`&&d(e.value)):!0:g(e)?f(t.value.raw)?!(e.quasis.length===1&&d(e.quasis[0].value.raw)):!0:!1}function O({interpolation:e,nextQuasi:t,prevQuasi:n}){if(b(n,t))return!1;let r=w(e);if(r)return f(t.value.raw)?!(typeof r.value==`string`&&d(r.value)):!0;if(e.type===i.AST_NODE_TYPES.TSNullKeyword||e.type===i.AST_NODE_TYPES.TSUndefinedKeyword)return!0;let a=T(e);return a?f(t.value.raw)?!(a.quasis.length===1&&d(a.quasis[0].value.raw)):!0:!1}function k(t){let n=!1,r=[],i=[...t].reverse();for(let{interpolation:t,nextQuasi:a,prevQuasi:o}of i){let i=[];a.value.raw!==``&&(n=a.value.raw.startsWith(`{`));let s=w(t),d=T(t);if(s){let e=(typeof s.value==`string`?s.raw.slice(1,-1):String(s.value).replaceAll(`\\`,`\\\\`)).replaceAll(RegExp(`${l.source}(\`|\\\${)`,`g`),`\\$1`);n&&u(e)&&(e=e.replaceAll(/\$$/g,`\\$`)),e.length!==0&&(n=e.startsWith(`{`)),i.push(t=>[t.replaceText(s,e)])}else d?(n&&u(d.quasis[d.quasis.length-1].value.raw)&&i.push(e=>[e.replaceTextRange([d.range[1]-2,d.range[1]-2],`\\`)]),d.quasis.length===1&&d.quasis[0].value.raw.length!==0&&(n=d.quasis[0].value.raw.startsWith(`{`)),i.push(e=>[e.removeRange([d.range[0],d.range[0]+1]),e.removeRange([d.range[1]-1,d.range[1]])])):n=!1;n&&u(o.value.raw)&&i.push(e=>[e.replaceTextRange([o.range[1]-3,o.range[1]-2],`\\$`)]);let f=o.range[1]-2,p=a.range[0]+1;r.push({loc:(0,c.rangeToLoc)(e.sourceCode,[f,p]),messageId:`noUnnecessaryTemplateExpression`,fix(e){return[e.removeRange([f,t.range[0]]),e.removeRange([t.range[1],p]),...i.flatMap(t=>t(e))]}})}return r}return{TemplateLiteral(r){if(r.parent.type===i.AST_NODE_TYPES.TaggedTemplateExpression)return;if(x(r)&&!b(r.quasis[0],r.quasis[1])){let{constraintType:e}=(0,s.getConstraintInfo)(n,t.getTypeAtLocation(r.expressions[0]));if(e&&p(e)){E(r);return}}let a=C(r).filter(D);for(let t of k(a))e.report(t)},TSTemplateLiteralType(r){if(x(r)&&!b(r.quasis[0],r.quasis[1])){let{constraintType:e,isTypeParameter:i}=(0,s.getConstraintInfo)(n,t.getTypeAtLocation(r.types[0]));if(e&&!i&&p(e)&&!m(e)){E(r);return}}let i=C(r).filter(O);for(let t of k(i))e.report(t)}}}});function d(e){return/^\s*$/.test(e)}function f(e){return e.startsWith(`
|
|
1090
1090
|
`)||e.startsWith(`\r
|
|
@@ -1094,7 +1094,7 @@ ${p} return (`),yield r.insertTextAfter(e,`);
|
|
|
1094
1094
|
`)},schema:[]},defaultOptions:[],create(e){function r(r){r.type===t.AST_NODE_TYPES.Identifier&&r.name===`Function`&&(0,n.isReferenceToGlobalFunction)(`Function`,r,e.sourceCode)&&e.report({node:r,messageId:`bannedFunctionType`})}return{TSClassImplements(e){r(e.expression)},TSInterfaceHeritage(e){r(e.expression)},TSTypeReference(e){r(e.typeName)}}}})})),jOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7();var s;(function(e){e[e.Unsafe=1]=`Unsafe`,e[e.Safe=2]=`Safe`,e[e.Chained=3]=`Chained`})(s||={}),e.default=(0,o.createRule)({name:`no-unsafe-member-access`,meta:{type:`problem`,docs:{description:"Disallow member access on a value with type `any`",recommended:`recommended`,requiresTypeChecking:!0},messages:{errorComputedMemberAccess:`The type of computed name {{property}} cannot be resolved.`,errorMemberExpression:`Unsafe member access {{property}} on a type that cannot be resolved.`,errorThisMemberExpression:["Unsafe member access {{property}}. The type of `this` cannot be resolved.","You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function."].join(`
|
|
1095
1095
|
`),unsafeComputedMemberAccess:"Computed name {{property}} resolves to an `any` value.",unsafeMemberExpression:"Unsafe member access {{property}} on an `any` value.",unsafeThisMemberExpression:["Unsafe member access {{property}} on an `any` value. `this` is typed as `any`.","You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function."].join(`
|
|
1096
1096
|
`)},schema:[{type:`object`,additionalProperties:!1,properties:{allowOptionalChaining:{type:`boolean`,description:"Whether to allow `?.` optional chains on `any` values."}}}]},defaultOptions:[{allowOptionalChaining:!1}],create(e,[{allowOptionalChaining:t}]){let n=(0,o.getParserServices)(e),r=n.program.getCompilerOptions(),c=a.isStrictCompilerOptionEnabled(r,`noImplicitThis`),l=new Map;function u(r){if(t&&r.optional)return l.set(r,s.Chained),s.Chained;let d=l.get(r);if(d)return d;if(r.object.type===i.AST_NODE_TYPES.MemberExpression){let e=u(r.object);if(e===s.Unsafe)return l.set(r,e),e}let f=n.getTypeAtLocation(r.object),p=(0,o.isTypeAnyType)(f)?s.Unsafe:s.Safe;if(l.set(r,p),p===s.Unsafe){let t=e.sourceCode.getText(r.property),i;if(!c){let e=(0,o.getThisExpression)(r);if(e){let t=(0,o.getConstrainedTypeAtLocation)(n,e);(0,o.isTypeAnyType)(t)&&(i=a.isIntrinsicErrorType(t)?`errorThisMemberExpression`:`unsafeThisMemberExpression`)}}i||=a.isIntrinsicErrorType(f)?`errorMemberExpression`:`unsafeMemberExpression`,e.report({node:r.property,messageId:i,data:{property:r.computed?`[${t}]`:`.${t}`}})}return p}return{"MemberExpression:not(TSClassImplements MemberExpression, TSInterfaceHeritage MemberExpression)":u,"MemberExpression[computed = true] > *.property"(r){if(t&&r.parent.optional||r.type===i.AST_NODE_TYPES.Literal||r.type===i.AST_NODE_TYPES.UpdateExpression)return;let s=n.getTypeAtLocation(r);if((0,o.isTypeAnyType)(s)){let t=e.sourceCode.getText(r);e.report({node:r,messageId:a.isIntrinsicErrorType(s)?`errorComputedMemberAccess`:`unsafeComputedMemberAccess`,data:{property:`[${t}]`}})}}}}})})),MOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=_7(),s=A7();e.default=(0,o.createRule)({name:`no-unsafe-return`,meta:{type:`problem`,docs:{description:"Disallow returning a value with type `any` from a function",recommended:`recommended`,requiresTypeChecking:!0},messages:{unsafeReturn:`Unsafe return of a value of type {{type}}.`,unsafeReturnAssignment:"Unsafe return of type `{{sender}}` from function with return type `{{receiver}}`.",unsafeReturnThis:["Unsafe return of a value of type `{{type}}`. `this` is typed as `any`.","You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function."].join(`
|
|
1097
|
-
`)},schema:[]},defaultOptions:[],create(e){let t=(0,o.getParserServices)(e),n=t.program.getTypeChecker(),r=t.program.getCompilerOptions(),c=i.isStrictCompilerOptionEnabled(r,`noImplicitThis`);function l(r,l=r){let u=t.esTreeNodeToTSNodeMap.get(r),d=n.getTypeAtLocation(u),f=(0,o.discriminateAnyType)(d,n,t.program,u),p=(0,s.getParentFunctionNode)(r);if(!p)return;let m=t.getTypeAtLocation(r),h=(0,o.getConstrainedTypeAtLocation)(t,r),g=t.esTreeNodeToTSNodeMap.get(p),_=a.isFunctionExpression(g)||a.isArrowFunction(g)?(0,o.getContextualType)(n,g):t.getTypeAtLocation(p);_??=t.getTypeAtLocation(p);let v=i.getCallSignaturesOfType(_);if(g.type)for(let e of v){let t=e.getReturnType();if(m===t||(0,o.isTypeFlagSet)(t,a.TypeFlags.Any|a.TypeFlags.Unknown))return;if(p.async){let e=n.getAwaitedType(t);if(n.getAwaitedType(m)===e||e&&(0,o.isTypeFlagSet)(e,a.TypeFlags.Any|a.TypeFlags.Unknown))return}}if(f!==o.AnyType.Safe){for(let e of v){let t=e.getReturnType();if(f===o.AnyType.Any&&(0,o.isTypeUnknownType)(t)||f===o.AnyType.AnyArray&&(0,o.isTypeUnknownArrayType)(t,n))return;let r=n.getAwaitedType(t);if(r&&f===o.AnyType.PromiseAny&&(0,o.isTypeUnknownType)(r))return}if(f===o.AnyType.PromiseAny&&!p.async)return;let a=`unsafeReturn`,s=i.isIntrinsicErrorType(h);if(!c){let e=(0,o.getThisExpression)(r);e&&(0,o.isTypeAnyType)((0,o.getConstrainedTypeAtLocation)(t,e))&&(a=`unsafeReturnThis`)}return e.report({node:l,messageId:a,data:{type:s?`error`:f===o.AnyType.Any?"`any`":f===o.AnyType.PromiseAny?"`Promise<any>`":"`any[]`"}})}let y=_.getCallSignatures().at(0);if(y){let t=y.getReturnType(),i=(0,o.isUnsafeAssignment)(m,t,n,r);if(!i)return;let{receiver:a,sender:s}=i;return e.report({node:l,messageId:`unsafeReturnAssignment`,data:{receiver:n.typeToString(a),sender:n.typeToString(s)}})}}return{"ArrowFunctionExpression > :not(BlockStatement).body":l,ReturnStatement(e){let t=e.argument;t&&l(t,e)}}}})})),NOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=_7();e.default=(0,o.createRule)({name:`no-unsafe-type-assertion`,meta:{type:`problem`,docs:{description:`Disallow type assertions that narrow a type`,requiresTypeChecking:!0},messages:{unsafeOfAnyTypeAssertion:`Unsafe assertion from {{type}} detected: consider using type guards or a safer assertion.`,unsafeToAnyTypeAssertion:`Unsafe assertion to {{type}} detected: consider using a more specific type to ensure safety.`,unsafeToUnconstrainedTypeAssertion:`Unsafe type assertion: '{{type}}' could be instantiated with an arbitrary type which could be unrelated to the original type.`,unsafeTypeAssertion:`Unsafe type assertion: type '{{type}}' is more narrow than the original type.`,unsafeTypeAssertionAssignableToConstraint:`Unsafe type assertion: the original type is assignable to the constraint of type '{{type}}', but '{{type}}' could be instantiated with a different subtype of its constraint.`},schema:[]},defaultOptions:[],create(e){let t=(0,o.getParserServices)(e),n=t.program.getTypeChecker();function r(e){return i.isIntrinsicErrorType(e)?`error typed`:"`any`"}function s(e){return i.isObjectType(e)&&i.isObjectFlagSet(e,a.ObjectFlags.ObjectLiteral)}function c(a){let c=t.getTypeAtLocation(a.expression),l=t.getTypeAtLocation(a.typeAnnotation);if(c===l)return;if((0,o.isTypeAnyType)(l)&&(0,o.isTypeUnknownType)(c)){e.report({node:a,messageId:`unsafeToAnyTypeAssertion`,data:{type:"`any`"}});return}let u=(0,o.isUnsafeAssignment)(c,l,n,a.expression);if(u){e.report({node:a,messageId:`unsafeOfAnyTypeAssertion`,data:{type:r(u.sender)}});return}let d=(0,o.isUnsafeAssignment)(l,c,n,a.typeAnnotation);if(d){e.report({node:a,messageId:`unsafeToAnyTypeAssertion`,data:{type:r(d.sender)}});return}let f=s(c)?n.getWidenedType(c):c;if(!n.isTypeAssignableTo(f,l)){if(i.isTypeParameter(l)){let t=n.getBaseConstraintOfType(l);if(!t){e.report({node:a,messageId:`unsafeToUnconstrainedTypeAssertion`,data:{type:n.typeToString(l)}});return}if(n.isTypeAssignableTo(f,t)){e.report({node:a,messageId:`unsafeTypeAssertionAssignableToConstraint`,data:{type:n.typeToString(l)}});return}}e.report({node:a,messageId:`unsafeTypeAssertion`,data:{type:n.typeToString(l)}})}}return{"TSAsExpression, TSTypeAssertion"(e){c(e)}}}})})),POe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=r(_7());e.default=o.createRule({name:`no-unsafe-unary-minus`,meta:{type:`problem`,docs:{description:`Require unary negation to take a number`,recommended:`recommended`,requiresTypeChecking:!0},messages:{unaryMinus:`Argument of unary negation should be assignable to number | bigint but is {{type}} instead.`},schema:[]},defaultOptions:[],create(e){return{UnaryExpression(t){if(t.operator!==`-`)return;let n=o.getParserServices(e),r=o.getConstrainedTypeAtLocation(n,t.argument),s=n.program.getTypeChecker();i.unionConstituents(r).some(e=>!i.isTypeFlagSet(e,a.TypeFlags.Any|a.TypeFlags.Never|a.TypeFlags.BigIntLike|a.TypeFlags.NumberLike))&&e.report({node:t,messageId:`unaryMinus`,data:{type:s.typeToString(r)}})}}}})})),FOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-unused-expressions`),i=[{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}];e.default=(0,n.createRule)({name:`no-unused-expressions`,meta:{type:`suggestion`,defaultOptions:i,docs:{description:`Disallow unused expressions`,extendsBaseRule:!0,recommended:`recommended`},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:i,create(e,[{allowShortCircuit:n=!1,allowTernary:i=!1}]){let a=r.create(e);function o(e){return n&&e.type===t.AST_NODE_TYPES.LogicalExpression?o(e.right):i&&e.type===t.AST_NODE_TYPES.ConditionalExpression?o(e.alternate)&&o(e.consequent):e.type===t.AST_NODE_TYPES.ChainExpression&&e.expression.type===t.AST_NODE_TYPES.CallExpression||e.type===t.AST_NODE_TYPES.ImportExpression}return{ExpressionStatement(e){if(e.directive||o(e.expression))return;let n=e.expression.type;if(n===t.TSESTree.AST_NODE_TYPES.TSInstantiationExpression||n===t.TSESTree.AST_NODE_TYPES.TSAsExpression||n===t.TSESTree.AST_NODE_TYPES.TSNonNullExpression||n===t.TSESTree.AST_NODE_TYPES.TSTypeAssertion){a.ExpressionStatement({...e,expression:e.expression.expression});return}a.ExpressionStatement(e)}}}})})),IOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publicKey=t,e.privateKey=n;function t(e){return e}function n(e){return`#private@@${e.name}`}})),LOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extractNameForMember=a,e.extractNameForMemberExpression=o;let t=P8(),n=IOe();function r(e){if(e.type===t.AST_NODE_TYPES.Literal){let t=e.value?.toString()??`null`;return{codeName:t,key:(0,n.publicKey)(t),nameNode:e}}if(e.type===t.AST_NODE_TYPES.TemplateLiteral&&e.expressions.length===0){let t=e.quasis[0].value.raw;return{codeName:t,key:(0,n.publicKey)(t),nameNode:e}}return null}function i(e){let r=e.name;return e.type===t.AST_NODE_TYPES.PrivateIdentifier?{codeName:`#${r}`,key:(0,n.privateKey)(e),nameNode:e}:{codeName:r,key:(0,n.publicKey)(r),nameNode:e}}function a(e){return e.type===t.AST_NODE_TYPES.TSParameterProperty?i(e.parameter.type===t.AST_NODE_TYPES.Identifier?e.parameter:e.parameter.left):e.computed||e.key.type===t.AST_NODE_TYPES.Literal?r(e.key):i(e.key)}function o(e){return e.computed?r(e.property):i(e.property)}})),ROe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Member=void 0,e.analyzeClassMemberUsage=f;let t=z6(),n=P8(),r=_7(),i=LOe(),a=IOe();var o=class e{node;key;name;nameNode;writeCount=0;readCount=0;constructor(e,t,n,r){this.node=e,this.key=t,this.name=n,this.nameNode=r}static create(t){let n=(0,i.extractNameForMember)(t);return n==null?null:new e(t,n.key,n.codeName,n.nameNode)}isAccessor(){return this.node.type===n.AST_NODE_TYPES.MethodDefinition||this.node.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition?this.node.kind===`set`||this.node.kind===`get`:this.node.type===n.AST_NODE_TYPES.AccessorProperty||this.node.type===n.AST_NODE_TYPES.TSAbstractAccessorProperty}isHashPrivate(){return`key`in this.node&&this.node.key.type===n.AST_NODE_TYPES.PrivateIdentifier}isPrivate(){return this.node.accessibility===`private`}isStatic(){return this.node.static}isUsed(){return this.readCount>0||this.writeCount>0&&this.isAccessor()}};e.Member=o;function s(e,t){return t.type!==n.AST_NODE_TYPES.AssignmentExpression&&t.type!==n.AST_NODE_TYPES.ForInStatement&&t.type!==n.AST_NODE_TYPES.ForOfStatement&&t.type!==n.AST_NODE_TYPES.AssignmentPattern||t.left!==e?!1:t.type===n.AST_NODE_TYPES.AssignmentExpression&&t.operator!==`=`?t.parent.type===n.AST_NODE_TYPES.ExpressionStatement:!0}function c(e,t){let i=(0,r.nullThrows)(e.parent,r.NullThrowsReasons.MissingParent);if(s(e,i)){t.writeCount+=1;return}let a=i.parent;if(i.type===n.AST_NODE_TYPES.UpdateExpression&&a?.type===n.AST_NODE_TYPES.ExpressionStatement){t.writeCount+=1;return}if(i.type===n.AST_NODE_TYPES.Property&&a?.type===n.AST_NODE_TYPES.ObjectPattern&&i.value===e){t.writeCount+=1;return}if(i.type===n.AST_NODE_TYPES.RestElement){t.writeCount+=1;return}if(i.type===n.AST_NODE_TYPES.ArrayPattern){t.writeCount+=1;return}t.readCount+=1}var l=class extends t.Visitor{isStaticThisContext;childScopes=[];scopeManager;upper;thisContext;constructor(e,t,n,r){if(super({}),this.scopeManager=e,this.upper=t,this.isStaticThisContext=r,n===`self`){if(!(this instanceof d))throw Error("Cannot use `self` unless it is in a ClassScope");this.thisContext=this}else n===`none`?this.thisContext=null:this.thisContext=n}findNearestScope(e){let t,n=e;do{if(t=this.scopeManager.acquire(n),n.parent==null)break;n=n.parent}while(t==null);return t}findVariableInScope(e,t){let n=this.findNearestScope(e),r=null;for(;n!=null&&(r=n.set.get(t)??null,r==null);)n=n.upper;return r}getObjectClass(e){switch(e.object.type){case n.AST_NODE_TYPES.ThisExpression:return this.thisContext==null?null:{thisContext:this.thisContext,type:this.isStaticThisContext?`static`:`instance`};case n.AST_NODE_TYPES.Identifier:{let t=this.findClassScopeWithName(e.object.name);if(t!=null)return{thisContext:t,type:`static`};let r=this.findVariableInScope(e,e.object.name);if(r==null||r.defs.length===0)return null;let i=r.defs[0];switch(i.node.type){case n.AST_NODE_TYPES.VariableDeclarator:return i.node.init?.type!==n.AST_NODE_TYPES.ThisExpression||r.references.some(e=>e.isWrite()&&e.init!==!0)?null:{thisContext:this.thisContext,type:this.isStaticThisContext?`static`:`instance`};default:{let e=`typeAnnotation`in i.name&&i.name.typeAnnotation!=null?i.name.typeAnnotation.typeAnnotation:null;if(e==null)return null;if(e.type===n.AST_NODE_TYPES.TSTypeReference&&e.typeName.type===n.AST_NODE_TYPES.Identifier){let t=e.typeName.name,n=this.findClassScopeWithName(t);if(n!=null)return{thisContext:n,type:`instance`}}if(e.type===n.AST_NODE_TYPES.TSTypeQuery&&e.exprName.type===n.AST_NODE_TYPES.Identifier){let t=e.exprName.name,n=this.findClassScopeWithName(t);if(n!=null)return{thisContext:n,type:`static`}}}}return null}case n.AST_NODE_TYPES.MemberExpression:return null;default:return null}}visitClass(e){let t=new d(e,this,this.scopeManager);this.childScopes.push(t),t.visitChildren(e)}visitIntermediate(e){let t=new u(this.scopeManager,this,e);this.childScopes.push(t),t.visitChildren(e)}findClassScopeWithName(e){let t=this;for(;t!=null;){if(t instanceof d&&t.className===e)return t;t=t.upper}return null}AssignmentExpression(e){this.visitChildren(e),e.right.type===n.AST_NODE_TYPES.ThisExpression&&e.left.type===n.AST_NODE_TYPES.ObjectPattern&&this.handleThisDestructuring(e.left)}AssignmentPattern(e){this.visitChildren(e),e.right.type===n.AST_NODE_TYPES.ThisExpression&&e.left.type===n.AST_NODE_TYPES.ObjectPattern&&this.handleThisDestructuring(e.left)}ClassDeclaration(e){this.visitClass(e)}ClassExpression(e){this.visitClass(e)}FunctionDeclaration(e){this.visitIntermediate(e)}FunctionExpression(e){this.visitIntermediate(e)}MemberExpression(e){if(this.visitChildren(e),e.property.type===n.AST_NODE_TYPES.PrivateIdentifier)return;let t=(0,i.extractNameForMemberExpression)(e);if(t==null)return;let r=this.getObjectClass(e);if(r==null||r.thisContext==null)return;let a=(r.type===`instance`?r.thisContext.members.instance:r.thisContext.members.static).get(t.key);a!=null&&c(e,a)}PrivateIdentifier(e){if(this.visitChildren(e),(e.parent.type===n.AST_NODE_TYPES.MethodDefinition||e.parent.type===n.AST_NODE_TYPES.PropertyDefinition)&&e.parent.key===e)return;let t=this,r=(0,a.privateKey)(e);for(;t!=null;){if(t.thisContext!=null){let n=t.thisContext.members.instance.get(r)??t.thisContext.members.static.get(r);if(n!=null){c(e.parent,n);return}}t=t.upper}}StaticBlock(e){this.visitIntermediate(e)}VariableDeclarator(e){this.visitChildren(e),e.init?.type===n.AST_NODE_TYPES.ThisExpression&&e.id.type===n.AST_NODE_TYPES.ObjectPattern&&this.handleThisDestructuring(e.id)}handleThisDestructuring(e){if(this.thisContext!=null)for(let t of e.properties){if(t.type!==n.AST_NODE_TYPES.Property||t.key.type!==n.AST_NODE_TYPES.Identifier||t.computed)continue;let e=(0,a.publicKey)(t.key.name),r=(this.isStaticThisContext?this.thisContext.members.static:this.thisContext.members.instance).get(e);r!=null&&c(t.key,r)}}},u=class extends l{constructor(e,t,r){if(r.type===n.AST_NODE_TYPES.Program){super(e,t,`none`,!1);return}if(r.type===n.AST_NODE_TYPES.StaticBlock){if(t==null||!(t instanceof d))throw Error(`Cannot have a static block without an upper ClassScope`);super(e,t,t,!0);return}if((r.parent.type===n.AST_NODE_TYPES.MethodDefinition||r.parent.type===n.AST_NODE_TYPES.PropertyDefinition)&&r.parent.value===r){if(t==null||!(t instanceof d))throw Error(`Cannot have a class method/property without an upper ClassScope`);super(e,t,t,r.parent.static);return}if(t!=null&&r.params.length>0&&r.params[0].type===n.AST_NODE_TYPES.Identifier&&r.params[0].name===`this`){let i=r.params[0].typeAnnotation?.typeAnnotation;if(i?.type===n.AST_NODE_TYPES.TSTypeReference&&i.typeName.type===n.AST_NODE_TYPES.Identifier){let n=t.findClassScopeWithName(i.typeName.name);if(n!=null){super(e,t,n,!1);return}}}super(e,t,`none`,!1)}},d=class extends l{className;members={instance:new Map,static:new Map};theClass;constructor(e,t,r){super(r,t,`self`,!1),this.theClass=e,this.className=e.id?.name??null;for(let t of e.body.body)switch(t.type){case n.AST_NODE_TYPES.MethodDefinition:if(t.kind===`constructor`){for(let e of t.value.params){if(e.type!==n.AST_NODE_TYPES.TSParameterProperty)continue;let t=o.create(e);t!=null&&this.members.instance.set(t.key,t)}break}case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.PropertyDefinition:case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:{let e=o.create(t);if(e==null)continue;e.isStatic()?this.members.static.set(e.key,e):this.members.instance.set(e.key,e);break}case n.AST_NODE_TYPES.StaticBlock:continue;case n.AST_NODE_TYPES.TSIndexSignature:continue}}};function f(e,t){let n=new u(t,null,e);return n.visit(e),p(n)}function p(e,t=new Map){e instanceof d&&t.set(e.theClass,e);for(let n of e.childScopes)p(n,t);return t}})),zOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=ROe();e.default=(0,n.createRule)({name:`no-unused-private-class-members`,meta:{type:`problem`,docs:{description:`Disallow unused private class members`,extendsBaseRule:!0,requiresTypeChecking:!1},messages:{unusedPrivateClassMember:`Private class member '{{classMemberName}}' is defined but never used.`},schema:[]},defaultOptions:[],create(e){return{"Program:exit"(n){let i=(0,r.analyzeClassMemberUsage)(n,t.ESLintUtils.nullThrows(e.sourceCode.scopeManager,`Missing required scope manager`));for(let t of i.values())for(let n of[...t.members.instance.values(),...t.members.static.values()])!n.isPrivate()&&!n.isHashPrivate()||n.isUsed()||e.report({node:n.nameNode,messageId:`unusedPrivateClassMember`,data:{classMemberName:n.name}})}}}})})),R7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=yEe(),a=bEe();var o;(function(e){e[e.ArrayDestructure=0]=`ArrayDestructure`,e[e.CatchClause=1]=`CatchClause`,e[e.ClassName=2]=`ClassName`,e[e.FunctionName=3]=`FunctionName`,e[e.ImportBinding=4]=`ImportBinding`,e[e.ImplicitGlobalVariable=5]=`ImplicitGlobalVariable`,e[e.Parameter=6]=`Parameter`,e[e.TSEnumMember=7]=`TSEnumMember`,e[e.TSEnumName=8]=`TSEnumName`,e[e.TSModuleName=9]=`TSModuleName`,e[e.Type=10]=`Type`,e[e.Variable=11]=`Variable`})(o||={});let s={predicate:e=>e.type===n.AST_TOKEN_TYPES.Punctuator&&e.value===`,`,tokenChar:`,`},c={predicate:e=>e.type===n.AST_TOKEN_TYPES.Punctuator&&e.value===`{`,tokenChar:`{`},l={predicate:e=>e.type===n.AST_TOKEN_TYPES.Punctuator&&e.value===`}`,tokenChar:`}`};function u({predicate:e,tokenChar:t},n){if(n==null)throw Error(`Expected a valid "${t}" token, but found no token`);if(!e(n))throw Error(`Expected a valid "${t}" token, but got "${n.value}" instead`);return n}e.default=(0,r.createRule)({name:`no-unused-vars`,meta:{type:`problem`,docs:{description:`Disallow unused variables`,extendsBaseRule:!0,recommended:`recommended`},fixable:`code`,hasSuggestions:!0,messages:{removeUnusedImportDeclaration:`Remove unused import declaration.`,removeUnusedVar:`Remove unused variable "{{varName}}".`,unusedVar:`'{{varName}}' is {{action}} but never used{{additional}}.`,usedIgnoredVar:`'{{varName}}' is marked as ignored but is used{{additional}}.`,usedOnlyAsType:`'{{varName}}' is {{action}} but only used as a type{{additional}}.`},schema:[{oneOf:[{type:`string`,description:`Broad setting for unused variables to target.`,enum:[`all`,`local`]},{type:`object`,additionalProperties:!1,properties:{args:{type:`string`,description:`Whether to check all, some, or no arguments.`,enum:[`all`,`after-used`,`none`]},argsIgnorePattern:{type:`string`,description:`Regular expressions of argument names to not check for usage.`},caughtErrors:{type:`string`,description:`Whether to check catch block arguments.`,enum:[`all`,`none`]},caughtErrorsIgnorePattern:{type:`string`,description:`Regular expressions of catch block argument names to not check for usage.`},destructuredArrayIgnorePattern:{type:`string`,description:`Regular expressions of destructured array variable names to not check for usage.`},enableAutofixRemoval:{type:`object`,additionalProperties:!1,description:`Configurable automatic fixes for different types of unused variables.`,properties:{imports:{type:`boolean`,description:`Whether to enable automatic removal of unused imports.`}}},ignoreClassWithStaticInitBlock:{type:`boolean`,description:`Whether to ignore classes with at least one static initialization block.`},ignoreRestSiblings:{type:`boolean`,description:"Whether to ignore sibling properties in `...` destructurings."},ignoreUsingDeclarations:{type:`boolean`,description:`Whether to ignore using or await using declarations.`},reportUsedIgnorePattern:{type:`boolean`,description:`Whether to report variables that match any of the valid ignore pattern options if they have been used.`},vars:{type:`string`,description:`Whether to check all variables or only locally-declared variables.`,enum:[`all`,`local`]},varsIgnorePattern:{type:`string`,description:`Regular expressions of variable names to not check for usage.`}}}]}]},defaultOptions:[{}],create(e,[p]){let m=new Map,h=new Set;function g(t){return e.sourceCode.getDeclaredVariables(t).every(e=>h.has(e))}let _=(t,n)=>{h.add(t);let r=t.references.filter(e=>e.isWrite()&&e.from.variableScope===t.scope.variableScope),i=r.length?r[r.length-1].identifier:t.identifiers[0],{start:a}=i.loc,s=i.name.length,c={start:a,end:{column:a.column+s,line:a.line}},l=(()=>{let{messageId:e,fix:n,useAutofix:r}=(()=>{if(t.defs.length!==1)return{};let{type:e,def:n}=x(t.defs[0]);switch(e){case o.ArrayDestructure:return{};case o.CatchClause:return{};case o.ClassName:return{};case o.FunctionName:return{};case o.ImportBinding:return{...b(n),useAutofix:v.enableAutofixRemoval.imports};case o.ImplicitGlobalVariable:return{};case o.Parameter:return{};case o.TSEnumMember:return{};case o.TSEnumName:return{};case o.TSModuleName:return{};case o.Type:return{};case o.Variable:return{}}})();if(!n)return{};if(r)return{fix:n};let i={varName:t.name};return{suggest:[{messageId:e??`removeUnusedVar`,data:i,fix:n}]}})();e.report({...n,...l,loc:c,node:i})},v=(()=>{let e={args:`after-used`,caughtErrors:`all`,enableAutofixRemoval:{imports:!1},ignoreClassWithStaticInitBlock:!1,ignoreRestSiblings:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1,vars:`all`};return typeof p==`string`?e.vars=p:(e.vars=p.vars??e.vars,e.args=p.args??e.args,e.ignoreRestSiblings=p.ignoreRestSiblings??e.ignoreRestSiblings,e.ignoreUsingDeclarations=p.ignoreUsingDeclarations??e.ignoreUsingDeclarations,e.caughtErrors=p.caughtErrors??e.caughtErrors,e.ignoreClassWithStaticInitBlock=p.ignoreClassWithStaticInitBlock??e.ignoreClassWithStaticInitBlock,e.reportUsedIgnorePattern=p.reportUsedIgnorePattern??e.reportUsedIgnorePattern,p.varsIgnorePattern&&(e.varsIgnorePattern=new RegExp(p.varsIgnorePattern,`u`)),p.argsIgnorePattern&&(e.argsIgnorePattern=new RegExp(p.argsIgnorePattern,`u`)),p.caughtErrorsIgnorePattern&&(e.caughtErrorsIgnorePattern=new RegExp(p.caughtErrorsIgnorePattern,`u`)),p.destructuredArrayIgnorePattern&&(e.destructuredArrayIgnorePattern=new RegExp(p.destructuredArrayIgnorePattern,`u`)),p.enableAutofixRemoval&&p.enableAutofixRemoval.imports!=null&&(e.enableAutofixRemoval.imports=p.enableAutofixRemoval.imports)),e})();function y(t,n){let r=e.sourceCode,{line:i}=n.loc.start,{line:a}=n.loc.end,o=r.getIndexFromLoc({column:0,line:i}),s=a<r.lines.length?r.getIndexFromLoc({column:0,line:a+1}):r.text.length;return r.getText(n)===r.text.slice(o,s).trim()?t.removeRange([o,s]):t.remove(n)}function b(t){switch(t.node.type){case n.AST_NODE_TYPES.TSImportEqualsDeclaration:return{messageId:`removeUnusedImportDeclaration`,fix:e=>y(e,t.node)};case n.AST_NODE_TYPES.ImportDefaultSpecifier:{let n=t.node.parent;return n.specifiers.length===1||g(n)?{messageId:`removeUnusedImportDeclaration`,fix:e=>y(e,n)}:{messageId:`removeUnusedVar`,fix:n=>{let i=(0,r.nullThrows)(e.sourceCode.getTokenAfter(t.node),r.NullThrowsReasons.MissingToken(`,`,`import specifier`));return u(s,i),n.removeRange([Math.min(t.node.range[0],i.range[0]),Math.max(t.node.range[1],i.range[1])])}}}case n.AST_NODE_TYPES.ImportSpecifier:{let r=t.node.parent;return r.specifiers.length===1||g(r)?{messageId:`removeUnusedImportDeclaration`,fix:e=>y(e,r)}:{messageId:`removeUnusedVar`,fix:i=>{if(e.sourceCode.getDeclaredVariables(r).map(e=>{if(h.has(e))return null;let t=e.defs[0].node;return t.type===n.AST_NODE_TYPES.ImportSpecifier?t:null}).filter(e=>e!=null).length===0){let t=u(c,e.sourceCode.getFirstToken(r,c.predicate)),n=u(s,e.sourceCode.getTokenBefore(t)),a=u(l,e.sourceCode.getFirstToken(r,l.predicate));return i.removeRange([n.range[0],a.range[1]])}let a=e.sourceCode.getTokenBefore(t.node),o=a&&s.predicate(a)?a:u(s,e.sourceCode.getTokenAfter(t.node));return i.removeRange([Math.min(t.node.range[0],o.range[0]),Math.max(t.node.range[1],o.range[1])])}}}case n.AST_NODE_TYPES.ImportNamespaceSpecifier:{let e=t.node.parent;return{messageId:`removeUnusedImportDeclaration`,fix:t=>y(t,e)}}}}function x(e){if(v.destructuredArrayIgnorePattern&&e.name.parent.type===n.AST_NODE_TYPES.ArrayPattern)return{type:o.ArrayDestructure,def:e};switch(e.type){case t.DefinitionType.CatchClause:return{type:o.CatchClause,def:e};case t.DefinitionType.ClassName:return{type:o.ClassName,def:e};case t.DefinitionType.FunctionName:return{type:o.FunctionName,def:e};case t.DefinitionType.ImplicitGlobalVariable:return{type:o.ImplicitGlobalVariable,def:e};case t.DefinitionType.ImportBinding:return{type:o.ImportBinding,def:e};case t.DefinitionType.Parameter:return{type:o.Parameter,def:e};case t.DefinitionType.TSEnumName:return{type:o.TSEnumName,def:e};case t.DefinitionType.TSEnumMember:return{type:o.TSEnumMember,def:e};case t.DefinitionType.TSModuleName:return{type:o.TSModuleName,def:e};case t.DefinitionType.Type:return{type:o.Type,def:e};case t.DefinitionType.Variable:return{type:o.Variable,def:e}}}function S(e){switch(e){case o.ArrayDestructure:return{pattern:v.destructuredArrayIgnorePattern?.toString(),variableDescription:`elements of array destructuring`};case o.CatchClause:return{pattern:v.caughtErrorsIgnorePattern?.toString(),variableDescription:`caught errors`};case o.Parameter:return{pattern:v.argsIgnorePattern?.toString(),variableDescription:`args`};default:return{pattern:v.varsIgnorePattern?.toString(),variableDescription:`vars`}}}function C(e){let t=e.defs.at(0),n=``;if(t){let{pattern:e,variableDescription:r}=S(x(t).type);e&&r&&(n=`. Allowed unused ${r} must match ${e}`)}return{action:`defined`,additional:n,varName:e.name}}function w(e){let t=e.defs.at(0),n=``;if(t){let{pattern:e,variableDescription:r}=S(x(t).type);e&&r&&(n=`. Allowed unused ${r} must match ${e}`)}return{action:`assigned a value`,additional:n,varName:e.name}}function T(e,t){let{pattern:n,variableDescription:r}=S(t),i=``;return n&&r&&(i=`. Used ${r} must not match ${n}`),{additional:i,varName:e.name}}function E(){function t(e){return e.type===n.AST_NODE_TYPES.Property&&e.parent.type===n.AST_NODE_TYPES.ObjectPattern&&e.parent.properties[e.parent.properties.length-1].type===n.AST_NODE_TYPES.RestElement}function i(e){if(v.ignoreRestSiblings){let n=e.defs.some(e=>t(e.name.parent)),r=e.references.some(e=>t(e.identifier.parent));return n||r}return!1}function a(t){let n=t.defs[0],r=e.sourceCode.getDeclaredVariables(n.node);return!r.slice(r.indexOf(t)+1).some(e=>e.references.length>0||e.eslintUsed)}let s=(0,r.collectVariables)(e),c=[...Array.from(s.unusedVariables,e=>({used:!1,variable:e})),...Array.from(s.usedVariables,e=>({used:!0,variable:e}))],l=[];for(let{used:e,variable:t}of c){if(t.defs.length===0){e||l.push(t);continue}let s=t.defs[0];if(t.scope.type===n.TSESLint.Scope.ScopeType.global&&v.vars===`local`)continue;let c=t.references.some(e=>e.identifier.parent.type===n.AST_NODE_TYPES.ArrayPattern);if((s.name.parent.type===n.AST_NODE_TYPES.ArrayPattern||c)&&s.name.type===n.AST_NODE_TYPES.Identifier&&v.destructuredArrayIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.ArrayDestructure)});continue}if(s.type===n.TSESLint.Scope.DefinitionType.ClassName){let e=s.node.body.body.some(e=>e.type===n.AST_NODE_TYPES.StaticBlock);if(v.ignoreClassWithStaticInitBlock&&e)continue}if(s.type===n.TSESLint.Scope.DefinitionType.CatchClause){if(v.caughtErrors===`none`)continue;if(v.caughtErrorsIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.CatchClause)});continue}}else if(s.type===n.TSESLint.Scope.DefinitionType.Parameter){if(v.args===`none`)continue;if(s.name.type===n.AST_NODE_TYPES.Identifier&&v.argsIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.Parameter)});continue}if(v.args===`after-used`&&(0,r.isFunction)(s.name.parent)&&!a(t))continue}else if(s.name.type===n.AST_NODE_TYPES.Identifier&&v.varsIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&s.type!==n.TSESLint.Scope.DefinitionType.TSEnumMember&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.Variable)});continue}s.type===n.TSESLint.Scope.DefinitionType.Variable&&v.ignoreUsingDeclarations&&(s.parent.kind===`await using`||s.parent.kind===`using`)||i(t)||t.eslintUsed||e||l.push(t)}return l}return{[O(n.AST_NODE_TYPES.Program)](t){(0,r.isDefinitionFile)(e.filename)&&(D((0,r.nullThrows)(t.parent,r.NullThrowsReasons.MissingParent))||k(t))},[O(`TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock`)](e){D((0,r.nullThrows)(e.parent.parent,r.NullThrowsReasons.MissingParent))||k(e)},[O(`TSModuleDeclaration[declare = true] > TSModuleBlock`)](e){D((0,r.nullThrows)(e.parent.parent,r.NullThrowsReasons.MissingParent))||k(e)},[O(`TSModuleDeclaration > TSModuleBlock`)](t){(0,r.isDefinitionFile)(e.filename)&&(D((0,r.nullThrows)(t.parent.parent,r.NullThrowsReasons.MissingParent))||k(t))},"Program:exit"(n){let o=E();for(let s of o)if(s.defs.length>0){let e=s.references.some(e=>(0,a.referenceContainsTypeQuery)(e.identifier)||(0,i.referenceContainsTypePredicate)(e.identifier)),n=e?`usedOnlyAsType`:`unusedVar`;if(e&&s.defs.some(e=>e.type===t.DefinitionType.ImportBinding))continue;_(s,{messageId:n,data:s.references.some(e=>e.isWrite())?w(s):C(s)})}else if(`eslintExplicitGlobalComments`in s&&s.eslintExplicitGlobalComments){let t=s.eslintExplicitGlobalComments[0];e.report({loc:(0,r.getNameLocationInGlobalDirectiveComment)(e.sourceCode,t,s.name),node:n,messageId:`unusedVar`,data:C(s)})}}};function D(e){return m.get(e)??(d(f(e))?(m.set(e,!0),!0):(m.set(e,!1),!1))}function O(e){return[`${e} > :matches(${[n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSTypeAliasDeclaration].join(`, `)})`,`${e} > :matches(${[n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.TSDeclareFunction,n.AST_NODE_TYPES.TSEnumDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration,n.AST_NODE_TYPES.VariableDeclaration].join(`, `)})`].join(`, `)}function k(t){let r=[];switch(t.type){case n.AST_NODE_TYPES.TSInterfaceDeclaration:case n.AST_NODE_TYPES.TSTypeAliasDeclaration:case n.AST_NODE_TYPES.ClassDeclaration:case n.AST_NODE_TYPES.FunctionDeclaration:case n.AST_NODE_TYPES.TSDeclareFunction:case n.AST_NODE_TYPES.TSEnumDeclaration:case n.AST_NODE_TYPES.TSModuleDeclaration:t.id?.type===n.AST_NODE_TYPES.Identifier&&r.push(t.id);break;case n.AST_NODE_TYPES.VariableDeclaration:for(let e of t.declarations)A(e,e=>{r.push(e)});break}let i=e.sourceCode.getScope(t),a=[n.AST_NODE_TYPES.TSDeclareFunction,n.AST_NODE_TYPES.TSModuleDeclaration].includes(t.type);i.variableScope===i?a&&i.upper&&(i=i.upper):i=i.variableScope;for(let e of r){let t=i.set.get(e.name);t&&(t.eslintUsed=!0)}}function A(e,n){new t.PatternVisitor({},e,n).visit(e)}}});function d(e){for(let t of e)if(t.type===n.AST_NODE_TYPES.ExportNamedDeclaration&&t.declaration==null||t.type===n.AST_NODE_TYPES.ExportAllDeclaration||t.type===n.AST_NODE_TYPES.TSExportAssignment||t.type===n.AST_NODE_TYPES.ExportDefaultDeclaration&&t.declaration.type===n.AST_NODE_TYPES.Identifier)return!0;return!1}function f(e){return e.type===n.AST_NODE_TYPES.Program?e.body:e.body.body}})),BOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=bEe(),a=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/;function o(e){let t=!0,n=!0,r=!0,i=!0,a=!0,o=!0,s=!1;return typeof e==`string`?t=e!==`nofunc`:typeof e==`object`&&e&&(t=e.functions!==!1,n=e.classes!==!1,r=e.enums!==!1,i=e.variables!==!1,a=e.typedefs!==!1,o=e.ignoreTypeReferences!==!1,s=e.allowNamedExports!==!1),{allowNamedExports:s,classes:n,enums:r,functions:t,ignoreTypeReferences:o,typedefs:a,variables:i}}function s(e){return e.defs[0].type===t.DefinitionType.FunctionName}function c(e){return e.defs[0].type===t.DefinitionType.Type}function l(e,n){return e.defs[0].type===t.DefinitionType.TSEnumName&&e.scope.variableScope!==n.from.variableScope}function u(e,n){return e.defs[0].type===t.DefinitionType.ClassName&&e.scope.variableScope!==n.from.variableScope}function d(e,n){return e.defs[0].type===t.DefinitionType.Variable&&e.scope.variableScope!==n.from.variableScope}function f(e){let{identifier:t}=e;return t.parent.type===n.AST_NODE_TYPES.ExportSpecifier&&t.parent.local===t}function p(e){return e.isTypeReference||(0,i.referenceContainsTypeQuery)(e.identifier)}function m(e,t){return!!e&&e.range[0]<=t&&t<=e.range[1]}function h(e,n){if(e.defs[0].type!==t.DefinitionType.ClassName||e.defs[0].node.decorators.length===0)return!1;for(let t of e.defs[0].node.decorators)if(n.identifier.range[0]>=t.range[0]&&n.identifier.range[1]<=t.range[1])return!0;return!1}function g(e,t){if(e.scope!==t.from)return!1;let r=e.identifiers[0].parent,i=t.identifier.range[1];for(;r;){if(r.type===n.AST_NODE_TYPES.VariableDeclarator){if(m(r.init,i)||(r.parent.parent.type===n.AST_NODE_TYPES.ForInStatement||r.parent.parent.type===n.AST_NODE_TYPES.ForOfStatement)&&m(r.parent.parent.right,i))return!0;break}else if(r.type===n.AST_NODE_TYPES.AssignmentPattern){if(m(r.right,i))return!0}else if(a.test(r.type))break;r=r.parent}return!1}e.default=(0,r.createRule)({name:`no-use-before-define`,meta:{type:`problem`,docs:{description:`Disallow the use of variables before they are defined`,extendsBaseRule:!0},messages:{noUseBeforeDefine:`'{{name}}' was used before it was defined.`},schema:[{oneOf:[{type:`string`,description:`Broadly set functions and allowNamedExports to false.`,enum:[`nofunc`]},{type:`object`,additionalProperties:!1,properties:{allowNamedExports:{type:`boolean`,description:`Whether to ignore named exports.`},classes:{type:`boolean`,description:`Whether to ignore references to class declarations.`},enums:{type:`boolean`,description:`Whether to check references to enums.`},functions:{type:`boolean`,description:`Whether to ignore references to function declarations.`},ignoreTypeReferences:{type:`boolean`,description:`Whether to ignore type references, such as in type annotations and assertions.`},typedefs:{type:`boolean`,description:`Whether to check references to types.`},variables:{type:`boolean`,description:`Whether to ignore references to variables.`}}}]}]},defaultOptions:[{allowNamedExports:!1,classes:!0,enums:!0,functions:!0,ignoreTypeReferences:!0,typedefs:!0,variables:!0}],create(e,t){let r=o(t[0]);function i(e,t){return r.ignoreTypeReferences&&p(t)?!1:s(e)?r.functions:u(e,t)?r.classes:d(e,t)?r.variables:l(e,t)?r.enums:c(e)?r.typedefs:!0}function a(e,t){return e.identifiers[0].range[1]<=t.identifier.range[1]&&!(t.isValueReference&&g(e,t))}function m(t){t.references.forEach(t=>{let o=t.resolved;function s(){e.report({node:t.identifier,messageId:`noUseBeforeDefine`,data:{name:t.identifier.name}})}if(!t.init){if(!r.allowNamedExports&&f(t)){(!o||!a(o,t))&&s();return}o&&(o.identifiers.length===0||a(o,t)||!i(o,t)||h(o,t)||t.from.type===n.TSESLint.Scope.ScopeType.functionType||s())}}),t.childScopes.forEach(m)}return{Program(t){m(e.sourceCode.getScope(t))}}}})})),VOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-useless-constructor`);function i(e){switch(e.accessibility){case`protected`:case`private`:return!1;case`public`:if(e.parent.parent.superClass)return!1;break}return!0}function a(e){return!e.value.params.some(e=>e.type===t.AST_NODE_TYPES.TSParameterProperty||e.decorators.length)}e.default=(0,n.createRule)({name:`no-useless-constructor`,meta:{type:`problem`,docs:{description:`Disallow unnecessary constructors`,extendsBaseRule:!0,recommended:`strict`},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:[],create(e){let n=r.create(e);return{MethodDefinition(e){e.value.type===t.AST_NODE_TYPES.FunctionExpression&&i(e)&&a(e)&&n.MethodDefinition(e)}}}})})),HOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-useless-default-assignment`,meta:{type:`suggestion`,docs:{description:`Disallow default values that will never be used`,recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,messages:{noStrictNullCheck:"This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.",preferOptionalSyntax:"Using `= undefined` to make a parameter optional adds unnecessary runtime logic. Use the `?` optional syntax instead.",uselessDefaultAssignment:`Default value is useless because the {{ type }} is not optional.`,uselessUndefined:`Default value is useless because it is undefined. Optional {{ type }}s are already undefined by default.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:{type:`boolean`,description:"Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`."}}}]},defaultOptions:[{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:!1}],create(e,[{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:t}]){let n=(0,s.getParserServices)(e),r=n.program.getTypeChecker(),c=n.program.getCompilerOptions();!a.isStrictCompilerOptionEnabled(c,`strictNullChecks`)&&t!==!0&&e.report({loc:{start:{column:0,line:0},end:{column:0,line:0}},messageId:`noStrictNullCheck`});function l(e){return(0,s.isTypeAnyType)(e)||(0,s.isTypeUnknownType)(e)?!0:a.unionConstituents(e).some(e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.Undefined))}function u(e,t){if(r.isTupleType(e)){let n=r.getTypeArguments(e);if(t<n.length)return n[t]}return e.getNumberIndexType()??null}function d(e){if(e.right.type===i.AST_NODE_TYPES.Identifier&&e.right.name===`undefined`){let t=n.esTreeNodeToTSNodeMap.get(e);if(o.isParameter(t)&&t.type&&l(r.getTypeFromTypeNode(t.type))){v(e);return}_(e,e.parent.type===i.AST_NODE_TYPES.Property||e.parent.type===i.AST_NODE_TYPES.ArrayPattern?`property`:`parameter`);return}let t=e.parent;if(t.type===i.AST_NODE_TYPES.ArrowFunctionExpression||t.type===i.AST_NODE_TYPES.FunctionExpression){let i=t.params.indexOf(e);if(i!==-1){let s=n.esTreeNodeToTSNodeMap.get(t);if(o.isFunctionLike(s)){let t=r.getContextualType(s);if(!t)return;let n=t.getCallSignatures();if(n.length===0||n[0].getDeclaration()===s)return;let c=n[0].getParameters();if(i<c.length){let t=c[i];if(t.valueDeclaration&&o.isParameter(t.valueDeclaration)&&t.valueDeclaration.dotDotDotToken!=null)return;if(!a.isSymbolFlagSet(t,o.SymbolFlags.Optional)){let n=r.getTypeOfSymbol(t);!a.isTypeParameter(n)&&!l(n)&&g(e,`parameter`)}}}}return}if(t.type===i.AST_NODE_TYPES.Property){let n=f(t);if(!n)return;l(n)||g(e,`property`)}else if(t.type===i.AST_NODE_TYPES.ArrayPattern){let n=m(t);if(!n||!r.isTupleType(n))return;let i=r.getTypeArguments(n),a=t.elements.indexOf(e);if(a<0||a>=i.length)return;let o=i[a];l(o)||g(e,`property`)}}function f(e){let t=e.parent,n=m(t);if(!n)return null;let s=h(e.key);if(!s)return null;let c=n.getProperty(s);if(!c)return null;if(a.isSymbolFlagSet(c,o.SymbolFlags.Optional)){let n=t.parent;if(n.type===i.AST_NODE_TYPES.VariableDeclarator&&n.init&&p(t)){let t=h(e.key);if(!t||!b(n.init,t))return null}}return r.getTypeOfSymbol(c)}function p(e){let t=e.parent;return t?t.type===i.AST_NODE_TYPES.VariableDeclarator&&t.init?t.init.type===i.AST_NODE_TYPES.ConditionalExpression||t.init.type===i.AST_NODE_TYPES.LogicalExpression:p(t):!1}function m(e){let t=(0,s.nullThrows)(e.parent,s.NullThrowsReasons.MissingParent);if(t.type===i.AST_NODE_TYPES.VariableDeclarator&&t.init){let e=n.esTreeNodeToTSNodeMap.get(t.init);return r.getTypeAtLocation(e)}if((0,s.isFunction)(t)){let i=t.params.indexOf(e),a=n.esTreeNodeToTSNodeMap.get(t),o=(0,s.nullThrows)(r.getSignatureFromDeclaration(a),s.NullThrowsReasons.MissingToken(`signature`,`function`)),c=o.getParameters();return o.thisParameter&&i--,i<0||i>=c.length?null:r.getTypeOfSymbol(c[i])}if(t.type===i.AST_NODE_TYPES.AssignmentPattern)return m(t);if(t.type===i.AST_NODE_TYPES.Property)return f(t);if(t.type===i.AST_NODE_TYPES.ArrayPattern){let n=m(t);return n?u(n,t.elements.indexOf(e)):null}return null}function h(e){switch(e.type){case i.AST_NODE_TYPES.Identifier:return e.name;case i.AST_NODE_TYPES.Literal:return String(e.value);case i.AST_NODE_TYPES.TemplateLiteral:return e.expressions.length?null:e.quasis[0].value.cooked;default:return null}}function g(t,n){e.report({node:t.right,messageId:`uselessDefaultAssignment`,data:{type:n},fix:e=>y(e,t)})}function _(t,n){e.report({node:t.right,messageId:`uselessUndefined`,data:{type:n},fix:e=>y(e,t)})}function v(t){e.report({node:t.right,messageId:`preferOptionalSyntax`,*fix(e){yield y(e,t);let{left:n}=t;n.type===i.AST_NODE_TYPES.Identifier&&(yield e.insertTextAfterRange([n.range[0],n.range[0]+n.name.length],`?`))}})}function y(e,t){let n=t.left.range[1],r=t.range[1];return e.removeRange([n,r])}function b(e,t){return e.type===i.AST_NODE_TYPES.ObjectExpression&&e.properties.some(e=>e.type===i.AST_NODE_TYPES.Property&&h(e.key)===t)||e.type===i.AST_NODE_TYPES.ConditionalExpression&&b(e.consequent,t)&&b(e.alternate,t)}return{AssignmentPattern:d}}})})),UOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();function r(e){return e.type===t.AST_NODE_TYPES.ExportNamedDeclaration&&e.specifiers.length===0&&!e.declaration}let i=new Set([t.AST_NODE_TYPES.ExportAllDeclaration,t.AST_NODE_TYPES.ExportDefaultDeclaration,t.AST_NODE_TYPES.ExportNamedDeclaration,t.AST_NODE_TYPES.ExportSpecifier,t.AST_NODE_TYPES.ImportDeclaration,t.AST_NODE_TYPES.TSExportAssignment,t.AST_NODE_TYPES.TSImportEqualsDeclaration]);e.default=(0,n.createRule)({name:`no-useless-empty-export`,meta:{type:`suggestion`,docs:{description:`Disallow empty exports that don't change anything in a module file`},fixable:`code`,hasSuggestions:!1,messages:{uselessExport:`Empty export does nothing and can be removed.`},schema:[]},defaultOptions:[],create(e){if((0,n.isDefinitionFile)(e.filename))return{};function t(t){if(!Array.isArray(t.body))return;let n=[],a=!1;for(let e of t.body)r(e)?n.push(e):i.has(e.type)&&(a=!0);if(a)for(let t of n)e.report({node:t,messageId:`uselessExport`,fix:e=>e.remove(t)})}return{Program:t,TSModuleDeclaration:t}}})})),z7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-var-requires`,meta:{type:`problem`,deprecated:{deprecatedSince:`8.0.0`,replacedBy:[{rule:{name:`@typescript-eslint/no-require-imports`,url:`https://typescript-eslint.io/rules/no-require-imports`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/8334`},docs:{description:"Disallow `require` statements except in import statements"},messages:{noVarReqs:`Require statement not part of import statement.`},replacedBy:[`@typescript-eslint/no-require-imports`],schema:[{type:`object`,additionalProperties:!1,properties:{allow:{type:`array`,description:`Patterns of import paths to allow requiring from.`,items:{type:`string`}}}}]},defaultOptions:[{allow:[]}],create(e,r){let i=r[0].allow.map(e=>new RegExp(e,`u`));function a(e){return i.some(t=>e.match(t))}function o(e){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value==`string`||e.type===t.AST_NODE_TYPES.TemplateLiteral}return{'CallExpression[callee.name="require"]'(r){if(r.arguments[0]&&o(r.arguments[0])){let e=(0,n.getStaticStringValue)(r.arguments[0]);if(typeof e==`string`&&a(e))return}let i=r.parent.type===t.AST_NODE_TYPES.ChainExpression?r.parent.parent:r.parent;[t.AST_NODE_TYPES.CallExpression,t.AST_NODE_TYPES.MemberExpression,t.AST_NODE_TYPES.NewExpression,t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion,t.AST_NODE_TYPES.VariableDeclarator].includes(i.type)&&(t.ASTUtils.findVariable(e.sourceCode.getScope(r),`require`)?.identifiers.length||e.report({node:r,messageId:`noVarReqs`}))}}}})})),B7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=new Set([`BigInt`,`Boolean`,`Number`,`Object`,`String`,`Symbol`]);e.default=(0,n.createRule)({name:`no-wrapper-object-types`,meta:{type:`problem`,docs:{description:`Disallow using confusing built-in primitive class wrappers`,recommended:`recommended`},fixable:`code`,messages:{bannedClassType:"Prefer using the primitive `{{preferred}}` as a type name, rather than the upper-cased `{{typeName}}`."},schema:[]},defaultOptions:[],create(e){function i(i,a){let o=i.type===t.AST_NODE_TYPES.Identifier&&i.name;if(!o||!r.has(o)||!(0,n.isReferenceToGlobalFunction)(o,i,e.sourceCode))return;let s=o.toLowerCase();e.report({node:i,messageId:`bannedClassType`,data:{preferred:s,typeName:o},fix:a?e=>e.replaceText(i,s):void 0})}return{TSClassImplements(e){i(e.expression,!1)},TSInterfaceHeritage(e){i(e.expression,!1)},TSTypeReference(e){i(e.typeName,!0)}}}})})),V7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`non-nullable-type-assertion-style`,meta:{type:`suggestion`,docs:{description:`Enforce non-null assertions over explicit type assertions`,recommended:`stylistic`,requiresTypeChecking:!0},fixable:`code`,messages:{preferNonNullAssertion:`Use a ! assertion to more succinctly remove null and undefined from the type.`},schema:[]},defaultOptions:[],create(e){let t=(0,s.getParserServices)(e),n=e=>{let n=t.getTypeAtLocation(e);if(!a.isTypeFlagSet(n,o.TypeFlags.Any|o.TypeFlags.Unknown))return a.unionConstituents(n)},r=e=>{if(a.isTypeFlagSet(e,o.TypeFlags.TypeParameter)){let t=e.getConstraint();return t==null||r(t)}if(a.isUnionType(e)){for(let t of e.types)if(r(t))return!0;return!1}return a.isTypeFlagSet(e,o.TypeFlags.Null|o.TypeFlags.Undefined)},c=(e,t)=>{let n=t.filter(e=>!a.isTypeFlagSet(e,o.TypeFlags.Null|o.TypeFlags.Undefined));if(n.length===t.length)return!1;for(let t of e)if(r(t)||!n.includes(t))return!1;for(let t of n)if(!e.includes(t))return!1;return!0},l=e=>e.typeAnnotation.type===i.AST_NODE_TYPES.TSTypeReference&&e.typeAnnotation.typeName.type===i.AST_NODE_TYPES.Identifier&&e.typeAnnotation.typeName.name===`const`;return{"TSAsExpression, TSTypeAssertion"(r){if(l(r))return;let i=n(r.expression);if(!i)return;let a=n(r.typeAnnotation);if(a&&c(a,i)){let n=e.sourceCode.getText(r.expression),i=(0,s.getOperatorPrecedence)(t.esTreeNodeToTSNodeMap.get(r.expression).kind,o.SyntaxKind.Unknown)>s.OperatorPrecedence.Unary;e.report({node:r,messageId:`preferNonNullAssertion`,fix(e){return e.replaceText(r,i?`${n}!`:`(${n})!`)}})}}}}})})),WOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=g8(),s=r(U6()),c=_7(),l=M7();e.default=(0,c.createRule)({name:`only-throw-error`,meta:{type:`problem`,docs:{description:"Disallow throwing non-`Error` values as exceptions",extendsBaseRule:`no-throw-literal`,recommended:`recommended`,requiresTypeChecking:!0},messages:{object:`Expected an error object to be thrown.`,undef:`Do not throw undefined.`},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...c.typeOrValueSpecifiersSchema,description:`Type specifiers that can be thrown.`},allowRethrowing:{type:`boolean`,description:"Whether to allow rethrowing caught values that are not `Error` objects."},allowThrowingAny:{type:`boolean`,description:"Whether to always allow throwing values typed as `any`."},allowThrowingUnknown:{type:`boolean`,description:"Whether to always allow throwing values typed as `unknown`."}}}]},defaultOptions:[{allow:[],allowRethrowing:!0,allowThrowingAny:!0,allowThrowingUnknown:!0}],create(e,[t]){let n=(0,c.getParserServices)(e),r=t.allow;function u(t){if(t.type!==i.AST_NODE_TYPES.Identifier)return!1;let r=e.sourceCode.getScope(t),a=(0,c.nullThrows)((0,c.findVariable)(r,t),`Variable ${t.name} should exist in scope manager`);if(a.defs.filter(e=>e.isVariableDefinition).length!==1)return!1;let s=a.defs[0];if(s.node.type===i.AST_NODE_TYPES.CatchClause)return!0;if(s.node.type===i.AST_NODE_TYPES.ArrowFunctionExpression&&s.node.params.length>=1&&s.node.params[0]===s.name&&s.node.parent.type===i.AST_NODE_TYPES.CallExpression){let t=s.node.parent,r=(0,l.parseCatchCall)(t,e)??(0,l.parseThenCall)(t,e);if(r!=null){let{object:e,onRejected:t}=r;if(t===s.node){let t=n.esTreeNodeToTSNodeMap.get(e);if((0,o.isThenableType)(n.program.getTypeChecker(),t))return!0}}}return!1}function d(i){if(t.allowRethrowing&&u(i))return;let o=n.getTypeAtLocation(i);if(!(0,c.typeMatchesSomeSpecifier)(o,r,n.program)){if(a.isTypeFlagSet(o,s.TypeFlags.Undefined)){e.report({node:i,messageId:`undef`});return}t.allowThrowingAny&&(0,c.isTypeAnyType)(o)||t.allowThrowingUnknown&&(0,c.isTypeUnknownType)(o)||(0,c.isErrorLike)(n.program,o)||e.report({node:i,messageId:`object`})}}return{ThrowStatement(e){d(e.argument)}}}})})),H7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`parameter-properties`,meta:{type:`problem`,docs:{description:`Require or disallow parameter properties in class constructors`},messages:{preferClassProperty:`Property {{parameter}} should be declared as a class property.`,preferParameterProperty:`Property {{parameter}} should be declared as a parameter property.`},schema:[{type:`object`,$defs:{modifier:{type:`string`,enum:[`readonly`,`private`,`protected`,`public`,`private readonly`,`protected readonly`,`public readonly`]}},additionalProperties:!1,properties:{allow:{type:`array`,description:`Whether to allow certain kinds of properties to be ignored.`,items:{$ref:`#/items/0/$defs/modifier`}},prefer:{type:`string`,description:`Whether to prefer class properties or parameter properties.`,enum:[`class-property`,`parameter-property`]}}}]},defaultOptions:[{allow:[],prefer:`class-property`}],create(e,[{allow:r=[],prefer:i=`class-property`}]){function a(e){let t=[];return e.accessibility&&t.push(e.accessibility),e.readonly&&t.push(`readonly`),t.filter(Boolean).join(` `)}if(i===`class-property`)return{TSParameterProperty(n){let i=a(n);if(!r.includes(i)){let r=n.parameter.type===t.AST_NODE_TYPES.Identifier?n.parameter.name:n.parameter.left.name;e.report({node:n,messageId:`preferClassProperty`,data:{parameter:r}})}}};let o=[];function s(e){let t=o[o.length-1],n=t.get(e);if(n)return n;let r={};return t.set(e,r),r}function c(t,n){return!t.typeAnnotation||!n.typeAnnotation?t.typeAnnotation===n.typeAnnotation:e.sourceCode.getText(t.typeAnnotation)===e.sourceCode.getText(n.typeAnnotation)}return{":matches(ClassDeclaration, ClassExpression):exit"(){let t=(0,n.nullThrows)(o.pop(),`Stack should exist on class exit`);for(let[n,r]of t)r.classProperty&&r.constructorAssignment&&r.constructorParameter&&c(r.classProperty,r.constructorParameter)&&e.report({node:r.classProperty,messageId:`preferParameterProperty`,data:{parameter:n}})},ClassBody(e){for(let n of e.body)n.type===t.AST_NODE_TYPES.PropertyDefinition&&n.key.type===t.AST_NODE_TYPES.Identifier&&!n.value&&!r.includes(a(n))&&(s(n.key.name).classProperty=n)},"ClassDeclaration, ClassExpression"(){o.push(new Map)},'MethodDefinition[kind="constructor"]'(e){for(let n of e.value.params)n.type===t.AST_NODE_TYPES.Identifier&&(s(n.name).constructorParameter=n);for(let n of e.value.body?.body??[]){if(n.type!==t.AST_NODE_TYPES.ExpressionStatement||n.expression.type!==t.AST_NODE_TYPES.AssignmentExpression||n.expression.left.type!==t.AST_NODE_TYPES.MemberExpression||n.expression.left.object.type!==t.AST_NODE_TYPES.ThisExpression||n.expression.left.property.type!==t.AST_NODE_TYPES.Identifier||n.expression.right.type!==t.AST_NODE_TYPES.Identifier)break;s(n.expression.right.name).constructorAssignment=n.expression}}}}})})),U7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`prefer-as-const`,meta:{type:`suggestion`,docs:{description:"Enforce the use of `as const` over literal type",recommended:`recommended`},fixable:`code`,hasSuggestions:!0,messages:{preferConstAssertion:"Expected a `const` instead of a literal type assertion.",variableConstAssertion:"Expected a `const` assertion instead of a literal type annotation.",variableSuggest:"You should use `as const` instead of type annotation."},schema:[]},defaultOptions:[],create(e){function n(n,r,i){n.type===t.AST_NODE_TYPES.Literal&&r.type===t.AST_NODE_TYPES.TSLiteralType&&r.literal.type===t.AST_NODE_TYPES.Literal&&n.raw===r.literal.raw&&(i?e.report({node:r,messageId:`preferConstAssertion`,fix:e=>e.replaceText(r,`const`)}):e.report({node:r,messageId:`variableConstAssertion`,suggest:[{messageId:`variableSuggest`,fix:e=>[e.remove(r.parent),e.insertTextAfter(n,` as const`)]}]}))}return{PropertyDefinition(e){e.value&&e.typeAnnotation&&n(e.value,e.typeAnnotation.typeAnnotation,!1)},TSAsExpression(e){n(e.expression,e.typeAnnotation,!0)},TSTypeAssertion(e){n(e.expression,e.typeAnnotation,!0)},VariableDeclarator(e){e.init&&e.id.typeAnnotation&&n(e.init,e.id.typeAnnotation.typeAnnotation,!1)}}}})})),GOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7(),s=(0,x7().getESLintCoreRule)(`prefer-destructuring`),c={type:`object`,additionalProperties:!1,properties:{array:{type:`boolean`},object:{type:`boolean`}}},l=[{oneOf:[{type:`object`,additionalProperties:!1,properties:{AssignmentExpression:c,VariableDeclarator:c}},c]},{type:`object`,additionalProperties:!1,properties:{enforceForDeclarationWithTypeAnnotation:{type:`boolean`,description:`Whether to enforce destructuring on variable declarations with type annotations.`},enforceForRenamedProperties:{type:`boolean`,description:`Whether to enforce destructuring that use a different variable name than the property name.`}}}];e.default=(0,o.createRule)({name:`prefer-destructuring`,meta:{type:`suggestion`,docs:{description:`Require destructuring from arrays and/or objects`,extendsBaseRule:!0,frozen:!0,requiresTypeChecking:!0},fixable:s.meta.fixable,hasSuggestions:s.meta.hasSuggestions,messages:s.meta.messages,schema:l},defaultOptions:[{AssignmentExpression:{array:!0,object:!0},VariableDeclarator:{array:!0,object:!0}},{}],create(e,[t,n]){let{enforceForDeclarationWithTypeAnnotation:r=!1,enforceForRenamedProperties:a=!1}=n,{esTreeNodeToTSNodeMap:c,program:l}=(0,o.getParserServices)(e),p=l.getTypeChecker(),m=s.create(e),h=null;return{AssignmentExpression(e){e.operator===`=`&&g(e.left,e.right,e)},VariableDeclarator(e){g(e.id,e.init,e)}};function g(t,n,o){let s=t.type===i.AST_NODE_TYPES.Identifier&&t.typeAnnotation==null?m:v();if(!((t.type===i.AST_NODE_TYPES.ArrayPattern||t.type===i.AST_NODE_TYPES.Identifier||t.type===i.AST_NODE_TYPES.ObjectPattern)&&t.typeAnnotation!=null&&!r)){if(n!=null&&f(n)&&n.object.type!==i.AST_NODE_TYPES.Super){let t=c.get(n.object);if(!d(p.getTypeAtLocation(t),p)){if(!a||!_(o.type,`object`))return;e.report({node:o,messageId:`preferDestructuring`,data:{type:`object`}});return}}o.type===i.AST_NODE_TYPES.AssignmentExpression?s.AssignmentExpression(o):s.VariableDeclarator(o)}}function _(e,n){return`object`in t||`array`in t?t[n]:t[e][n]}function v(){return h??=s.create(u(e)),h}}});function u(e){return new Proxy({report:t=>{e.report({...t,fix:void 0})}},{get(t,n,r){return Reflect.get(n===`report`?t:e,n,r)}})}function d(e,t){return(0,o.isTypeAnyType)(e)?!0:e.isUnion()?e.types.every(e=>d(e,t)):a.getWellKnownSymbolPropertyOfType(e,`iterator`,t)!=null}function f(e){return e.type!==i.AST_NODE_TYPES.MemberExpression||e.property.type!==i.AST_NODE_TYPES.Literal?!1:Number.isInteger(e.property.value)}})),W7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(0,_7().createRule)({name:`prefer-enum-initializers`,meta:{type:`suggestion`,docs:{description:`Require each enum member value to be explicitly initialized`},hasSuggestions:!0,messages:{defineInitializer:`The value of the member '{{ name }}' should be explicitly defined.`,defineInitializerSuggestion:`Can be fixed to {{ name }} = {{ suggested }}`},schema:[]},defaultOptions:[],create(e){function t(t){let{members:n}=t.body;n.forEach((t,n)=>{if(t.initializer==null){let r=e.sourceCode.getText(t);e.report({node:t,messageId:`defineInitializer`,data:{name:r},suggest:[{messageId:`defineInitializerSuggestion`,data:{name:r,suggested:n},fix:e=>e.replaceText(t,`${r} = ${n}`)},{messageId:`defineInitializerSuggestion`,data:{name:r,suggested:n+1},fix:e=>e.replaceText(t,`${r} = ${n+1}`)},{messageId:`defineInitializerSuggestion`,data:{name:r,suggested:`'${r}'`},fix:e=>e.replaceText(t,`${r} = '${r}'`)}]})}})}return{TSEnumDeclaration:t}}})})),KOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7();e.default=(0,o.createRule)({name:`prefer-find`,meta:{type:`suggestion`,docs:{description:`Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result`,recommended:`stylistic`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{preferFind:`Prefer .find(...) instead of .filter(...)[0].`,preferFindSuggestion:`Use .find(...) instead of .filter(...)[0].`},schema:[]},defaultOptions:[],create(e){let t=e.sourceCode.getScope(e.sourceCode.ast),n=(0,o.getParserServices)(e),r=n.program.getTypeChecker();function s(t){let r=(0,o.skipChainExpression)(t);if(r.type===i.AST_NODE_TYPES.SequenceExpression)return s((0,o.nullThrows)(r.expressions.at(-1),`Expected to have more than zero expressions in a sequence expression`));if(r.type===i.AST_NODE_TYPES.ConditionalExpression){let e=s(r.consequent);if(e.length===0)return[];let t=s(r.alternate);return t.length===0?[]:[...e,...t]}if(r.type===i.AST_NODE_TYPES.CallExpression&&!r.optional){let t=r.callee;if(t.type===i.AST_NODE_TYPES.MemberExpression){let r=t.computed;if((0,o.isStaticMemberAccessOfValue)(t,e,`filter`)){let e=t.property;if(c((0,o.getConstrainedTypeAtLocation)(n,t.object)))return[{filterNode:e,isBracketSyntaxForFilter:r}]}}}return[]}function c(e){let t=!1;for(let n of a.unionConstituents(e))if(!(a.isIntrinsicNullType(n)||a.isIntrinsicUndefinedType(n))){if(!a.intersectionConstituents(n).every(e=>r.isArrayType(e)||r.isTupleType(e)))return!1;t=!0}return t}function l(n){if(n.arguments.length!==1)return;let r=n.callee;if(r.type===i.AST_NODE_TYPES.MemberExpression&&!r.optional&&(0,o.isStaticMemberAccessOfValue)(r,e,`at`)){let e=(0,o.getStaticValue)(n.arguments[0],t);if(e!=null&&u(e.value))return r.object}}function u(e){if(typeof e==`symbol`)return!1;let t=Number(e);return isNaN(t)?!0:Math.trunc(t)===0}function d(e){let n=(0,o.getStaticValue)(e.property,t);return!e.optional&&n!=null&&f(n.value)}function f(e){return String(e)===`0`}function p(t,n,r){let i=(0,o.nullThrows)(e.sourceCode.getTokenAfter(n,e=>e.value===`.`||e.value===`[`),`Expected to find a member access token!`);return t.removeRange([i.range[0],r.range[1]])}function m(e,t){return e.replaceText(t.filterNode,t.isBracketSyntaxForFilter?`"find"`:`find`)}return{CallExpression(t){let n=l(t);if(n){let r=s(n);r.length!==0&&e.report({node:t,messageId:`preferFind`,suggest:[{messageId:`preferFindSuggestion`,fix:e=>[...r.map(t=>m(e,t)),p(e,n,t)]}]})}},"MemberExpression[computed=true]"(t){if(d(t)){let n=t.object,r=s(n);r.length!==0&&e.report({node:t,messageId:`preferFind`,suggest:[{messageId:`preferFindSuggestion`,fix:e=>[...r.map(t=>m(e,t)),p(e,n,t)]}]})}}}}})})),qOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`prefer-for-of`,meta:{type:`suggestion`,docs:{description:"Enforce the use of `for-of` loop over the standard `for` loop where possible",recommended:`stylistic`},messages:{preferForOf:"Expected a `for-of` loop instead of a `for` loop with this simple iteration."},schema:[]},defaultOptions:[],create(e){function r(e){return e?.type===t.AST_NODE_TYPES.VariableDeclaration&&e.kind!==`const`&&e.declarations.length===1}function i(e,n){return e.type===t.AST_NODE_TYPES.Literal&&e.value===n}function a(e){return e.init!=null&&i(e.init,0)}function o(e,n){return e.type===t.AST_NODE_TYPES.Identifier&&e.name===n}function s(e,n){return e?.type===t.AST_NODE_TYPES.BinaryExpression&&e.operator===`<`&&o(e.left,n)&&e.right.type===t.AST_NODE_TYPES.MemberExpression&&o(e.right.property,`length`)?e.right.object:null}function c(e,n){if(!e)return!1;switch(e.type){case t.AST_NODE_TYPES.UpdateExpression:return e.operator===`++`&&o(e.argument,n);case t.AST_NODE_TYPES.AssignmentExpression:if(o(e.left,n)){if(e.operator===`+=`)return i(e.right,1);if(e.operator===`=`){let r=e.right;return r.type===t.AST_NODE_TYPES.BinaryExpression&&r.operator===`+`&&(o(r.left,n)&&i(r.right,1)||i(r.left,1)&&o(r.right,n))}}}return!1}function l(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[1]}function u(r,i,a){let o=e.sourceCode.getText(a);return i.references.every(i=>{let a=i.identifier,s=a.parent;return!l(r,a)||s.type===t.AST_NODE_TYPES.MemberExpression&&s.object.type!==t.AST_NODE_TYPES.ThisExpression&&s.property===a&&e.sourceCode.getText(s.object)===o&&!(0,n.isAssignee)(s)})}return{"ForStatement:exit"(n){if(!r(n.init))return;let i=n.init.declarations[0];if(!i||!a(i)||i.id.type!==t.AST_NODE_TYPES.Identifier)return;let o=i.id.name,l=s(n.test,o);if(!l)return;let[d]=e.sourceCode.getDeclaredVariables(n.init);c(n.update,o)&&u(n.body,d,l)&&e.report({node:n,messageId:`preferForOf`})}}}})})),JOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.phrases=void 0;let t=P8(),n=_7();e.phrases={[t.AST_NODE_TYPES.TSInterfaceDeclaration]:`Interface`,[t.AST_NODE_TYPES.TSTypeLiteral]:`Type literal`},e.default=(0,n.createRule)({name:`prefer-function-type`,meta:{type:`suggestion`,docs:{description:`Enforce using function types instead of interfaces with call signatures`,recommended:`stylistic`},fixable:`code`,messages:{functionTypeOverCallableType:`{{ literalOrInterface }} only has a call signature, you should use a function type instead.`,unexpectedThisOnFunctionOnlyInterface:"`this` refers to the function type '{{ interfaceName }}', did you intend to use a generic `this` parameter like `<Self>(this: Self, ...) => Self` instead?"},schema:[]},defaultOptions:[],create(n){function r(e){if(e.extends.length===0)return!1;if(e.extends.length!==1)return!0;let n=e.extends[0].expression;return n.type!==t.AST_NODE_TYPES.Identifier||n.name!==`Function`}function i(e){if(!e)return!1;switch(e.type){case t.AST_NODE_TYPES.TSUnionType:case t.AST_NODE_TYPES.TSIntersectionType:case t.AST_NODE_TYPES.TSArrayType:return!0;default:return!1}}function a(r,a,o=null){if((r.type===t.AST_NODE_TYPES.TSCallSignatureDeclaration||r.type===t.AST_NODE_TYPES.TSConstructSignatureDeclaration)&&r.returnType!=null){if(o?.length&&a.type===t.AST_NODE_TYPES.TSInterfaceDeclaration){n.report({node:o[0],messageId:`unexpectedThisOnFunctionOnlyInterface`,data:{interfaceName:a.id.name}});return}let s=a.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration?null:e=>{let o=[],s=r.range[0],c=r.returnType.range[0]-s,l=n.sourceCode.getText().slice(s,r.range[1]),u=[...n.sourceCode.getCommentsBefore(r),...n.sourceCode.getCommentsAfter(r)],d=`${l.slice(0,c)} =>${l.slice(c+1)}`,f=d.endsWith(`;`)?`;`:``;f&&(d=d.slice(0,-1)),i(a.parent)&&(d=`(${d})`),a.type===t.AST_NODE_TYPES.TSInterfaceDeclaration&&(d=a.typeParameters==null?`type ${a.id.name} = ${d}${f}`:`type ${n.sourceCode.getText().slice(a.id.range[0],a.typeParameters.range[1])} = ${d}${f}`);let p=a.parent.type===t.AST_NODE_TYPES.ExportNamedDeclaration;if(a.type===t.AST_NODE_TYPES.TSInterfaceDeclaration&&p){let n=u.map(({type:e,value:n})=>e===t.AST_TOKEN_TYPES.Line?`//${n}\n`:`/*${n}*/\n`).join(``);o.push(e.insertTextBefore(a.parent,n))}else u.forEach(e=>{let n=e.type===t.AST_TOKEN_TYPES.Line?`//${e.value}`:`/*${e.value}*/`;e.loc.start.line===r.loc.start.line?n+=` `:n+=`
|
|
1097
|
+
`)},schema:[]},defaultOptions:[],create(e){let t=(0,o.getParserServices)(e),n=t.program.getTypeChecker(),r=t.program.getCompilerOptions(),c=i.isStrictCompilerOptionEnabled(r,`noImplicitThis`);function l(r,l=r){let u=t.esTreeNodeToTSNodeMap.get(r),d=n.getTypeAtLocation(u),f=(0,o.discriminateAnyType)(d,n,t.program,u),p=(0,s.getParentFunctionNode)(r);if(!p)return;let m=t.getTypeAtLocation(r),h=(0,o.getConstrainedTypeAtLocation)(t,r),g=t.esTreeNodeToTSNodeMap.get(p),_=a.isFunctionExpression(g)||a.isArrowFunction(g)?(0,o.getContextualType)(n,g):t.getTypeAtLocation(p);_??=t.getTypeAtLocation(p);let v=i.getCallSignaturesOfType(_);if(g.type)for(let e of v){let t=e.getReturnType();if(m===t||(0,o.isTypeFlagSet)(t,a.TypeFlags.Any|a.TypeFlags.Unknown))return;if(p.async){let e=n.getAwaitedType(t);if(n.getAwaitedType(m)===e||e&&(0,o.isTypeFlagSet)(e,a.TypeFlags.Any|a.TypeFlags.Unknown))return}}if(f!==o.AnyType.Safe){for(let e of v){let t=e.getReturnType();if(f===o.AnyType.Any&&(0,o.isTypeUnknownType)(t)||f===o.AnyType.AnyArray&&(0,o.isTypeUnknownArrayType)(t,n))return;let r=n.getAwaitedType(t);if(r&&f===o.AnyType.PromiseAny&&(0,o.isTypeUnknownType)(r))return}if(f===o.AnyType.PromiseAny&&!p.async)return;let a=`unsafeReturn`,s=i.isIntrinsicErrorType(h);if(!c){let e=(0,o.getThisExpression)(r);e&&(0,o.isTypeAnyType)((0,o.getConstrainedTypeAtLocation)(t,e))&&(a=`unsafeReturnThis`)}return e.report({node:l,messageId:a,data:{type:s?`error`:f===o.AnyType.Any?"`any`":f===o.AnyType.PromiseAny?"`Promise<any>`":"`any[]`"}})}let y=_.getCallSignatures().at(0);if(y){let t=y.getReturnType(),i=(0,o.isUnsafeAssignment)(m,t,n,r);if(!i)return;let{receiver:a,sender:s}=i;return e.report({node:l,messageId:`unsafeReturnAssignment`,data:{receiver:n.typeToString(a),sender:n.typeToString(s)}})}}return{"ArrowFunctionExpression > :not(BlockStatement).body":l,ReturnStatement(e){let t=e.argument;t&&l(t,e)}}}})})),NOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=_7();e.default=(0,o.createRule)({name:`no-unsafe-type-assertion`,meta:{type:`problem`,docs:{description:`Disallow type assertions that narrow a type`,requiresTypeChecking:!0},messages:{unsafeOfAnyTypeAssertion:`Unsafe assertion from {{type}} detected: consider using type guards or a safer assertion.`,unsafeToAnyTypeAssertion:`Unsafe assertion to {{type}} detected: consider using a more specific type to ensure safety.`,unsafeToUnconstrainedTypeAssertion:`Unsafe type assertion: '{{type}}' could be instantiated with an arbitrary type which could be unrelated to the original type.`,unsafeTypeAssertion:`Unsafe type assertion: type '{{type}}' is more narrow than the original type.`,unsafeTypeAssertionAssignableToConstraint:`Unsafe type assertion: the original type is assignable to the constraint of type '{{type}}', but '{{type}}' could be instantiated with a different subtype of its constraint.`},schema:[]},defaultOptions:[],create(e){let t=(0,o.getParserServices)(e),n=t.program.getTypeChecker();function r(e){return i.isIntrinsicErrorType(e)?`error typed`:"`any`"}function s(e){return i.isObjectType(e)&&i.isObjectFlagSet(e,a.ObjectFlags.ObjectLiteral)}function c(a){let c=t.getTypeAtLocation(a.expression),l=t.getTypeAtLocation(a.typeAnnotation);if(c===l)return;if((0,o.isTypeAnyType)(l)&&(0,o.isTypeUnknownType)(c)){e.report({node:a,messageId:`unsafeToAnyTypeAssertion`,data:{type:"`any`"}});return}let u=(0,o.isUnsafeAssignment)(c,l,n,a.expression);if(u){e.report({node:a,messageId:`unsafeOfAnyTypeAssertion`,data:{type:r(u.sender)}});return}let d=(0,o.isUnsafeAssignment)(l,c,n,a.typeAnnotation);if(d){e.report({node:a,messageId:`unsafeToAnyTypeAssertion`,data:{type:r(d.sender)}});return}let f=s(c)?n.getWidenedType(c):c,p;try{p=n.isTypeAssignableTo(f,l)}catch{return}if(!p){if(i.isTypeParameter(l)){let t=n.getBaseConstraintOfType(l);if(!t){e.report({node:a,messageId:`unsafeToUnconstrainedTypeAssertion`,data:{type:n.typeToString(l)}});return}if(n.isTypeAssignableTo(f,t)){e.report({node:a,messageId:`unsafeTypeAssertionAssignableToConstraint`,data:{type:n.typeToString(l)}});return}}e.report({node:a,messageId:`unsafeTypeAssertion`,data:{type:n.typeToString(l)}})}}return{"TSAsExpression, TSTypeAssertion"(e){c(e)}}}})})),POe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=r(U6()),o=r(_7());e.default=o.createRule({name:`no-unsafe-unary-minus`,meta:{type:`problem`,docs:{description:`Require unary negation to take a number`,recommended:`recommended`,requiresTypeChecking:!0},messages:{unaryMinus:`Argument of unary negation should be assignable to number | bigint but is {{type}} instead.`},schema:[]},defaultOptions:[],create(e){return{UnaryExpression(t){if(t.operator!==`-`)return;let n=o.getParserServices(e),r=o.getConstrainedTypeAtLocation(n,t.argument),s=n.program.getTypeChecker();i.unionConstituents(r).some(e=>!i.isTypeFlagSet(e,a.TypeFlags.Any|a.TypeFlags.Never|a.TypeFlags.BigIntLike|a.TypeFlags.NumberLike))&&e.report({node:t,messageId:`unaryMinus`,data:{type:s.typeToString(r)}})}}}})})),FOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-unused-expressions`),i=[{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}];e.default=(0,n.createRule)({name:`no-unused-expressions`,meta:{type:`suggestion`,defaultOptions:i,docs:{description:`Disallow unused expressions`,extendsBaseRule:!0,recommended:`recommended`},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:i,create(e,[{allowShortCircuit:n=!1,allowTernary:i=!1}]){let a=r.create(e);function o(e){return n&&e.type===t.AST_NODE_TYPES.LogicalExpression?o(e.right):i&&e.type===t.AST_NODE_TYPES.ConditionalExpression?o(e.alternate)&&o(e.consequent):e.type===t.AST_NODE_TYPES.ChainExpression&&e.expression.type===t.AST_NODE_TYPES.CallExpression||e.type===t.AST_NODE_TYPES.ImportExpression}return{ExpressionStatement(e){if(e.directive||o(e.expression))return;let n=e.expression.type;if(n===t.TSESTree.AST_NODE_TYPES.TSInstantiationExpression||n===t.TSESTree.AST_NODE_TYPES.TSAsExpression||n===t.TSESTree.AST_NODE_TYPES.TSNonNullExpression||n===t.TSESTree.AST_NODE_TYPES.TSTypeAssertion){a.ExpressionStatement({...e,expression:e.expression.expression});return}a.ExpressionStatement(e)}}}})})),IOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publicKey=t,e.privateKey=n;function t(e){return e}function n(e){return`#private@@${e.name}`}})),LOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extractNameForMember=a,e.extractNameForMemberExpression=o;let t=P8(),n=IOe();function r(e){if(e.type===t.AST_NODE_TYPES.Literal){let t=e.value?.toString()??`null`;return{codeName:t,key:(0,n.publicKey)(t),nameNode:e}}if(e.type===t.AST_NODE_TYPES.TemplateLiteral&&e.expressions.length===0){let t=e.quasis[0].value.raw;return{codeName:t,key:(0,n.publicKey)(t),nameNode:e}}return null}function i(e){let r=e.name;return e.type===t.AST_NODE_TYPES.PrivateIdentifier?{codeName:`#${r}`,key:(0,n.privateKey)(e),nameNode:e}:{codeName:r,key:(0,n.publicKey)(r),nameNode:e}}function a(e){return e.type===t.AST_NODE_TYPES.TSParameterProperty?i(e.parameter.type===t.AST_NODE_TYPES.Identifier?e.parameter:e.parameter.left):e.computed||e.key.type===t.AST_NODE_TYPES.Literal?r(e.key):i(e.key)}function o(e){return e.computed?r(e.property):i(e.property)}})),ROe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Member=void 0,e.analyzeClassMemberUsage=f;let t=z6(),n=P8(),r=_7(),i=LOe(),a=IOe();var o=class e{node;key;name;nameNode;writeCount=0;readCount=0;constructor(e,t,n,r){this.node=e,this.key=t,this.name=n,this.nameNode=r}static create(t){let n=(0,i.extractNameForMember)(t);return n==null?null:new e(t,n.key,n.codeName,n.nameNode)}isAccessor(){return this.node.type===n.AST_NODE_TYPES.MethodDefinition||this.node.type===n.AST_NODE_TYPES.TSAbstractMethodDefinition?this.node.kind===`set`||this.node.kind===`get`:this.node.type===n.AST_NODE_TYPES.AccessorProperty||this.node.type===n.AST_NODE_TYPES.TSAbstractAccessorProperty}isHashPrivate(){return`key`in this.node&&this.node.key.type===n.AST_NODE_TYPES.PrivateIdentifier}isPrivate(){return this.node.accessibility===`private`}isStatic(){return this.node.static}isUsed(){return this.readCount>0||this.writeCount>0&&this.isAccessor()}};e.Member=o;function s(e,t){return t.type!==n.AST_NODE_TYPES.AssignmentExpression&&t.type!==n.AST_NODE_TYPES.ForInStatement&&t.type!==n.AST_NODE_TYPES.ForOfStatement&&t.type!==n.AST_NODE_TYPES.AssignmentPattern||t.left!==e?!1:t.type===n.AST_NODE_TYPES.AssignmentExpression&&t.operator!==`=`?t.parent.type===n.AST_NODE_TYPES.ExpressionStatement:!0}function c(e,t){let i=(0,r.nullThrows)(e.parent,r.NullThrowsReasons.MissingParent);if(s(e,i)){t.writeCount+=1;return}let a=i.parent;if(i.type===n.AST_NODE_TYPES.UpdateExpression&&a?.type===n.AST_NODE_TYPES.ExpressionStatement){t.writeCount+=1;return}if(i.type===n.AST_NODE_TYPES.Property&&a?.type===n.AST_NODE_TYPES.ObjectPattern&&i.value===e){t.writeCount+=1;return}if(i.type===n.AST_NODE_TYPES.RestElement){t.writeCount+=1;return}if(i.type===n.AST_NODE_TYPES.ArrayPattern){t.writeCount+=1;return}t.readCount+=1}var l=class extends t.Visitor{isStaticThisContext;childScopes=[];scopeManager;upper;thisContext;constructor(e,t,n,r){if(super({}),this.scopeManager=e,this.upper=t,this.isStaticThisContext=r,n===`self`){if(!(this instanceof d))throw Error("Cannot use `self` unless it is in a ClassScope");this.thisContext=this}else n===`none`?this.thisContext=null:this.thisContext=n}findNearestScope(e){let t,n=e;do{if(t=this.scopeManager.acquire(n),n.parent==null)break;n=n.parent}while(t==null);return t}findVariableInScope(e,t){let n=this.findNearestScope(e),r=null;for(;n!=null&&(r=n.set.get(t)??null,r==null);)n=n.upper;return r}getObjectClass(e){switch(e.object.type){case n.AST_NODE_TYPES.ThisExpression:return this.thisContext==null?null:{thisContext:this.thisContext,type:this.isStaticThisContext?`static`:`instance`};case n.AST_NODE_TYPES.Identifier:{let t=this.findClassScopeWithName(e.object.name);if(t!=null)return{thisContext:t,type:`static`};let r=this.findVariableInScope(e,e.object.name);if(r==null||r.defs.length===0)return null;let i=r.defs[0];switch(i.node.type){case n.AST_NODE_TYPES.VariableDeclarator:return i.node.init?.type!==n.AST_NODE_TYPES.ThisExpression||r.references.some(e=>e.isWrite()&&e.init!==!0)?null:{thisContext:this.thisContext,type:this.isStaticThisContext?`static`:`instance`};default:{let e=`typeAnnotation`in i.name&&i.name.typeAnnotation!=null?i.name.typeAnnotation.typeAnnotation:null;if(e==null)return null;if(e.type===n.AST_NODE_TYPES.TSTypeReference&&e.typeName.type===n.AST_NODE_TYPES.Identifier){let t=e.typeName.name,n=this.findClassScopeWithName(t);if(n!=null)return{thisContext:n,type:`instance`}}if(e.type===n.AST_NODE_TYPES.TSTypeQuery&&e.exprName.type===n.AST_NODE_TYPES.Identifier){let t=e.exprName.name,n=this.findClassScopeWithName(t);if(n!=null)return{thisContext:n,type:`static`}}}}return null}case n.AST_NODE_TYPES.MemberExpression:return null;default:return null}}visitClass(e){let t=new d(e,this,this.scopeManager);this.childScopes.push(t),t.visitChildren(e)}visitIntermediate(e){let t=new u(this.scopeManager,this,e);this.childScopes.push(t),t.visitChildren(e)}findClassScopeWithName(e){let t=this;for(;t!=null;){if(t instanceof d&&t.className===e)return t;t=t.upper}return null}AssignmentExpression(e){this.visitChildren(e),e.right.type===n.AST_NODE_TYPES.ThisExpression&&e.left.type===n.AST_NODE_TYPES.ObjectPattern&&this.handleThisDestructuring(e.left)}AssignmentPattern(e){this.visitChildren(e),e.right.type===n.AST_NODE_TYPES.ThisExpression&&e.left.type===n.AST_NODE_TYPES.ObjectPattern&&this.handleThisDestructuring(e.left)}ClassDeclaration(e){this.visitClass(e)}ClassExpression(e){this.visitClass(e)}FunctionDeclaration(e){this.visitIntermediate(e)}FunctionExpression(e){this.visitIntermediate(e)}MemberExpression(e){if(this.visitChildren(e),e.property.type===n.AST_NODE_TYPES.PrivateIdentifier)return;let t=(0,i.extractNameForMemberExpression)(e);if(t==null)return;let r=this.getObjectClass(e);if(r==null||r.thisContext==null)return;let a=(r.type===`instance`?r.thisContext.members.instance:r.thisContext.members.static).get(t.key);a!=null&&c(e,a)}PrivateIdentifier(e){if(this.visitChildren(e),(e.parent.type===n.AST_NODE_TYPES.MethodDefinition||e.parent.type===n.AST_NODE_TYPES.PropertyDefinition)&&e.parent.key===e)return;let t=this,r=(0,a.privateKey)(e);for(;t!=null;){if(t.thisContext!=null){let n=t.thisContext.members.instance.get(r)??t.thisContext.members.static.get(r);if(n!=null){c(e.parent,n);return}}t=t.upper}}StaticBlock(e){this.visitIntermediate(e)}VariableDeclarator(e){this.visitChildren(e),e.init?.type===n.AST_NODE_TYPES.ThisExpression&&e.id.type===n.AST_NODE_TYPES.ObjectPattern&&this.handleThisDestructuring(e.id)}handleThisDestructuring(e){if(this.thisContext!=null)for(let t of e.properties){if(t.type!==n.AST_NODE_TYPES.Property||t.key.type!==n.AST_NODE_TYPES.Identifier||t.computed)continue;let e=(0,a.publicKey)(t.key.name),r=(this.isStaticThisContext?this.thisContext.members.static:this.thisContext.members.instance).get(e);r!=null&&c(t.key,r)}}},u=class extends l{constructor(e,t,r){if(r.type===n.AST_NODE_TYPES.Program){super(e,t,`none`,!1);return}if(r.type===n.AST_NODE_TYPES.StaticBlock){if(t==null||!(t instanceof d))throw Error(`Cannot have a static block without an upper ClassScope`);super(e,t,t,!0);return}if((r.parent.type===n.AST_NODE_TYPES.MethodDefinition||r.parent.type===n.AST_NODE_TYPES.PropertyDefinition)&&r.parent.value===r){if(t==null||!(t instanceof d))throw Error(`Cannot have a class method/property without an upper ClassScope`);super(e,t,t,r.parent.static);return}if(t!=null&&r.params.length>0&&r.params[0].type===n.AST_NODE_TYPES.Identifier&&r.params[0].name===`this`){let i=r.params[0].typeAnnotation?.typeAnnotation;if(i?.type===n.AST_NODE_TYPES.TSTypeReference&&i.typeName.type===n.AST_NODE_TYPES.Identifier){let n=t.findClassScopeWithName(i.typeName.name);if(n!=null){super(e,t,n,!1);return}}}super(e,t,`none`,!1)}},d=class extends l{className;members={instance:new Map,static:new Map};theClass;constructor(e,t,r){super(r,t,`self`,!1),this.theClass=e,this.className=e.id?.name??null;for(let t of e.body.body)switch(t.type){case n.AST_NODE_TYPES.MethodDefinition:if(t.kind===`constructor`){for(let e of t.value.params){if(e.type!==n.AST_NODE_TYPES.TSParameterProperty)continue;let t=o.create(e);t!=null&&this.members.instance.set(t.key,t)}break}case n.AST_NODE_TYPES.AccessorProperty:case n.AST_NODE_TYPES.PropertyDefinition:case n.AST_NODE_TYPES.TSAbstractAccessorProperty:case n.AST_NODE_TYPES.TSAbstractMethodDefinition:case n.AST_NODE_TYPES.TSAbstractPropertyDefinition:{let e=o.create(t);if(e==null)continue;e.isStatic()?this.members.static.set(e.key,e):this.members.instance.set(e.key,e);break}case n.AST_NODE_TYPES.StaticBlock:continue;case n.AST_NODE_TYPES.TSIndexSignature:continue}}};function f(e,t){let n=new u(t,null,e);return n.visit(e),p(n)}function p(e,t=new Map){e instanceof d&&t.set(e.theClass,e);for(let n of e.childScopes)p(n,t);return t}})),zOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=ROe();e.default=(0,n.createRule)({name:`no-unused-private-class-members`,meta:{type:`problem`,docs:{description:`Disallow unused private class members`,extendsBaseRule:!0,requiresTypeChecking:!1},messages:{unusedPrivateClassMember:`Private class member '{{classMemberName}}' is defined but never used.`},schema:[]},defaultOptions:[],create(e){return{"Program:exit"(n){let i=(0,r.analyzeClassMemberUsage)(n,t.ESLintUtils.nullThrows(e.sourceCode.scopeManager,`Missing required scope manager`));for(let t of i.values())for(let n of[...t.members.instance.values(),...t.members.static.values()])!n.isPrivate()&&!n.isHashPrivate()||n.isUsed()||e.report({node:n.nameNode,messageId:`unusedPrivateClassMember`,data:{classMemberName:n.name}})}}}})})),R7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=yEe(),a=bEe();var o;(function(e){e[e.ArrayDestructure=0]=`ArrayDestructure`,e[e.CatchClause=1]=`CatchClause`,e[e.ClassName=2]=`ClassName`,e[e.FunctionName=3]=`FunctionName`,e[e.ImportBinding=4]=`ImportBinding`,e[e.ImplicitGlobalVariable=5]=`ImplicitGlobalVariable`,e[e.Parameter=6]=`Parameter`,e[e.TSEnumMember=7]=`TSEnumMember`,e[e.TSEnumName=8]=`TSEnumName`,e[e.TSModuleName=9]=`TSModuleName`,e[e.Type=10]=`Type`,e[e.Variable=11]=`Variable`})(o||={});let s={predicate:e=>e.type===n.AST_TOKEN_TYPES.Punctuator&&e.value===`,`,tokenChar:`,`},c={predicate:e=>e.type===n.AST_TOKEN_TYPES.Punctuator&&e.value===`{`,tokenChar:`{`},l={predicate:e=>e.type===n.AST_TOKEN_TYPES.Punctuator&&e.value===`}`,tokenChar:`}`};function u({predicate:e,tokenChar:t},n){if(n==null)throw Error(`Expected a valid "${t}" token, but found no token`);if(!e(n))throw Error(`Expected a valid "${t}" token, but got "${n.value}" instead`);return n}e.default=(0,r.createRule)({name:`no-unused-vars`,meta:{type:`problem`,docs:{description:`Disallow unused variables`,extendsBaseRule:!0,recommended:`recommended`},fixable:`code`,hasSuggestions:!0,messages:{removeUnusedImportDeclaration:`Remove unused import declaration.`,removeUnusedVar:`Remove unused variable "{{varName}}".`,unusedVar:`'{{varName}}' is {{action}} but never used{{additional}}.`,usedIgnoredVar:`'{{varName}}' is marked as ignored but is used{{additional}}.`,usedOnlyAsType:`'{{varName}}' is {{action}} but only used as a type{{additional}}.`},schema:[{oneOf:[{type:`string`,description:`Broad setting for unused variables to target.`,enum:[`all`,`local`]},{type:`object`,additionalProperties:!1,properties:{args:{type:`string`,description:`Whether to check all, some, or no arguments.`,enum:[`all`,`after-used`,`none`]},argsIgnorePattern:{type:`string`,description:`Regular expressions of argument names to not check for usage.`},caughtErrors:{type:`string`,description:`Whether to check catch block arguments.`,enum:[`all`,`none`]},caughtErrorsIgnorePattern:{type:`string`,description:`Regular expressions of catch block argument names to not check for usage.`},destructuredArrayIgnorePattern:{type:`string`,description:`Regular expressions of destructured array variable names to not check for usage.`},enableAutofixRemoval:{type:`object`,additionalProperties:!1,description:`Configurable automatic fixes for different types of unused variables.`,properties:{imports:{type:`boolean`,description:`Whether to enable automatic removal of unused imports.`}}},ignoreClassWithStaticInitBlock:{type:`boolean`,description:`Whether to ignore classes with at least one static initialization block.`},ignoreRestSiblings:{type:`boolean`,description:"Whether to ignore sibling properties in `...` destructurings."},ignoreUsingDeclarations:{type:`boolean`,description:`Whether to ignore using or await using declarations.`},reportUsedIgnorePattern:{type:`boolean`,description:`Whether to report variables that match any of the valid ignore pattern options if they have been used.`},vars:{type:`string`,description:`Whether to check all variables or only locally-declared variables.`,enum:[`all`,`local`]},varsIgnorePattern:{type:`string`,description:`Regular expressions of variable names to not check for usage.`}}}]}]},defaultOptions:[{}],create(e,[p]){let m=new Map,h=new Set;function g(t){return e.sourceCode.getDeclaredVariables(t).every(e=>h.has(e))}let _=(t,n)=>{h.add(t);let r=t.references.filter(e=>e.isWrite()&&e.from.variableScope===t.scope.variableScope),i=r.length?r[r.length-1].identifier:t.identifiers[0],{start:a}=i.loc,s=i.name.length,c={start:a,end:{column:a.column+s,line:a.line}},l=(()=>{let{messageId:e,fix:n,useAutofix:r}=(()=>{if(t.defs.length!==1)return{};let{type:e,def:n}=x(t.defs[0]);switch(e){case o.ArrayDestructure:return{};case o.CatchClause:return{};case o.ClassName:return{};case o.FunctionName:return{};case o.ImportBinding:return{...b(n),useAutofix:v.enableAutofixRemoval.imports};case o.ImplicitGlobalVariable:return{};case o.Parameter:return{};case o.TSEnumMember:return{};case o.TSEnumName:return{};case o.TSModuleName:return{};case o.Type:return{};case o.Variable:return{}}})();if(!n)return{};if(r)return{fix:n};let i={varName:t.name};return{suggest:[{messageId:e??`removeUnusedVar`,data:i,fix:n}]}})();e.report({...n,...l,loc:c,node:i})},v=(()=>{let e={args:`after-used`,caughtErrors:`all`,enableAutofixRemoval:{imports:!1},ignoreClassWithStaticInitBlock:!1,ignoreRestSiblings:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1,vars:`all`};return typeof p==`string`?e.vars=p:(e.vars=p.vars??e.vars,e.args=p.args??e.args,e.ignoreRestSiblings=p.ignoreRestSiblings??e.ignoreRestSiblings,e.ignoreUsingDeclarations=p.ignoreUsingDeclarations??e.ignoreUsingDeclarations,e.caughtErrors=p.caughtErrors??e.caughtErrors,e.ignoreClassWithStaticInitBlock=p.ignoreClassWithStaticInitBlock??e.ignoreClassWithStaticInitBlock,e.reportUsedIgnorePattern=p.reportUsedIgnorePattern??e.reportUsedIgnorePattern,p.varsIgnorePattern&&(e.varsIgnorePattern=new RegExp(p.varsIgnorePattern,`u`)),p.argsIgnorePattern&&(e.argsIgnorePattern=new RegExp(p.argsIgnorePattern,`u`)),p.caughtErrorsIgnorePattern&&(e.caughtErrorsIgnorePattern=new RegExp(p.caughtErrorsIgnorePattern,`u`)),p.destructuredArrayIgnorePattern&&(e.destructuredArrayIgnorePattern=new RegExp(p.destructuredArrayIgnorePattern,`u`)),p.enableAutofixRemoval&&p.enableAutofixRemoval.imports!=null&&(e.enableAutofixRemoval.imports=p.enableAutofixRemoval.imports)),e})();function y(t,n){let r=e.sourceCode,{line:i}=n.loc.start,{line:a}=n.loc.end,o=r.getIndexFromLoc({column:0,line:i}),s=a<r.lines.length?r.getIndexFromLoc({column:0,line:a+1}):r.text.length;return r.getText(n)===r.text.slice(o,s).trim()?t.removeRange([o,s]):t.remove(n)}function b(t){switch(t.node.type){case n.AST_NODE_TYPES.TSImportEqualsDeclaration:return{messageId:`removeUnusedImportDeclaration`,fix:e=>y(e,t.node)};case n.AST_NODE_TYPES.ImportDefaultSpecifier:{let n=t.node.parent;return n.specifiers.length===1||g(n)?{messageId:`removeUnusedImportDeclaration`,fix:e=>y(e,n)}:{messageId:`removeUnusedVar`,fix:n=>{let i=(0,r.nullThrows)(e.sourceCode.getTokenAfter(t.node),r.NullThrowsReasons.MissingToken(`,`,`import specifier`));return u(s,i),n.removeRange([Math.min(t.node.range[0],i.range[0]),Math.max(t.node.range[1],i.range[1])])}}}case n.AST_NODE_TYPES.ImportSpecifier:{let r=t.node.parent;return r.specifiers.length===1||g(r)?{messageId:`removeUnusedImportDeclaration`,fix:e=>y(e,r)}:{messageId:`removeUnusedVar`,fix:i=>{if(e.sourceCode.getDeclaredVariables(r).map(e=>{if(h.has(e))return null;let t=e.defs[0].node;return t.type===n.AST_NODE_TYPES.ImportSpecifier?t:null}).filter(e=>e!=null).length===0){let t=u(c,e.sourceCode.getFirstToken(r,c.predicate)),n=u(s,e.sourceCode.getTokenBefore(t)),a=u(l,e.sourceCode.getFirstToken(r,l.predicate));return i.removeRange([n.range[0],a.range[1]])}let a=e.sourceCode.getTokenBefore(t.node),o=a&&s.predicate(a)?a:u(s,e.sourceCode.getTokenAfter(t.node));return i.removeRange([Math.min(t.node.range[0],o.range[0]),Math.max(t.node.range[1],o.range[1])])}}}case n.AST_NODE_TYPES.ImportNamespaceSpecifier:{let e=t.node.parent;return{messageId:`removeUnusedImportDeclaration`,fix:t=>y(t,e)}}}}function x(e){if(v.destructuredArrayIgnorePattern&&e.name.parent.type===n.AST_NODE_TYPES.ArrayPattern)return{type:o.ArrayDestructure,def:e};switch(e.type){case t.DefinitionType.CatchClause:return{type:o.CatchClause,def:e};case t.DefinitionType.ClassName:return{type:o.ClassName,def:e};case t.DefinitionType.FunctionName:return{type:o.FunctionName,def:e};case t.DefinitionType.ImplicitGlobalVariable:return{type:o.ImplicitGlobalVariable,def:e};case t.DefinitionType.ImportBinding:return{type:o.ImportBinding,def:e};case t.DefinitionType.Parameter:return{type:o.Parameter,def:e};case t.DefinitionType.TSEnumName:return{type:o.TSEnumName,def:e};case t.DefinitionType.TSEnumMember:return{type:o.TSEnumMember,def:e};case t.DefinitionType.TSModuleName:return{type:o.TSModuleName,def:e};case t.DefinitionType.Type:return{type:o.Type,def:e};case t.DefinitionType.Variable:return{type:o.Variable,def:e}}}function S(e){switch(e){case o.ArrayDestructure:return{pattern:v.destructuredArrayIgnorePattern?.toString(),variableDescription:`elements of array destructuring`};case o.CatchClause:return{pattern:v.caughtErrorsIgnorePattern?.toString(),variableDescription:`caught errors`};case o.Parameter:return{pattern:v.argsIgnorePattern?.toString(),variableDescription:`args`};default:return{pattern:v.varsIgnorePattern?.toString(),variableDescription:`vars`}}}function C(e){let t=e.defs.at(0),n=``;if(t){let{pattern:e,variableDescription:r}=S(x(t).type);e&&r&&(n=`. Allowed unused ${r} must match ${e}`)}return{action:`defined`,additional:n,varName:e.name}}function w(e){let t=e.defs.at(0),n=``;if(t){let{pattern:e,variableDescription:r}=S(x(t).type);e&&r&&(n=`. Allowed unused ${r} must match ${e}`)}return{action:`assigned a value`,additional:n,varName:e.name}}function T(e,t){let{pattern:n,variableDescription:r}=S(t),i=``;return n&&r&&(i=`. Used ${r} must not match ${n}`),{additional:i,varName:e.name}}function E(){function t(e){return e.type===n.AST_NODE_TYPES.Property&&e.parent.type===n.AST_NODE_TYPES.ObjectPattern&&e.parent.properties[e.parent.properties.length-1].type===n.AST_NODE_TYPES.RestElement}function i(e){if(v.ignoreRestSiblings){let n=e.defs.some(e=>t(e.name.parent)),r=e.references.some(e=>t(e.identifier.parent));return n||r}return!1}function a(t){let n=t.defs[0],r=e.sourceCode.getDeclaredVariables(n.node);return!r.slice(r.indexOf(t)+1).some(e=>e.references.length>0||e.eslintUsed)}let s=(0,r.collectVariables)(e),c=[...Array.from(s.unusedVariables,e=>({used:!1,variable:e})),...Array.from(s.usedVariables,e=>({used:!0,variable:e}))],l=[];for(let{used:e,variable:t}of c){if(t.defs.length===0){e||l.push(t);continue}let s=t.defs[0];if(t.scope.type===n.TSESLint.Scope.ScopeType.global&&v.vars===`local`)continue;let c=t.references.some(e=>e.identifier.parent.type===n.AST_NODE_TYPES.ArrayPattern);if((s.name.parent.type===n.AST_NODE_TYPES.ArrayPattern||c)&&s.name.type===n.AST_NODE_TYPES.Identifier&&v.destructuredArrayIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.ArrayDestructure)});continue}if(s.type===n.TSESLint.Scope.DefinitionType.ClassName){let e=s.node.body.body.some(e=>e.type===n.AST_NODE_TYPES.StaticBlock);if(v.ignoreClassWithStaticInitBlock&&e)continue}if(s.type===n.TSESLint.Scope.DefinitionType.CatchClause){if(v.caughtErrors===`none`)continue;if(v.caughtErrorsIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.CatchClause)});continue}}else if(s.type===n.TSESLint.Scope.DefinitionType.Parameter){if(v.args===`none`)continue;if(s.name.type===n.AST_NODE_TYPES.Identifier&&v.argsIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.Parameter)});continue}if(v.args===`after-used`&&(0,r.isFunction)(s.name.parent)&&!a(t))continue}else if(s.name.type===n.AST_NODE_TYPES.Identifier&&v.varsIgnorePattern?.test(s.name.name)){v.reportUsedIgnorePattern&&e&&s.type!==n.TSESLint.Scope.DefinitionType.TSEnumMember&&_(t,{messageId:`usedIgnoredVar`,data:T(t,o.Variable)});continue}s.type===n.TSESLint.Scope.DefinitionType.Variable&&v.ignoreUsingDeclarations&&(s.parent.kind===`await using`||s.parent.kind===`using`)||i(t)||t.eslintUsed||e||l.push(t)}return l}return{[O(n.AST_NODE_TYPES.Program)](t){(0,r.isDefinitionFile)(e.filename)&&(D((0,r.nullThrows)(t.parent,r.NullThrowsReasons.MissingParent))||k(t))},[O(`TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock`)](e){D((0,r.nullThrows)(e.parent.parent,r.NullThrowsReasons.MissingParent))||k(e)},[O(`TSModuleDeclaration[declare = true] > TSModuleBlock`)](e){D((0,r.nullThrows)(e.parent.parent,r.NullThrowsReasons.MissingParent))||k(e)},[O(`TSModuleDeclaration > TSModuleBlock`)](t){(0,r.isDefinitionFile)(e.filename)&&(D((0,r.nullThrows)(t.parent.parent,r.NullThrowsReasons.MissingParent))||k(t))},"Program:exit"(n){let o=E();for(let s of o)if(s.defs.length>0){let e=s.references.some(e=>(0,a.referenceContainsTypeQuery)(e.identifier)||(0,i.referenceContainsTypePredicate)(e.identifier)),n=e?`usedOnlyAsType`:`unusedVar`;if(e&&s.defs.some(e=>e.type===t.DefinitionType.ImportBinding))continue;_(s,{messageId:n,data:s.references.some(e=>e.isWrite())?w(s):C(s)})}else if(`eslintExplicitGlobalComments`in s&&s.eslintExplicitGlobalComments){let t=s.eslintExplicitGlobalComments[0];e.report({loc:(0,r.getNameLocationInGlobalDirectiveComment)(e.sourceCode,t,s.name),node:n,messageId:`unusedVar`,data:C(s)})}}};function D(e){return m.get(e)??(d(f(e))?(m.set(e,!0),!0):(m.set(e,!1),!1))}function O(e){return[`${e} > :matches(${[n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSTypeAliasDeclaration].join(`, `)})`,`${e} > :matches(${[n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.TSDeclareFunction,n.AST_NODE_TYPES.TSEnumDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration,n.AST_NODE_TYPES.VariableDeclaration].join(`, `)})`].join(`, `)}function k(t){let r=[];switch(t.type){case n.AST_NODE_TYPES.TSInterfaceDeclaration:case n.AST_NODE_TYPES.TSTypeAliasDeclaration:case n.AST_NODE_TYPES.ClassDeclaration:case n.AST_NODE_TYPES.FunctionDeclaration:case n.AST_NODE_TYPES.TSDeclareFunction:case n.AST_NODE_TYPES.TSEnumDeclaration:case n.AST_NODE_TYPES.TSModuleDeclaration:t.id?.type===n.AST_NODE_TYPES.Identifier&&r.push(t.id);break;case n.AST_NODE_TYPES.VariableDeclaration:for(let e of t.declarations)A(e,e=>{r.push(e)});break}let i=e.sourceCode.getScope(t),a=[n.AST_NODE_TYPES.TSDeclareFunction,n.AST_NODE_TYPES.TSModuleDeclaration].includes(t.type);i.variableScope===i?a&&i.upper&&(i=i.upper):i=i.variableScope;for(let e of r){let t=i.set.get(e.name);t&&(t.eslintUsed=!0)}}function A(e,n){new t.PatternVisitor({},e,n).visit(e)}}});function d(e){for(let t of e)if(t.type===n.AST_NODE_TYPES.ExportNamedDeclaration&&t.declaration==null||t.type===n.AST_NODE_TYPES.ExportAllDeclaration||t.type===n.AST_NODE_TYPES.TSExportAssignment||t.type===n.AST_NODE_TYPES.ExportDefaultDeclaration&&t.declaration.type===n.AST_NODE_TYPES.Identifier)return!0;return!1}function f(e){return e.type===n.AST_NODE_TYPES.Program?e.body:e.body.body}})),BOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=z6(),n=P8(),r=_7(),i=bEe(),a=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/;function o(e){let t=!0,n=!0,r=!0,i=!0,a=!0,o=!0,s=!1;return typeof e==`string`?t=e!==`nofunc`:typeof e==`object`&&e&&(t=e.functions!==!1,n=e.classes!==!1,r=e.enums!==!1,i=e.variables!==!1,a=e.typedefs!==!1,o=e.ignoreTypeReferences!==!1,s=e.allowNamedExports!==!1),{allowNamedExports:s,classes:n,enums:r,functions:t,ignoreTypeReferences:o,typedefs:a,variables:i}}function s(e){return e.defs[0].type===t.DefinitionType.FunctionName}function c(e){return e.defs[0].type===t.DefinitionType.Type}function l(e,n){return e.defs[0].type===t.DefinitionType.TSEnumName&&e.scope.variableScope!==n.from.variableScope}function u(e,n){return e.defs[0].type===t.DefinitionType.ClassName&&e.scope.variableScope!==n.from.variableScope}function d(e,n){return e.defs[0].type===t.DefinitionType.Variable&&e.scope.variableScope!==n.from.variableScope}function f(e){let{identifier:t}=e;return t.parent.type===n.AST_NODE_TYPES.ExportSpecifier&&t.parent.local===t}function p(e){return e.isTypeReference||(0,i.referenceContainsTypeQuery)(e.identifier)}function m(e,t){return!!e&&e.range[0]<=t&&t<=e.range[1]}function h(e,n){if(e.defs[0].type!==t.DefinitionType.ClassName||e.defs[0].node.decorators.length===0)return!1;for(let t of e.defs[0].node.decorators)if(n.identifier.range[0]>=t.range[0]&&n.identifier.range[1]<=t.range[1])return!0;return!1}function g(e,t){if(e.scope!==t.from)return!1;let r=e.identifiers[0].parent,i=t.identifier.range[1];for(;r;){if(r.type===n.AST_NODE_TYPES.VariableDeclarator){if(m(r.init,i)||(r.parent.parent.type===n.AST_NODE_TYPES.ForInStatement||r.parent.parent.type===n.AST_NODE_TYPES.ForOfStatement)&&m(r.parent.parent.right,i))return!0;break}else if(r.type===n.AST_NODE_TYPES.AssignmentPattern){if(m(r.right,i))return!0}else if(a.test(r.type))break;r=r.parent}return!1}e.default=(0,r.createRule)({name:`no-use-before-define`,meta:{type:`problem`,docs:{description:`Disallow the use of variables before they are defined`,extendsBaseRule:!0},messages:{noUseBeforeDefine:`'{{name}}' was used before it was defined.`},schema:[{oneOf:[{type:`string`,description:`Broadly set functions and allowNamedExports to false.`,enum:[`nofunc`]},{type:`object`,additionalProperties:!1,properties:{allowNamedExports:{type:`boolean`,description:`Whether to ignore named exports.`},classes:{type:`boolean`,description:`Whether to ignore references to class declarations.`},enums:{type:`boolean`,description:`Whether to check references to enums.`},functions:{type:`boolean`,description:`Whether to ignore references to function declarations.`},ignoreTypeReferences:{type:`boolean`,description:`Whether to ignore type references, such as in type annotations and assertions.`},typedefs:{type:`boolean`,description:`Whether to check references to types.`},variables:{type:`boolean`,description:`Whether to ignore references to variables.`}}}]}]},defaultOptions:[{allowNamedExports:!1,classes:!0,enums:!0,functions:!0,ignoreTypeReferences:!0,typedefs:!0,variables:!0}],create(e,t){let r=o(t[0]);function i(e,t){return r.ignoreTypeReferences&&p(t)?!1:s(e)?r.functions:u(e,t)?r.classes:d(e,t)?r.variables:l(e,t)?r.enums:c(e)?r.typedefs:!0}function a(e,t){return e.identifiers[0].range[1]<=t.identifier.range[1]&&!(t.isValueReference&&g(e,t))}function m(t){t.references.forEach(t=>{let o=t.resolved;function s(){e.report({node:t.identifier,messageId:`noUseBeforeDefine`,data:{name:t.identifier.name}})}if(!t.init){if(!r.allowNamedExports&&f(t)){(!o||!a(o,t))&&s();return}o&&(o.identifiers.length===0||a(o,t)||!i(o,t)||h(o,t)||t.from.type===n.TSESLint.Scope.ScopeType.functionType||s())}}),t.childScopes.forEach(m)}return{Program(t){m(e.sourceCode.getScope(t))}}}})})),VOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=(0,x7().getESLintCoreRule)(`no-useless-constructor`);function i(e){switch(e.accessibility){case`protected`:case`private`:return!1;case`public`:if(e.parent.parent.superClass)return!1;break}return!0}function a(e){return!e.value.params.some(e=>e.type===t.AST_NODE_TYPES.TSParameterProperty||e.decorators.length)}e.default=(0,n.createRule)({name:`no-useless-constructor`,meta:{type:`problem`,docs:{description:`Disallow unnecessary constructors`,extendsBaseRule:!0,recommended:`strict`},hasSuggestions:r.meta.hasSuggestions,messages:r.meta.messages,schema:r.meta.schema},defaultOptions:[],create(e){let n=r.create(e);return{MethodDefinition(e){e.value.type===t.AST_NODE_TYPES.FunctionExpression&&i(e)&&a(e)&&n.MethodDefinition(e)}}}})})),HOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`no-useless-default-assignment`,meta:{type:`suggestion`,docs:{description:`Disallow default values that will never be used`,recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,messages:{noStrictNullCheck:"This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.",preferOptionalSyntax:"Using `= undefined` to make a parameter optional adds unnecessary runtime logic. Use the `?` optional syntax instead.",uselessDefaultAssignment:`Default value is useless because the {{ type }} is not optional.`,uselessUndefined:`Default value is useless because it is undefined. Optional {{ type }}s are already undefined by default.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:{type:`boolean`,description:"Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`."}}}]},defaultOptions:[{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:!1}],create(e,[{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:t}]){let n=(0,s.getParserServices)(e),r=n.program.getTypeChecker(),c=n.program.getCompilerOptions();!a.isStrictCompilerOptionEnabled(c,`strictNullChecks`)&&t!==!0&&e.report({loc:{start:{column:0,line:0},end:{column:0,line:0}},messageId:`noStrictNullCheck`});function l(e){return(0,s.isTypeAnyType)(e)||(0,s.isTypeUnknownType)(e)?!0:a.unionConstituents(e).some(e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.Undefined))}function u(e,t){if(r.isTupleType(e)){let n=r.getTypeArguments(e);if(t<n.length)return n[t]}return e.getNumberIndexType()??null}function d(e){if(e.right.type===i.AST_NODE_TYPES.Identifier&&e.right.name===`undefined`){let t=n.esTreeNodeToTSNodeMap.get(e);if(o.isParameter(t)&&t.type&&l(r.getTypeFromTypeNode(t.type))){v(e);return}_(e,e.parent.type===i.AST_NODE_TYPES.Property||e.parent.type===i.AST_NODE_TYPES.ArrayPattern?`property`:`parameter`);return}let t=e.parent;if(t.type===i.AST_NODE_TYPES.ArrowFunctionExpression||t.type===i.AST_NODE_TYPES.FunctionExpression){let i=t.params.indexOf(e);if(i!==-1){let s=n.esTreeNodeToTSNodeMap.get(t);if(o.isFunctionLike(s)){let t=r.getContextualType(s);if(!t)return;let n=t.getCallSignatures();if(n.length===0||n[0].getDeclaration()===s)return;let c=n[0].getParameters();if(i<c.length){let t=c[i];if(t.valueDeclaration&&o.isParameter(t.valueDeclaration)&&t.valueDeclaration.dotDotDotToken!=null)return;if(!a.isSymbolFlagSet(t,o.SymbolFlags.Optional)){let n=r.getTypeOfSymbol(t);!a.isTypeParameter(n)&&!l(n)&&g(e,`parameter`)}}}}return}if(t.type===i.AST_NODE_TYPES.Property){let n=f(t);if(!n)return;l(n)||g(e,`property`)}else if(t.type===i.AST_NODE_TYPES.ArrayPattern){let n=m(t);if(!n||!r.isTupleType(n))return;let i=r.getTypeArguments(n),a=t.elements.indexOf(e);if(a<0||a>=i.length)return;let o=i[a];l(o)||g(e,`property`)}}function f(e){let t=e.parent,n=m(t);if(!n)return null;let s=h(e.key);if(!s)return null;let c=n.getProperty(s);if(!c)return null;if(a.isSymbolFlagSet(c,o.SymbolFlags.Optional)){let n=t.parent;if(n.type===i.AST_NODE_TYPES.VariableDeclarator&&n.init&&p(t)){let t=h(e.key);if(!t||!b(n.init,t))return null}}return r.getTypeOfSymbol(c)}function p(e){let t=e.parent;return t?t.type===i.AST_NODE_TYPES.VariableDeclarator&&t.init?t.init.type===i.AST_NODE_TYPES.ConditionalExpression||t.init.type===i.AST_NODE_TYPES.LogicalExpression:p(t):!1}function m(e){let t=(0,s.nullThrows)(e.parent,s.NullThrowsReasons.MissingParent);if(t.type===i.AST_NODE_TYPES.VariableDeclarator&&t.init){let e=n.esTreeNodeToTSNodeMap.get(t.init);return r.getTypeAtLocation(e)}if((0,s.isFunction)(t)){let i=t.params.indexOf(e),a=n.esTreeNodeToTSNodeMap.get(t),o=(0,s.nullThrows)(r.getSignatureFromDeclaration(a),s.NullThrowsReasons.MissingToken(`signature`,`function`)),c=o.getParameters();return o.thisParameter&&i--,i<0||i>=c.length?null:r.getTypeOfSymbol(c[i])}if(t.type===i.AST_NODE_TYPES.AssignmentPattern)return m(t);if(t.type===i.AST_NODE_TYPES.Property)return f(t);if(t.type===i.AST_NODE_TYPES.ArrayPattern){let n=m(t);return n?u(n,t.elements.indexOf(e)):null}return null}function h(e){switch(e.type){case i.AST_NODE_TYPES.Identifier:return e.name;case i.AST_NODE_TYPES.Literal:return String(e.value);case i.AST_NODE_TYPES.TemplateLiteral:return e.expressions.length?null:e.quasis[0].value.cooked;default:return null}}function g(t,n){e.report({node:t.right,messageId:`uselessDefaultAssignment`,data:{type:n},fix:e=>y(e,t)})}function _(t,n){e.report({node:t.right,messageId:`uselessUndefined`,data:{type:n},fix:e=>y(e,t)})}function v(t){e.report({node:t.right,messageId:`preferOptionalSyntax`,*fix(e){yield y(e,t);let{left:n}=t;n.type===i.AST_NODE_TYPES.Identifier&&(yield e.insertTextAfterRange([n.range[0],n.range[0]+n.name.length],`?`))}})}function y(e,t){let n=t.left.range[1],r=t.range[1];return e.removeRange([n,r])}function b(e,t){return e.type===i.AST_NODE_TYPES.ObjectExpression&&e.properties.some(e=>e.type===i.AST_NODE_TYPES.Property&&h(e.key)===t)||e.type===i.AST_NODE_TYPES.ConditionalExpression&&b(e.consequent,t)&&b(e.alternate,t)}return{AssignmentPattern:d}}})})),UOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();function r(e){return e.type===t.AST_NODE_TYPES.ExportNamedDeclaration&&e.specifiers.length===0&&!e.declaration}let i=new Set([t.AST_NODE_TYPES.ExportAllDeclaration,t.AST_NODE_TYPES.ExportDefaultDeclaration,t.AST_NODE_TYPES.ExportNamedDeclaration,t.AST_NODE_TYPES.ExportSpecifier,t.AST_NODE_TYPES.ImportDeclaration,t.AST_NODE_TYPES.TSExportAssignment,t.AST_NODE_TYPES.TSImportEqualsDeclaration]);e.default=(0,n.createRule)({name:`no-useless-empty-export`,meta:{type:`suggestion`,docs:{description:`Disallow empty exports that don't change anything in a module file`},fixable:`code`,hasSuggestions:!1,messages:{uselessExport:`Empty export does nothing and can be removed.`},schema:[]},defaultOptions:[],create(e){if((0,n.isDefinitionFile)(e.filename))return{};function t(t){if(!Array.isArray(t.body))return;let n=[],a=!1;for(let e of t.body)r(e)?n.push(e):i.has(e.type)&&(a=!0);if(a)for(let t of n)e.report({node:t,messageId:`uselessExport`,fix:e=>e.remove(t)})}return{Program:t,TSModuleDeclaration:t}}})})),z7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`no-var-requires`,meta:{type:`problem`,deprecated:{deprecatedSince:`8.0.0`,replacedBy:[{rule:{name:`@typescript-eslint/no-require-imports`,url:`https://typescript-eslint.io/rules/no-require-imports`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/8334`},docs:{description:"Disallow `require` statements except in import statements"},messages:{noVarReqs:`Require statement not part of import statement.`},replacedBy:[`@typescript-eslint/no-require-imports`],schema:[{type:`object`,additionalProperties:!1,properties:{allow:{type:`array`,description:`Patterns of import paths to allow requiring from.`,items:{type:`string`}}}}]},defaultOptions:[{allow:[]}],create(e,r){let i=r[0].allow.map(e=>new RegExp(e,`u`));function a(e){return i.some(t=>e.match(t))}function o(e){return e.type===t.AST_NODE_TYPES.Literal&&typeof e.value==`string`||e.type===t.AST_NODE_TYPES.TemplateLiteral}return{'CallExpression[callee.name="require"]'(r){if(r.arguments[0]&&o(r.arguments[0])){let e=(0,n.getStaticStringValue)(r.arguments[0]);if(typeof e==`string`&&a(e))return}let i=r.parent.type===t.AST_NODE_TYPES.ChainExpression?r.parent.parent:r.parent;[t.AST_NODE_TYPES.CallExpression,t.AST_NODE_TYPES.MemberExpression,t.AST_NODE_TYPES.NewExpression,t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion,t.AST_NODE_TYPES.VariableDeclarator].includes(i.type)&&(t.ASTUtils.findVariable(e.sourceCode.getScope(r),`require`)?.identifiers.length||e.report({node:r,messageId:`noVarReqs`}))}}}})})),B7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=new Set([`BigInt`,`Boolean`,`Number`,`Object`,`String`,`Symbol`]);e.default=(0,n.createRule)({name:`no-wrapper-object-types`,meta:{type:`problem`,docs:{description:`Disallow using confusing built-in primitive class wrappers`,recommended:`recommended`},fixable:`code`,messages:{bannedClassType:"Prefer using the primitive `{{preferred}}` as a type name, rather than the upper-cased `{{typeName}}`."},schema:[]},defaultOptions:[],create(e){function i(i,a){let o=i.type===t.AST_NODE_TYPES.Identifier&&i.name;if(!o||!r.has(o)||!(0,n.isReferenceToGlobalFunction)(o,i,e.sourceCode))return;let s=o.toLowerCase();e.report({node:i,messageId:`bannedClassType`,data:{preferred:s,typeName:o},fix:a?e=>e.replaceText(i,s):void 0})}return{TSClassImplements(e){i(e.expression,!1)},TSInterfaceHeritage(e){i(e.expression,!1)},TSTypeReference(e){i(e.typeName,!0)}}}})})),V7=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`non-nullable-type-assertion-style`,meta:{type:`suggestion`,docs:{description:`Enforce non-null assertions over explicit type assertions`,recommended:`stylistic`,requiresTypeChecking:!0},fixable:`code`,messages:{preferNonNullAssertion:`Use a ! assertion to more succinctly remove null and undefined from the type.`},schema:[]},defaultOptions:[],create(e){let t=(0,s.getParserServices)(e),n=e=>{let n=t.getTypeAtLocation(e);if(!a.isTypeFlagSet(n,o.TypeFlags.Any|o.TypeFlags.Unknown))return a.unionConstituents(n)},r=e=>{if(a.isTypeFlagSet(e,o.TypeFlags.TypeParameter)){let t=e.getConstraint();return t==null||r(t)}if(a.isUnionType(e)){for(let t of e.types)if(r(t))return!0;return!1}return a.isTypeFlagSet(e,o.TypeFlags.Null|o.TypeFlags.Undefined)},c=(e,t)=>{let n=t.filter(e=>!a.isTypeFlagSet(e,o.TypeFlags.Null|o.TypeFlags.Undefined));if(n.length===t.length)return!1;for(let t of e)if(r(t)||!n.includes(t))return!1;for(let t of n)if(!e.includes(t))return!1;return!0},l=e=>e.typeAnnotation.type===i.AST_NODE_TYPES.TSTypeReference&&e.typeAnnotation.typeName.type===i.AST_NODE_TYPES.Identifier&&e.typeAnnotation.typeName.name===`const`;return{"TSAsExpression, TSTypeAssertion"(r){if(l(r))return;let i=n(r.expression);if(!i)return;let a=n(r.typeAnnotation);if(a&&c(a,i)){let n=e.sourceCode.getText(r.expression),i=(0,s.getOperatorPrecedence)(t.esTreeNodeToTSNodeMap.get(r.expression).kind,o.SyntaxKind.Unknown)>s.OperatorPrecedence.Unary;e.report({node:r,messageId:`preferNonNullAssertion`,fix(e){return e.replaceText(r,i?`${n}!`:`(${n})!`)}})}}}}})})),WOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=g8(),s=r(U6()),c=_7(),l=M7();e.default=(0,c.createRule)({name:`only-throw-error`,meta:{type:`problem`,docs:{description:"Disallow throwing non-`Error` values as exceptions",extendsBaseRule:`no-throw-literal`,recommended:`recommended`,requiresTypeChecking:!0},messages:{object:`Expected an error object to be thrown.`,undef:`Do not throw undefined.`},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...c.typeOrValueSpecifiersSchema,description:`Type specifiers that can be thrown.`},allowRethrowing:{type:`boolean`,description:"Whether to allow rethrowing caught values that are not `Error` objects."},allowThrowingAny:{type:`boolean`,description:"Whether to always allow throwing values typed as `any`."},allowThrowingUnknown:{type:`boolean`,description:"Whether to always allow throwing values typed as `unknown`."}}}]},defaultOptions:[{allow:[],allowRethrowing:!0,allowThrowingAny:!0,allowThrowingUnknown:!0}],create(e,[t]){let n=(0,c.getParserServices)(e),r=t.allow;function u(t){if(t.type!==i.AST_NODE_TYPES.Identifier)return!1;let r=e.sourceCode.getScope(t),a=(0,c.nullThrows)((0,c.findVariable)(r,t),`Variable ${t.name} should exist in scope manager`);if(a.defs.filter(e=>e.isVariableDefinition).length!==1)return!1;let s=a.defs[0];if(s.node.type===i.AST_NODE_TYPES.CatchClause)return!0;if(s.node.type===i.AST_NODE_TYPES.ArrowFunctionExpression&&s.node.params.length>=1&&s.node.params[0]===s.name&&s.node.parent.type===i.AST_NODE_TYPES.CallExpression){let t=s.node.parent,r=(0,l.parseCatchCall)(t,e)??(0,l.parseThenCall)(t,e);if(r!=null){let{object:e,onRejected:t}=r;if(t===s.node){let t=n.esTreeNodeToTSNodeMap.get(e);if((0,o.isThenableType)(n.program.getTypeChecker(),t))return!0}}}return!1}function d(i){if(t.allowRethrowing&&u(i))return;let o=n.getTypeAtLocation(i);if(!(0,c.typeMatchesSomeSpecifier)(o,r,n.program)){if(a.isTypeFlagSet(o,s.TypeFlags.Undefined)){e.report({node:i,messageId:`undef`});return}t.allowThrowingAny&&(0,c.isTypeAnyType)(o)||t.allowThrowingUnknown&&(0,c.isTypeUnknownType)(o)||(0,c.isErrorLike)(n.program,o)||e.report({node:i,messageId:`object`})}}return{ThrowStatement(e){d(e.argument)}}}})})),H7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`parameter-properties`,meta:{type:`problem`,docs:{description:`Require or disallow parameter properties in class constructors`},messages:{preferClassProperty:`Property {{parameter}} should be declared as a class property.`,preferParameterProperty:`Property {{parameter}} should be declared as a parameter property.`},schema:[{type:`object`,$defs:{modifier:{type:`string`,enum:[`readonly`,`private`,`protected`,`public`,`private readonly`,`protected readonly`,`public readonly`]}},additionalProperties:!1,properties:{allow:{type:`array`,description:`Whether to allow certain kinds of properties to be ignored.`,items:{$ref:`#/items/0/$defs/modifier`}},prefer:{type:`string`,description:`Whether to prefer class properties or parameter properties.`,enum:[`class-property`,`parameter-property`]}}}]},defaultOptions:[{allow:[],prefer:`class-property`}],create(e,[{allow:r=[],prefer:i=`class-property`}]){function a(e){let t=[];return e.accessibility&&t.push(e.accessibility),e.readonly&&t.push(`readonly`),t.filter(Boolean).join(` `)}if(i===`class-property`)return{TSParameterProperty(n){let i=a(n);if(!r.includes(i)){let r=n.parameter.type===t.AST_NODE_TYPES.Identifier?n.parameter.name:n.parameter.left.name;e.report({node:n,messageId:`preferClassProperty`,data:{parameter:r}})}}};let o=[];function s(e){let t=o[o.length-1],n=t.get(e);if(n)return n;let r={};return t.set(e,r),r}function c(t,n){return!t.typeAnnotation||!n.typeAnnotation?t.typeAnnotation===n.typeAnnotation:e.sourceCode.getText(t.typeAnnotation)===e.sourceCode.getText(n.typeAnnotation)}return{":matches(ClassDeclaration, ClassExpression):exit"(){let t=(0,n.nullThrows)(o.pop(),`Stack should exist on class exit`);for(let[n,r]of t)r.classProperty&&r.constructorAssignment&&r.constructorParameter&&c(r.classProperty,r.constructorParameter)&&e.report({node:r.classProperty,messageId:`preferParameterProperty`,data:{parameter:n}})},ClassBody(e){for(let n of e.body)n.type===t.AST_NODE_TYPES.PropertyDefinition&&n.key.type===t.AST_NODE_TYPES.Identifier&&!n.value&&!r.includes(a(n))&&(s(n.key.name).classProperty=n)},"ClassDeclaration, ClassExpression"(){o.push(new Map)},'MethodDefinition[kind="constructor"]'(e){for(let n of e.value.params)n.type===t.AST_NODE_TYPES.Identifier&&(s(n.name).constructorParameter=n);for(let n of e.value.body?.body??[]){if(n.type!==t.AST_NODE_TYPES.ExpressionStatement||n.expression.type!==t.AST_NODE_TYPES.AssignmentExpression||n.expression.left.type!==t.AST_NODE_TYPES.MemberExpression||n.expression.left.object.type!==t.AST_NODE_TYPES.ThisExpression||n.expression.left.property.type!==t.AST_NODE_TYPES.Identifier||n.expression.right.type!==t.AST_NODE_TYPES.Identifier)break;s(n.expression.right.name).constructorAssignment=n.expression}}}}})})),U7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`prefer-as-const`,meta:{type:`suggestion`,docs:{description:"Enforce the use of `as const` over literal type",recommended:`recommended`},fixable:`code`,hasSuggestions:!0,messages:{preferConstAssertion:"Expected a `const` instead of a literal type assertion.",variableConstAssertion:"Expected a `const` assertion instead of a literal type annotation.",variableSuggest:"You should use `as const` instead of type annotation."},schema:[]},defaultOptions:[],create(e){function n(n,r,i){n.type===t.AST_NODE_TYPES.Literal&&r.type===t.AST_NODE_TYPES.TSLiteralType&&r.literal.type===t.AST_NODE_TYPES.Literal&&n.raw===r.literal.raw&&(i?e.report({node:r,messageId:`preferConstAssertion`,fix:e=>e.replaceText(r,`const`)}):e.report({node:r,messageId:`variableConstAssertion`,suggest:[{messageId:`variableSuggest`,fix:e=>[e.remove(r.parent),e.insertTextAfter(n,` as const`)]}]}))}return{PropertyDefinition(e){e.value&&e.typeAnnotation&&n(e.value,e.typeAnnotation.typeAnnotation,!1)},TSAsExpression(e){n(e.expression,e.typeAnnotation,!0)},TSTypeAssertion(e){n(e.expression,e.typeAnnotation,!0)},VariableDeclarator(e){e.init&&e.id.typeAnnotation&&n(e.init,e.id.typeAnnotation.typeAnnotation,!1)}}}})})),GOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7(),s=(0,x7().getESLintCoreRule)(`prefer-destructuring`),c={type:`object`,additionalProperties:!1,properties:{array:{type:`boolean`},object:{type:`boolean`}}},l=[{oneOf:[{type:`object`,additionalProperties:!1,properties:{AssignmentExpression:c,VariableDeclarator:c}},c]},{type:`object`,additionalProperties:!1,properties:{enforceForDeclarationWithTypeAnnotation:{type:`boolean`,description:`Whether to enforce destructuring on variable declarations with type annotations.`},enforceForRenamedProperties:{type:`boolean`,description:`Whether to enforce destructuring that use a different variable name than the property name.`}}}];e.default=(0,o.createRule)({name:`prefer-destructuring`,meta:{type:`suggestion`,docs:{description:`Require destructuring from arrays and/or objects`,extendsBaseRule:!0,frozen:!0,requiresTypeChecking:!0},fixable:s.meta.fixable,hasSuggestions:s.meta.hasSuggestions,messages:s.meta.messages,schema:l},defaultOptions:[{AssignmentExpression:{array:!0,object:!0},VariableDeclarator:{array:!0,object:!0}},{}],create(e,[t,n]){let{enforceForDeclarationWithTypeAnnotation:r=!1,enforceForRenamedProperties:a=!1}=n,{esTreeNodeToTSNodeMap:c,program:l}=(0,o.getParserServices)(e),p=l.getTypeChecker(),m=s.create(e),h=null;return{AssignmentExpression(e){e.operator===`=`&&g(e.left,e.right,e)},VariableDeclarator(e){g(e.id,e.init,e)}};function g(t,n,o){let s=t.type===i.AST_NODE_TYPES.Identifier&&t.typeAnnotation==null?m:v();if(!((t.type===i.AST_NODE_TYPES.ArrayPattern||t.type===i.AST_NODE_TYPES.Identifier||t.type===i.AST_NODE_TYPES.ObjectPattern)&&t.typeAnnotation!=null&&!r)){if(n!=null&&f(n)&&n.object.type!==i.AST_NODE_TYPES.Super){let t=c.get(n.object);if(!d(p.getTypeAtLocation(t),p)){if(!a||!_(o.type,`object`))return;e.report({node:o,messageId:`preferDestructuring`,data:{type:`object`}});return}}o.type===i.AST_NODE_TYPES.AssignmentExpression?s.AssignmentExpression(o):s.VariableDeclarator(o)}}function _(e,n){return`object`in t||`array`in t?t[n]:t[e][n]}function v(){return h??=s.create(u(e)),h}}});function u(e){return new Proxy({report:t=>{e.report({...t,fix:void 0})}},{get(t,n,r){return Reflect.get(n===`report`?t:e,n,r)}})}function d(e,t){return(0,o.isTypeAnyType)(e)?!0:e.isUnion()?e.types.every(e=>d(e,t)):a.getWellKnownSymbolPropertyOfType(e,`iterator`,t)!=null}function f(e){return e.type!==i.AST_NODE_TYPES.MemberExpression||e.property.type!==i.AST_NODE_TYPES.Literal?!1:Number.isInteger(e.property.value)}})),W7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(0,_7().createRule)({name:`prefer-enum-initializers`,meta:{type:`suggestion`,docs:{description:`Require each enum member value to be explicitly initialized`},hasSuggestions:!0,messages:{defineInitializer:`The value of the member '{{ name }}' should be explicitly defined.`,defineInitializerSuggestion:`Can be fixed to {{ name }} = {{ suggested }}`},schema:[]},defaultOptions:[],create(e){function t(t){let{members:n}=t.body;n.forEach((t,n)=>{if(t.initializer==null){let r=e.sourceCode.getText(t);e.report({node:t,messageId:`defineInitializer`,data:{name:r},suggest:[{messageId:`defineInitializerSuggestion`,data:{name:r,suggested:n},fix:e=>e.replaceText(t,`${r} = ${n}`)},{messageId:`defineInitializerSuggestion`,data:{name:r,suggested:n+1},fix:e=>e.replaceText(t,`${r} = ${n+1}`)},{messageId:`defineInitializerSuggestion`,data:{name:r,suggested:`'${r}'`},fix:e=>e.replaceText(t,`${r} = '${r}'`)}]})}})}return{TSEnumDeclaration:t}}})})),KOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7();e.default=(0,o.createRule)({name:`prefer-find`,meta:{type:`suggestion`,docs:{description:`Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result`,recommended:`stylistic`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{preferFind:`Prefer .find(...) instead of .filter(...)[0].`,preferFindSuggestion:`Use .find(...) instead of .filter(...)[0].`},schema:[]},defaultOptions:[],create(e){let t=e.sourceCode.getScope(e.sourceCode.ast),n=(0,o.getParserServices)(e),r=n.program.getTypeChecker();function s(t){let r=(0,o.skipChainExpression)(t);if(r.type===i.AST_NODE_TYPES.SequenceExpression)return s((0,o.nullThrows)(r.expressions.at(-1),`Expected to have more than zero expressions in a sequence expression`));if(r.type===i.AST_NODE_TYPES.ConditionalExpression){let e=s(r.consequent);if(e.length===0)return[];let t=s(r.alternate);return t.length===0?[]:[...e,...t]}if(r.type===i.AST_NODE_TYPES.CallExpression&&!r.optional){let t=r.callee;if(t.type===i.AST_NODE_TYPES.MemberExpression){let r=t.computed;if((0,o.isStaticMemberAccessOfValue)(t,e,`filter`)){let e=t.property;if(c((0,o.getConstrainedTypeAtLocation)(n,t.object)))return[{filterNode:e,isBracketSyntaxForFilter:r}]}}}return[]}function c(e){let t=!1;for(let n of a.unionConstituents(e))if(!(a.isIntrinsicNullType(n)||a.isIntrinsicUndefinedType(n))){if(!a.intersectionConstituents(n).every(e=>r.isArrayType(e)||r.isTupleType(e)))return!1;t=!0}return t}function l(n){if(n.arguments.length!==1)return;let r=n.callee;if(r.type===i.AST_NODE_TYPES.MemberExpression&&!r.optional&&(0,o.isStaticMemberAccessOfValue)(r,e,`at`)){let e=(0,o.getStaticValue)(n.arguments[0],t);if(e!=null&&u(e.value))return r.object}}function u(e){if(typeof e==`symbol`)return!1;let t=Number(e);return isNaN(t)?!0:Math.trunc(t)===0}function d(e){let n=(0,o.getStaticValue)(e.property,t);return!e.optional&&n!=null&&f(n.value)}function f(e){return String(e)===`0`}function p(t,n,r){let i=(0,o.nullThrows)(e.sourceCode.getTokenAfter(n,e=>e.value===`.`||e.value===`[`),`Expected to find a member access token!`);return t.removeRange([i.range[0],r.range[1]])}function m(e,t){return e.replaceText(t.filterNode,t.isBracketSyntaxForFilter?`"find"`:`find`)}return{CallExpression(t){let n=l(t);if(n){let r=s(n);r.length!==0&&e.report({node:t,messageId:`preferFind`,suggest:[{messageId:`preferFindSuggestion`,fix:e=>[...r.map(t=>m(e,t)),p(e,n,t)]}]})}},"MemberExpression[computed=true]"(t){if(d(t)){let n=t.object,r=s(n);r.length!==0&&e.report({node:t,messageId:`preferFind`,suggest:[{messageId:`preferFindSuggestion`,fix:e=>[...r.map(t=>m(e,t)),p(e,n,t)]}]})}}}}})})),qOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`prefer-for-of`,meta:{type:`suggestion`,docs:{description:"Enforce the use of `for-of` loop over the standard `for` loop where possible",recommended:`stylistic`},messages:{preferForOf:"Expected a `for-of` loop instead of a `for` loop with this simple iteration."},schema:[]},defaultOptions:[],create(e){function r(e){return e?.type===t.AST_NODE_TYPES.VariableDeclaration&&e.kind!==`const`&&e.declarations.length===1}function i(e,n){return e.type===t.AST_NODE_TYPES.Literal&&e.value===n}function a(e){return e.init!=null&&i(e.init,0)}function o(e,n){return e.type===t.AST_NODE_TYPES.Identifier&&e.name===n}function s(e,n){return e?.type===t.AST_NODE_TYPES.BinaryExpression&&e.operator===`<`&&o(e.left,n)&&e.right.type===t.AST_NODE_TYPES.MemberExpression&&o(e.right.property,`length`)?e.right.object:null}function c(e,n){if(!e)return!1;switch(e.type){case t.AST_NODE_TYPES.UpdateExpression:return e.operator===`++`&&o(e.argument,n);case t.AST_NODE_TYPES.AssignmentExpression:if(o(e.left,n)){if(e.operator===`+=`)return i(e.right,1);if(e.operator===`=`){let r=e.right;return r.type===t.AST_NODE_TYPES.BinaryExpression&&r.operator===`+`&&(o(r.left,n)&&i(r.right,1)||i(r.left,1)&&o(r.right,n))}}}return!1}function l(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[1]}function u(r,i,a){let o=e.sourceCode.getText(a);return i.references.every(i=>{let a=i.identifier,s=a.parent;return!l(r,a)||s.type===t.AST_NODE_TYPES.MemberExpression&&s.object.type!==t.AST_NODE_TYPES.ThisExpression&&s.property===a&&e.sourceCode.getText(s.object)===o&&!(0,n.isAssignee)(s)})}return{"ForStatement:exit"(n){if(!r(n.init))return;let i=n.init.declarations[0];if(!i||!a(i)||i.id.type!==t.AST_NODE_TYPES.Identifier)return;let o=i.id.name,l=s(n.test,o);if(!l)return;let[d]=e.sourceCode.getDeclaredVariables(n.init);c(n.update,o)&&u(n.body,d,l)&&e.report({node:n,messageId:`preferForOf`})}}}})})),JOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.phrases=void 0;let t=P8(),n=_7();e.phrases={[t.AST_NODE_TYPES.TSInterfaceDeclaration]:`Interface`,[t.AST_NODE_TYPES.TSTypeLiteral]:`Type literal`},e.default=(0,n.createRule)({name:`prefer-function-type`,meta:{type:`suggestion`,docs:{description:`Enforce using function types instead of interfaces with call signatures`,recommended:`stylistic`},fixable:`code`,messages:{functionTypeOverCallableType:`{{ literalOrInterface }} only has a call signature, you should use a function type instead.`,unexpectedThisOnFunctionOnlyInterface:"`this` refers to the function type '{{ interfaceName }}', did you intend to use a generic `this` parameter like `<Self>(this: Self, ...) => Self` instead?"},schema:[]},defaultOptions:[],create(n){function r(e){if(e.extends.length===0)return!1;if(e.extends.length!==1)return!0;let n=e.extends[0].expression;return n.type!==t.AST_NODE_TYPES.Identifier||n.name!==`Function`}function i(e){if(!e)return!1;switch(e.type){case t.AST_NODE_TYPES.TSUnionType:case t.AST_NODE_TYPES.TSIntersectionType:case t.AST_NODE_TYPES.TSArrayType:return!0;default:return!1}}function a(r,a,o=null){if((r.type===t.AST_NODE_TYPES.TSCallSignatureDeclaration||r.type===t.AST_NODE_TYPES.TSConstructSignatureDeclaration)&&r.returnType!=null){if(o?.length&&a.type===t.AST_NODE_TYPES.TSInterfaceDeclaration){n.report({node:o[0],messageId:`unexpectedThisOnFunctionOnlyInterface`,data:{interfaceName:a.id.name}});return}let s=a.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration?null:e=>{let o=[],s=r.range[0],c=r.returnType.range[0]-s,l=n.sourceCode.getText().slice(s,r.range[1]),u=[...n.sourceCode.getCommentsBefore(r),...n.sourceCode.getCommentsAfter(r)],d=`${l.slice(0,c)} =>${l.slice(c+1)}`,f=d.endsWith(`;`)?`;`:``;f&&(d=d.slice(0,-1)),i(a.parent)&&(d=`(${d})`),a.type===t.AST_NODE_TYPES.TSInterfaceDeclaration&&(d=a.typeParameters==null?`type ${a.id.name} = ${d}${f}`:`type ${n.sourceCode.getText().slice(a.id.range[0],a.typeParameters.range[1])} = ${d}${f}`);let p=a.parent.type===t.AST_NODE_TYPES.ExportNamedDeclaration;if(a.type===t.AST_NODE_TYPES.TSInterfaceDeclaration&&p){let n=u.map(({type:e,value:n})=>e===t.AST_TOKEN_TYPES.Line?`//${n}\n`:`/*${n}*/\n`).join(``);o.push(e.insertTextBefore(a.parent,n))}else u.forEach(e=>{let n=e.type===t.AST_TOKEN_TYPES.Line?`//${e.value}`:`/*${e.value}*/`;e.loc.start.line===r.loc.start.line?n+=` `:n+=`
|
|
1098
1098
|
`,d=n+d});let m=a.range[0];return o.push(e.replaceTextRange([m,a.range[1]],d)),o};n.report({node:r,messageId:`functionTypeOverCallableType`,data:{literalOrInterface:e.phrases[a.type]},fix:s})}}let o=null,s=0;return{TSInterfaceDeclaration(){o=[]},"TSInterfaceDeclaration:exit"(e){!r(e)&&e.body.body.length===1&&a(e.body.body[0],e,o),o=null},"TSInterfaceDeclaration TSThisType"(e){s===0&&o!=null&&o.push(e)},"TSInterfaceDeclaration TSTypeLiteral"(){s+=1},"TSInterfaceDeclaration TSTypeLiteral:exit"(){--s},"TSTypeLiteral[members.length = 1]"(e){a(e.members[0],e)}}}})})),YOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=Z2(),a=P8(),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`prefer-includes`,meta:{type:`suggestion`,docs:{description:"Enforce `includes` method over `indexOf` method",recommended:`stylistic`,requiresTypeChecking:!0},fixable:`code`,messages:{preferIncludes:`Use 'includes()' method instead.`,preferStringIncludes:"Use `String#includes()` method with a string instead."},schema:[]},defaultOptions:[],create(e){let t=e.sourceCode.getScope(e.sourceCode.ast),n=(0,s.getParserServices)(e),r=n.program.getTypeChecker();function c(e,n){return(0,s.getStaticValue)(e,t)?.value===n}function l(e){switch(e.operator){case`!==`:case`!=`:case`>`:return c(e.right,-1);case`>=`:return c(e.right,0);default:return!1}}function u(e){switch(e.operator){case`===`:case`==`:case`<=`:return c(e.right,-1);case`<`:return c(e.right,0);default:return!1}}function d(e,t){if(!o.isFunctionLike(e)||!o.isFunctionLike(t))return!1;let n=e.parameters,r=t.parameters;if(n.length!==r.length)return!1;for(let e=0;e<n.length;++e){let t=n[e],i=r[e];if(t.getText()!==i.getText())return!1}return!0}function f(e){let n=(0,s.getStaticValue)(e,t);if(n==null||!(n.value instanceof RegExp))return null;let{flags:r,pattern:a}=(0,i.parseRegExpLiteral)(n.value);if(a.alternatives.length!==1||r.ignoreCase||r.global)return null;let o=a.alternatives[0].elements;return o.every(e=>e.type===`Character`)?String.fromCodePoint(...o.map(e=>e.value)):null}function p(e){let t={"\0":`\\0`," ":`\\t`,"\n":`\\n`,"\v":`\\v`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},n=new RegExp(Object.values(t).join(`|`),`g`);return e.replaceAll(n,e=>t[e])}function m(t,i){if(!(0,s.isStaticMemberAccessOfValue)(t,e,`indexOf`))return;let o=t.parent,c=o.parent.type===a.AST_NODE_TYPES.ChainExpression?o.parent.parent:o.parent,f=u(c);if(!f&&!l(c))return;let p=n.getSymbolAtLocation(t.property)?.getDeclarations();if(!(p==null||p.length===0)){for(let e of p){let t=e.parent;if(!(r.getTypeAtLocation(t).getProperty(`includes`)?.getDeclarations())?.some(t=>d(t,e)))return}e.report({node:c,messageId:`preferIncludes`,...i&&{*fix(e){f&&(yield e.insertTextBefore(o,`!`)),yield e.replaceText(t.property,`includes`),yield e.removeRange([o.range[1],c.range[1]])}}})}}return{"BinaryExpression > CallExpression.left > MemberExpression"(e){m(e,!0)},"BinaryExpression > ChainExpression.left > CallExpression > MemberExpression"(e){m(e,!1)},'CallExpression[arguments.length=1] > MemberExpression.callee[property.name="test"][computed=false]'(t){let r=t.parent,i=f(t.object);if(i==null)return;let o=r.arguments[0];(0,s.getConstrainedTypeAtLocation)(n,o).getProperty(`includes`)?.getDeclarations()!=null&&e.report({node:r,messageId:`preferStringIncludes`,*fix(e){let n=r.arguments[0],o=n.type!==a.AST_NODE_TYPES.Literal&&n.type!==a.AST_NODE_TYPES.TemplateLiteral&&n.type!==a.AST_NODE_TYPES.Identifier&&n.type!==a.AST_NODE_TYPES.MemberExpression&&n.type!==a.AST_NODE_TYPES.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),yield e.removeRange([n.range[1],r.range[1]]),o&&(yield e.insertTextBefore(n,`(`),yield e.insertTextAfter(n,`)`)),yield e.insertTextAfter(n,`${t.optional?`?.`:`.`}includes('${p(i)}')`)}})}}}})})),XOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`prefer-literal-enum-member`,meta:{type:`suggestion`,docs:{description:`Require all enum members to be literal values`,recommended:`strict`,requiresTypeChecking:!1},messages:{notLiteral:`Explicit enum value must only be a literal value (string or number).`,notLiteralOrBitwiseExpression:`Explicit enum value must only be a literal value (string or number) or a bitwise expression.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowBitwiseExpressions:{type:`boolean`,description:`Whether to allow using bitwise expressions in enum initializers.`}}}]},defaultOptions:[{allowBitwiseExpressions:!1}],create(e,[{allowBitwiseExpressions:r}]){function i(e,n){return e.type===t.AST_NODE_TYPES.Identifier&&e.name===n}function a(e,r){return e.body.members.some(e=>i(e.id,r)||e.id.type===t.AST_NODE_TYPES.Literal&&(0,n.getStaticStringValue)(e.id)===r)}function o(e,r){if(r.type===t.AST_NODE_TYPES.Identifier)return a(e,r.name);if(r.type===t.AST_NODE_TYPES.MemberExpression&&i(r.object,e.id.name)){if(r.property.type===t.AST_NODE_TYPES.Identifier)return a(e,r.property.name);if(r.computed){let t=(0,n.getStaticStringValue)(r.property);if(t)return a(e,t)}}return!1}return{TSEnumMember(n){if(n.initializer==null)return;let i=n.parent.parent;function a(e,n){if(n&&o(i,e))return!0;switch(e.type){case t.AST_NODE_TYPES.Literal:return!0;case t.AST_NODE_TYPES.TemplateLiteral:return e.expressions.length===0;case t.AST_NODE_TYPES.UnaryExpression:return[`-`,`+`].includes(e.operator)?a(e.argument,n):r?e.operator===`~`&&a(e.argument,!0):!1;case t.AST_NODE_TYPES.BinaryExpression:return r?[`&`,`^`,`<<`,`>>`,`>>>`,`|`].includes(e.operator)&&a(e.left,!0)&&a(e.right,!0):!1;default:return!1}}a(n.initializer,!1)||e.report({node:n.id,messageId:r?`notLiteralOrBitwiseExpression`:`notLiteral`})}}}})})),ZOe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`prefer-namespace-keyword`,meta:{type:`suggestion`,docs:{description:"Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules",recommended:`recommended`},fixable:`code`,messages:{useNamespace:`Use 'namespace' instead of 'module' to declare custom TypeScript modules.`},schema:[]},defaultOptions:[],create(e){return{TSModuleDeclaration(n){if(n.id.type===t.AST_NODE_TYPES.Literal)return;let r=e.sourceCode.getTokenBefore(n.id);r?.type===t.AST_TOKEN_TYPES.Identifier&&r.value===`module`&&e.report({node:n,messageId:`useNamespace`,fix(e){return e.replaceText(r,`namespace`)}})}}}})})),QOe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=fDe(),l=(0,s.isNodeOfTypes)([i.AST_NODE_TYPES.ChainExpression,i.AST_NODE_TYPES.Identifier,i.AST_NODE_TYPES.MemberExpression]),u=e=>(0,s.isNullLiteral)(e)||(0,s.isUndefinedIdentifier)(e),d=e=>u(e.left)&&u(e.right);e.default=(0,s.createRule)({name:`prefer-nullish-coalescing`,meta:{type:`suggestion`,docs:{description:`Enforce using the nullish coalescing operator instead of logical assignments or chaining`,recommended:`stylistic`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{noStrictNullCheck:"This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.",preferNullishOverAssignment:"Prefer using nullish coalescing operator (`??{{ equals }}`) instead of an assignment expression, as it is simpler to read.",preferNullishOverOr:"Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a logical {{ description }} (`||{{ equals }}`), as it is a safer operator.",preferNullishOverTernary:"Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a ternary expression, as it is simpler to read.",suggestNullish:"Fix to nullish coalescing operator (`??{{ equals }}`)."},schema:[{type:`object`,additionalProperties:!1,properties:{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:{type:`boolean`,description:"Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`."},ignoreBooleanCoercion:{type:`boolean`,description:"Whether to ignore arguments to the `Boolean` constructor"},ignoreConditionalTests:{type:`boolean`,description:`Whether to ignore cases that are located within a conditional test.`},ignoreIfStatements:{type:`boolean`,description:`Whether to ignore any if statements that could be simplified by using the nullish coalescing operator.`},ignoreMixedLogicalExpressions:{type:`boolean`,description:"Whether to ignore any logical or expressions that are part of a mixed logical expression (with `&&`)."},ignorePrimitives:{description:"Whether to ignore all (`true`) or some (an object with properties) primitive types.",oneOf:[{type:`object`,additionalProperties:!1,description:`Which primitives types may be ignored.`,properties:{bigint:{type:`boolean`,description:`Ignore bigint primitive types.`},boolean:{type:`boolean`,description:`Ignore boolean primitive types.`},number:{type:`boolean`,description:`Ignore number primitive types.`},string:{type:`boolean`,description:`Ignore string primitive types.`}}},{type:`boolean`,description:`Ignore all primitive types.`,enum:[!0]}]},ignoreTernaryTests:{type:`boolean`,description:`Whether to ignore any ternary expressions that could be simplified by using the nullish coalescing operator.`}}}]},defaultOptions:[{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:!1,ignoreBooleanCoercion:!1,ignoreConditionalTests:!0,ignoreIfStatements:!1,ignoreMixedLogicalExpressions:!1,ignorePrimitives:{bigint:!1,boolean:!1,number:!1,string:!1},ignoreTernaryTests:!1}],create(e,[{allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing:t,ignoreBooleanCoercion:n,ignoreConditionalTests:r,ignoreIfStatements:u,ignoreMixedLogicalExpressions:d,ignorePrimitives:m,ignoreTernaryTests:y}]){let x=(0,s.getParserServices)(e),S=x.program.getCompilerOptions();!a.isStrictCompilerOptionEnabled(S,`strictNullChecks`)&&t!==!0&&e.report({loc:{start:{column:0,line:0},end:{column:0,line:0}},messageId:`noStrictNullCheck`});function C(e){if(!(0,s.isNullableType)(e))return!1;let t=[(m===!0||m.bigint)&&o.TypeFlags.BigIntLike,(m===!0||m.boolean)&&o.TypeFlags.BooleanLike,(m===!0||m.number)&&o.TypeFlags.NumberLike,(m===!0||m.string)&&o.TypeFlags.StringLike].filter(e=>typeof e==`number`).reduce((e,t)=>e|t,0);return t===0?!0:!(a.isTypeFlagSet(e,o.TypeFlags.Any|o.TypeFlags.Unknown)||a.typeConstituents(e).some(e=>a.intersectionConstituents(e).some(e=>a.isTypeFlagSet(e,t))))}function w({node:t,testNode:a}){return!(!C(x.getTypeAtLocation(a))||r===!0&&f(t)||n===!0&&p(t,e)&&!(t.type===i.AST_NODE_TYPES.ConditionalExpression&&t.parent.type===i.AST_NODE_TYPES.CallExpression))}function T(t,n,r){if(!w({node:t,testNode:t.left})||d===!0&&h(t))return;let a=(0,s.nullThrows)(e.sourceCode.getTokenAfter(t.left,e=>e.type===i.AST_TOKEN_TYPES.Punctuator&&e.value===t.operator),s.NullThrowsReasons.MissingToken(`operator`,t.type));function*o(e){(0,s.isLogicalOrOperator)(t.parent)&&(t.left.type===i.AST_NODE_TYPES.LogicalExpression&&!(0,s.isLogicalOrOperator)(t.left.left)?yield e.insertTextBefore(t.left.right,`(`):yield e.insertTextBefore(t.left,`(`),yield e.insertTextAfter(t.right,`)`)),yield e.replaceText(a,t.operator.replace(`||`,`??`))}e.report({node:a,messageId:`preferNullishOverOr`,data:{description:n,equals:r},suggest:[{messageId:`suggestNullish`,data:{equals:r},fix:o}]})}function E(e,t,n,r){let a,c=!1,l=!1,u=!1;if(n.length)for(let e of n)if((0,s.isNullLiteral)(e))l=!0;else if((0,s.isUndefinedIdentifier)(e))u=!0;else if(g(e,t))a??=e;else return{isFixable:!1};else if(c=!0,a=e.test.type===i.AST_NODE_TYPES.UnaryExpression?e.test.argument:e.test,!g(a,t))return{isFixable:!1};return a&&(()=>{if(c)return w({node:e,testNode:a});if(u===l)return u;if([`==`,`!=`].includes(r))return!0;let t=x.getTypeAtLocation(a),n=(0,s.getTypeFlags)(t);if(n&(o.TypeFlags.Any|o.TypeFlags.Unknown))return!1;let i=(n&o.TypeFlags.Null)!==0;if(u&&!i)return!0;let d=(n&o.TypeFlags.Undefined)!==0;return l&&!d})()?{isFixable:!0,nullishCoalescingLeftNode:a}:{isFixable:!1}}return{'AssignmentExpression[operator = "||="]'(e){T(e,`assignment`,`=`)},ConditionalExpression(t){if(y)return;let{nodesInsideTestExpression:n,operator:r}=v(t);if(r==null)return;let{nonNullishBranch:i,nullishBranch:a}=_(t,r),o=E(t,i,n,r);o.isFixable&&e.report({node:t,messageId:`preferNullishOverTernary`,data:{equals:``},suggest:[{messageId:`suggestNullish`,data:{equals:``},fix(n){let r=(0,s.getTextWithParentheses)(e.sourceCode,a),i=(0,s.isParenthesized)(a,e.sourceCode)?r:(0,c.getWrappedCode)(r,(0,s.getOperatorPrecedenceForNode)(a),s.OperatorPrecedence.Coalesce);return n.replaceText(t,`${(0,s.getTextWithParentheses)(e.sourceCode,o.nullishCoalescingLeftNode)} ?? ${i}`)}}]})},IfStatement(t){if(u||t.alternate!=null)return;let n;if(t.consequent.type===i.AST_NODE_TYPES.BlockStatement&&t.consequent.body.length===1&&t.consequent.body[0].type===i.AST_NODE_TYPES.ExpressionStatement?n=t.consequent.body[0].expression:t.consequent.type===i.AST_NODE_TYPES.ExpressionStatement&&(n=t.consequent.expression),n?.type!==i.AST_NODE_TYPES.AssignmentExpression||!l(n.left))return;let r=n.left,a=n.right,{nodesInsideTestExpression:o,operator:c}=v(t);if(!(c==null||![`!`,`==`,`===`].includes(c))&&E(t,r,o,c).isFixable){let o=t.consequent.type===i.AST_NODE_TYPES.BlockStatement,c=b(e.sourceCode.getCommentsBefore(n),o?`
|
|
1099
1099
|
`:` `),l=o?b(e.sourceCode.getCommentsAfter(n.parent),`
|
|
1100
1100
|
`):``;e.report({node:t,messageId:`preferNullishOverAssignment`,data:{equals:`=`},suggest:[{messageId:`suggestNullish`,data:{equals:`=`},fix(n){let i=[];return c&&i.push(n.insertTextBefore(t,c)),i.push(n.replaceText(t,`${(0,s.getTextWithParentheses)(e.sourceCode,r)} ??= ${(0,s.getTextWithParentheses)(e.sourceCode,a)};`)),l&&i.push(n.insertTextAfter(t,` ${l.slice(0,-1)}`)),i}}]})}},'LogicalExpression[operator = "||"]'(e){T(e,`or`,``)}}}});function f(e){let t=e.parent;return t==null?!1:t.type===i.AST_NODE_TYPES.LogicalExpression||t.type===i.AST_NODE_TYPES.ConditionalExpression&&(t.consequent===e||t.alternate===e)||t.type===i.AST_NODE_TYPES.SequenceExpression&&t.expressions.at(-1)===e||t.type===i.AST_NODE_TYPES.UnaryExpression&&t.operator===`!`?f(t):(t.type===i.AST_NODE_TYPES.ConditionalExpression||t.type===i.AST_NODE_TYPES.DoWhileStatement||t.type===i.AST_NODE_TYPES.IfStatement||t.type===i.AST_NODE_TYPES.ForStatement||t.type===i.AST_NODE_TYPES.WhileStatement)&&t.test===e}function p(e,t){let n=e.parent;return n==null?!1:n.type===i.AST_NODE_TYPES.LogicalExpression||n.type===i.AST_NODE_TYPES.ConditionalExpression&&(n.consequent===e||n.alternate===e)||n.type===i.AST_NODE_TYPES.SequenceExpression&&n.expressions.at(-1)===e?p(n,t):m(n,t)}function m(e,t){if(e.type===i.AST_NODE_TYPES.CallExpression&&e.callee.type===i.AST_NODE_TYPES.Identifier&&e.callee.name===`Boolean`&&e.arguments[0]){let n=t.sourceCode.getScope(e).set.get(i.AST_TOKEN_TYPES.Boolean);return n==null||n.defs.length===0}return!1}function h(e){let t=new Set,n=[e.parent,e.left,e.right];for(let e of n)if(!t.has(e)&&(t.add(e),e.type===i.AST_NODE_TYPES.LogicalExpression)){if(e.operator===`&&`)return!0;[`||`,`||=`].includes(e.operator)&&n.push(e.parent,e.left,e.right)}return!1}function g(e,t){return e.type===i.AST_NODE_TYPES.MemberExpression&&t.type===i.AST_NODE_TYPES.MemberExpression?g(e.object,t.object)?e.computed===t.computed?(0,s.isNodeEqual)(e.property,t.property):e.property.type===i.AST_NODE_TYPES.Literal&&t.property.type===i.AST_NODE_TYPES.Identifier?e.property.value===t.property.name:e.property.type===i.AST_NODE_TYPES.Identifier&&t.property.type===i.AST_NODE_TYPES.Literal?e.property.name===t.property.value:!1:!1:e.type===i.AST_NODE_TYPES.ChainExpression||t.type===i.AST_NODE_TYPES.ChainExpression?g((0,s.skipChainExpression)(e),(0,s.skipChainExpression)(t)):(0,s.isNodeEqual)(e,t)}function _(e,t){return[``,`!=`,`!==`].includes(t)?{nonNullishBranch:e.consequent,nullishBranch:e.alternate}:{nonNullishBranch:e.alternate,nullishBranch:e.consequent}}function v(e){let t=null,n=[];if(l(e.test)||e.test.type===i.AST_NODE_TYPES.UnaryExpression)t=y(e.test);else if(e.test.type===i.AST_NODE_TYPES.BinaryExpression)n=[e.test.left,e.test.right],(e.test.operator===`==`||e.test.operator===`!=`||e.test.operator===`===`||e.test.operator===`!==`)&&(t=e.test.operator);else if(e.test.type===i.AST_NODE_TYPES.LogicalExpression&&e.test.left.type===i.AST_NODE_TYPES.BinaryExpression&&e.test.right.type===i.AST_NODE_TYPES.BinaryExpression){if(d(e.test.left)||d(e.test.right))return{nodesInsideTestExpression:n,operator:t};n=[e.test.left.left,e.test.left.right,e.test.right.left,e.test.right.right],[`||`,`||=`].includes(e.test.operator)?e.test.left.operator===`===`&&e.test.right.operator===`===`?t=`===`:((e.test.left.operator===`===`||e.test.right.operator===`===`)&&(e.test.left.operator===`==`||e.test.right.operator===`==`)||e.test.left.operator===`==`&&e.test.right.operator===`==`)&&(t=`==`):e.test.operator===`&&`&&(e.test.left.operator===`!==`&&e.test.right.operator===`!==`?t=`!==`:((e.test.left.operator===`!==`||e.test.right.operator===`!==`)&&(e.test.left.operator===`!=`||e.test.right.operator===`!=`)||e.test.left.operator===`!=`&&e.test.right.operator===`!=`)&&(t=`!=`))}return{nodesInsideTestExpression:n,operator:t}}function y(e){return e.type===i.AST_NODE_TYPES.UnaryExpression?l(e.argument)&&e.operator===`!`?`!`:null:``}function b(e,t){return e.map(({type:e,value:n})=>e===i.AST_TOKEN_TYPES.Line?`//${n}${t}`:`/*${n}*/${t}`).join(``)}})),$Oe=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.checkNullishAndReport=s;let i=d7(),a=g8(),o=r(U6());function s(e,t,{requireNullish:n},r,s){(!n||r.some(e=>(0,a.unionConstituents)(t.getTypeAtLocation(e)).some(e=>(0,i.isTypeFlagSet)(e,o.TypeFlags.Null|o.TypeFlags.Undefined))))&&e.report(s)}})),eke=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NodeComparisonResult=void 0,e.compareNodes=d;let t=P8(),n=k3();var r;(function(e){e.Equal=`Equal`,e.Subset=`Subset`,e.Invalid=`Invalid`})(r||(e.NodeComparisonResult=r={}));function i(e,t){return e.length===t.length&&e.every((e,n)=>{let i=t[n];return e==null||i==null?e===i:s(e,i)===r.Equal})?r.Equal:r.Invalid}function a(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function o(e){return!(e.parent?.type===t.AST_NODE_TYPES.MemberExpression&&e.parent.object===e)&&!(e.parent?.type===t.AST_NODE_TYPES.CallExpression&&e.parent.callee===e)&&e.type===t.AST_NODE_TYPES.ChainExpression}function s(e,t){return e==null||t==null?e===t?r.Equal:r.Invalid:!a(e)||!a(t)?r.Invalid:d(e,t)}function c(e,t){let a=n.visitorKeys[e.type];if(a==null)return r.Invalid;if(a.length===0)return r.Equal;for(let n of a){let a=e[n],o=t[n];if(Array.isArray(a)){if(i(a,o)!==r.Equal)return r.Invalid}else if(s(a,o)!==r.Equal)return r.Invalid}return r.Equal}function l(e,n){if(e.type!==n.type){if(o(e))return d(e.expression,n);if(o(n))return d(e,n.expression);if(e.type===t.AST_NODE_TYPES.TSNonNullExpression)return d(e.expression,n);if(n.type===t.AST_NODE_TYPES.TSNonNullExpression)return d(e,n.expression);if(e.type===t.AST_NODE_TYPES.CallExpression||e.type===t.AST_NODE_TYPES.Identifier||e.type===t.AST_NODE_TYPES.MemberExpression||e.type===t.AST_NODE_TYPES.MetaProperty)switch(n.type){case t.AST_NODE_TYPES.MemberExpression:return n.property.type===t.AST_NODE_TYPES.PrivateIdentifier||d(e,n.object)===r.Invalid?r.Invalid:r.Subset;case t.AST_NODE_TYPES.CallExpression:return d(e,n.callee)===r.Invalid?r.Invalid:r.Subset;default:return r.Invalid}return r.Invalid}switch(e.type){case t.AST_NODE_TYPES.ArrayExpression:case t.AST_NODE_TYPES.ArrowFunctionExpression:case t.AST_NODE_TYPES.ClassExpression:case t.AST_NODE_TYPES.FunctionExpression:case t.AST_NODE_TYPES.JSXElement:case t.AST_NODE_TYPES.JSXFragment:case t.AST_NODE_TYPES.NewExpression:case t.AST_NODE_TYPES.ObjectExpression:return r.Invalid;case t.AST_NODE_TYPES.AssignmentExpression:return r.Invalid;case t.AST_NODE_TYPES.CallExpression:{let t=n;return d(e,t.callee)===r.Invalid?d(e.callee,t.callee)!==r.Equal||i(e.arguments,t.arguments)!==r.Equal?r.Invalid:d(e.typeArguments,t.typeArguments)===r.Equal?r.Equal:r.Invalid:r.Subset}case t.AST_NODE_TYPES.ChainExpression:return d(e,n.expression);case t.AST_NODE_TYPES.Identifier:case t.AST_NODE_TYPES.PrivateIdentifier:return e.name===n.name?r.Equal:r.Invalid;case t.AST_NODE_TYPES.Literal:{let t=n;return e.raw===t.raw&&e.value===t.value?r.Equal:r.Invalid}case t.AST_NODE_TYPES.MemberExpression:{let i=n;return i.property.type===t.AST_NODE_TYPES.PrivateIdentifier?r.Invalid:d(e,i.object)===r.Invalid?e.computed!==i.computed||d(e.object,i.object)!==r.Equal?r.Invalid:d(e.property,i.property):r.Subset}case t.AST_NODE_TYPES.TSTemplateLiteralType:case t.AST_NODE_TYPES.TemplateLiteral:{let t=n;return e.quasis.length===t.quasis.length&&e.quasis.every((e,n)=>{let r=t.quasis[n];return e.value.cooked===r.value.cooked})?r.Equal:r.Invalid}case t.AST_NODE_TYPES.TemplateElement:{let t=n;return e.value.cooked===t.value.cooked?r.Equal:r.Invalid}case t.AST_NODE_TYPES.ArrayPattern:case t.AST_NODE_TYPES.ObjectPattern:return r.Invalid;case t.AST_NODE_TYPES.UpdateExpression:return r.Invalid;case t.AST_NODE_TYPES.YieldExpression:return r.Invalid;default:return c(e,n)}}let u=new WeakMap;function d(e,t){if(e==null||t==null)return e===t?r.Equal:r.Invalid;let n=u.get(e)?.get(t);if(n)return n;let i=l(e,t),a=u.get(e);return a??(a=new WeakMap,u.set(e,a)),a.set(t,i),i}})),tke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ComparisonType=e.NullishComparisonType=e.OperandValidity=e.Yoda=void 0,e.gatherLogicalOperands=h;let i=P8(),a=g8(),o=r(U6()),s=_7();var c;(function(e){e[e.Yes=0]=`Yes`,e[e.No=1]=`No`,e[e.Unknown=2]=`Unknown`})(c||(e.Yoda=c={}));var l;(function(e){e.Null=`Null`,e.Undefined=`Undefined`,e.UndefinedStringLiteral=`UndefinedStringLiteral`})(l||={});var u;(function(e){e.Valid=`Valid`,e.Last=`Last`,e.Invalid=`Invalid`})(u||(e.OperandValidity=u={}));var d;(function(e){e.NotEqualNullOrUndefined=`NotEqualNullOrUndefined`,e.EqualNullOrUndefined=`EqualNullOrUndefined`,e.NotStrictEqualNull=`NotStrictEqualNull`,e.StrictEqualNull=`StrictEqualNull`,e.NotStrictEqualUndefined=`NotStrictEqualUndefined`,e.StrictEqualUndefined=`StrictEqualUndefined`,e.NotBoolean=`NotBoolean`,e.Boolean=`Boolean`})(d||(e.NullishComparisonType=d={}));var f;(function(e){e.NotEqual=`NotEqual`,e.Equal=`Equal`,e.NotStrictEqual=`NotStrictEqual`,e.StrictEqual=`StrictEqual`})(f||(e.ComparisonType=f={}));let p=o.TypeFlags.Null|o.TypeFlags.Undefined;function m(e,t,n,r){let i=n.getTypeAtLocation(e),c=(0,a.unionConstituents)(i).flatMap(e=>(0,a.intersectionConstituents)(e));if(t&&(c.some(e=>(0,a.isBooleanLiteralType)(e)&&e.intrinsicName===`false`)||c.some(e=>(0,a.isStringLiteralType)(e)&&e.value===``)||c.some(e=>(0,a.isNumberLiteralType)(e)&&e.value===0)||c.some(e=>(0,a.isBigIntLiteralType)(e)&&e.value.base10Value===`0`)))return!1;let l=p|o.TypeFlags.Object;return r.checkAny===!0&&(l|=o.TypeFlags.Any),r.checkUnknown===!0&&(l|=o.TypeFlags.Unknown),r.checkString===!0&&(l|=o.TypeFlags.StringLike),r.checkNumber===!0&&(l|=o.TypeFlags.NumberLike),r.checkBoolean===!0&&(l|=o.TypeFlags.BooleanLike),r.checkBigInt===!0&&(l|=o.TypeFlags.BigIntLike),c.every(e=>(0,s.isTypeFlagSet)(e,l))}function h(e,t,n,r){let a=[],{newlySeenLogicals:o,operands:p}=h(e);for(let o of p){let c=o!==p.at(-1);switch(o.type){case i.AST_NODE_TYPES.BinaryExpression:{let{comparedExpression:t,comparedValue:r,isYoda:c}=(()=>{let e=g(o.right);return e?{comparedExpression:o.left,comparedValue:e,isYoda:!1}:{comparedExpression:o.right,comparedValue:g(o.left),isYoda:!0}})();if(r===l.UndefinedStringLiteral){if(t.type===i.AST_NODE_TYPES.UnaryExpression&&t.operator===`typeof`){let e=t.argument;if(e.type===i.AST_NODE_TYPES.Identifier&&(0,s.isReferenceToGlobalFunction)(e.name,e,n)){a.push({type:u.Invalid});continue}a.push({comparedName:t.argument,comparisonType:o.operator.startsWith(`!`)?d.NotStrictEqualUndefined:d.StrictEqualUndefined,isYoda:c,node:o,type:u.Valid});continue}a.push({type:u.Invalid});continue}if(o.operator.startsWith(`!`)!==(e.operator===`||`))switch(o.operator){case`!=`:case`==`:if(r===l.Null||r===l.Undefined){a.push({comparedName:t,comparisonType:o.operator.startsWith(`!`)?d.NotEqualNullOrUndefined:d.EqualNullOrUndefined,isYoda:c,node:o,type:u.Valid});continue}break;case`!==`:case`===`:{let e=t;switch(r){case l.Null:a.push({comparedName:e,comparisonType:o.operator.startsWith(`!`)?d.NotStrictEqualNull:d.StrictEqualNull,isYoda:c,node:o,type:u.Valid});continue;case l.Undefined:a.push({comparedName:e,comparisonType:o.operator.startsWith(`!`)?d.NotStrictEqualUndefined:d.StrictEqualUndefined,isYoda:c,node:o,type:u.Valid});continue}}}let p=v(o);if(p){let{comparedName:e,comparedValue:t,yoda:n}=p;switch(o.operator){case`==`:case`===`:{let r=o.operator===`==`?f.Equal:f.StrictEqual;a.push({comparedName:e,comparisonType:r,comparisonValue:t,node:o,type:u.Last,yoda:n});continue}case`!=`:case`!==`:{let r=o.operator===`!=`?f.NotEqual:f.NotStrictEqual;a.push({comparedName:e,comparisonType:r,comparisonValue:t,node:o,type:u.Last,yoda:n});continue}}}a.push({type:u.Invalid});continue}case i.AST_NODE_TYPES.UnaryExpression:if(o.operator===`!`&&(!c||m(o.argument,e.operator===`||`,t,r))){a.push({comparedName:o.argument,comparisonType:d.NotBoolean,isYoda:!1,node:o,type:u.Valid});continue}a.push({type:u.Invalid});continue;case i.AST_NODE_TYPES.LogicalExpression:a.push({type:u.Invalid});continue;default:!c||m(o,e.operator===`&&`,t,r)?a.push({comparedName:o,comparisonType:d.Boolean,isYoda:!1,node:o,type:u.Valid}):a.push({type:u.Invalid});continue}}return{newlySeenLogicals:o,operands:a};function h(e){let t=[],n=new Set([e]),r=[e.right,e.left],a;for(;a=r.pop();)a.type===i.AST_NODE_TYPES.LogicalExpression&&a.operator===e.operator?(n.add(a),r.push(a.right),r.push(a.left)):t.push(a);return{newlySeenLogicals:n,operands:t}}function g(e){switch(e.type){case i.AST_NODE_TYPES.Literal:return e.value===null&&e.raw===`null`?l.Null:e.value===`undefined`?l.UndefinedStringLiteral:null;case i.AST_NODE_TYPES.Identifier:return e.name===`undefined`?l.Undefined:null}return null}function _(e){return e.type===i.AST_NODE_TYPES.MemberExpression||e.type===i.AST_NODE_TYPES.CallExpression&&e.callee.type===i.AST_NODE_TYPES.MemberExpression}function v(e){let{left:t,right:n}=e,r=_(t),i=_(n);if(r&&!i){let[e,r]=[t,n];return{comparedName:e,comparedValue:r,yoda:c.No}}if(!r&&i){let[e,r]=[n,t];return{comparedName:e,comparedValue:r,yoda:c.Yes}}return r&&i?{comparedName:t,comparedValue:n,yoda:c.Unknown}:null}}})),nke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.analyzeChain=y;let i=P8(),a=g8(),o=r(U6()),s=_7(),c=$Oe(),l=eke(),u=tke();function d(e,t,n){let r=n|o.TypeFlags.Any|o.TypeFlags.Unknown,i=(0,a.unionConstituents)(e.getTypeAtLocation(t));for(let e of i)if((0,s.isTypeFlagSet)(e,r))return!0;return!1}function f(e,t,n){let r=n.getTypeAtLocation(e),i=o.TypeFlags.Any|o.TypeFlags.Unknown,c=(0,a.unionConstituents)(r);switch(t){case u.ComparisonType.Equal:return!c.some(e=>(0,s.isTypeFlagSet)(e,i|o.TypeFlags.Null|o.TypeFlags.Undefined));case u.ComparisonType.StrictEqual:return!c.some(e=>(0,s.isTypeFlagSet)(e,i|o.TypeFlags.Undefined));case u.ComparisonType.NotStrictEqual:return c.every(e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.Undefined));case u.ComparisonType.NotEqual:return c.every(e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.Undefined|o.TypeFlags.Null))}}function p(e,t,n){let r=n.getTypeAtLocation(e),i=o.TypeFlags.Any|o.TypeFlags.Unknown,c=(0,a.unionConstituents)(r);switch(t){case u.ComparisonType.NotEqual:return!c.some(e=>(0,s.isTypeFlagSet)(e,i|o.TypeFlags.Null|o.TypeFlags.Undefined));case u.ComparisonType.NotStrictEqual:return!c.some(e=>(0,s.isTypeFlagSet)(e,i|o.TypeFlags.Undefined));case u.ComparisonType.Equal:return c.every(e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.Undefined|o.TypeFlags.Null));case u.ComparisonType.StrictEqual:return c.every(e=>(0,s.isTypeFlagSet)(e,o.TypeFlags.Undefined))}}let m=(e,t,n,r)=>{switch(t.comparisonType){case u.NullishComparisonType.Boolean:case u.NullishComparisonType.NotEqualNullOrUndefined:return[t];case u.NullishComparisonType.NotStrictEqualNull:{let i=r.at(n+1);return i?.comparisonType===u.NullishComparisonType.NotStrictEqualUndefined&&(0,l.compareNodes)(t.comparedName,i.comparedName)===l.NodeComparisonResult.Equal?[t,i]:i&&!d(e,t.comparedName,o.TypeFlags.Undefined)?[t]:null}case u.NullishComparisonType.NotStrictEqualUndefined:{let i=r.at(n+1);return i?.comparisonType===u.NullishComparisonType.NotStrictEqualNull&&(0,l.compareNodes)(t.comparedName,i.comparedName)===l.NodeComparisonResult.Equal?[t,i]:d(e,t.comparedName,o.TypeFlags.Null)?null:[t]}default:return null}},h=(e,t,n,r)=>{switch(t.comparisonType){case u.NullishComparisonType.NotBoolean:case u.NullishComparisonType.EqualNullOrUndefined:return[t];case u.NullishComparisonType.StrictEqualNull:{let i=r.at(n+1);return i?.comparisonType===u.NullishComparisonType.StrictEqualUndefined&&(0,l.compareNodes)(t.comparedName,i.comparedName)===l.NodeComparisonResult.Equal?[t,i]:d(e,t.comparedName,o.TypeFlags.Undefined)?null:[t]}case u.NullishComparisonType.StrictEqualUndefined:{let i=r.at(n+1);return i?.comparisonType===u.NullishComparisonType.StrictEqualNull&&(0,l.compareNodes)(t.comparedName,i.comparedName)===l.NodeComparisonResult.Equal?[t,i]:d(e,t.comparedName,o.TypeFlags.Null)?null:[t]}default:return null}},g=(e,t)=>{let n=(0,l.compareNodes)(e.comparedName,t.comparedName)===l.NodeComparisonResult.Subset;if(t.yoda!==u.Yoda.Unknown)return{comparedName:t.comparedName,comparisonValue:t.comparisonValue,isSubset:n,isYoda:t.yoda===u.Yoda.Yes};let r=(0,l.compareNodes)(e.comparedName,t.comparisonValue)===l.NodeComparisonResult.Subset;return n&&!r?{comparedName:t.comparedName,comparisonValue:t.comparisonValue,isSubset:!0,isYoda:!1}:!n&&r?{comparedName:t.comparisonValue,comparisonValue:t.comparedName,isSubset:!0,isYoda:!0}:{comparedName:t.comparisonValue,comparisonValue:t.comparisonValue,isSubset:!1,isYoda:!0}};function _(e,t,n){let r=e[0].node,i=e[e.length-1].node,a=(0,s.nullThrows)(n.getFirstToken(r),s.NullThrowsReasons.MissingToken(`any token`,r.type)),o=(0,s.nullThrows)(n.getLastToken(i),s.NullThrowsReasons.MissingToken(`any token`,i.type));for(;a.range[0]>t[0];){let e=n.getTokenBefore(a);if(!e||!(0,s.isOpeningParenToken)(e)||e.range[0]<t[0])break;a=e}for(;o.range[1]<t[1];){let e=n.getTokenAfter(o);if(!e||!(0,s.isClosingParenToken)(e)||e.range[1]>t[1])break;o=e}return[a.range[0],o.range[1]]}function v(e,t,n,r,a,c,l){let f=l?[...c,l]:c,p=f[f.length-1],m;if(a.allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing===!0)m=!1;else if(l||p.comparisonType===u.NullishComparisonType.EqualNullOrUndefined||p.comparisonType===u.NullishComparisonType.NotEqualNullOrUndefined||p.comparisonType===u.NullishComparisonType.StrictEqualUndefined||p.comparisonType===u.NullishComparisonType.NotStrictEqualUndefined||r===`||`&&p.comparisonType===u.NullishComparisonType.NotBoolean)m=!1;else{m=!0;for(let e of f)if(d(t,e.node,o.TypeFlags.Undefined)){m=!1;break}}let h=[];for(let t of f){let n=y(e,t.comparedName).slice(h.length);n.length>0&&(h.length>0&&(n[0].optional=!0),h.push(...n))}let g=h.map(e=>{let t=``;return e.optional?t+=`?.`:(e.nonNull&&(t+=`!`),e.requiresDot&&(t+=`.`)),e.precedence!==s.OperatorPrecedence.Invalid&&e.precedence<s.OperatorPrecedence.Member?t+=`(${e.text})`:t+=e.text,t}).join(``);if(p.node.type===i.AST_NODE_TYPES.BinaryExpression){let t=p.node.operator,{left:n,right:r}=(()=>{if(p.isYoda){let t=p.node.right.type===i.AST_NODE_TYPES.UnaryExpression?`${p.node.right.operator} `:``;return{left:e.getText(p.node.left),right:t+g}}return{left:(p.node.left.type===i.AST_NODE_TYPES.UnaryExpression?`${p.node.left.operator} `:``)+g,right:e.getText(p.node.right)}})();g=`${n} ${t} ${r}`}else p.comparisonType===u.NullishComparisonType.NotBoolean&&(g=`!${g}`);let v=_(f,n.range,e);return{loc:{end:e.getLocFromIndex(v[1]),start:e.getLocFromIndex(v[0])},messageId:`preferOptionalChain`,...(0,s.getFixOrSuggest)({fixOrSuggest:m?`suggest`:`fix`,suggestion:{fix:t=>{let r=0,i=e.getTokens(n,{filter:e=>e.range[0]>=v[0]&&e.range[1]<=v[1]});for(let e of i)(0,s.isOpeningParenToken)(e)?r++:(0,s.isClosingParenToken)(e)&&r--;if(r>0&&v[1]<n.range[1]){let r=[],i=[],a=e.getTokens(n,{filter:e=>e.range[1]>v[1]});for(let e of a)(0,s.isOpeningParenToken)(e)&&r.push(e.range[0]),(0,s.isClosingParenToken)(e)&&(r.length>0?r.pop():i.push(e.range[0]));let o=e.getText(n);i.reverse();for(let e of i)o=o.slice(0,e)+o.slice(e+1);return o=o.slice(v[1]),t.replaceTextRange(n.range,g+o)}return t.replaceTextRange(v,g)},messageId:`optionalChainSuggest`}})};function y(e,t){switch(t.type){case i.AST_NODE_TYPES.ChainExpression:return y(e,t.expression);case i.AST_NODE_TYPES.CallExpression:{let n=(()=>{let n=(0,s.nullThrows)(e.getLastToken(t),s.NullThrowsReasons.MissingToken(`closing parenthesis`,t.type)),r=(0,s.nullThrows)(e.getFirstTokenBetween(t.typeArguments??t.callee,n,s.isOpeningParenToken),s.NullThrowsReasons.MissingToken(`opening parenthesis`,t.type));return e.text.substring(r.range[0],n.range[1])})(),r=t.typeArguments==null?``:e.getText(t.typeArguments);return[...y(e,t.callee),{nonNull:!1,optional:t.optional,precedence:s.OperatorPrecedence.Invalid,requiresDot:!1,text:r+n}]}case i.AST_NODE_TYPES.MemberExpression:{let n=e.getText(t.property);return[...y(e,t.object),{nonNull:t.object.type===i.AST_NODE_TYPES.TSNonNullExpression,optional:t.optional,precedence:t.computed?s.OperatorPrecedence.Invalid:(0,s.getOperatorPrecedenceForNode)(t.property),requiresDot:!t.computed,text:t.computed?`[${n}]`:n}]}case i.AST_NODE_TYPES.TSNonNullExpression:return y(e,t.expression);default:return[{nonNull:!1,optional:!1,precedence:(0,s.getOperatorPrecedenceForNode)(t),requiresDot:!1,text:e.getText(t)}]}}}function y(e,t,n,r,i,a,o){if(a.length+ +!!o<=1||i===`??`)return;let s=(()=>{switch(i){case`&&`:return m;case`||`:return h}})(),d=[],_,y=a=>{if(d.length+ +!!_>1){let a=d.flat(),o=_?a.map(({node:e})=>e):a.slice(0,-1).map(({node:e})=>e);(0,c.checkNullishAndReport)(e,t,n,o,v(e.sourceCode,t,r,i,n,a,_))}d=a?[a]:[],_=void 0};for(let e=0;e<a.length;e+=1){let n=d.flat().at(-1),r=a[e],i=s(t,r,e,a);if(!i){if(n){let e=(0,l.compareNodes)(n.comparedName,r.comparedName);switch(r.comparisonType){case u.NullishComparisonType.StrictEqualUndefined:case u.NullishComparisonType.NotStrictEqualUndefined:e===l.NodeComparisonResult.Subset&&(_=r);break}}y();continue}e+=i.length-1;let o=i[0];if(n){let e=(0,l.compareNodes)(n.comparedName,i[i.length-1].comparedName);e===l.NodeComparisonResult.Subset?d.push(o):e===l.NodeComparisonResult.Invalid&&y(i)}else d.push(o)}let b=d.flat().at(-1);if(b&&o){let e=i===`&&`?f:p,{comparedName:n,comparisonValue:r,isSubset:a,isYoda:s}=g(b,o);a&&e(r,o.comparisonType,t)&&(_={...o,comparedName:n,comparisonValue:r,isYoda:s})}y()}})),rke=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7(),r=nke(),i=$Oe(),a=tke();e.default=(0,n.createRule)({name:`prefer-optional-chain`,meta:{type:`suggestion`,docs:{description:`Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects`,recommended:`stylistic`,requiresTypeChecking:!0},fixable:`code`,hasSuggestions:!0,messages:{optionalChainSuggest:`Change to an optional chain.`,preferOptionalChain:`Prefer using an optional chain expression instead, as it's more concise and easier to read.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing:{type:`boolean`,description:`Allow autofixers that will change the return type of the expression. This option is considered unsafe as it may break the build.`},checkAny:{type:`boolean`,description:'Check operands that are typed as `any` when inspecting "loose boolean" operands.'},checkBigInt:{type:`boolean`,description:'Check operands that are typed as `bigint` when inspecting "loose boolean" operands.'},checkBoolean:{type:`boolean`,description:'Check operands that are typed as `boolean` when inspecting "loose boolean" operands.'},checkNumber:{type:`boolean`,description:'Check operands that are typed as `number` when inspecting "loose boolean" operands.'},checkString:{type:`boolean`,description:'Check operands that are typed as `string` when inspecting "loose boolean" operands.'},checkUnknown:{type:`boolean`,description:'Check operands that are typed as `unknown` when inspecting "loose boolean" operands.'},requireNullish:{type:`boolean`,description:'Skip operands that are not typed with `null` and/or `undefined` when inspecting "loose boolean" operands.'}}}]},defaultOptions:[{allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing:!1,checkAny:!0,checkBigInt:!0,checkBoolean:!0,checkNumber:!0,checkString:!0,checkUnknown:!0,requireNullish:!1}],create(e,[o]){let s=(0,n.getParserServices)(e),c=new Set;return{'LogicalExpression[operator!="??"]'(t){if(c.has(t))return;let{newlySeenLogicals:n,operands:i}=(0,a.gatherLogicalOperands)(t,s,e.sourceCode,o);for(let e of n)c.add(e);let l=[];for(let n of i)n.type===a.OperandValidity.Invalid?((0,r.analyzeChain)(e,s,o,t,t.operator,l),l=[]):n.type===a.OperandValidity.Last?((0,r.analyzeChain)(e,s,o,t,t.operator,l,n),l=[]):l.push(n);l.length>0&&(0,r.analyzeChain)(e,s,o,t,t.operator,l)},'LogicalExpression[operator="||"], LogicalExpression[operator="??"]'(r){let a=r.left,l=r.right,u=r.parent;if(!(l.type===t.AST_NODE_TYPES.ObjectExpression&&l.properties.length===0)||u.type!==t.AST_NODE_TYPES.MemberExpression||u.optional)return;c.add(r);function d(){let e=s.esTreeNodeToTSNodeMap.get(r),t=s.esTreeNodeToTSNodeMap.get(a);return(0,n.getOperatorPrecedence)(t.kind,e.operatorToken.kind)<n.OperatorPrecedence.LeftHandSide}(0,i.checkNullishAndReport)(e,s,o,[a],{node:u,messageId:`preferOptionalChain`,suggest:[{messageId:`optionalChainSuggest`,fix:t=>{let n=e.sourceCode.getText(a),r=d()?`(${n})`:n,i=e.sourceCode.getText(u.property),o=u.computed?`[${i}]`:i;return t.replaceTextRange(u.range,`${r}?.${o}`)}}]})}}}})})),ike=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`prefer-promise-reject-errors`,meta:{type:`suggestion`,docs:{description:`Require using Error objects as Promise rejection reasons`,extendsBaseRule:!0,recommended:`recommended`,requiresTypeChecking:!0},messages:{rejectAnError:`Expected the Promise rejection reason to be an Error.`},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...n.typeOrValueSpecifiersSchema,description:`Type specifiers that can be used as Promise rejection reasons.`},allowEmptyReject:{type:`boolean`,description:"Whether to allow calls to `Promise.reject()` with no arguments."},allowThrowingAny:{type:`boolean`,description:"Whether to always allow throwing values typed as `any`."},allowThrowingUnknown:{type:`boolean`,description:"Whether to always allow throwing values typed as `unknown`."}}}]},defaultOptions:[{allow:[],allowEmptyReject:!1,allowThrowingAny:!1,allowThrowingUnknown:!1}],create(e,[r]){let i=(0,n.getParserServices)(e);function a(t){let a=t.arguments.at(0);if(a){let e=i.getTypeAtLocation(a);if((0,n.typeMatchesSomeSpecifier)(e,r.allow,i.program)||r.allowThrowingAny&&(0,n.isTypeAnyType)(e)||r.allowThrowingUnknown&&(0,n.isTypeUnknownType)(e)||(0,n.isErrorLike)(i.program,e)||(0,n.isReadonlyErrorLike)(i.program,e))return}else if(r.allowEmptyReject)return;e.report({node:t,messageId:`rejectAnError`})}function o(e){let t=i.getTypeAtLocation(e);return(0,n.isPromiseConstructorLike)(i.program,t)||(0,n.isPromiseLike)(i.program,t)}return{CallExpression(r){let i=(0,n.skipChainExpression)(r.callee);i.type===t.AST_NODE_TYPES.MemberExpression&&(!(0,n.isStaticMemberAccessOfValue)(i,e,`reject`)||!o(i.object)||a(r))},NewExpression(r){let o=(0,n.skipChainExpression)(r.callee);if(!(0,n.isPromiseConstructorLike)(i.program,i.getTypeAtLocation(o)))return;let s=r.arguments.at(0);if(!s||!(0,n.isFunction)(s))return;let c=s.params.at(1);!c||!(0,n.isIdentifier)(c)||e.sourceCode.getDeclaredVariables(s).find(e=>e.identifiers.includes(c)).references.forEach(e=>{e.identifier.parent.type!==t.AST_NODE_TYPES.CallExpression||e.identifier!==e.identifier.parent.callee||a(e.identifier.parent)})}}}})})),ake=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=T7(),l=[i.AST_NODE_TYPES.ArrowFunctionExpression,i.AST_NODE_TYPES.FunctionDeclaration,i.AST_NODE_TYPES.FunctionExpression,i.AST_NODE_TYPES.MethodDefinition].join(`, `);e.default=(0,s.createRule)({name:`prefer-readonly`,meta:{type:`suggestion`,docs:{description:"Require private members to be marked as `readonly` if they're never modified outside of the constructor",requiresTypeChecking:!0},fixable:`code`,messages:{preferReadonly:"Member '{{name}}' is never reassigned; mark it as `readonly`."},schema:[{type:`object`,additionalProperties:!1,properties:{onlyInlineLambdas:{type:`boolean`,description:`Whether to restrict checking only to members immediately assigned a lambda value.`}}}]},defaultOptions:[{onlyInlineLambdas:!1}],create(e,[{onlyInlineLambdas:t}]){let n=(0,s.getParserServices)(e),r=n.program.getTypeChecker(),u=[];function f(e,t,n){if(o.isBinaryExpression(t)){p(e,t,n);return}if(o.isDeleteExpression(t)||h(e)){n.addVariableModification(e);return}(o.isPostfixUnaryExpression(t)||o.isPrefixUnaryExpression(t))&&m(t,n)}function p(e,t,n){t.left===e&&a.isAssignmentKind(t.operatorToken.kind)&&n.addVariableModification(e)}function m(e,t){(e.operator===o.SyntaxKind.PlusPlusToken||e.operator===o.SyntaxKind.MinusMinusToken)&&t.addVariableModification(e.operand)}function h(e){let t=e.parent;for(;t;){let e=t.parent;if(o.isObjectLiteralExpression(e)||o.isArrayLiteralExpression(e)||o.isSpreadAssignment(e)||o.isSpreadElement(e)&&o.isArrayLiteralExpression(e.parent))t=e;else if(o.isBinaryExpression(e)&&!o.isPropertyAccessExpression(t))return e.left===t&&e.operatorToken.kind===o.SyntaxKind.EqualsToken;else break}return!1}function g(e){if(u.length===0)return!1;let t=n.esTreeNodeToTSNodeMap.get(e);return o.isConstructorDeclaration(t)?!1:a.isFunctionScopeBoundary(t)}function _(e){return{esNode:n.tsNodeToESTreeNodeMap.get(e),nameNode:n.tsNodeToESTreeNodeMap.get(e.name)}}function v(t,s,c){let l=r.typeToString(s);if(a.isTypeFlagSet(c,o.TypeFlags.EnumLiteral)){let r=e.sourceCode.getScope(t),a=i.ASTUtils.findVariable(r,l);if(a==null)return null;let o=a.defs.find(e=>e.isTypeDefinition);if(o==null||n.getTypeAtLocation(o.node)!==s)return null}return l}return{[`${l}:exit`](e){i.ASTUtils.isConstructor(e)?u[u.length-1].exitConstructor():g(e)&&u[u.length-1].exitNonConstructor()},"ClassDeclaration, ClassExpression"(e){u.push(new d(r,n.esTreeNodeToTSNodeMap.get(e),t))},"ClassDeclaration, ClassExpression:exit"(){let t=(0,s.nullThrows)(u.pop(),`Stack should exist on class exit`);for(let r of t.finalizeUnmodifiedPrivateNonReadonlys()){let{esNode:o,nameNode:l}=_(r),u=(()=>{switch(o.type){case i.AST_NODE_TYPES.MethodDefinition:case i.AST_NODE_TYPES.PropertyDefinition:case i.AST_NODE_TYPES.TSAbstractMethodDefinition:return{loc:(0,c.getMemberHeadLoc)(e.sourceCode,o)};case i.AST_NODE_TYPES.TSParameterProperty:return{loc:(0,c.getParameterPropertyHeadLoc)(e.sourceCode,o,l.name)};default:return{node:o}}})(),d=(()=>{if(o.type!==i.AST_NODE_TYPES.PropertyDefinition||o.typeAnnotation||!o.value||l.type!==i.AST_NODE_TYPES.Identifier||!t.memberHasConstructorModifications(l.name))return null;let e=n.getTypeAtLocation(o),r=n.getTypeAtLocation(o.value);return r===e||!a.isLiteralType(r)?null:v(o,e,r)})();e.report({...u,messageId:`preferReadonly`,data:{name:e.sourceCode.getText(l)},*fix(t){let n=o.type===i.AST_NODE_TYPES.PropertyDefinition&&o.computed?(0,s.nullThrows)(e.sourceCode.getTokenBefore(l),`Expected to find a token before computed property name`):l;yield t.insertTextBefore(n,`readonly `),d&&(yield t.insertTextAfter(l,`: ${d}`))}})}},[l](e){i.ASTUtils.isConstructor(e)?u[u.length-1].enterConstructor(n.esTreeNodeToTSNodeMap.get(e)):g(e)&&u[u.length-1].enterNonConstructor()},MemberExpression(t){if(u.length===0)return;let r=u[u.length-1];if(t.computed){let i=n.esTreeNodeToTSNodeMap.get(t);if(o.isElementAccessExpression(i)&&o.isBinaryExpression(i.parent)&&i.parent.left===i&&a.isAssignmentKind(i.parent.operatorToken.kind)){let n=(0,s.getStaticMemberAccessValue)(t,e);typeof n==`string`&&r.addVariableModificationByName(i.expression,n)}}else{let e=n.esTreeNodeToTSNodeMap.get(t);f(e,e.parent,r)}}}}});var u;(function(e){e[e.ClassAndInstance=0]=`ClassAndInstance`,e[e.Class=1]=`Class`,e[e.Instance=2]=`Instance`,e[e.None=3]=`None`})(u||={});var d=class{checker;onlyInlineLambdas;classType;constructorScopeDepth=-1;memberVariableModifications=new Set;memberVariableWithConstructorModifications=new Set;privateModifiableMembers=new Map;privateModifiableStatics=new Map;staticVariableModifications=new Set;constructor(e,t,n){this.checker=e,this.onlyInlineLambdas=n;let r=e.getTypeAtLocation(t);a.isIntersectionType(r)?this.classType=r.types[0]:this.classType=r;for(let e of t.members)o.isPropertyDeclaration(e)&&this.addDeclaredVariable(e)}addDeclaredVariable(e){if(!(a.isModifierFlagSet(e,o.ModifierFlags.Private)||e.name.kind===o.SyntaxKind.PrivateIdentifier)||a.isModifierFlagSet(e,o.ModifierFlags.Accessor|o.ModifierFlags.Readonly)||this.onlyInlineLambdas&&e.initializer!=null&&!o.isArrowFunction(e.initializer))return;let t=f(e.name);t!=null&&(a.isModifierFlagSet(e,o.ModifierFlags.Static)?this.privateModifiableStatics:this.privateModifiableMembers).set(t,e)}addVariableModification(e){this.addVariableModificationByName(e.expression,e.name.text)}addVariableModificationByName(e,t){let n=this.checker.getTypeAtLocation(e),r=this.getTypeToClassRelation(n);if(r===u.Instance&&this.constructorScopeDepth===0){this.memberVariableWithConstructorModifications.add(t);return}(r===u.Instance||r===u.ClassAndInstance)&&this.memberVariableModifications.add(t),(r===u.Class||r===u.ClassAndInstance)&&this.staticVariableModifications.add(t)}enterConstructor(e){this.constructorScopeDepth=0;for(let t of e.parameters)a.isModifierFlagSet(t,o.ModifierFlags.Private)&&this.addDeclaredVariable(t)}enterNonConstructor(){this.constructorScopeDepth!==-1&&(this.constructorScopeDepth+=1)}exitConstructor(){this.constructorScopeDepth=-1}exitNonConstructor(){this.constructorScopeDepth!==-1&&--this.constructorScopeDepth}finalizeUnmodifiedPrivateNonReadonlys(){return this.memberVariableModifications.forEach(e=>{this.privateModifiableMembers.delete(e)}),this.staticVariableModifications.forEach(e=>{this.privateModifiableStatics.delete(e)}),[...this.privateModifiableMembers.values(),...this.privateModifiableStatics.values()]}getTypeToClassRelation(e){if(e.isIntersection()){let t=u.None;for(let n of e.types)switch(this.getTypeToClassRelation(n)){case u.Class:if(t===u.Instance)return u.ClassAndInstance;t=u.Class;break;case u.Instance:if(t===u.Class)return u.ClassAndInstance;t=u.Instance;break}return t}return e.isUnion()?this.getTypeToClassRelation(e.types[0]):!e.getSymbol()||!(0,s.typeIsOrHasBaseType)(e,this.classType)?u.None:a.isObjectType(e)&&a.isObjectFlagSet(e,o.ObjectFlags.Anonymous)?u.Class:u.Instance}memberHasConstructorModifications(e){return this.memberVariableWithConstructorModifications.has(e)}};function f(e){if(o.isIdentifier(e)||o.isPrivateIdentifier(e)||o.isStringLiteral(e)||o.isNoSubstitutionTemplateLiteral(e)||o.isNumericLiteral(e))return e.text;if(o.isComputedPropertyName(e)){let t=e.expression;if(o.isNumericLiteral(t))return t.text;if(o.isPropertyAccessExpression(t)&&o.isIdentifier(t.expression)&&t.expression.text===`Symbol`)return t.getText()}}})),G7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`prefer-readonly-parameter-types`,meta:{type:`suggestion`,docs:{description:"Require function parameters to be typed as `readonly` to prevent accidental mutation of inputs",requiresTypeChecking:!0},messages:{shouldBeReadonly:`Parameter should be a read only type.`},schema:[{type:`object`,additionalProperties:!1,properties:{allow:{...n.readonlynessOptionsSchema.properties.allow,description:`An array of type specifiers to ignore.`},checkParameterProperties:{type:`boolean`,description:`Whether to check class parameter properties.`},ignoreInferredTypes:{type:`boolean`,description:`Whether to ignore parameters which don't explicitly specify a type.`},treatMethodsAsReadonly:{...n.readonlynessOptionsSchema.properties.treatMethodsAsReadonly,description:`Whether to treat all mutable methods as though they are readonly.`}}}]},defaultOptions:[{allow:n.readonlynessOptionsDefaults.allow,checkParameterProperties:!0,ignoreInferredTypes:!1,treatMethodsAsReadonly:n.readonlynessOptionsDefaults.treatMethodsAsReadonly}],create(e,[{allow:r,checkParameterProperties:i,ignoreInferredTypes:a,treatMethodsAsReadonly:o}]){let s=(0,n.getParserServices)(e);function c(e){if(e.typeAnnotation?.typeAnnotation){let t=s.program.getTypeChecker(),n=s.esTreeNodeToTSNodeMap.get(e.typeAnnotation.typeAnnotation);return t.getTypeFromTypeNode(n)}return s.getTypeAtLocation(e)}return{[[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature].join(`, `)](l){for(let u of l.params){if(!i&&u.type===t.AST_NODE_TYPES.TSParameterProperty)continue;let l=u.type===t.AST_NODE_TYPES.TSParameterProperty?u.parameter:u;if(a&&l.typeAnnotation==null)continue;let d=c(l);!(0,n.isTypeReadonly)(s.program,d,{allow:r,treatMethodsAsReadonly:!!o})&&!(0,n.isTypeBrandedLiteralLike)(d)&&e.report({node:l,messageId:`shouldBeReadonly`})}}}}})})),oke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=r(g8()),a=_7();e.default=(0,a.createRule)({name:`prefer-reduce-type-parameter`,meta:{type:`problem`,docs:{description:"Enforce using type parameter when calling `Array#reduce` instead of using a type assertion",recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,messages:{preferTypeParameter:`Unnecessary assertion: Array#reduce accepts a type parameter for the default value.`},schema:[]},defaultOptions:[],create(e){let t=(0,a.getParserServices)(e),n=t.program.getTypeChecker();function r(e){return i.unionConstituents(e).every(e=>i.intersectionConstituents(e).every(e=>n.isArrayType(e)||n.isTupleType(e)))}return{"CallExpression > MemberExpression.callee"(i){if(!(0,a.isStaticMemberAccessOfValue)(i,e,`reduce`))return;let[,o]=i.parent.arguments;if(!(i.parent.arguments.length<2)){if((0,a.isTypeAssertion)(o)){let e=t.getTypeAtLocation(o.expression),r=t.getTypeAtLocation(o.typeAnnotation);if(!n.isTypeAssignableTo(e,r))return}else return;if(r((0,a.getConstrainedTypeAtLocation)(t,i.object))){e.report({node:o,messageId:`preferTypeParameter`,fix:t=>{let n=[t.removeRange([o.range[0],o.expression.range[0]]),t.removeRange([o.expression.range[1],o.range[1]])];return i.parent.typeArguments||n.push(t.insertTextAfter(i,`<${e.sourceCode.getText(o.typeAnnotation)}>`)),n}});return}}}}}})})),ske=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7();var s;(function(e){e[e.Other=0]=`Other`,e[e.String=1]=`String`,e[e.RegExp=2]=`RegExp`,e[e.Both=3]=`Both`})(s||={}),e.default=(0,o.createRule)({name:`prefer-regexp-exec`,meta:{type:`suggestion`,docs:{description:"Enforce `RegExp#exec` over `String#match` if no global flag is provided",recommended:`stylistic`,requiresTypeChecking:!0},fixable:`code`,messages:{regExpExecOverStringMatch:"Use the `RegExp#exec()` method instead."},schema:[]},defaultOptions:[],create(e){let t=e.sourceCode.getScope(e.sourceCode.ast),n=(0,o.getParserServices)(e),r=n.program.getTypeChecker();function c(e){return(0,o.getTypeName)(r,e)===`string`}function l(e){return(0,o.getTypeName)(r,e)===`RegExp`}function u(e){let t=s.Other;for(let n of e)l(n)?t|=s.RegExp:c(n)&&(t|=s.String);return t}function d(e){if((e.type===i.AST_NODE_TYPES.CallExpression||e.type===i.AST_NODE_TYPES.NewExpression)&&e.callee.type===i.AST_NODE_TYPES.Identifier&&e.callee.name===`RegExp`){let n=e.arguments.at(1);if(!n)return!0;let r=(0,o.getStaticValue)(n,t);return!!r&&(typeof r.value!=`string`||!r.value.includes(`g`))}return!1}return{"CallExpression[arguments.length=1] > MemberExpression"(r){if(!(0,o.isStaticMemberAccessOfValue)(r,e,`match`))return;let l=r.object,f=r.parent,[p]=f.arguments,m=(0,o.getStaticValue)(p,t);if(!c(n.getTypeAtLocation(l))||!m&&!d(p)||m&&m.value instanceof RegExp&&m.value.flags.includes(`g`))return;if(p.type===i.AST_NODE_TYPES.Literal&&typeof p.value==`string`){let t;try{t=RegExp(p.value)}catch{return}return e.report({node:r.property,messageId:`regExpExecOverStringMatch`,fix:(0,o.getWrappingFixer)({node:f,innerNode:[l],sourceCode:e.sourceCode,wrap:e=>`${t.toString()}.exec(${e})`})})}let h=n.getTypeAtLocation(p);switch(u(a.unionConstituents(h))){case s.RegExp:return e.report({node:r.property,messageId:`regExpExecOverStringMatch`,fix:(0,o.getWrappingFixer)({node:f,innerNode:[l,p],sourceCode:e.sourceCode,wrap:(e,t)=>`${t}.exec(${e})`})});case s.String:return e.report({node:r.property,messageId:`regExpExecOverStringMatch`,fix:(0,o.getWrappingFixer)({node:f,innerNode:[l,p],sourceCode:e.sourceCode,wrap:(e,t)=>`RegExp(${t}).exec(${e})`})})}}}}})})),cke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=g8(),o=r(U6()),s=_7();e.default=(0,s.createRule)({name:`prefer-return-this-type`,meta:{type:`suggestion`,docs:{description:"Enforce that `this` is used when only `this` type is returned",recommended:`strict`,requiresTypeChecking:!0},fixable:`code`,messages:{useThisType:"Use `this` type instead."},schema:[]},defaultOptions:[],create(e){let t=(0,s.getParserServices)(e),n=t.program.getTypeChecker();function r(e,t){if(t.type===i.AST_NODE_TYPES.TSTypeReference&&t.typeName.type===i.AST_NODE_TYPES.Identifier&&t.typeName.name===e)return t;if(t.type===i.AST_NODE_TYPES.TSUnionType)for(let n of t.types){let t=r(e,n);if(t)return t}}function c(e){let t=e.params.at(0);return t?.type===i.AST_NODE_TYPES.Identifier&&t.name===`this`}function l(e,r){if(c(e))return!1;let i=t.esTreeNodeToTSNodeMap.get(e);if(!i.body)return!1;let l=t.getTypeAtLocation(r);if(i.body.kind!==o.SyntaxKind.Block){let e=n.getTypeAtLocation(i.body);return l.thisType===e}let u=!1,d=!1;return(0,s.forEachReturnStatement)(i.body,e=>{let t=e.expression;if(!t)return;if(t.kind===o.SyntaxKind.ThisKeyword){u=!0;return}let r=n.getTypeAtLocation(t);if(l===r)return d=!0,!0;if(l.thisType===r){u=!0;return}if((0,a.isUnionType)(r)&&r.types.some(e=>e===l))return d=!0,!0}),!d&&u}function u(t,n){let i=n.id?.name;if(!i||!t.returnType)return;let a=r(i,t.returnType.typeAnnotation);a&&l(t,n)&&e.report({node:a,messageId:`useThisType`,fix:e=>e.replaceText(a,`this`)})}function d(e){(e.value?.type===i.AST_NODE_TYPES.FunctionExpression||e.value?.type===i.AST_NODE_TYPES.ArrowFunctionExpression)&&u(e.value,e.parent.parent)}return{"ClassBody > AccessorProperty":d,"ClassBody > MethodDefinition"(e){u(e.value,e.parent.parent)},"ClassBody > PropertyDefinition":d}}})})),lke=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Z2(),n=P8(),r=_7(),i=/^[=!]=/,a=new t.RegExpParser;e.default=(0,r.createRule)({name:`prefer-string-starts-ends-with`,meta:{type:`suggestion`,docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings",recommended:`stylistic`,requiresTypeChecking:!0},fixable:`code`,messages:{preferEndsWith:`Use the 'String#endsWith' method instead.`,preferStartsWith:`Use 'String#startsWith' method instead.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowSingleElementEquality:{type:`string`,description:`Whether to allow equality checks against the first or last element of a string.`,enum:[`always`,`never`]}}}]},defaultOptions:[{allowSingleElementEquality:`never`}],create(e,[{allowSingleElementEquality:t}]){let o=e.sourceCode.getScope(e.sourceCode.ast),s=(0,r.getParserServices)(e),c=s.program.getTypeChecker();function l(e){let t=s.getTypeAtLocation(e);return(0,r.getTypeName)(c,t)===`string`}function u(e){let t=(0,r.getStaticValue)(e,o);return t!=null&&t.value==null}function d(e,t){return(0,r.getStaticValue)(e,o)?.value===t}function f(e){let t=(0,r.getStaticValue)(e,o);return t!=null&&typeof t.value==`string`&&t.value[0]===t.value}function p(e){return e.type===n.AST_NODE_TYPES.BinaryExpression&&i.test(e.operator)}function m(t,n){let r=e.sourceCode.getTokens(t),i=e.sourceCode.getTokens(n);if(r.length!==i.length)return!1;for(let e=0;e<r.length;++e){let t=r[e],n=i[e];if(t.type!==n.type||t.value!==n.value)return!1}return!0}function h(e,t){if(e.type===n.AST_NODE_TYPES.MemberExpression)return(0,r.getPropertyName)(e,o)===`length`&&m(e.object,t);let i=(0,r.getStaticValue)(e,o),a=(0,r.getStaticValue)(t,o);return i!=null&&a!=null&&typeof i.value==`number`&&typeof a.value==`string`&&i.value===a.value.length}function g(e,t,r){return e.type===n.AST_NODE_TYPES.UnaryExpression&&e.operator===`-`&&h(e.argument,t)||e.type===n.AST_NODE_TYPES.BinaryExpression&&e.operator===`-`&&h(e.left,r)&&h(e.right,t)}function _(e,t){return e.type===n.AST_NODE_TYPES.BinaryExpression&&e.operator===`-`&&h(e.left,t)&&d(e.right,1)}function v(t){return[(0,r.nullThrows)(e.sourceCode.getTokenAfter(t.object,r.isNotClosingParenToken),r.NullThrowsReasons.MissingToken(`closing parenthesis`,`member`)).range[0],t.range[1]]}function y(e,t){let n=a.parsePattern(e,void 0,void 0,{unicode:t});if(n.alternatives.length!==1)return null;let r=n.alternatives[0].elements,i=r[0];return i.type===`Assertion`&&i.kind===`start`?r.shift():r.pop(),r.every(e=>e.type===`Character`)?String.fromCodePoint(...r.map(e=>e.value)):null}function b(e){let t=(0,r.getStaticValue)(e,o);if(t==null||!(t.value instanceof RegExp))return null;let{flags:n,source:i}=t.value,a=i.startsWith(`^`),s=i.endsWith(`$`);if(a===s||n.includes(`i`)||n.includes(`m`))return null;let c=y(i,n.includes(`u`));return c==null?null:{isEndsWith:s,isStartsWith:a,text:c}}function x(e){let t=(0,r.skipChainExpression)(e),i=t.type===n.AST_NODE_TYPES.CallExpression?t.callee:t;if(i.type!==n.AST_NODE_TYPES.MemberExpression)throw Error(`Expected a MemberExpression, got ${i.type}`);return i}function*S(e,t,n,r,i){let a=v(x(t.left));r&&(yield e.insertTextBefore(t,`!`)),yield e.replaceTextRange([a[0],t.right.range[0]],`${i?`?.`:`.`}${n}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],`)`)}function*C(e,t,n,r,i,a,o){a&&(yield e.insertTextBefore(t,`!`)),yield e.replaceTextRange(v(r),`${o?`?.`:`.`}${i}sWith`),yield e.removeRange([n.range[1],t.range[1]])}function w(e){return e.parent.type===n.AST_NODE_TYPES.ChainExpression?e.parent.parent:e.parent}return{[[`BinaryExpression > MemberExpression.left[computed=true]`,`BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false]`,`BinaryExpression > ChainExpression.left > MemberExpression[computed=true]`,`BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]`].join(`, `)](r){let i=w(r),a=null;if(i.type===n.AST_NODE_TYPES.CallExpression?(i.arguments.length===1&&(a=i.arguments[0]),i=w(i)):a=r.property,a==null||!p(i)||!l(r.object))return;let o=_(a,r.object);if(t===`always`&&o)return;let s=!o&&d(a,0);if(t===`always`&&s||!s&&!o)return;let c=i;e.report({node:i,messageId:s?`preferStartsWith`:`preferEndsWith`,fix(e){return f(c.right)?S(e,c,s?`start`:`end`,c.operator.startsWith(`!`),r.optional):null}})},[[`BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false]`,`BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]`].join(`, `)](t){let n=w(t),r=w(n);n.arguments.length!==1||!p(r)||!d(r.right,0)||!l(t.object)||e.report({node:r,messageId:`preferStartsWith`,fix(e){return C(e,r,n,t,`start`,r.operator.startsWith(`!`),t.optional)}})},[[`BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false]`,`BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]`].join(`, `)](t){let r=w(t),i=w(r);r.arguments.length!==1||!p(i)||i.right.type!==n.AST_NODE_TYPES.BinaryExpression||i.right.operator!==`-`||!h(i.right.left,t.object)||!h(i.right.right,r.arguments[0])||!l(t.object)||e.report({node:i,messageId:`preferEndsWith`,fix(e){return C(e,i,r,t,`end`,i.operator.startsWith(`!`),t.optional)}})},[[`BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false]`,`BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]`].join(`, `)](t){let n=w(t),r=w(n);if(!u(r.right)||!l(t.object))return;let i=n.arguments.length===1?b(n.arguments[0]):null;if(i==null)return;let{isStartsWith:a,text:o}=i;e.report({node:n,messageId:a?`preferStartsWith`:`preferEndsWith`,*fix(e){r.operator.startsWith(`!`)||(yield e.insertTextBefore(r,`!`)),yield e.replaceTextRange(v(t),`${t.optional?`?.`:`.`}${a?`start`:`end`}sWith`),yield e.replaceText(n.arguments[0],JSON.stringify(o)),yield e.removeRange([n.range[1],r.range[1]])}})},[[`BinaryExpression > CallExpression.left > MemberExpression`,`BinaryExpression > ChainExpression.left > CallExpression > MemberExpression`].join(`, `)](t){if(!(0,r.isStaticMemberAccessOfValue)(t,e,`slice`,`substring`))return;let i=w(t),a=w(i);if(!p(a)||!l(t.object))return;let o=!1,s=!1;if(i.arguments.length===1?g(i.arguments[0],a.right,t.object)&&(o=!0):i.arguments.length===2&&(d(i.arguments[0],0)&&h(i.arguments[1],a.right)?s=!0:(h(i.arguments[1],t.object)||d(i.arguments[1],0))&&g(i.arguments[0],a.right,t.object)&&(o=!0)),!s&&!o)return;let c=a,u=t.property.name===`slice`;e.report({node:a,messageId:s?`preferStartsWith`:`preferEndsWith`,fix(e){if(c.operator.length===2&&(c.right.type!==n.AST_NODE_TYPES.Literal||typeof c.right.value!=`string`))return null;if(s){if(!h(i.arguments[1],c.right))return null}else{let e=i.arguments[0];if(!(e.type===n.AST_NODE_TYPES.BinaryExpression&&e.operator===`-`&&h(e.left,t.object)&&h(e.right,c.right)||u&&e.type===n.AST_NODE_TYPES.UnaryExpression&&e.operator===`-`&&h(e.argument,c.right)))return null}return S(e,a,s?`start`:`end`,a.operator.startsWith(`!`),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]'(t){let r=w(t),i=r.arguments.length===1?b(t.object):null;if(i==null)return;let{isStartsWith:a,text:o}=i,s=a?`preferStartsWith`:`preferEndsWith`,c=a?`startsWith`:`endsWith`;e.report({node:r,messageId:s,*fix(e){let i=r.arguments[0],a=i.type!==n.AST_NODE_TYPES.Literal&&i.type!==n.AST_NODE_TYPES.TemplateLiteral&&i.type!==n.AST_NODE_TYPES.Identifier&&i.type!==n.AST_NODE_TYPES.MemberExpression&&i.type!==n.AST_NODE_TYPES.CallExpression;yield e.removeRange([r.range[0],i.range[0]]),a&&(yield e.insertTextBefore(i,`(`),yield e.insertTextAfter(i,`)`)),yield e.insertTextAfter(i,`${t.optional?`?.`:`.`}${c}(${JSON.stringify(o)}`)}})}}}})})),uke=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`prefer-ts-expect-error`,meta:{type:`problem`,deprecated:{deprecatedSince:`7.11.0`,replacedBy:[{rule:{name:`@typescript-eslint/ban-ts-comment`,url:`https://typescript-eslint.io/rules/ban-ts-comment`}}],url:`https://github.com/typescript-eslint/typescript-eslint/pull/9081`},docs:{description:"Enforce using `@ts-expect-error` over `@ts-ignore`"},fixable:`code`,messages:{preferExpectErrorComment:`Use "@ts-expect-error" to ensure an error is actually being suppressed.`},replacedBy:[`@typescript-eslint/ban-ts-comment`],schema:[]},defaultOptions:[],create(e){let n=/^\s*\/?\s*@ts-ignore/,r=/^\s*(?:\/|\*)*\s*@ts-ignore/;function i(e){return e.type===t.AST_TOKEN_TYPES.Line}function a(e){if(i(e))return e.value;let t=e.value.split(`
|
|
@@ -1102,7 +1102,7 @@ ${p} return (`),yield r.insertTextAfter(e,`);
|
|
|
1102
1102
|
`,`\\n`).replaceAll(`\r`,`\\r`)}']`),d.push(`case ${n}: { throw new Error('Not implemented yet: ${n.replaceAll(`\\`,`\\\\`).replaceAll(`'`,`\\'`)} case') }`)}let f=d.map(e=>`${u}${e}`).join(`
|
|
1103
1103
|
`);if(l){if(s){let e=d.map(e=>`${e}\n${u}`).join(``);return t.insertTextBefore(s,e)}return t.insertTextAfter(l,`\n${f}`)}let m=(0,o.nullThrows)(e.sourceCode.getTokenAfter(n.discriminant,o.isOpeningBraceToken),o.NullThrowsReasons.MissingToken(`{`,`discriminant`)),h=(0,o.nullThrows)(e.sourceCode.getTokenAfter(n.discriminant,o.isClosingBraceToken),o.NullThrowsReasons.MissingToken(`}`,`discriminant`));return t.replaceTextRange([m.range[0],h.range[1]],[`{`,f,`${u}}`].join(`
|
|
1104
1104
|
`))}function b(n){if(t)return;let{containsNonLiteralType:r,defaultCase:i,missingLiteralBranchTypes:a}=n;a.length===0&&i!=null&&!r&&e.report({node:i,messageId:`dangerousDefaultCase`})}function x(t,n){if(!u)return;let{containsNonLiteralType:r,defaultCase:i}=n;r&&i==null&&e.report({node:t.discriminant,messageId:`switchIsNotExhaustive`,data:{missingBranches:`default`},suggest:[{messageId:`addMissingCases`,fix(e){return y(e,t,[null],i)}}]})}return{SwitchStatement(e){let t=_(e);v(e,t),b(t),x(e,t)}}}});function c(e){return i.isTypeFlagSet(e,a.TypeFlags.Literal|a.TypeFlags.Undefined|a.TypeFlags.Null|a.TypeFlags.UniqueESSymbol)}function l(e){return i.unionConstituents(e).some(e=>i.intersectionConstituents(e).every(e=>!c(e)))}})),Y7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8();e.default=(0,_7().createRule)({name:`triple-slash-reference`,meta:{type:`suggestion`,docs:{description:`Disallow certain triple slash directives in favor of ES6-style import declarations`,recommended:`recommended`},messages:{tripleSlashReference:"Do not use a triple slash reference for {{module}}, use `import` style instead."},schema:[{type:`object`,additionalProperties:!1,properties:{lib:{type:`string`,description:'What to enforce for `/// <reference lib="..." />` references.',enum:[`always`,`never`]},path:{type:`string`,description:'What to enforce for `/// <reference path="..." />` references.',enum:[`always`,`never`]},types:{type:`string`,description:'What to enforce for `/// <reference types="..." />` references.',enum:[`always`,`never`,`prefer-import`]}}}]},defaultOptions:[{lib:`always`,path:`never`,types:`prefer-import`}],create(e,[{lib:n,path:r,types:i}]){let a,o=[];function s(t){o.forEach(n=>{n.importName===t.value&&e.report({node:n.comment,messageId:`tripleSlashReference`,data:{module:n.importName}})})}return{ImportDeclaration(e){a&&s(e.source)},Program(s){if(n===`always`&&r===`always`&&i===`always`)return;a=s;let c=/^\/\s*<reference\s*(types|path|lib)\s*=\s*["|'](.*)["|']/;e.sourceCode.getCommentsBefore(a).forEach(a=>{if(a.type!==t.AST_TOKEN_TYPES.Line)return;let s=c.exec(a.value);if(s){if(s[1]===`types`&&i===`never`||s[1]===`path`&&r===`never`||s[1]===`lib`&&n===`never`){e.report({node:a,messageId:`tripleSlashReference`,data:{module:s[2]}});return}s[1]===`types`&&i===`prefer-import`&&o.push({comment:a,importName:s[2]})}})},TSImportEqualsDeclaration(e){if(a){let n=e.moduleReference;n.type===t.AST_NODE_TYPES.TSExternalModuleReference&&s(n.expression)}}}}})})),X7=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.OptionKeys=void 0;let t=P8(),n=_7();var r;(function(e){e.ArrayDestructuring=`arrayDestructuring`,e.ArrowParameter=`arrowParameter`,e.MemberVariableDeclaration=`memberVariableDeclaration`,e.ObjectDestructuring=`objectDestructuring`,e.Parameter=`parameter`,e.PropertyDeclaration=`propertyDeclaration`,e.VariableDeclaration=`variableDeclaration`,e.VariableDeclarationIgnoreFunction=`variableDeclarationIgnoreFunction`})(r||(e.OptionKeys=r={})),e.default=(0,n.createRule)({name:`typedef`,meta:{type:`suggestion`,deprecated:{deprecatedSince:`8.33.0`,message:`This is an old rule that is no longer recommended for use.`},docs:{description:`Require type annotations in certain places`},messages:{expectedTypedef:`Expected a type annotation.`,expectedTypedefNamed:`Expected {{name}} to have a type annotation.`},schema:[{type:`object`,additionalProperties:!1,properties:{[r.ArrayDestructuring]:{type:`boolean`,description:`Whether to enforce type annotations on variables declared using array destructuring.`},[r.ArrowParameter]:{type:`boolean`,description:`Whether to enforce type annotations for parameters of arrow functions.`},[r.MemberVariableDeclaration]:{type:`boolean`,description:`Whether to enforce type annotations on member variables of classes.`},[r.ObjectDestructuring]:{type:`boolean`,description:`Whether to enforce type annotations on variables declared using object destructuring.`},[r.Parameter]:{type:`boolean`,description:`Whether to enforce type annotations for parameters of functions and methods.`},[r.PropertyDeclaration]:{type:`boolean`,description:`Whether to enforce type annotations for properties of interfaces and types.`},[r.VariableDeclaration]:{type:`boolean`,description:`Whether to enforce type annotations for variable declarations, excluding array and object destructuring.`},[r.VariableDeclarationIgnoreFunction]:{type:`boolean`,description:`Whether to ignore variable declarations for non-arrow and arrow functions.`}}}]},defaultOptions:[{[r.ArrayDestructuring]:!1,[r.ArrowParameter]:!1,[r.MemberVariableDeclaration]:!1,[r.ObjectDestructuring]:!1,[r.Parameter]:!1,[r.PropertyDeclaration]:!1,[r.VariableDeclaration]:!1,[r.VariableDeclarationIgnoreFunction]:!1}],create(e,[{arrayDestructuring:n,arrowParameter:r,memberVariableDeclaration:i,objectDestructuring:a,parameter:o,propertyDeclaration:s,variableDeclaration:c,variableDeclarationIgnoreFunction:l}]){function u(t,n){e.report({node:t,messageId:n?`expectedTypedefNamed`:`expectedTypedef`,data:{name:n}})}function d(e){return e.type===t.AST_NODE_TYPES.Identifier?e.name:void 0}function f(e){let n=e.parent;for(;n;)switch(n.type){case t.AST_NODE_TYPES.VariableDeclarator:case t.AST_NODE_TYPES.VariableDeclaration:case t.AST_NODE_TYPES.ObjectPattern:case t.AST_NODE_TYPES.ArrayPattern:case t.AST_NODE_TYPES.Property:n=n.parent;break;case t.AST_NODE_TYPES.ForOfStatement:return!0;default:n=void 0}return!1}function p(e){for(let n of e){let e;switch(n.type){case t.AST_NODE_TYPES.AssignmentPattern:e=n.left;break;case t.AST_NODE_TYPES.TSParameterProperty:e=n.parameter,e.type===t.AST_NODE_TYPES.AssignmentPattern&&(e=e.left);break;default:e=n;break}e.typeAnnotation||u(n,d(n))}}function m(e){return l===!0&&(e.type===t.AST_NODE_TYPES.ArrowFunctionExpression||e.type===t.AST_NODE_TYPES.FunctionExpression)}function h(e){let n=e.parent;for(;n;){if((n.type===t.AST_NODE_TYPES.ObjectPattern||n.type===t.AST_NODE_TYPES.ArrayPattern)&&n.typeAnnotation)return!0;n=n.parent}return!1}return{...n&&{ArrayPattern(e){e.parent.type===t.AST_NODE_TYPES.RestElement&&e.parent.typeAnnotation||!e.typeAnnotation&&!f(e)&&!h(e)&&e.parent.type!==t.AST_NODE_TYPES.AssignmentExpression&&u(e)}},...r&&{ArrowFunctionExpression(e){p(e.params)}},...i&&{PropertyDefinition(e){!(e.value&&m(e.value))&&!e.typeAnnotation&&u(e,e.key.type===t.AST_NODE_TYPES.Identifier?e.key.name:void 0)}},...o&&{"FunctionDeclaration, FunctionExpression"(e){p(e.params)}},...a&&{ObjectPattern(e){!e.typeAnnotation&&!f(e)&&!h(e)&&u(e)}},...s&&{"TSIndexSignature, TSPropertySignature"(e){e.typeAnnotation||u(e,e.type===t.AST_NODE_TYPES.TSPropertySignature?d(e.key):void 0)}},VariableDeclarator(e){if(!c||e.id.typeAnnotation||e.id.type===t.AST_NODE_TYPES.ArrayPattern&&!n||e.id.type===t.AST_NODE_TYPES.ObjectPattern&&!a||e.init&&m(e.init))return;let r=e.parent;for(;r;)switch(r.type){case t.AST_NODE_TYPES.VariableDeclaration:r=r.parent;break;case t.AST_NODE_TYPES.ForOfStatement:case t.AST_NODE_TYPES.ForInStatement:return;default:r=void 0;break}u(e,d(e.id))}}}})})),yke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=r(U6()),s=_7(),c=new Set([`Number`,`Object`,`String`,`RegExp`,`Symbol`,`Array`,`Proxy`,`Date`,`Atomics`,`Reflect`,`console`,`Math`,`JSON`,`Intl`].flatMap(e=>{if(!(e in global))return[];let t=global[e];return Object.getOwnPropertyNames(t).filter(e=>!e.startsWith(`_`)&&typeof t[e]==`function`).map(t=>`${e}.${t}`)})),l=[`NumberConstructor`,`ObjectConstructor`,`StringConstructor`,`SymbolConstructor`,`ArrayConstructor`,`Array`,`ProxyConstructor`,`Console`,`DateConstructor`,`Atomics`,`Math`,`JSON`],u=(e,t)=>{let{valueDeclaration:n}=e;return n?!!t&&t!==n.getSourceFile():!1},d=["A method that is not declared with `this: void` may cause unintentional scoping of `this` when separated from its object.","Consider using an arrow function or explicitly `.bind()`ing the method to avoid calling the method with an unintended `this` value. "].join(`
|
|
1105
|
-
`);e.default=(0,s.createRule)({name:`unbound-method`,meta:{type:`problem`,docs:{description:`Enforce unbound methods are called with their expected scope`,recommended:`recommended`,requiresTypeChecking:!0},messages:{unbound:d,unboundWithoutThisAnnotation:`${d}\nIf a function does not access \`this\`, it can be annotated with \`this: void\`.`},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreStatic:{type:`boolean`,description:"Whether to skip checking whether `static` methods are correctly bound."}}}]},defaultOptions:[{ignoreStatic:!1}],create(e,[{ignoreStatic:t}]){let n=(0,s.getParserServices)(e),r=n.program.getSourceFile(e.filename);function o(n,r){if(!r)return!1;let{dangerous:i,firstParamIsThis:a}=p(r,t);return i?(e.report({node:n,messageId:a===!1?`unboundWithoutThisAnnotation`:`unbound`}),!0):!1}function d(e,t){if(e.type===i.AST_NODE_TYPES.Identifier&&t.type===i.AST_NODE_TYPES.Identifier){let i=n.getSymbolAtLocation(e);if(i!=null&&u(i,r)&&c.has(`${e.name}.${t.name}`))return!0}return(0,s.isBuiltinSymbolLike)(n.program,n.getTypeAtLocation(e),l)&&(0,s.isSymbolFromDefaultLibrary)(n.program,n.getTypeAtLocation(t).getSymbol())}return{MemberExpression(e){h(e)||d(e.object,e.property)||o(e,n.getSymbolAtLocation(e))},ObjectPattern(e){if(f(e))return;let t=null;e.parent.type===i.AST_NODE_TYPES.VariableDeclarator?t=e.parent.init:(e.parent.type===i.AST_NODE_TYPES.AssignmentPattern||e.parent.type===i.AST_NODE_TYPES.AssignmentExpression)&&(t=e.parent.right);for(let r of e.properties)if(!(r.type!==i.AST_NODE_TYPES.Property||r.key.type!==i.AST_NODE_TYPES.Identifier)){if(t){if(!d(t,r.key)){if(o(r.key,n.getTypeAtLocation(t).getProperty(r.key.name)))continue}else if(e.parent.type!==i.AST_NODE_TYPES.AssignmentPattern)continue}for(let t of a.unionConstituents(n.getTypeAtLocation(e)).flatMap(e=>a.intersectionConstituents(e)))if(o(r.key,t.getProperty(r.key.name)))break}}}}});function f(e){let t=e;for(;t=t.parent;)if(t.type===i.AST_NODE_TYPES.ClassDeclaration&&t.declare||t.type===i.AST_NODE_TYPES.TSAbstractMethodDefinition||t.type===i.AST_NODE_TYPES.TSDeclareFunction||t.type===i.AST_NODE_TYPES.TSFunctionType||t.type===i.AST_NODE_TYPES.TSInterfaceDeclaration||t.type===i.AST_NODE_TYPES.TSTypeAliasDeclaration||t.type===i.AST_NODE_TYPES.VariableDeclaration&&t.declare)return!0;return!1}function p(e,t){let{valueDeclaration:n}=e;if(!n)return{dangerous:!1};switch(n.kind){case o.SyntaxKind.PropertyDeclaration:return{dangerous:n.initializer?.kind===o.SyntaxKind.FunctionExpression};case o.SyntaxKind.PropertyAssignment:{let e=n.initializer;return e.kind===o.SyntaxKind.FunctionExpression?m(e,t):{dangerous:!1}}case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.MethodSignature:return m(n,t)}return{dangerous:!1}}function m(e,t){let n=e.parameters.at(0),r=n?.name.kind===o.SyntaxKind.Identifier&&n.name.escapedText===`this`;return{dangerous:!(r&&n.type?.kind===o.SyntaxKind.VoidKeyword)&&!(t&&a.includesModifier((0,s.getModifiers)(e),o.SyntaxKind.StaticKeyword)),firstParamIsThis:r}}function h(e){let t=e.parent;switch(t?.type){case i.AST_NODE_TYPES.IfStatement:case i.AST_NODE_TYPES.ForStatement:case i.AST_NODE_TYPES.MemberExpression:case i.AST_NODE_TYPES.SwitchStatement:case i.AST_NODE_TYPES.UpdateExpression:case i.AST_NODE_TYPES.WhileStatement:return!0;case i.AST_NODE_TYPES.CallExpression:return t.callee===e;case i.AST_NODE_TYPES.ConditionalExpression:return t.test===e;case i.AST_NODE_TYPES.TaggedTemplateExpression:return t.tag===e;case i.AST_NODE_TYPES.UnaryExpression:return[`!`,`delete`,`typeof`,`void`].includes(t.operator);case i.AST_NODE_TYPES.BinaryExpression:return[`!=`,`!==`,`==`,`===`,`instanceof`].includes(t.operator);case i.AST_NODE_TYPES.AssignmentExpression:return t.operator===`=`&&(e===t.left||e.type===i.AST_NODE_TYPES.MemberExpression&&e.object.type===i.AST_NODE_TYPES.Super&&t.left.type===i.AST_NODE_TYPES.MemberExpression&&t.left.object.type===i.AST_NODE_TYPES.ThisExpression);case i.AST_NODE_TYPES.ChainExpression:case i.AST_NODE_TYPES.TSNonNullExpression:case i.AST_NODE_TYPES.TSAsExpression:case i.AST_NODE_TYPES.TSTypeAssertion:return h(t);case i.AST_NODE_TYPES.LogicalExpression:return t.operator===`&&`&&t.left===e?!0:h(t)}return!1}})),bke=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`unified-signatures`,meta:{type:`suggestion`,docs:{description:`Disallow two overloads that could be unified into one with a union or an optional/rest parameter`,recommended:`strict`},messages:{omittingRestParameter:`{{failureStringStart}} with a rest parameter.`,omittingSingleParameter:`{{failureStringStart}} with an optional parameter.`,singleParameterDifference:"{{failureStringStart}} taking `{{type1}} | {{type2}}`."},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreDifferentlyNamedParameters:{type:`boolean`,description:`Whether two parameters with different names at the same index should be considered different even if their types are the same.`},ignoreOverloadsWithDifferentJSDoc:{type:`boolean`,description:`Whether two overloads with different JSDoc comments should be considered different even if their parameter and return types are the same.`}}}]},defaultOptions:[{ignoreDifferentlyNamedParameters:!1,ignoreOverloadsWithDifferentJSDoc:!1}],create(e,[{ignoreDifferentlyNamedParameters:o,ignoreOverloadsWithDifferentJSDoc:l}]){function d(e){return`${e==null?`These overloads`:`This overload and the one on line ${e}`} can be combined into one signature`}function f(n){for(let r of n){let{only2:n,unify:i}=r;switch(i.kind){case`single-parameter-difference`:{let{p0:t,p1:r}=i,a=n?void 0:t.loc.start.line,o=S(t)?t.parameter.typeAnnotation:t.typeAnnotation,s=S(r)?r.parameter.typeAnnotation:r.typeAnnotation;e.report({loc:r.loc,node:r,messageId:`singleParameterDifference`,data:{failureStringStart:d(a),type1:e.sourceCode.getText(o?.typeAnnotation),type2:e.sourceCode.getText(s?.typeAnnotation)}});break}case`extra-parameter`:{let{extraParameter:r,otherSignature:a}=i,o=n?void 0:a.loc.start.line;e.report({loc:r.loc,node:r,messageId:r.type===t.AST_NODE_TYPES.RestElement?`omittingRestParameter`:`omittingSingleParameter`,data:{failureStringStart:d(o)}})}}}}function p(e,t){let n=[],r=b(t);for(let t of e)A(t,(e,i)=>{let a=m(e.value??e,i.value??i,r);a!=null&&n.push({only2:t.length===2,unify:a})});return n}function m(e,t,n){if(h(e,t,n))return e.params.length===t.params.length?g(e.params,t.params):y(e,t)}function h(e,t,i){let a=e.typeParameters==null?void 0:e.typeParameters.params,c=t.typeParameters==null?void 0:t.typeParameters.params;if(o){let n=Math.min(e.params.length,t.params.length);for(let r=0;r<n;r+=1)if(e.params[r].type===t.params[r].type&&s(e.params[r])!==s(t.params[r]))return!1}if(l){let n=N(r(e)),i=N(r(t));if(n?.value!==i?.value)return!1}return D(e.returnType,t.returnType)&&(0,n.arraysAreEqual)(a,c,E)&&x(e,i)===x(t,i)}function g(e,r){let i=e[0],a=r[0];if(v(i)||v(a))return;let o=k(e,r,C);if(o==null||!(0,n.arraysAreEqual)(e.slice(o+1),r.slice(o+1),C))return;let s=e[o],c=r[o];return T(s,c)&&s.type!==t.AST_NODE_TYPES.RestElement?{kind:`single-parameter-difference`,p0:s,p1:c}:void 0}function _(e){return e?.type===t.AST_NODE_TYPES.Identifier&&e.name===`this`}function v(e){return _(e)&&e.typeAnnotation?.typeAnnotation.type===t.AST_NODE_TYPES.TSVoidKeyword}function y(e,n){let r=e.params,i=n.params,a=Math.min(r.length,i.length),o=r.length<i.length?i:r,s=r.length<i.length?r:i,c=r.length<i.length?e:n,l=r.at(0),u=i.at(0);if(_(l)===_(u)&&!(v(l)||v(u))){for(let e=a+1;e<o.length;e++)if(!w(o[e]))return;for(let e=0;e<a;e++){let t=r[e],n=i[e];if(!D(S(t)?t.parameter.typeAnnotation:t.typeAnnotation,S(n)?n.parameter.typeAnnotation:n.typeAnnotation))return}if(!(a>0&&s[a-1].type===t.AST_NODE_TYPES.RestElement))return{extraParameter:o[o.length-1],kind:`extra-parameter`,otherSignature:c}}}function b(e){if(e==null)return()=>!1;let t=new Set;for(let n of e.params)t.add(n.name.name);return e=>t.has(e)}function x(e,n){return e.params.some(e=>r(S(e)?e.parameter.typeAnnotation:e.typeAnnotation));function r(e){if(!e)return!1;if(e.type===t.AST_NODE_TYPES.TSTypeReference){let t=e.typeName;if(c(t)&&n(t.name))return!0}return r(e.typeAnnotation??e.elementType)}}function S(e){return e.type===t.AST_NODE_TYPES.TSParameterProperty}function C(e,t){let n=S(e)?e.parameter.typeAnnotation:e.typeAnnotation,r=S(t)?t.parameter.typeAnnotation:t.typeAnnotation;return T(e,t)&&D(n,r)}function w(e){let n=S(e)?e.parameter.optional:e.optional;return e.type===t.AST_NODE_TYPES.RestElement||n}function T(e,n){let r=S(e)?e.parameter.optional:e.optional,i=S(n)?n.parameter.optional:n.optional;return e.type===t.AST_NODE_TYPES.RestElement==(n.type===t.AST_NODE_TYPES.RestElement)&&r===i}function E(e,t){return e.name.name===t.name.name&&O(e.constraint,t.constraint)}function D(t,n){return t===n||t!=null&&n!=null&&e.sourceCode.getText(t.typeAnnotation)===e.sourceCode.getText(n.typeAnnotation)}function O(e,t){return e===t||e!=null&&e.type===t?.type}function k(e,t,n){for(let r=0;r<e.length&&r<t.length;r++)if(!n(e[r],t[r]))return r}function A(e,t){for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++)t(e[n],e[r])}let ee=[],j={overloads:new Map};function te(e,t){j&&ee.push(j),j={overloads:new Map,parent:e,typeParameters:t}}function M(){let e=(0,n.nullThrows)(j,`checkScope() called without a current scope`);f(p([...e.overloads.values()],e.typeParameters)),j=ee.pop()}function N(n){return e.sourceCode.getCommentsBefore(n).reverse().find(e=>e.type===t.AST_TOKEN_TYPES.Block)}function ne(e,t,n){if(t??=a(e),(n??e).parent===j?.parent){let n=j.overloads.get(t);n==null?j.overloads.set(t,[e]):n.push(e)}}return{ClassDeclaration(e){te(e.body,e.typeParameters)},Program:te,TSInterfaceDeclaration(e){te(e.body,e.typeParameters)},TSModuleBlock:te,TSTypeLiteral:te,MethodDefinition(e){!e.value.body&&!u(e)&&ne(e)},TSAbstractMethodDefinition(e){!e.value.body&&!u(e)&&ne(e)},TSCallSignatureDeclaration:ne,TSConstructSignatureDeclaration:ne,TSDeclareFunction(e){let t=i(e);ne(e,e.id?.name??t?.type,t)},TSMethodSignature(e){u(e)||ne(e)},"ClassDeclaration:exit":M,"Program:exit":M,"TSInterfaceDeclaration:exit":M,"TSModuleBlock:exit":M,"TSTypeLiteral:exit":M}}});function r(e){return e.type===t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression?e.parent:i(e)??e}function i(e){return e.parent.type===t.AST_NODE_TYPES.ExportNamedDeclaration||e.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration?e.parent:void 0}function a(e){let t=o(e);return(e.computed?`0`:`1`)+(e.static?`0`:`1`)+t}function o(e){switch(e.type){case t.AST_NODE_TYPES.TSConstructSignatureDeclaration:return`constructor`;case t.AST_NODE_TYPES.TSCallSignatureDeclaration:return`()`;default:{let{key:t}=e;return l(t)?`private_identifier_${t.name}`:c(t)?`identifier_${t.name}`:t.raw}}}function s(e){switch(e.type){case t.AST_NODE_TYPES.Identifier:return e.name;case t.AST_NODE_TYPES.RestElement:return s(e.argument);default:return}}function c(e){return e.type===t.AST_NODE_TYPES.Identifier}function l(e){return e.type===t.AST_NODE_TYPES.PrivateIdentifier}function u(e){return e.kind===`get`||e.kind===`set`}})),xke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7(),s="Prefer the safe `: unknown` for a `{{method}}`{{append}} callback variable.";e.default=(0,o.createRule)({name:`use-unknown-in-catch-callback-variable`,meta:{type:`suggestion`,docs:{description:"Enforce typing arguments in Promise rejection callbacks as `unknown`",recommended:`strict`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{addUnknownRestTypeAnnotationSuggestion:"Add an explicit `: [unknown]` type annotation to the rejection callback rest variable.",addUnknownTypeAnnotationSuggestion:"Add an explicit `: unknown` type annotation to the rejection callback variable.",useUnknown:s,useUnknownArrayDestructuringPattern:`${s} The thrown error may not be iterable.`,useUnknownObjectDestructuringPattern:`${s} The thrown error may be nullable, or may not have the expected shape.`,wrongRestTypeAnnotationSuggestion:"Change existing type annotation to `: [unknown]`.",wrongTypeAnnotationSuggestion:"Change existing type annotation to `: unknown`."},schema:[]},defaultOptions:[],create(e){let{esTreeNodeToTSNodeMap:t,program:n}=(0,o.getParserServices)(e),r=n.getTypeChecker();function s(e){for(let t of a.unionConstituents(e)){let e=a.getCallSignaturesOfType(t);if(e.length!==0)for(let t of e){let e=t.parameters.at(0);if(!e)continue;let n=r.getTypeOfSymbol(e),i=e.valueDeclaration;if(i!=null&&(0,o.isRestParameterDeclaration)(i))if(r.isArrayType(n))n=r.getTypeArguments(n)[0];else if(r.isTupleType(n))n=r.getTypeArguments(n)[0];else return!0;if(!a.isIntrinsicUnknownType(n))return!0}}return!1}function c(e){switch(e.type){case i.AST_NODE_TYPES.LogicalExpression:return[...c(e.left),...c(e.right)];case i.AST_NODE_TYPES.SequenceExpression:return c((0,o.nullThrows)(e.expressions.at(-1),`sequence expression must have multiple expressions`));case i.AST_NODE_TYPES.ConditionalExpression:return[...c(e.consequent),...c(e.alternate)];case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.FunctionExpression:{let n=t.get(e);if(s(r.getTypeAtLocation(n)))return[e]}break;default:break}return[]}function l(t){let n=(0,o.nullThrows)(t.params.at(0),`There should have been at least one parameter for the rule to have flagged.`),r=n.type===i.AST_NODE_TYPES.AssignmentPattern?n.left:n;switch(r.type){case i.AST_NODE_TYPES.Identifier:{let a=r.typeAnnotation;return a==null?{node:n,suggest:[{messageId:`addUnknownTypeAnnotationSuggestion`,fix:n=>t.type===i.AST_NODE_TYPES.ArrowFunctionExpression&&(0,o.isParenlessArrowFunction)(t,e.sourceCode)?[n.insertTextBefore(r,`(`),n.insertTextAfter(r,`: unknown)`)]:[n.insertTextAfter(r,`: unknown`)]}]}:{node:n,suggest:[{messageId:`wrongTypeAnnotationSuggestion`,fix:e=>e.replaceText(a,`: unknown`)}]}}case i.AST_NODE_TYPES.ArrayPattern:return{node:n,messageId:`useUnknownArrayDestructuringPattern`};case i.AST_NODE_TYPES.ObjectPattern:return{node:n,messageId:`useUnknownObjectDestructuringPattern`};case i.AST_NODE_TYPES.RestElement:{let e=r.typeAnnotation;return e==null?{node:n,suggest:[{messageId:`addUnknownRestTypeAnnotationSuggestion`,fix:e=>e.insertTextAfter(r,`: [unknown]`)}]}:{node:n,suggest:[{messageId:`wrongRestTypeAnnotationSuggestion`,fix:t=>t.replaceText(e,`: [unknown]`)}]}}}}return{CallExpression({arguments:n,callee:s}){if(s.type!==i.AST_NODE_TYPES.MemberExpression)return;let u=(0,o.getStaticMemberAccessValue)(s,e);if(!u)return;let d=[{append:``,argIndexToCheck:0,method:`catch`},{append:` rejection`,argIndexToCheck:1,method:`then`}].find(({method:e})=>u===e);if(!d)return;let{argIndexToCheck:f,...p}=d;if(n.length<f+1)return;let m=n.slice(0,f+1);if(m.some(({type:e})=>e===i.AST_NODE_TYPES.SpreadElement)||!a.isThenableType(r,t.get(s),r.getTypeAtLocation(t.get(s.object))))return;let h=m[f];for(let t of c(h)){let n=l(t);e.report({node:t,messageId:`useUnknown`,data:p,...n})}}}}})})),Ske=a(((e,t)=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let r=n(rDe()),i=n(iDe()),a=n(sDe()),o=n(v7()),s=n(cDe()),c=n(lDe()),l=n(uDe()),u=n(y7()),d=n(b7()),f=n(dDe()),p=n(S7()),m=n(pDe()),h=n(C7()),g=n(mDe()),_=n(hDe()),v=n(gDe()),y=n(w7()),b=n(yDe()),x=n(bDe()),S=n(xDe()),C=n(SDe()),w=n(CDe()),T=n(wDe()),E=n(ODe()),D=n(kDe()),O=n(ADe()),k=n(jDe()),A=n(MDe()),ee=n(NDe()),j=n(PDe()),te=n(FDe()),M=n(IDe()),N=n(LDe()),ne=n(RDe()),P=n(zDe()),F=n(BDe()),I=n(VDe()),L=n(j7()),R=n(HDe()),z=n(UDe()),B=n(WDe()),re=n(GDe()),ie=n(KDe()),V=n(qDe()),ae=n(JDe()),oe=n(YDe()),se=n(XDe()),ce=n(ZDe()),le=n(QDe()),ue=n($De()),de=n(eOe()),fe=n(tOe()),pe=n(nOe()),me=n(rOe()),he=n(N7()),ge=n(iOe()),_e=n(aOe()),ve=n(oOe()),ye=n(sOe()),be=n(cOe()),xe=n(lOe()),H=n(uOe()),Se=n(fOe()),Ce=n(pOe()),we=n(mOe()),Te=n(hOe()),Ee=n(gOe()),De=n(_Oe()),Oe=n(yOe()),ke=n(bOe()),Ae=n(P7()),je=n(F7()),Me=n(xOe()),Ne=n(I7()),Pe=n(SOe()),Fe=n(COe()),Ie=n(wOe()),Le=n(L7()),Re=n(TOe()),ze=n(EOe()),Be=n(DOe()),Ve=n(kOe()),He=n(AOe()),Ue=n(jOe()),We=n(MOe()),Ge=n(NOe()),Ke=n(POe()),qe=n(FOe()),Je=n(zOe()),Ye=n(R7()),Xe=n(BOe()),Ze=n(VOe()),U=n(HOe()),Qe=n(UOe()),$e=n(z7()),et=n(B7()),tt=n(V7()),nt=n(WOe()),rt=n(H7()),at=n(U7()),ot=n(GOe()),st=n(W7()),W=n(KOe()),ct=n(qOe()),lt=n(JOe()),ut=n(YOe()),dt=n(XOe()),ft=n(ZOe()),pt=n(QOe()),mt=n(rke()),ht=n(ike()),gt=n(ake()),_t=n(G7()),vt=n(oke()),yt=n(ske()),bt=n(cke()),xt=n(lke()),St=n(uke()),Ct=n(dke()),wt=n(fke()),Tt=n(pke()),Et=n(mke()),Dt=n(hke()),Ot=n(gke()),kt=n(K7()),At=n(_ke()),jt=n(vke()),Mt=n(q7()),Nt=n(J7()),Pt=n(Y7()),Ft=n(X7()),It=n(yke()),Lt=n(bke()),Rt=n(xke());t.exports={"adjacent-overload-signatures":r.default,"array-type":i.default,"await-thenable":a.default,"ban-ts-comment":o.default,"ban-tslint-comment":s.default,"class-literal-property-style":c.default,"class-methods-use-this":l.default,"consistent-generic-constructors":u.default,"consistent-indexed-object-style":d.default,"consistent-return":f.default,"consistent-type-assertions":p.default,"consistent-type-definitions":m.default,"consistent-type-exports":h.default,"consistent-type-imports":g.default,"default-param-last":_.default,"dot-notation":v.default,"explicit-function-return-type":y.default,"explicit-member-accessibility":b.default,"explicit-module-boundary-types":x.default,"init-declarations":S.default,"max-params":C.default,"member-ordering":w.default,"method-signature-style":T.default,"naming-convention":E.default,"no-array-constructor":D.default,"no-array-delete":O.default,"no-base-to-string":k.default,"no-confusing-non-null-assertion":A.default,"no-confusing-void-expression":ee.default,"no-deprecated":j.default,"no-dupe-class-members":te.default,"no-duplicate-enum-values":M.default,"no-duplicate-type-constituents":N.default,"no-dynamic-delete":ne.default,"no-empty-function":P.default,"no-empty-interface":F.default,"no-empty-object-type":I.default,"no-explicit-any":L.default,"no-extra-non-null-assertion":R.default,"no-extraneous-class":z.default,"no-floating-promises":B.default,"no-for-in-array":re.default,"no-implied-eval":ie.default,"no-import-type-side-effects":V.default,"no-inferrable-types":ae.default,"no-invalid-this":oe.default,"no-invalid-void-type":se.default,"no-loop-func":ce.default,"no-loss-of-precision":le.default,"no-magic-numbers":ue.default,"no-meaningless-void-operator":de.default,"no-misused-new":fe.default,"no-misused-promises":pe.default,"no-misused-spread":me.default,"no-mixed-enums":he.default,"no-namespace":ge.default,"no-non-null-asserted-nullish-coalescing":_e.default,"no-non-null-asserted-optional-chain":ve.default,"no-non-null-assertion":ye.default,"no-redeclare":be.default,"no-redundant-type-constituents":xe.default,"no-require-imports":H.default,"no-restricted-imports":Se.default,"no-restricted-types":Ce.default,"no-shadow":we.default,"no-this-alias":Te.default,"no-type-alias":Ee.default,"no-unnecessary-boolean-literal-compare":De.default,"no-unnecessary-condition":Oe.default,"no-unnecessary-parameter-property-assignment":ke.default,"no-unnecessary-qualifier":Ae.default,"no-unnecessary-template-expression":je.default,"no-unnecessary-type-arguments":Me.default,"no-unnecessary-type-assertion":Ne.default,"no-unnecessary-type-constraint":Pe.default,"no-unnecessary-type-conversion":Fe.default,"no-unnecessary-type-parameters":Ie.default,"no-unsafe-argument":Le.default,"no-unsafe-assignment":Re.default,"no-unsafe-call":ze.default,"no-unsafe-declaration-merging":Be.default,"no-unsafe-enum-comparison":Ve.default,"no-unsafe-function-type":He.default,"no-unsafe-member-access":Ue.default,"no-unsafe-return":We.default,"no-unsafe-type-assertion":Ge.default,"no-unsafe-unary-minus":Ke.default,"no-unused-expressions":qe.default,"no-unused-private-class-members":Je.default,"no-unused-vars":Ye.default,"no-use-before-define":Xe.default,"no-useless-constructor":Ze.default,"no-useless-default-assignment":U.default,"no-useless-empty-export":Qe.default,"no-var-requires":$e.default,"no-wrapper-object-types":et.default,"non-nullable-type-assertion-style":tt.default,"only-throw-error":nt.default,"parameter-properties":rt.default,"prefer-as-const":at.default,"prefer-destructuring":ot.default,"prefer-enum-initializers":st.default,"prefer-find":W.default,"prefer-for-of":ct.default,"prefer-function-type":lt.default,"prefer-includes":ut.default,"prefer-literal-enum-member":dt.default,"prefer-namespace-keyword":ft.default,"prefer-nullish-coalescing":pt.default,"prefer-optional-chain":mt.default,"prefer-promise-reject-errors":ht.default,"prefer-readonly":gt.default,"prefer-readonly-parameter-types":_t.default,"prefer-reduce-type-parameter":vt.default,"prefer-regexp-exec":yt.default,"prefer-return-this-type":bt.default,"prefer-string-starts-ends-with":xt.default,"prefer-ts-expect-error":St.default,"promise-function-async":Ct.default,"related-getter-setter-pairs":wt.default,"require-array-sort-compare":Tt.default,"require-await":Et.default,"restrict-plus-operands":Dt.default,"restrict-template-expressions":Ot.default,"return-await":kt.default,"sort-type-constituents":At.default,"strict-boolean-expressions":jt.default,"strict-void-return":Mt.default,"switch-exhaustiveness-check":Nt.default,"triple-slash-reference":Pt.default,typedef:Ft.default,"unbound-method":It.default,"unified-signatures":Lt.default,"use-unknown-in-catch-callback-variable":Rt.default}})),Cke=a(((e,t)=>{t.exports={name:`@typescript-eslint/eslint-plugin`,version:`8.59.1`,description:`TypeScript plugin for ESLint`,files:[`dist`,`!**/*.tsbuildinfo`,`index.d.ts`,`raw-plugin.d.ts`,`rules.d.ts`,`package.json`,`./README.md`,`LICENSE`],type:`commonjs`,exports:{".":{types:`./index.d.ts`,default:`./dist/index.js`},"./package.json":`./package.json`,"./use-at-your-own-risk/rules":{types:`./rules.d.ts`,default:`./dist/rules/index.js`},"./use-at-your-own-risk/raw-plugin":{types:`./raw-plugin.d.ts`,default:`./dist/raw-plugin.js`}},engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`},repository:{type:`git`,url:`https://github.com/typescript-eslint/typescript-eslint.git`,directory:`packages/eslint-plugin`},bugs:{url:`https://github.com/typescript-eslint/typescript-eslint/issues`},homepage:`https://typescript-eslint.io/packages/eslint-plugin`,license:`MIT`,keywords:[`eslint`,`eslintplugin`,`eslint-plugin`,`typescript`],dependencies:{"@eslint-community/regexpp":`^4.12.2`,ignore:`^7.0.5`,"natural-compare":`^1.4.0`,"ts-api-utils":`^2.5.0`,"@typescript-eslint/scope-manager":`8.59.1`,"@typescript-eslint/type-utils":`8.59.1`,"@typescript-eslint/utils":`8.59.1`,"@typescript-eslint/visitor-keys":`8.59.1`},devDependencies:{"@types/json-schema":`^7.0.15`,"@types/mdast":`^4.0.4`,"@types/natural-compare":`^1.4.3`,"@types/react":`^18.3.21`,"@vitest/coverage-v8":`^4.0.18`,ajv:`^6.12.6`,eslint:`^10.0.0`,"json-schema":`^0.4.0`,"markdown-table":`^3.0.4`,marked:`^15.0.12`,"mdast-util-from-markdown":`^2.0.2`,"mdast-util-mdx":`^3.0.0`,"micromark-extension-mdxjs":`^3.0.0`,prettier:`3.8.0`,rimraf:`^5.0.10`,"title-case":`^4.3.2`,tsx:`^4.7.2`,typescript:`>=4.8.4 <6.1.0`,"unist-util-visit":`^5.0.0`,vitest:`^4.0.18`,"@typescript-eslint/rule-schema-to-typescript-types":`8.59.1`,"@typescript-eslint/rule-tester":`8.59.1`},peerDependencies:{eslint:`^8.57.0 || ^9.0.0 || ^10.0.0`,typescript:`>=4.8.4 <6.1.0`,"@typescript-eslint/parser":`^8.59.1`},funding:{type:`opencollective`,url:`https://opencollective.com/typescript-eslint`},nx:{name:`eslint-plugin`,includedScripts:[`clean`],targets:{"generate-breaking-changes":{command:`tsx tools/generate-breaking-changes.mts`,options:{cwd:`{projectRoot}`},dependsOn:[`type-utils:build`]},lint:{command:`eslint`}}},scripts:{build:`pnpm -w exec nx build`,clean:`rimraf dist/ coverage/`,format:`pnpm -w run format`,"generate-breaking-changes":`tsx tools/generate-breaking-changes.mts`,"generate-configs":`pnpm -w run generate-configs`,lint:`pnpm -w exec nx lint`,test:`pnpm -w exec nx test`,typecheck:`pnpm -w exec nx typecheck`}}})),wke=a(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!==`default`&&n(i,t,a[o]);return r(i,t),i}})(),a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let o=i(k8()),s=a(qTe()),c=a(JTe()),l=a(YTe()),u=a(ZTe()),d=a(QTe()),f=a($Te()),p=a(eEe()),m=a(tEe()),h=a(nEe()),g=a(rEe()),_=a(iEe()),v=a(aEe()),y=a(oEe()),b=a(sEe()),x=a(X5()),S=a(cEe()),C=a(Z5()),w=a(Q5()),T=a(lEe()),E=a(uEe()),D=a(dEe()),O=a(fEe()),k=a(pEe()),A=a(mEe()),ee=a(hEe()),j=a(gEe()),te=a(Ske()),M={meta:o.meta,parseForESLint:o.parseForESLint},{name:N,version:ne}=Cke(),P={configs:{all:s.default,base:c.default,"disable-type-checked":l.default,"eslint-recommended":u.default,recommended:d.default,"recommended-requiring-type-checking":f.default,"recommended-type-checked":f.default,"recommended-type-checked-only":p.default,strict:m.default,"strict-type-checked":h.default,"strict-type-checked-only":g.default,stylistic:_.default,"stylistic-type-checked":v.default,"stylistic-type-checked-only":y.default},meta:{name:N,namespace:`@typescript-eslint`,version:ne},rules:te.default},F=P,I={"flat/all":(0,b.default)(F,M),"flat/base":(0,x.default)(F,M),"flat/disable-type-checked":(0,S.default)(F,M),"flat/eslint-recommended":(0,C.default)(F,M),"flat/recommended":(0,w.default)(F,M),"flat/recommended-type-checked":(0,T.default)(F,M),"flat/recommended-type-checked-only":(0,E.default)(F,M),"flat/strict":(0,D.default)(F,M),"flat/strict-type-checked":(0,O.default)(F,M),"flat/strict-type-checked-only":(0,k.default)(F,M),"flat/stylistic":(0,A.default)(F,M),"flat/stylistic-type-checked":(0,ee.default)(F,M),"flat/stylistic-type-checked-only":(0,j.default)(F,M)};Object.assign(P.configs,I),t.exports={flatConfigs:I,parser:M,plugin:P}})),Tke=a(((e,t)=>{t.exports=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(wke()).default.plugin})),Eke=a(((e,t)=>{function n(){return arguments.length===1?arguments[0]:typeof arguments[1]==`string`?{node:arguments[0],message:arguments[1],data:arguments[2],fix:arguments[3]}:{node:arguments[0],loc:arguments[1],message:arguments[2],data:arguments[3],fix:arguments[4]}}function r(e){return e.loc?e.loc.start?e.loc:{start:e.loc,end:null}:e.node.loc}function i(e,t){let n=typeof e.messageId==`string`?t[e.messageId]:e.message;if(!e.data)return{message:n,data:typeof e.messageId==`string`?{}:null};let r=Object.create(null);return{message:n.replace(/\{\{\s*([^{}]+?)\s*\}\}/g,(t,n)=>n in e.data?(r[n]=e.data[n],e.data[n]):t),data:Object.freeze(r)}}function a(e){return typeof e==`object`&&e.meta&&typeof e.meta==`object`?e.meta:{}}function o(e){let t=a(e);return t.messages&&typeof e.meta.messages==`object`?t.messages:{}}function s(e){let t=o(e);return function(){let e=n.apply(null,arguments),a=i(e,t);return{node:e.node,message:a.message,messageId:typeof e.messageId==`string`?e.messageId:null,data:typeof e.messageId==`string`?a.data:null,loc:r(e),fix:e.fix}}}function c(e){return typeof e==`function`?e:e.create}function l(e){let t=Object.assign({},e);return typeof e.messageId==`string`&&typeof e.message==`string`&&delete t.message,t}t.exports=Object.freeze({filterReports(e,t){return Object.freeze({create(n){let r=n.getFilename(),i=n.getSourceCode(),a=n.settings,o=n.options;return c(e)(Object.freeze(Object.create(n,{report:{enumerable:!0,value(){let c=s(e).apply(null,arguments);t(c,{sourceCode:i,settings:a,options:o,filename:r})&&n.report(l(c))}}})))},schema:e.schema,meta:a(e)})},mapReports(e,t){return Object.freeze({create(n){let r=n.getFilename(),i=n.getSourceCode(),a=n.settings,o=n.options;return c(e)(Object.freeze(Object.create(n,{report:{enumerable:!0,value(){n.report(l(t(s(e).apply(null,arguments),{sourceCode:i,settings:a,options:o,filename:r})))}}})))},schema:e.schema,meta:a(e)})},joinReports(e){return Object.freeze({create(t){return e.map(e=>c(e)(t)).reduce((e,t)=>Object.keys(t).reduce((e,n)=>{let r=e[n],i=t[n];return r?Object.assign({},e,{[n](){r.apply(null,arguments),i.apply(null,arguments)}}):Object.assign({},e,{[n]:i})},e),Object.create(null))},meta:Object.freeze({messages:Object.assign.apply(null,[Object.create(null)].concat(e.map(o))),fixable:`code`})})}})})),Z7=r(Tke(),1),Dke=r(Eke(),1);const Oke=(e,t)=>(n,r)=>{let{parent:i}=n.node??r.sourceCode.getNodeByRangeIndex(r.sourceCode.getIndexFromLoc(n.loc.start));return i?/^Import(|Default|Namespace)Specifier$/.test(i.type)===e&&Object.assign(n,t?.(i,r)):n},Q7={filter:e=>e.value===`,`},kke={includeComments:!0},Ake=Oke(!0,(e,t)=>({fix(n){let r=e.parent;if(!r)return null;let i=D3(t);if(r.specifiers.length===1){let e=t.sourceCode.getTokenAfter(r,kke),a=e?e.loc.start.line-r.loc.start.line:0,o=e?e.range[0]:r.range[1],s=Math.max(0,a-1);return i?.deleteImport(r.source.value),[n.remove(r),n.replaceTextRange([r.range[1],o],`
|
|
1105
|
+
`);e.default=(0,s.createRule)({name:`unbound-method`,meta:{type:`problem`,docs:{description:`Enforce unbound methods are called with their expected scope`,recommended:`recommended`,requiresTypeChecking:!0},messages:{unbound:d,unboundWithoutThisAnnotation:`${d}\nIf a function does not access \`this\`, it can be annotated with \`this: void\`.`},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreStatic:{type:`boolean`,description:"Whether to skip checking whether `static` methods are correctly bound."}}}]},defaultOptions:[{ignoreStatic:!1}],create(e,[{ignoreStatic:t}]){let n=(0,s.getParserServices)(e),r=n.program.getSourceFile(e.filename);function o(n,r){if(!r)return!1;let{dangerous:i,firstParamIsThis:a}=p(r,t);return i?(e.report({node:n,messageId:a===!1?`unboundWithoutThisAnnotation`:`unbound`}),!0):!1}function d(e,t){if(e.type===i.AST_NODE_TYPES.Identifier&&t.type===i.AST_NODE_TYPES.Identifier){let i=n.getSymbolAtLocation(e);if(i!=null&&u(i,r)&&c.has(`${e.name}.${t.name}`))return!0}return(0,s.isBuiltinSymbolLike)(n.program,n.getTypeAtLocation(e),l)&&(0,s.isSymbolFromDefaultLibrary)(n.program,n.getTypeAtLocation(t).getSymbol())}return{MemberExpression(e){h(e)||d(e.object,e.property)||o(e,n.getSymbolAtLocation(e))},ObjectPattern(e){if(f(e))return;let t=null;e.parent.type===i.AST_NODE_TYPES.VariableDeclarator?t=e.parent.init:(e.parent.type===i.AST_NODE_TYPES.AssignmentPattern||e.parent.type===i.AST_NODE_TYPES.AssignmentExpression)&&(t=e.parent.right);for(let r of e.properties)if(!(r.type!==i.AST_NODE_TYPES.Property||r.key.type!==i.AST_NODE_TYPES.Identifier)){if(t){if(!d(t,r.key)){if(o(r.key,n.getTypeAtLocation(t).getProperty(r.key.name)))continue}else if(e.parent.type!==i.AST_NODE_TYPES.AssignmentPattern)continue}for(let t of a.unionConstituents(n.getTypeAtLocation(e)).flatMap(e=>a.intersectionConstituents(e)))if(o(r.key,t.getProperty(r.key.name)))break}}}}});function f(e){let t=e;for(;t=t.parent;)if(t.type===i.AST_NODE_TYPES.ClassDeclaration&&t.declare||t.type===i.AST_NODE_TYPES.TSAbstractMethodDefinition||t.type===i.AST_NODE_TYPES.TSDeclareFunction||t.type===i.AST_NODE_TYPES.TSFunctionType||t.type===i.AST_NODE_TYPES.TSInterfaceDeclaration||t.type===i.AST_NODE_TYPES.TSTypeAliasDeclaration||t.type===i.AST_NODE_TYPES.VariableDeclaration&&t.declare)return!0;return!1}function p(e,t){let{valueDeclaration:n}=e;if(!n)return{dangerous:!1};switch(n.kind){case o.SyntaxKind.PropertyDeclaration:return{dangerous:n.initializer?.kind===o.SyntaxKind.FunctionExpression};case o.SyntaxKind.PropertyAssignment:{let e=n.initializer;return e.kind===o.SyntaxKind.FunctionExpression?m(e,t):{dangerous:!1}}case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.MethodSignature:return m(n,t)}return{dangerous:!1}}function m(e,t){let n=e.parameters.at(0),r=n?.name.kind===o.SyntaxKind.Identifier&&n.name.escapedText===`this`;return{dangerous:!(r&&n.type?.kind===o.SyntaxKind.VoidKeyword)&&!(t&&a.includesModifier((0,s.getModifiers)(e),o.SyntaxKind.StaticKeyword)),firstParamIsThis:r}}function h(e){let t=e.parent;switch(t?.type){case i.AST_NODE_TYPES.IfStatement:case i.AST_NODE_TYPES.ForStatement:case i.AST_NODE_TYPES.MemberExpression:case i.AST_NODE_TYPES.SwitchStatement:case i.AST_NODE_TYPES.UpdateExpression:case i.AST_NODE_TYPES.WhileStatement:return!0;case i.AST_NODE_TYPES.CallExpression:return t.callee===e;case i.AST_NODE_TYPES.ConditionalExpression:return t.test===e;case i.AST_NODE_TYPES.TaggedTemplateExpression:return t.tag===e;case i.AST_NODE_TYPES.UnaryExpression:return[`!`,`delete`,`typeof`,`void`].includes(t.operator);case i.AST_NODE_TYPES.BinaryExpression:return[`!=`,`!==`,`==`,`===`,`instanceof`].includes(t.operator);case i.AST_NODE_TYPES.AssignmentExpression:return t.operator===`=`&&(e===t.left||e.type===i.AST_NODE_TYPES.MemberExpression&&e.object.type===i.AST_NODE_TYPES.Super&&t.left.type===i.AST_NODE_TYPES.MemberExpression&&t.left.object.type===i.AST_NODE_TYPES.ThisExpression);case i.AST_NODE_TYPES.ChainExpression:case i.AST_NODE_TYPES.TSNonNullExpression:case i.AST_NODE_TYPES.TSAsExpression:case i.AST_NODE_TYPES.TSTypeAssertion:return h(t);case i.AST_NODE_TYPES.LogicalExpression:return t.operator===`&&`&&t.left===e?!0:h(t)}return!1}})),bke=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=P8(),n=_7();e.default=(0,n.createRule)({name:`unified-signatures`,meta:{type:`suggestion`,docs:{description:`Disallow two overloads that could be unified into one with a union or an optional/rest parameter`,recommended:`strict`},messages:{omittingRestParameter:`{{failureStringStart}} with a rest parameter.`,omittingSingleParameter:`{{failureStringStart}} with an optional parameter.`,singleParameterDifference:"{{failureStringStart}} taking `{{type1}} | {{type2}}`."},schema:[{type:`object`,additionalProperties:!1,properties:{ignoreDifferentlyNamedParameters:{type:`boolean`,description:`Whether two parameters with different names at the same index should be considered different even if their types are the same.`},ignoreOverloadsWithDifferentJSDoc:{type:`boolean`,description:`Whether two overloads with different JSDoc comments should be considered different even if their parameter and return types are the same.`}}}]},defaultOptions:[{ignoreDifferentlyNamedParameters:!1,ignoreOverloadsWithDifferentJSDoc:!1}],create(e,[{ignoreDifferentlyNamedParameters:o,ignoreOverloadsWithDifferentJSDoc:l}]){function d(e){return`${e==null?`These overloads`:`This overload and the one on line ${e}`} can be combined into one signature`}function f(n){for(let r of n){let{only2:n,unify:i}=r;switch(i.kind){case`single-parameter-difference`:{let{p0:t,p1:r}=i,a=n?void 0:t.loc.start.line,o=S(t)?t.parameter.typeAnnotation:t.typeAnnotation,s=S(r)?r.parameter.typeAnnotation:r.typeAnnotation;e.report({loc:r.loc,node:r,messageId:`singleParameterDifference`,data:{failureStringStart:d(a),type1:e.sourceCode.getText(o?.typeAnnotation),type2:e.sourceCode.getText(s?.typeAnnotation)}});break}case`extra-parameter`:{let{extraParameter:r,otherSignature:a}=i,o=n?void 0:a.loc.start.line;e.report({loc:r.loc,node:r,messageId:r.type===t.AST_NODE_TYPES.RestElement?`omittingRestParameter`:`omittingSingleParameter`,data:{failureStringStart:d(o)}})}}}}function p(e,t){let n=[],r=b(t);for(let t of e)A(t,(e,i)=>{let a=m(e.value??e,i.value??i,r);a!=null&&n.push({only2:t.length===2,unify:a})});return n}function m(e,t,n){if(h(e,t,n))return e.params.length===t.params.length?g(e.params,t.params):y(e,t)}function h(e,t,i){let a=e.typeParameters==null?void 0:e.typeParameters.params,c=t.typeParameters==null?void 0:t.typeParameters.params;if(o){let n=Math.min(e.params.length,t.params.length);for(let r=0;r<n;r+=1)if(e.params[r].type===t.params[r].type&&s(e.params[r])!==s(t.params[r]))return!1}if(l){let n=N(r(e)),i=N(r(t));if(n?.value!==i?.value)return!1}return D(e.returnType,t.returnType)&&(0,n.arraysAreEqual)(a,c,E)&&x(e,i)===x(t,i)}function g(e,r){let i=e[0],a=r[0];if(v(i)||v(a))return;let o=k(e,r,C);if(o==null||!(0,n.arraysAreEqual)(e.slice(o+1),r.slice(o+1),C))return;let s=e[o],c=r[o];return T(s,c)&&s.type!==t.AST_NODE_TYPES.RestElement?{kind:`single-parameter-difference`,p0:s,p1:c}:void 0}function _(e){return e?.type===t.AST_NODE_TYPES.Identifier&&e.name===`this`}function v(e){return _(e)&&e.typeAnnotation?.typeAnnotation.type===t.AST_NODE_TYPES.TSVoidKeyword}function y(e,n){let r=e.params,i=n.params,a=Math.min(r.length,i.length),o=r.length<i.length?i:r,s=r.length<i.length?r:i,c=r.length<i.length?e:n,l=r.at(0),u=i.at(0);if(_(l)===_(u)&&!(v(l)||v(u))){for(let e=a+1;e<o.length;e++)if(!w(o[e]))return;for(let e=0;e<a;e++){let t=r[e],n=i[e];if(!D(S(t)?t.parameter.typeAnnotation:t.typeAnnotation,S(n)?n.parameter.typeAnnotation:n.typeAnnotation))return}if(!(a>0&&s[a-1].type===t.AST_NODE_TYPES.RestElement))return{extraParameter:o[o.length-1],kind:`extra-parameter`,otherSignature:c}}}function b(e){if(e==null)return()=>!1;let t=new Set;for(let n of e.params)t.add(n.name.name);return e=>t.has(e)}function x(e,n){return e.params.some(e=>r(S(e)?e.parameter.typeAnnotation:e.typeAnnotation));function r(e){if(!e)return!1;if(e.type===t.AST_NODE_TYPES.TSTypeReference){let t=e.typeName;if(c(t)&&n(t.name))return!0}return r(e.typeAnnotation??e.elementType)}}function S(e){return e.type===t.AST_NODE_TYPES.TSParameterProperty}function C(e,t){let n=S(e)?e.parameter.typeAnnotation:e.typeAnnotation,r=S(t)?t.parameter.typeAnnotation:t.typeAnnotation;return T(e,t)&&D(n,r)}function w(e){let n=S(e)?e.parameter.optional:e.optional;return e.type===t.AST_NODE_TYPES.RestElement||n}function T(e,n){let r=S(e)?e.parameter.optional:e.optional,i=S(n)?n.parameter.optional:n.optional;return e.type===t.AST_NODE_TYPES.RestElement==(n.type===t.AST_NODE_TYPES.RestElement)&&r===i}function E(e,t){return e.name.name===t.name.name&&O(e.constraint,t.constraint)}function D(t,n){return t===n||t!=null&&n!=null&&e.sourceCode.getText(t.typeAnnotation)===e.sourceCode.getText(n.typeAnnotation)}function O(e,t){return e===t||e!=null&&e.type===t?.type}function k(e,t,n){for(let r=0;r<e.length&&r<t.length;r++)if(!n(e[r],t[r]))return r}function A(e,t){for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++)t(e[n],e[r])}let ee=[],j={overloads:new Map};function te(e,t){j&&ee.push(j),j={overloads:new Map,parent:e,typeParameters:t}}function M(){let e=(0,n.nullThrows)(j,`checkScope() called without a current scope`);f(p([...e.overloads.values()],e.typeParameters)),j=ee.pop()}function N(n){return e.sourceCode.getCommentsBefore(n).reverse().find(e=>e.type===t.AST_TOKEN_TYPES.Block)}function ne(e,t,n){if(t??=a(e),(n??e).parent===j?.parent){let n=j.overloads.get(t);n==null?j.overloads.set(t,[e]):n.push(e)}}return{ClassDeclaration(e){te(e.body,e.typeParameters)},Program:te,TSInterfaceDeclaration(e){te(e.body,e.typeParameters)},TSModuleBlock:te,TSTypeLiteral:te,MethodDefinition(e){!e.value.body&&!u(e)&&ne(e)},TSAbstractMethodDefinition(e){!e.value.body&&!u(e)&&ne(e)},TSCallSignatureDeclaration:ne,TSConstructSignatureDeclaration:ne,TSDeclareFunction(e){let t=i(e);ne(e,e.id?.name??t?.type,t)},TSMethodSignature(e){u(e)||ne(e)},"ClassDeclaration:exit":M,"Program:exit":M,"TSInterfaceDeclaration:exit":M,"TSModuleBlock:exit":M,"TSTypeLiteral:exit":M}}});function r(e){return e.type===t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression?e.parent:i(e)??e}function i(e){return e.parent.type===t.AST_NODE_TYPES.ExportNamedDeclaration||e.parent.type===t.AST_NODE_TYPES.ExportDefaultDeclaration?e.parent:void 0}function a(e){let t=o(e);return(e.computed?`0`:`1`)+(e.static?`0`:`1`)+t}function o(e){switch(e.type){case t.AST_NODE_TYPES.TSConstructSignatureDeclaration:return`constructor`;case t.AST_NODE_TYPES.TSCallSignatureDeclaration:return`()`;default:{let{key:t}=e;return l(t)?`private_identifier_${t.name}`:c(t)?`identifier_${t.name}`:t.raw}}}function s(e){switch(e.type){case t.AST_NODE_TYPES.Identifier:return e.name;case t.AST_NODE_TYPES.RestElement:return s(e.argument);default:return}}function c(e){return e.type===t.AST_NODE_TYPES.Identifier}function l(e){return e.type===t.AST_NODE_TYPES.PrivateIdentifier}function u(e){return e.kind===`get`||e.kind===`set`}})),xke=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0});let i=P8(),a=r(g8()),o=_7(),s="Prefer the safe `: unknown` for a `{{method}}`{{append}} callback variable.";e.default=(0,o.createRule)({name:`use-unknown-in-catch-callback-variable`,meta:{type:`suggestion`,docs:{description:"Enforce typing arguments in Promise rejection callbacks as `unknown`",recommended:`strict`,requiresTypeChecking:!0},hasSuggestions:!0,messages:{addUnknownRestTypeAnnotationSuggestion:"Add an explicit `: [unknown]` type annotation to the rejection callback rest variable.",addUnknownTypeAnnotationSuggestion:"Add an explicit `: unknown` type annotation to the rejection callback variable.",useUnknown:s,useUnknownArrayDestructuringPattern:`${s} The thrown error may not be iterable.`,useUnknownObjectDestructuringPattern:`${s} The thrown error may be nullable, or may not have the expected shape.`,wrongRestTypeAnnotationSuggestion:"Change existing type annotation to `: [unknown]`.",wrongTypeAnnotationSuggestion:"Change existing type annotation to `: unknown`."},schema:[]},defaultOptions:[],create(e){let{esTreeNodeToTSNodeMap:t,program:n}=(0,o.getParserServices)(e),r=n.getTypeChecker();function s(e){for(let t of a.unionConstituents(e)){let e=a.getCallSignaturesOfType(t);if(e.length!==0)for(let t of e){let e=t.parameters.at(0);if(!e)continue;let n=r.getTypeOfSymbol(e),i=e.valueDeclaration;if(i!=null&&(0,o.isRestParameterDeclaration)(i))if(r.isArrayType(n))n=r.getTypeArguments(n)[0];else if(r.isTupleType(n))n=r.getTypeArguments(n)[0];else return!0;if(!a.isIntrinsicUnknownType(n))return!0}}return!1}function c(e){switch(e.type){case i.AST_NODE_TYPES.LogicalExpression:return[...c(e.left),...c(e.right)];case i.AST_NODE_TYPES.SequenceExpression:return c((0,o.nullThrows)(e.expressions.at(-1),`sequence expression must have multiple expressions`));case i.AST_NODE_TYPES.ConditionalExpression:return[...c(e.consequent),...c(e.alternate)];case i.AST_NODE_TYPES.ArrowFunctionExpression:case i.AST_NODE_TYPES.FunctionExpression:{let n=t.get(e);if(s(r.getTypeAtLocation(n)))return[e]}break;default:break}return[]}function l(t){let n=(0,o.nullThrows)(t.params.at(0),`There should have been at least one parameter for the rule to have flagged.`),r=n.type===i.AST_NODE_TYPES.AssignmentPattern?n.left:n;switch(r.type){case i.AST_NODE_TYPES.Identifier:{let a=r.typeAnnotation;return a==null?{node:n,suggest:[{messageId:`addUnknownTypeAnnotationSuggestion`,fix:n=>t.type===i.AST_NODE_TYPES.ArrowFunctionExpression&&(0,o.isParenlessArrowFunction)(t,e.sourceCode)?[n.insertTextBefore(r,`(`),n.insertTextAfter(r,`: unknown)`)]:[n.insertTextAfter(r,`: unknown`)]}]}:{node:n,suggest:[{messageId:`wrongTypeAnnotationSuggestion`,fix:e=>e.replaceText(a,`: unknown`)}]}}case i.AST_NODE_TYPES.ArrayPattern:return{node:n,messageId:`useUnknownArrayDestructuringPattern`};case i.AST_NODE_TYPES.ObjectPattern:return{node:n,messageId:`useUnknownObjectDestructuringPattern`};case i.AST_NODE_TYPES.RestElement:{let e=r.typeAnnotation;return e==null?{node:n,suggest:[{messageId:`addUnknownRestTypeAnnotationSuggestion`,fix:e=>e.insertTextAfter(r,`: [unknown]`)}]}:{node:n,suggest:[{messageId:`wrongRestTypeAnnotationSuggestion`,fix:t=>t.replaceText(e,`: [unknown]`)}]}}}}return{CallExpression({arguments:n,callee:s}){if(s.type!==i.AST_NODE_TYPES.MemberExpression)return;let u=(0,o.getStaticMemberAccessValue)(s,e);if(!u)return;let d=[{append:``,argIndexToCheck:0,method:`catch`},{append:` rejection`,argIndexToCheck:1,method:`then`}].find(({method:e})=>u===e);if(!d)return;let{argIndexToCheck:f,...p}=d;if(n.length<f+1)return;let m=n.slice(0,f+1);if(m.some(({type:e})=>e===i.AST_NODE_TYPES.SpreadElement)||!a.isThenableType(r,t.get(s),r.getTypeAtLocation(t.get(s.object))))return;let h=m[f];for(let t of c(h)){let n=l(t);e.report({node:t,messageId:`useUnknown`,data:p,...n})}}}}})})),Ske=a(((e,t)=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let r=n(rDe()),i=n(iDe()),a=n(sDe()),o=n(v7()),s=n(cDe()),c=n(lDe()),l=n(uDe()),u=n(y7()),d=n(b7()),f=n(dDe()),p=n(S7()),m=n(pDe()),h=n(C7()),g=n(mDe()),_=n(hDe()),v=n(gDe()),y=n(w7()),b=n(yDe()),x=n(bDe()),S=n(xDe()),C=n(SDe()),w=n(CDe()),T=n(wDe()),E=n(ODe()),D=n(kDe()),O=n(ADe()),k=n(jDe()),A=n(MDe()),ee=n(NDe()),j=n(PDe()),te=n(FDe()),M=n(IDe()),N=n(LDe()),ne=n(RDe()),P=n(zDe()),F=n(BDe()),I=n(VDe()),L=n(j7()),R=n(HDe()),z=n(UDe()),B=n(WDe()),re=n(GDe()),ie=n(KDe()),V=n(qDe()),ae=n(JDe()),oe=n(YDe()),se=n(XDe()),ce=n(ZDe()),le=n(QDe()),ue=n($De()),de=n(eOe()),fe=n(tOe()),pe=n(nOe()),me=n(rOe()),he=n(N7()),ge=n(iOe()),_e=n(aOe()),ve=n(oOe()),ye=n(sOe()),be=n(cOe()),xe=n(lOe()),H=n(uOe()),Se=n(fOe()),Ce=n(pOe()),we=n(mOe()),Te=n(hOe()),Ee=n(gOe()),De=n(_Oe()),Oe=n(yOe()),ke=n(bOe()),Ae=n(P7()),je=n(F7()),Me=n(xOe()),Ne=n(I7()),Pe=n(SOe()),Fe=n(COe()),Ie=n(wOe()),Le=n(L7()),Re=n(TOe()),ze=n(EOe()),Be=n(DOe()),Ve=n(kOe()),He=n(AOe()),Ue=n(jOe()),We=n(MOe()),Ge=n(NOe()),Ke=n(POe()),qe=n(FOe()),Je=n(zOe()),Ye=n(R7()),Xe=n(BOe()),Ze=n(VOe()),U=n(HOe()),Qe=n(UOe()),$e=n(z7()),et=n(B7()),tt=n(V7()),nt=n(WOe()),rt=n(H7()),at=n(U7()),ot=n(GOe()),st=n(W7()),W=n(KOe()),ct=n(qOe()),lt=n(JOe()),ut=n(YOe()),dt=n(XOe()),ft=n(ZOe()),pt=n(QOe()),mt=n(rke()),ht=n(ike()),gt=n(ake()),_t=n(G7()),vt=n(oke()),yt=n(ske()),bt=n(cke()),xt=n(lke()),St=n(uke()),Ct=n(dke()),wt=n(fke()),Tt=n(pke()),Et=n(mke()),Dt=n(hke()),Ot=n(gke()),kt=n(K7()),At=n(_ke()),jt=n(vke()),Mt=n(q7()),Nt=n(J7()),Pt=n(Y7()),Ft=n(X7()),It=n(yke()),Lt=n(bke()),Rt=n(xke());t.exports={"adjacent-overload-signatures":r.default,"array-type":i.default,"await-thenable":a.default,"ban-ts-comment":o.default,"ban-tslint-comment":s.default,"class-literal-property-style":c.default,"class-methods-use-this":l.default,"consistent-generic-constructors":u.default,"consistent-indexed-object-style":d.default,"consistent-return":f.default,"consistent-type-assertions":p.default,"consistent-type-definitions":m.default,"consistent-type-exports":h.default,"consistent-type-imports":g.default,"default-param-last":_.default,"dot-notation":v.default,"explicit-function-return-type":y.default,"explicit-member-accessibility":b.default,"explicit-module-boundary-types":x.default,"init-declarations":S.default,"max-params":C.default,"member-ordering":w.default,"method-signature-style":T.default,"naming-convention":E.default,"no-array-constructor":D.default,"no-array-delete":O.default,"no-base-to-string":k.default,"no-confusing-non-null-assertion":A.default,"no-confusing-void-expression":ee.default,"no-deprecated":j.default,"no-dupe-class-members":te.default,"no-duplicate-enum-values":M.default,"no-duplicate-type-constituents":N.default,"no-dynamic-delete":ne.default,"no-empty-function":P.default,"no-empty-interface":F.default,"no-empty-object-type":I.default,"no-explicit-any":L.default,"no-extra-non-null-assertion":R.default,"no-extraneous-class":z.default,"no-floating-promises":B.default,"no-for-in-array":re.default,"no-implied-eval":ie.default,"no-import-type-side-effects":V.default,"no-inferrable-types":ae.default,"no-invalid-this":oe.default,"no-invalid-void-type":se.default,"no-loop-func":ce.default,"no-loss-of-precision":le.default,"no-magic-numbers":ue.default,"no-meaningless-void-operator":de.default,"no-misused-new":fe.default,"no-misused-promises":pe.default,"no-misused-spread":me.default,"no-mixed-enums":he.default,"no-namespace":ge.default,"no-non-null-asserted-nullish-coalescing":_e.default,"no-non-null-asserted-optional-chain":ve.default,"no-non-null-assertion":ye.default,"no-redeclare":be.default,"no-redundant-type-constituents":xe.default,"no-require-imports":H.default,"no-restricted-imports":Se.default,"no-restricted-types":Ce.default,"no-shadow":we.default,"no-this-alias":Te.default,"no-type-alias":Ee.default,"no-unnecessary-boolean-literal-compare":De.default,"no-unnecessary-condition":Oe.default,"no-unnecessary-parameter-property-assignment":ke.default,"no-unnecessary-qualifier":Ae.default,"no-unnecessary-template-expression":je.default,"no-unnecessary-type-arguments":Me.default,"no-unnecessary-type-assertion":Ne.default,"no-unnecessary-type-constraint":Pe.default,"no-unnecessary-type-conversion":Fe.default,"no-unnecessary-type-parameters":Ie.default,"no-unsafe-argument":Le.default,"no-unsafe-assignment":Re.default,"no-unsafe-call":ze.default,"no-unsafe-declaration-merging":Be.default,"no-unsafe-enum-comparison":Ve.default,"no-unsafe-function-type":He.default,"no-unsafe-member-access":Ue.default,"no-unsafe-return":We.default,"no-unsafe-type-assertion":Ge.default,"no-unsafe-unary-minus":Ke.default,"no-unused-expressions":qe.default,"no-unused-private-class-members":Je.default,"no-unused-vars":Ye.default,"no-use-before-define":Xe.default,"no-useless-constructor":Ze.default,"no-useless-default-assignment":U.default,"no-useless-empty-export":Qe.default,"no-var-requires":$e.default,"no-wrapper-object-types":et.default,"non-nullable-type-assertion-style":tt.default,"only-throw-error":nt.default,"parameter-properties":rt.default,"prefer-as-const":at.default,"prefer-destructuring":ot.default,"prefer-enum-initializers":st.default,"prefer-find":W.default,"prefer-for-of":ct.default,"prefer-function-type":lt.default,"prefer-includes":ut.default,"prefer-literal-enum-member":dt.default,"prefer-namespace-keyword":ft.default,"prefer-nullish-coalescing":pt.default,"prefer-optional-chain":mt.default,"prefer-promise-reject-errors":ht.default,"prefer-readonly":gt.default,"prefer-readonly-parameter-types":_t.default,"prefer-reduce-type-parameter":vt.default,"prefer-regexp-exec":yt.default,"prefer-return-this-type":bt.default,"prefer-string-starts-ends-with":xt.default,"prefer-ts-expect-error":St.default,"promise-function-async":Ct.default,"related-getter-setter-pairs":wt.default,"require-array-sort-compare":Tt.default,"require-await":Et.default,"restrict-plus-operands":Dt.default,"restrict-template-expressions":Ot.default,"return-await":kt.default,"sort-type-constituents":At.default,"strict-boolean-expressions":jt.default,"strict-void-return":Mt.default,"switch-exhaustiveness-check":Nt.default,"triple-slash-reference":Pt.default,typedef:Ft.default,"unbound-method":It.default,"unified-signatures":Lt.default,"use-unknown-in-catch-callback-variable":Rt.default}})),Cke=a(((e,t)=>{t.exports={name:`@typescript-eslint/eslint-plugin`,version:`8.59.2`,description:`TypeScript plugin for ESLint`,files:[`dist`,`!**/*.tsbuildinfo`,`index.d.ts`,`raw-plugin.d.ts`,`rules.d.ts`,`package.json`,`./README.md`,`LICENSE`],type:`commonjs`,exports:{".":{types:`./index.d.ts`,default:`./dist/index.js`},"./package.json":`./package.json`,"./use-at-your-own-risk/rules":{types:`./rules.d.ts`,default:`./dist/rules/index.js`},"./use-at-your-own-risk/raw-plugin":{types:`./raw-plugin.d.ts`,default:`./dist/raw-plugin.js`}},engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`},repository:{type:`git`,url:`https://github.com/typescript-eslint/typescript-eslint.git`,directory:`packages/eslint-plugin`},bugs:{url:`https://github.com/typescript-eslint/typescript-eslint/issues`},homepage:`https://typescript-eslint.io/packages/eslint-plugin`,license:`MIT`,keywords:[`eslint`,`eslintplugin`,`eslint-plugin`,`typescript`],dependencies:{"@eslint-community/regexpp":`^4.12.2`,ignore:`^7.0.5`,"natural-compare":`^1.4.0`,"ts-api-utils":`^2.5.0`,"@typescript-eslint/scope-manager":`8.59.2`,"@typescript-eslint/type-utils":`8.59.2`,"@typescript-eslint/visitor-keys":`8.59.2`,"@typescript-eslint/utils":`8.59.2`},devDependencies:{"@types/json-schema":`^7.0.15`,"@types/mdast":`^4.0.4`,"@types/natural-compare":`^1.4.3`,"@types/react":`^18.3.21`,"@vitest/coverage-v8":`^4.0.18`,ajv:`^6.12.6`,eslint:`^10.0.0`,"json-schema":`^0.4.0`,"markdown-table":`^3.0.4`,marked:`^15.0.12`,"mdast-util-from-markdown":`^2.0.2`,"mdast-util-mdx":`^3.0.0`,"micromark-extension-mdxjs":`^3.0.0`,prettier:`3.8.0`,rimraf:`^5.0.10`,"title-case":`^4.3.2`,tsx:`^4.7.2`,typescript:`>=4.8.4 <6.1.0`,"unist-util-visit":`^5.0.0`,vitest:`^4.0.18`,"@typescript-eslint/rule-schema-to-typescript-types":`8.59.2`,"@typescript-eslint/rule-tester":`8.59.2`},peerDependencies:{eslint:`^8.57.0 || ^9.0.0 || ^10.0.0`,typescript:`>=4.8.4 <6.1.0`,"@typescript-eslint/parser":`^8.59.2`},funding:{type:`opencollective`,url:`https://opencollective.com/typescript-eslint`},nx:{name:`eslint-plugin`,includedScripts:[`clean`],targets:{"generate-breaking-changes":{command:`tsx tools/generate-breaking-changes.mts`,options:{cwd:`{projectRoot}`},dependsOn:[`type-utils:build`]},lint:{command:`eslint`}}},scripts:{build:`pnpm -w exec nx build`,clean:`rimraf dist/ coverage/`,format:`pnpm -w run format`,"generate-breaking-changes":`tsx tools/generate-breaking-changes.mts`,"generate-configs":`pnpm -w run generate-configs`,lint:`pnpm -w exec nx lint`,test:`pnpm -w exec nx test`,typecheck:`pnpm -w exec nx typecheck`}}})),wke=a(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!==`default`&&n(i,t,a[o]);return r(i,t),i}})(),a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let o=i(k8()),s=a(qTe()),c=a(JTe()),l=a(YTe()),u=a(ZTe()),d=a(QTe()),f=a($Te()),p=a(eEe()),m=a(tEe()),h=a(nEe()),g=a(rEe()),_=a(iEe()),v=a(aEe()),y=a(oEe()),b=a(sEe()),x=a(X5()),S=a(cEe()),C=a(Z5()),w=a(Q5()),T=a(lEe()),E=a(uEe()),D=a(dEe()),O=a(fEe()),k=a(pEe()),A=a(mEe()),ee=a(hEe()),j=a(gEe()),te=a(Ske()),M={meta:o.meta,parseForESLint:o.parseForESLint},{name:N,version:ne}=Cke(),P={configs:{all:s.default,base:c.default,"disable-type-checked":l.default,"eslint-recommended":u.default,recommended:d.default,"recommended-requiring-type-checking":f.default,"recommended-type-checked":f.default,"recommended-type-checked-only":p.default,strict:m.default,"strict-type-checked":h.default,"strict-type-checked-only":g.default,stylistic:_.default,"stylistic-type-checked":v.default,"stylistic-type-checked-only":y.default},meta:{name:N,namespace:`@typescript-eslint`,version:ne},rules:te.default},F=P,I={"flat/all":(0,b.default)(F,M),"flat/base":(0,x.default)(F,M),"flat/disable-type-checked":(0,S.default)(F,M),"flat/eslint-recommended":(0,C.default)(F,M),"flat/recommended":(0,w.default)(F,M),"flat/recommended-type-checked":(0,T.default)(F,M),"flat/recommended-type-checked-only":(0,E.default)(F,M),"flat/strict":(0,D.default)(F,M),"flat/strict-type-checked":(0,O.default)(F,M),"flat/strict-type-checked-only":(0,k.default)(F,M),"flat/stylistic":(0,A.default)(F,M),"flat/stylistic-type-checked":(0,ee.default)(F,M),"flat/stylistic-type-checked-only":(0,j.default)(F,M)};Object.assign(P.configs,I),t.exports={flatConfigs:I,parser:M,plugin:P}})),Tke=a(((e,t)=>{t.exports=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(wke()).default.plugin})),Eke=a(((e,t)=>{function n(){return arguments.length===1?arguments[0]:typeof arguments[1]==`string`?{node:arguments[0],message:arguments[1],data:arguments[2],fix:arguments[3]}:{node:arguments[0],loc:arguments[1],message:arguments[2],data:arguments[3],fix:arguments[4]}}function r(e){return e.loc?e.loc.start?e.loc:{start:e.loc,end:null}:e.node.loc}function i(e,t){let n=typeof e.messageId==`string`?t[e.messageId]:e.message;if(!e.data)return{message:n,data:typeof e.messageId==`string`?{}:null};let r=Object.create(null);return{message:n.replace(/\{\{\s*([^{}]+?)\s*\}\}/g,(t,n)=>n in e.data?(r[n]=e.data[n],e.data[n]):t),data:Object.freeze(r)}}function a(e){return typeof e==`object`&&e.meta&&typeof e.meta==`object`?e.meta:{}}function o(e){let t=a(e);return t.messages&&typeof e.meta.messages==`object`?t.messages:{}}function s(e){let t=o(e);return function(){let e=n.apply(null,arguments),a=i(e,t);return{node:e.node,message:a.message,messageId:typeof e.messageId==`string`?e.messageId:null,data:typeof e.messageId==`string`?a.data:null,loc:r(e),fix:e.fix}}}function c(e){return typeof e==`function`?e:e.create}function l(e){let t=Object.assign({},e);return typeof e.messageId==`string`&&typeof e.message==`string`&&delete t.message,t}t.exports=Object.freeze({filterReports(e,t){return Object.freeze({create(n){let r=n.getFilename(),i=n.getSourceCode(),a=n.settings,o=n.options;return c(e)(Object.freeze(Object.create(n,{report:{enumerable:!0,value(){let c=s(e).apply(null,arguments);t(c,{sourceCode:i,settings:a,options:o,filename:r})&&n.report(l(c))}}})))},schema:e.schema,meta:a(e)})},mapReports(e,t){return Object.freeze({create(n){let r=n.getFilename(),i=n.getSourceCode(),a=n.settings,o=n.options;return c(e)(Object.freeze(Object.create(n,{report:{enumerable:!0,value(){n.report(l(t(s(e).apply(null,arguments),{sourceCode:i,settings:a,options:o,filename:r})))}}})))},schema:e.schema,meta:a(e)})},joinReports(e){return Object.freeze({create(t){return e.map(e=>c(e)(t)).reduce((e,t)=>Object.keys(t).reduce((e,n)=>{let r=e[n],i=t[n];return r?Object.assign({},e,{[n](){r.apply(null,arguments),i.apply(null,arguments)}}):Object.assign({},e,{[n]:i})},e),Object.create(null))},meta:Object.freeze({messages:Object.assign.apply(null,[Object.create(null)].concat(e.map(o))),fixable:`code`})})}})})),Z7=r(Tke(),1),Dke=r(Eke(),1);const Oke=(e,t)=>(n,r)=>{let{parent:i}=n.node??r.sourceCode.getNodeByRangeIndex(r.sourceCode.getIndexFromLoc(n.loc.start));return i?/^Import(|Default|Namespace)Specifier$/.test(i.type)===e&&Object.assign(n,t?.(i,r)):n},Q7={filter:e=>e.value===`,`},kke={includeComments:!0},Ake=Oke(!0,(e,t)=>({fix(n){let r=e.parent;if(!r)return null;let i=D3(t);if(r.specifiers.length===1){let e=t.sourceCode.getTokenAfter(r,kke),a=e?e.loc.start.line-r.loc.start.line:0,o=e?e.range[0]:r.range[1],s=Math.max(0,a-1);return i?.deleteImport(r.source.value),[n.remove(r),n.replaceTextRange([r.range[1],o],`
|
|
1106
1106
|
`.repeat(s))]}if(e!==r.specifiers[r.specifiers.length-1]){let r=t.sourceCode.getTokenAfter(e,Q7),i=t.sourceCode.getTokenBefore(e);return[n.removeRange([i.range[1],e.range[0]]),n.remove(e),n.remove(r)]}if(r.specifiers.filter(e=>e.type===`ImportSpecifier`).length===1){let r=t.sourceCode.getTokenBefore(e,Q7),i=t.sourceCode.getTokenAfter(e,{filter:e=>e.value===`}`});return n.removeRange([r.range[0],i.range[1]])}return n.removeRange([t.sourceCode.getTokenBefore(e,Q7).range[0],e.range[1]])}}));function jke(){let e=Z7.default.rules[`no-unused-vars`];e.meta.fixable=`code`;let t={rules:{"unused-imports":Dke.default.filterReports(e,Ake)}};return{plugin:t,config:[{plugins:{"unused-imports":t},rules:{"unused-imports/unused-imports":`error`}}]}}function Mke(e,t,n){return vye(e,[...VTe(n).config,...KTe(n).config,...jke().config],t)}var Nke=Function(`return this`)().Promise,$7=!1;try{$7=Function(`return (async function(){}).constructor`)()}catch(e){if(!(e instanceof SyntaxError))throw e}function Pke(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e9(e,t,n){for(var r in t)Pke(t,r)&&(t[r]!=null&&typeof t[r]==`object`&&(r===`storage`||r===`prefixes`)&&!n?e[r]=e9({},t[r]):e[r]=t[r]);return e}function Fke(e,t,n,r){var i,a;return typeof t.autoTrim==`string`?i=a=t.autoTrim:Array.isArray(t.autoTrim)&&(i=t.autoTrim[1],a=t.autoTrim[0]),(n||n===!1)&&(i=n),(r||r===!1)&&(a=r),i===`slurp`&&a===`slurp`?e.trim():(i===`_`||i===`slurp`?e=String.prototype.trimLeft?e.trimLeft():e.replace(/^[\s\uFEFF\xA0]+/,``):(i===`-`||i===`nl`)&&(e=e.replace(/^(?:\n|\r|\r\n)/,``)),a===`_`||a===`slurp`?e=String.prototype.trimRight?e.trimRight():e.replace(/[\s\uFEFF\xA0]+$/,``):(a===`-`||a===`nl`)&&(e=e.replace(/(?:\n|\r|\r\n)$/,``)),e)}function t9(e){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)}var n9=function(){function e(e){this.cache=e}return e.prototype.define=function(e,t){this.cache[e]=t},e.prototype.get=function(e){return this.cache[e]},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.reset=function(){this.cache={}},e.prototype.load=function(e){e9(this.cache,e,!0)},e}();function Ike(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function r9(e){var t=Error(e);return Ike(t,r9.prototype),t}r9.prototype=Object.create(Error.prototype,{name:{value:`Squirrelly Error`,enumerable:!1}});function i9(e,t,n){var r=t.slice(0,n).split(/\n/),i=r.length,a=r[i-1].length+1;throw e+=` at line `+i+` col `+a+`:
|
|
1107
1107
|
|
|
1108
1108
|
`+t.split(/\n/)[i-1]+`
|
|
@@ -1112,7 +1112,7 @@ ${p} return (`),yield r.insertTextAfter(e,`);
|
|
|
1112
1112
|
|
|
1113
1113
|
`+t.message+`
|
|
1114
1114
|
`+Array(t.message.length+1).join(`=`)+`
|
|
1115
|
-
`+d9(e,n)):t}}var b9=t(`fs`),x9=t(`path`),S9=/^\uFEFF/;function C9(e,t,n){var r=x9.resolve(n?t:x9.dirname(t),e);return x9.extname(e)||(r+=`.sqrl`),r}function w9(e,t){var n,r,i=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)n=C9(e.replace(/^\/*/,``),t.root||`/`,!0);else if(t.filename&&(r=C9(e,t.filename),b9.existsSync(r)&&(n=r)),n||Array.isArray(i)&&i.some(function(t){return r=C9(e,t,!0),b9.existsSync(r)})&&(n=r),!n)throw r9(`Could not find the include file "`+e+`"`);return n}function T9(e){return b9.readFileSync(e).toString().replace(S9,``)}function E9(e,t){var n=v9(t),r=T9(e);try{var i=y9(r,n);return n.storage.templates.define(n.filename,i),i}catch{throw r9(`Loading file: `+e+` failed`)}}function D9(e){var t=e.filename;return e.cache?e.storage.templates.get(t)||E9(t,e):y9(T9(t),e)}function O9(e,t){return D9(v9({filename:w9(e,t)},t))}function k9(e,t,n){if(t&&t.length>0)throw r9(`Helper 'includeFile' doesn't accept blocks`);return O9(e.params[0],n)(e.params[1],n)}function A9(e,t,n){var r=e.params[1]||{};r.content=e.exec();for(var i=0;i<t.length;i++){var a=t[i];r[a.name]=a.exec()}return O9(e.params[0],n)(r,n)}function j9(e,t){var n;return t.cache&&t.name&&t.storage.templates.get(t.name)?t.storage.templates.get(t.name):(n=typeof e==`function`?e:y9(e,t),t.cache&&t.name&&t.storage.templates.define(t.name,n),n)}function M9(e,t,n,r){var i=v9(n||{});if(i.async){var a;if(r)try{j9(e,i)(t,i,r)}catch(e){return r(e)}else{if(typeof Nke==`function`)return new Nke(function(n,r){try{a=j9(e,i)(t,i),n(a)}catch(e){r(e)}});throw r9(`Please provide a callback function, this env doesn't support Promises`)}}else return j9(e,i)(t,i)}g9.define(`includeFile`,k9),g9.define(`extendsFile`,A9);const N9=[`/*{`,`}*/`];function P9(e,t){return M9(e,t,{tags:N9})}function Kke(e,t){return{eslint:(e.includes(`BATI.has`)||e.includes(`BATI_TEST`)||e.includes(`/*# BATI `)||e.includes(`@batijs/`)||t.endsWith(`.ts`)||t.endsWith(`.tsx`))&&!t.endsWith(`.css`),squirelly:e.includes(N9[0])}}const qke=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,Jke=/\/\/\s*biome-ignore[^\n]*/gim,Yke=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,Xke=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,F9=RegExp(`${qke.source}|${Yke.source}`,`gim`),I9=RegExp(`${Jke.source}|${Xke.source}`,`gim`);async function L9(e,t,n){let{eslint:r,squirelly:i}=Kke(e,n.filepath),a=e,o,s=!1;if(i&&(a=P9(a,t),s=!0),r){let e=Mke(a,n.filepath,t);a=e.code,o=e.context,s=!0}return!t.BATI.has(`eslint`)&&F9.test(a)&&(a=a.replace(F9,``),s=!0),!t.BATI.has(`biome`)&&I9.test(a)&&(a=a.replace(I9,``),s=!0),{code:s?await AY(a,n):a,context:o}}var R9=`0.0.
|
|
1115
|
+
`+d9(e,n)):t}}var b9=t(`fs`),x9=t(`path`),S9=/^\uFEFF/;function C9(e,t,n){var r=x9.resolve(n?t:x9.dirname(t),e);return x9.extname(e)||(r+=`.sqrl`),r}function w9(e,t){var n,r,i=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)n=C9(e.replace(/^\/*/,``),t.root||`/`,!0);else if(t.filename&&(r=C9(e,t.filename),b9.existsSync(r)&&(n=r)),n||Array.isArray(i)&&i.some(function(t){return r=C9(e,t,!0),b9.existsSync(r)})&&(n=r),!n)throw r9(`Could not find the include file "`+e+`"`);return n}function T9(e){return b9.readFileSync(e).toString().replace(S9,``)}function E9(e,t){var n=v9(t),r=T9(e);try{var i=y9(r,n);return n.storage.templates.define(n.filename,i),i}catch{throw r9(`Loading file: `+e+` failed`)}}function D9(e){var t=e.filename;return e.cache?e.storage.templates.get(t)||E9(t,e):y9(T9(t),e)}function O9(e,t){return D9(v9({filename:w9(e,t)},t))}function k9(e,t,n){if(t&&t.length>0)throw r9(`Helper 'includeFile' doesn't accept blocks`);return O9(e.params[0],n)(e.params[1],n)}function A9(e,t,n){var r=e.params[1]||{};r.content=e.exec();for(var i=0;i<t.length;i++){var a=t[i];r[a.name]=a.exec()}return O9(e.params[0],n)(r,n)}function j9(e,t){var n;return t.cache&&t.name&&t.storage.templates.get(t.name)?t.storage.templates.get(t.name):(n=typeof e==`function`?e:y9(e,t),t.cache&&t.name&&t.storage.templates.define(t.name,n),n)}function M9(e,t,n,r){var i=v9(n||{});if(i.async){var a;if(r)try{j9(e,i)(t,i,r)}catch(e){return r(e)}else{if(typeof Nke==`function`)return new Nke(function(n,r){try{a=j9(e,i)(t,i),n(a)}catch(e){r(e)}});throw r9(`Please provide a callback function, this env doesn't support Promises`)}}else return j9(e,i)(t,i)}g9.define(`includeFile`,k9),g9.define(`extendsFile`,A9);const N9=[`/*{`,`}*/`];function P9(e,t){return M9(e,t,{tags:N9})}function Kke(e,t){return{eslint:(e.includes(`BATI.has`)||e.includes(`BATI_TEST`)||e.includes(`/*# BATI `)||e.includes(`@batijs/`)||t.endsWith(`.ts`)||t.endsWith(`.tsx`))&&!t.endsWith(`.css`),squirelly:e.includes(N9[0])}}const qke=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,Jke=/\/\/\s*biome-ignore[^\n]*/gim,Yke=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,Xke=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,F9=RegExp(`${qke.source}|${Yke.source}`,`gim`),I9=RegExp(`${Jke.source}|${Xke.source}`,`gim`);async function L9(e,t,n){let{eslint:r,squirelly:i}=Kke(e,n.filepath),a=e,o,s=!1;if(i&&(a=P9(a,t),s=!0),r){let e=Mke(a,n.filepath,t);a=e.code,o=e.context,s=!0}return!t.BATI.has(`eslint`)&&F9.test(a)&&(a=a.replace(F9,``),s=!0),!t.BATI.has(`biome`)&&I9.test(a)&&(a=a.replace(I9,``),s=!0),{code:s?await AY(a,n):a,context:o}}var R9=`0.0.627`;function z9(){return process.env.npm_config_user_agent?B9(process.env.npm_config_user_agent):{name:`npm`,run:`npm run`,exec:`npx`}}function B9(e){let t=e.split(` `)[0],n=t.lastIndexOf(`/`),r=t.substring(0,n);r=r===`npminstall`?`cnpm`:r;let i;switch(r){case`pnpm`:i=`pnpm dlx`;break;case`yarn`:i=`yarn dlx`;break;case`bun`:i=`bunx`;break;case`cnpm`:i=`cnpx`;break;default:i=`npx`}return{name:r,version:t.substring(n+1),run:r===`npm`?`npm run`:r,exec:i}}function V9(){switch(z9().name){case`pnpm`:return`pnpm create vike@latest`;case`yarn`:return`yarn create vike@latest`;case`bun`:return`bun create vike@latest`;default:return`npm create vike@latest ---`}}function Zke(){let e=R9.split(`.`);return{version:R9,semver:[e[0],e[1],e.slice(2).join(`.`)]}}function H9(e,t,n,r){e??=``,e.endsWith(`
|
|
1116
1116
|
|
|
1117
1117
|
`)||(e.endsWith(`
|
|
1118
1118
|
`)?e=`${e}\n`:e&&=`${e}\n\n`);let i=r?`${r.replace(/^(.+)/gm,`# $1`)}\n`:``,a=`${t}=${U9(n)}\n`;return e+i+a}function U9(e){let t=``;switch(typeof e){case`string`:e&&(t=JSON.stringify(e));break;case`boolean`:case`number`:t=String(e);break;case`undefined`:t=``;break;case`object`:e!==null&&(t=JSON.stringify(e));break}return t}var Qke=a((e=>{var n=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sync=e.isexe=void 0;var n=t(`node:fs`),r=t(`node:fs/promises`);e.isexe=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return i(await(0,r.stat)(e),t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},e.sync=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i((0,n.statSync)(e),t)}catch(e){let t=e;if(r||t.code===`EACCES`)return!1;throw t}};var i=(e,t)=>e.isFile()&&a(e,t),a=(e,t)=>{let n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??r[0];if(n===void 0||i===void 0)throw Error(`cannot get uid or gid`);let a=new Set([i,...r]),o=e.mode,s=e.uid,c=e.gid;return!!(o&1||o&8&&a.has(c)||o&64&&s===n||o&72&&n===0)}}),i=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sync=e.isexe=void 0;var n=t(`node:fs`),r=t(`node:fs/promises`),i=t(`node:path`);e.isexe=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return o(await(0,r.stat)(e),e,t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},e.sync=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return o((0,n.statSync)(e),e,t)}catch(e){let t=e;if(r||t.code===`EACCES`)return!1;throw t}};var a=(e,t)=>{let{pathExt:n=process.env.PATHEXT||``}=t,r=n.split(i.delimiter);if(r.indexOf(``)!==-1)return!0;for(let t of r){let n=t.toLowerCase(),r=e.substring(e.length-n.length).toLowerCase();if(n&&r===n)return!0}return!1},o=(e,t,n)=>e.isFile()&&a(t,n)}),a=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0})}),o=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),s=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),c=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!==`default`&&o(n,t,r[i]);return s(n,t),n}})(),l=e&&e.__exportStar||function(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&o(t,e,n)};Object.defineProperty(e,`__esModule`,{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;var u=c(r());e.posix=u;var d=c(i());e.win32=d,l(a(),e);var f=(process.env._ISEXE_TEST_PLATFORM_||process.platform)===`win32`?d:u;e.isexe=f.isexe,e.sync=f.sync})),W9=r(a(((e,n)=>{let{isexe:r,sync:i}=Qke(),{join:a,delimiter:o,sep:s,posix:c}=t(`path`),l=process.platform===`win32`,u=new RegExp(`[${c.sep}${s===c.sep?``:s}]`.replace(/(\\)/g,`\\$1`)),d=RegExp(`^\\.${u.source}`),f=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),p=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=o})=>{let i=e.match(u)?[``]:[...l?[process.cwd()]:[],...(t||``).split(r)];if(l){let t=n||[`.EXE`,`.CMD`,`.BAT`,`.COM`].join(r),a=t.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(`.`)&&a[0]!==``&&a.unshift(``),{pathEnv:i,pathExt:a,pathExtExe:t}}return{pathEnv:i,pathExt:[``]}},m=(e,t)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&d.test(t)?t.slice(0,2):``)+a(n,t)},h=async(e,t={})=>{let{pathEnv:n,pathExt:i,pathExtExe:a}=p(e,t),o=[];for(let s of n){let n=m(s,e);for(let e of i){let i=n+e;if(await r(i,{pathExt:a,ignoreErrors:!0})){if(!t.all)return i;o.push(i)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw f(e)};n.exports=h,h.sync=(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:a}=p(e,t),o=[];for(let s of n){let n=m(s,e);for(let e of r){let r=n+e;if(i(r,{pathExt:a,ignoreErrors:!0})){if(!t.all)return r;o.push(r)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw f(e)}}))(),1).default;export{e2 as MarkdownV2,Tde as addVitePlugin,H9 as appendToEnv,Gue as bgBlack,ode as bgBlackBright,Yue as bgBlue,ude as bgBlueBright,Zue as bgCyan,fde as bgCyanBright,que as bgGreen,cde as bgGreenBright,Xue as bgMagenta,dde as bgMagentaBright,Kue as bgRed,sde as bgRedBright,Que as bgWhite,d2 as bgWhiteBright,Jue as bgYellow,lde as bgYellowBright,Iue as black,$ue as blackBright,Bue as blue,rde as blueBright,jue as bold,g$ as builders,o2 as createColors,Hue as cyan,ade as cyanBright,xde as deepMergeObject,c2 as dim,AY as formatCode,m$ as generateCode,V9 as getArgs,Zke as getVersion,Wue as gray,Rue as green,tde as greenBright,Pue as hidden,Nue as inverse,Oue as isColorSupported,l2 as italic,gde as loadAsJson,vde as loadAsMagicast,_$ as loadFile,m2 as loadMarkdown,_de as loadPackageJson,yde as loadRelativeFileAsMagicast,bde as loadYaml,Vue as magenta,ide as magentaBright,z9 as packageManager,$0 as parseMarkdown,f$ as parseModule,f as randomBytes,Lue as red,ede as redBright,s2 as reset,Fue as strikethrough,L9 as transformAndFormat,Mue as underline,W9 as which,Uue as white,u2 as whiteBright,f2 as withIcon,zue as yellow,nde as yellowBright};
|